@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.
Files changed (114) hide show
  1. package/.github/workflows/build.yml +25 -0
  2. package/README.md +74 -2
  3. package/dist/assets/index-BmN7pBji.css +1 -0
  4. package/dist/assets/index-DgNDjkOz.js +301 -0
  5. package/dist/favicon.svg +15 -0
  6. package/dist/index.html +55 -0
  7. package/dist/preview-host.html +33 -0
  8. package/index.html +54 -0
  9. package/package.json +43 -4
  10. package/postcss.config.js +6 -0
  11. package/public/favicon.svg +15 -0
  12. package/public/preview-host.html +33 -0
  13. package/shared/plugin-builder.test.mjs +43 -0
  14. package/shared/plugin-package.d.mts +34 -0
  15. package/shared/plugin-package.mjs +197 -0
  16. package/shared/plugin-package.test.mjs +94 -0
  17. package/src/App.tsx +152 -0
  18. package/src/agent/adapters/anthropic.ts +233 -0
  19. package/src/agent/adapters/gemini.ts +225 -0
  20. package/src/agent/adapters/openai-responses.ts +215 -0
  21. package/src/agent/adapters/openai.ts +200 -0
  22. package/src/agent/adapters/shared.ts +96 -0
  23. package/src/agent/approval.ts +20 -0
  24. package/src/agent/compact.ts +234 -0
  25. package/src/agent/index.ts +36 -0
  26. package/src/agent/model.ts +20 -0
  27. package/src/agent/prompt.ts +107 -0
  28. package/src/agent/queue.test.mjs +111 -0
  29. package/src/agent/queue.ts +84 -0
  30. package/src/agent/subagent.ts +109 -0
  31. package/src/agent/tools.ts +541 -0
  32. package/src/components/ChatView.tsx +403 -0
  33. package/src/components/CommandPalette.tsx +416 -0
  34. package/src/components/Composer.tsx +678 -0
  35. package/src/components/ContextBar.tsx +58 -0
  36. package/src/components/DeployModal.tsx +512 -0
  37. package/src/components/ErrorBoundary.tsx +75 -0
  38. package/src/components/HomeDashboard.tsx +189 -0
  39. package/src/components/Logo.tsx +41 -0
  40. package/src/components/Markdown.tsx +232 -0
  41. package/src/components/MessageItem.tsx +655 -0
  42. package/src/components/ModelPicker.tsx +487 -0
  43. package/src/components/PixleSol.tsx +243 -0
  44. package/src/components/PluginBuilder.tsx +285 -0
  45. package/src/components/PluginManager.tsx +341 -0
  46. package/src/components/PreviewPane.tsx +166 -0
  47. package/src/components/SettingsModal.tsx +2052 -0
  48. package/src/components/Sidebar.tsx +504 -0
  49. package/src/components/Splash.tsx +104 -0
  50. package/src/components/ToolCallCard.tsx +177 -0
  51. package/src/components/TopBar.tsx +182 -0
  52. package/src/components/TrajectoryView.tsx +178 -0
  53. package/src/components/WorkspacePanel.tsx +710 -0
  54. package/src/components/ui.tsx +311 -0
  55. package/src/core/kernel.ts +45 -0
  56. package/src/core/plugins/tools/fs.ts +219 -0
  57. package/src/core/plugins/tools/git.ts +83 -0
  58. package/src/core/plugins/tools/grep.ts +98 -0
  59. package/src/core/plugins/tools/shell.ts +88 -0
  60. package/src/core/plugins/tools/subagent.ts +36 -0
  61. package/src/core/plugins/tools/web.ts +97 -0
  62. package/src/core/services/agent-loop.ts +417 -0
  63. package/src/core/services/approval.ts +66 -0
  64. package/src/core/services/compaction.ts +45 -0
  65. package/src/core/services/llm.ts +32 -0
  66. package/src/core/services/sessions.ts +47 -0
  67. package/src/core/services/subagents.ts +15 -0
  68. package/src/core/services/system-prompt.ts +177 -0
  69. package/src/core/services/tools.ts +135 -0
  70. package/src/core/services/ui.ts +109 -0
  71. package/src/core/types.ts +139 -0
  72. package/src/data/providers.ts +125 -0
  73. package/src/data/skills.ts +68 -0
  74. package/src/index.css +776 -0
  75. package/src/lib/boot.ts +94 -0
  76. package/src/lib/context.ts +75 -0
  77. package/src/lib/conversation.test.mjs +64 -0
  78. package/src/lib/conversation.ts +59 -0
  79. package/src/lib/daemon.ts +475 -0
  80. package/src/lib/hooks.ts +33 -0
  81. package/src/lib/permissions.ts +60 -0
  82. package/src/lib/pixlesol.test.mjs +51 -0
  83. package/src/lib/pixlesol.ts +55 -0
  84. package/src/lib/plugin-folder.test.mjs +145 -0
  85. package/src/lib/plugin-folder.ts +96 -0
  86. package/src/lib/reasoning.ts +87 -0
  87. package/src/lib/sse.ts +75 -0
  88. package/src/lib/themes.test.mjs +72 -0
  89. package/src/lib/themes.ts +52 -0
  90. package/src/lib/usage.test.mjs +72 -0
  91. package/src/lib/usage.ts +155 -0
  92. package/src/lib/utils.ts +73 -0
  93. package/src/main.tsx +16 -0
  94. package/src/plugins/api.test.mjs +77 -0
  95. package/src/plugins/api.ts +113 -0
  96. package/src/plugins/bridge.d.mts +1 -0
  97. package/src/plugins/bridge.mjs +26 -0
  98. package/src/plugins/bridge.test.mjs +17 -0
  99. package/src/plugins/index.ts +52 -0
  100. package/src/plugins/preview.test.mjs +18 -0
  101. package/src/plugins/preview.ts +34 -0
  102. package/src/plugins/runtime.ts +194 -0
  103. package/src/plugins/types.ts +40 -0
  104. package/src/store/chats.ts +278 -0
  105. package/src/store/models.ts +120 -0
  106. package/src/store/settings.ts +445 -0
  107. package/src/store/ui.ts +132 -0
  108. package/src/store/workspace.ts +299 -0
  109. package/src/types.ts +337 -0
  110. package/src/vite-env.d.ts +1 -0
  111. package/tailwind.config.js +83 -0
  112. package/tsconfig.json +22 -0
  113. package/tsconfig.tsbuildinfo +1 -0
  114. package/vite.config.ts +19 -0
