@bibobonking/opensol 3.2.1 → 3.2.2

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/dist/index.html CHANGED
@@ -31,7 +31,7 @@
31
31
  if (DARK.includes(theme)) root.classList.add('dark')
32
32
  } catch {}
33
33
  </script>
34
- <script type="module" crossorigin src="./assets/index-CyxlAgKM.js"></script>
34
+ <script type="module" crossorigin src="./assets/index-jVYdlrXH.js"></script>
35
35
  <link rel="stylesheet" crossorigin href="./assets/index-DFeF90S8.css">
36
36
  </head>
37
37
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bibobonking/opensol",
3
3
  "private": false,
4
- "version": "3.2.1",
4
+ "version": "3.2.2",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "opensol": "./server/opensol.mjs"
@@ -99,6 +99,7 @@ export async function compactSession(sessionId: string): Promise<boolean> {
99
99
  history: summaryHistory,
100
100
  system: COMPACT_SYSTEM,
101
101
  mode: 'build',
102
+ tools: [],
102
103
  signal: new AbortController().signal,
103
104
  handlers: {
104
105
  ...EMPTY_HANDLERS,
@@ -63,6 +63,7 @@ export async function runSubagent(
63
63
  history,
64
64
  system,
65
65
  mode: 'plan',
66
+ tools: [],
66
67
  signal,
67
68
  handlers: EMPTY_HANDLERS,
68
69
  })
@@ -9,6 +9,7 @@ import type { ModelRequest, ToolSchema } from '../types'
9
9
 
10
10
  export class LlmService extends Service {
11
11
  static provide = 'llm'
12
+ static inject = ['tools']
12
13
 
13
14
  constructor(ctx: Context) {
14
15
  super(ctx, 'llm')
@@ -54,6 +54,7 @@ function workspaceContext(): string {
54
54
 
55
55
  export class SystemPromptService extends Service {
56
56
  static provide = 'systemPrompt'
57
+ static inject = ['sessions']
57
58
  private customSections = new Map<string, (settings: AppSettings, mode: AgentMode) => PromptSection | null>()
58
59
 
59
60
  constructor(ctx: Context) {
@@ -29,6 +29,24 @@ export function themeCss(themeId: string, palette: Record<string, string>): stri
29
29
  return entries.length === 0 ? '' : `[data-theme='${themeId}']{${entries.join(';')}}`
30
30
  }
31
31
 
32
+ /**
33
+ * Every service a free (apiVersion 2) plugin may reach from its child context.
34
+ * Cordis only exposes injected services to a child fiber; without this list any
35
+ * `ctx.sessions` / `ctx.tools` access throws "cannot get property ... without inject".
36
+ */
37
+ const PLUGIN_SERVICES = [
38
+ 'sessions',
39
+ 'systemPrompt',
40
+ 'tools',
41
+ 'approval',
42
+ 'llm',
43
+ 'compaction',
44
+ 'subagents',
45
+ 'ui',
46
+ 'agentLoop',
47
+ 'titles',
48
+ ]
49
+
32
50
  export function styleElement(id: string): HTMLStyleElement | null {
33
51
  return document.getElementById(STYLE_ID(id)) as HTMLStyleElement | null
34
52
  }
@@ -154,7 +172,7 @@ export function createPluginRuntime(): PluginRuntime {
154
172
  }
155
173
  }
156
174
 
157
- const fiber = kernel.plugin(pluginFn)
175
+ const fiber = kernel.plugin({ inject: PLUGIN_SERVICES, apply: pluginFn })
158
176
  fibers.set(plugin.id, fiber)
159
177
 
160
178
  try {
@@ -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/DiffView.tsx","./src/components/ErrorBoundary.tsx","./src/components/FileIcon.tsx","./src/components/HomeDashboard.tsx","./src/components/Logo.tsx","./src/components/Markdown.tsx","./src/components/McpPanel.tsx","./src/components/MessageItem.tsx","./src/components/ModelDeck.tsx","./src/components/PixleSol.tsx","./src/components/PluginBuilder.tsx","./src/components/PluginManager.tsx","./src/components/PreviewPane.tsx","./src/components/SessionsTab.tsx","./src/components/SettingsModal.tsx","./src/components/Sidebar.tsx","./src/components/Splash.tsx","./src/components/SystemPromptButton.tsx","./src/components/ToolCallCard.tsx","./src/components/TopBar.tsx","./src/components/TrajectoryView.tsx","./src/components/WorkspacePanel.tsx","./src/components/ui.tsx","./src/components/composer/PlusMenu.tsx","./src/components/composer/Popover.tsx","./src/components/composer/WorkspacePicker.tsx","./src/core/kernel.ts","./src/core/mcp-tools.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/skill.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/titles.ts","./src/core/services/tools.ts","./src/core/services/ui.ts","./src/data/providers.ts","./src/lib/boot.ts","./src/lib/compact-plan.ts","./src/lib/context.ts","./src/lib/conversation.ts","./src/lib/credits.ts","./src/lib/daemon.ts","./src/lib/diff.ts","./src/lib/hooks.ts","./src/lib/mcp-config.ts","./src/lib/permissions.ts","./src/lib/pixlesol.ts","./src/lib/plugin-folder.ts","./src/lib/reasoning.ts","./src/lib/retry.ts","./src/lib/sse.ts","./src/lib/subagent-types.ts","./src/lib/system-prompt.ts","./src/lib/themes.ts","./src/lib/tool-meta.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/mcp.ts","./src/store/models.ts","./src/store/settings.ts","./src/store/skills.ts","./src/store/ui.ts","./src/store/workspace.ts"],"version":"5.9.3"}