@@ -0,0 +1,68 @@
1
+ import type { Skill } from '../types'
2
+
3
+ export const BUILTIN_SKILLS: Skill[] = [
4
+ {
5
+ id: 'skill-debugger',
6
+ name: 'Systematic debugger',
7
+ description: 'Reproduce, isolate and verify a bug before fixing it.',
8
+ enabled: false,
9
+ builtIn: true,
10
+ instructions: `When debugging:
11
+ 1. Reproduce the failure and capture the exact output.
12
+ 2. Read the relevant source before changing anything.
13
+ 3. Form one hypothesis at a time. Prove or disprove it with a command or a focused test.
14
+ 4. Fix the root cause, not the symptom. Add a regression test when a test setup exists.
15
+ 5. Re-run the reproduction and report the real result. Never claim a fix without evidence.`,
16
+ },
17
+ {
18
+ id: 'skill-reviewer',
19
+ name: 'Code reviewer',
20
+ description: 'Review changes for correctness, regressions and clarity.',
21
+ enabled: false,
22
+ builtIn: true,
23
+ instructions: `Act as a rigorous senior reviewer. Inspect the whole change, then report only issues that matter:
24
+ - correctness and edge cases
25
+ - security and data loss risks
26
+ - broken public behavior or missing migrations
27
+ - needless abstraction, duplicated logic and swallowed errors
28
+ Order findings by severity and cite the file and line. Do not rewrite code unless asked. If you find nothing substantive, say so plainly.`,
29
+ },
30
+ {
31
+ id: 'skill-brainstorm',
32
+ name: 'Brainstorm',
33
+ description: 'Explore the problem space before committing to a design.',
34
+ enabled: false,
35
+ builtIn: true,
36
+ instructions: `When brainstorming:
37
+ 1. Restate the real problem and the constraints that cannot move. Ask one short question only if a decision genuinely blocks progress.
38
+ 2. Produce several genuinely different directions, not variations of the first idea. Name the trade-off each one makes.
39
+ 3. Look for the smallest version that proves the idea. Prefer reversible steps.
40
+ 4. Stress-test the leading option against failure modes, cost, maintenance and the user's actual workflow.
41
+ 5. Finish with a recommendation, the assumptions behind it, and what would change your mind.
42
+ Do not start editing until the direction is chosen.`,
43
+ },
44
+ {
45
+ id: 'skill-frontend',
46
+ name: 'Frontend craftsman',
47
+ description: 'Build interfaces with considered typography, spacing and states.',
48
+ enabled: false,
49
+ builtIn: true,
50
+ instructions: `For interface work:
51
+ - Establish a small token system: base palette, one accent, type scale, spacing rhythm.
52
+ - Prefer one distinctive, purposeful moment over scattered decoration.
53
+ - Design empty, loading, error, disabled and mobile states, not just the happy path.
54
+ - Keep contrast accessible, focus rings visible, and respect reduced motion.
55
+ - Use real copy that names things by what people understand. No filler labels.`,
56
+ },
57
+ ]
58
+
59
+ export const STARTER_SKILL = `# Skill name
60
+
61
+ Describe what this skill is for in one sentence.
62
+
63
+ ## Instructions
64
+
65
+ - What the agent should do
66
+ - Constraints it must respect
67
+ - How to verify the result
68
+ `