oh-my-opencode-slim 0.9.12 → 0.9.14
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/README.md +44 -8
- package/dist/agents/index.d.ts +8 -0
- package/dist/agents/observer.d.ts +2 -0
- package/dist/agents/orchestrator.d.ts +9 -2
- package/dist/background/background-manager.d.ts +1 -0
- package/dist/cli/index.js +13831 -225
- package/dist/config/constants.d.ts +13 -3
- package/dist/config/schema.d.ts +3 -0
- package/dist/hooks/image-hook.d.ts +19 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/todo-continuation/index.d.ts +18 -0
- package/dist/hooks/todo-continuation/todo-hygiene.d.ts +5 -0
- package/dist/index.js +40990 -2658
- package/dist/interview/dashboard.d.ts +62 -0
- package/dist/interview/document.d.ts +25 -0
- package/dist/interview/helpers.d.ts +10 -0
- package/dist/interview/manager.d.ts +9 -13
- package/dist/interview/server.d.ts +5 -1
- package/dist/interview/service.d.ts +7 -1
- package/dist/interview/{repository.d.ts → store.d.ts} +2 -5
- package/dist/interview/types.d.ts +51 -1
- package/dist/interview/ui.d.ts +12 -1
- package/dist/tools/quota/api.d.ts +5 -0
- package/dist/tools/quota/command.d.ts +1 -0
- package/dist/tools/quota/index.d.ts +21 -0
- package/dist/tools/quota/types.d.ts +41 -0
- package/dist/tools/smartfetch/utils.d.ts +1 -1
- package/dist/utils/compat.d.ts +30 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/logger.d.ts +5 -0
- package/oh-my-opencode-slim.schema.json +11 -0
- package/package.json +5 -3
- package/dist/hooks/autopilot/index.d.ts +0 -43
- package/dist/interview/schemas.d.ts +0 -27
package/README.md
CHANGED
|
@@ -38,6 +38,9 @@ bunx oh-my-opencode-slim@latest install --reset
|
|
|
38
38
|
|
|
39
39
|
The default configuration uses OpenAI. To use Kimi, GitHub Copilot, or ZAI Coding Plan, see **[Provider Configurations](docs/provider-configurations.md)** for step-by-step instructions and config examples.
|
|
40
40
|
|
|
41
|
+
> [!TIP]
|
|
42
|
+
> Want to see the latest models OpenCode knows about? Run `opencode models --refresh` to refresh the cache and list currently available models.
|
|
43
|
+
|
|
41
44
|
### JSON Schema
|
|
42
45
|
|
|
43
46
|
An official JSON Schema is included in the package for editor validation and autocomplete. Add a `$schema` reference to your config file:
|
|
@@ -342,6 +345,39 @@ If any agent fails to respond, check your provider authentication and config fil
|
|
|
342
345
|
</tr>
|
|
343
346
|
</table>
|
|
344
347
|
|
|
348
|
+
### 07. Observer: The Silent Witness
|
|
349
|
+
|
|
350
|
+
> [!NOTE]
|
|
351
|
+
> **Why a separate agent?** Not all models support vision. Your strongest coding model (e.g. for design decisions) may not be able to read images, while a vision-capable model may not be the best for reasoning. Observer solves this by having its **own model** — configure a vision-capable model for it while keeping Designer on your strongest reasoning model. Disabled by default; enable via `disabled_agents: []` in config.
|
|
352
|
+
|
|
353
|
+
<table>
|
|
354
|
+
<tr>
|
|
355
|
+
<td width="240" valign="top">
|
|
356
|
+
<b>Observer</b><br>
|
|
357
|
+
<i>Visual & binary analysis</i>
|
|
358
|
+
</td>
|
|
359
|
+
<td>
|
|
360
|
+
|
|
361
|
+
**Read-only visual analysis** — interprets images, screenshots, PDFs, and diagrams. Returns structured observations to the orchestrator without loading raw file bytes into the main context window.
|
|
362
|
+
|
|
363
|
+
- Images, screenshots, diagrams → `read` tool (native image support)
|
|
364
|
+
- PDFs and binary documents → `read` tool (text + structure extraction)
|
|
365
|
+
- **Disabled by default** — enable with `"disabled_agents": []` and configure a vision-capable model
|
|
366
|
+
|
|
367
|
+
</td>
|
|
368
|
+
</tr>
|
|
369
|
+
<tr>
|
|
370
|
+
<td colspan="2">
|
|
371
|
+
<b>Prompt:</b> <a href="src/agents/observer.ts"><code>observer.ts</code></a>
|
|
372
|
+
</td>
|
|
373
|
+
</tr>
|
|
374
|
+
<tr>
|
|
375
|
+
<td colspan="2">
|
|
376
|
+
<b>Default Model:</b> <code>openai/gpt-5.4-mini</code> — <i>configure a vision-capable model to enable</i>
|
|
377
|
+
</td>
|
|
378
|
+
</tr>
|
|
379
|
+
</table>
|
|
380
|
+
|
|
345
381
|
---
|
|
346
382
|
|
|
347
383
|
## 📚 Documentation
|
|
@@ -373,11 +409,12 @@ If any agent fails to respond, check your provider authentication and config fil
|
|
|
373
409
|
|
|
374
410
|
Slim only intercepts `apply_patch` before native execution. It rewrites recoverable stale patches, canonizes safe tolerant matches against the real file when unicode/trim drift is the only mismatch, keeps the authored `new_lines` bytes intact, preserves existing file EOL/final-newline state for updates, validates malformed patches strictly before helper execution, uses a conservative bounded LCS fallback, supports sequential `Update File` hunks on the same path through accumulated helper state, and blocks `apply_patch` before the native tool runs if any patch path falls outside the allowed root/worktree. This rescue does not extend to `edit` or `write`.
|
|
375
411
|
|
|
376
|
-
### 💡
|
|
412
|
+
### 💡 Presets
|
|
377
413
|
|
|
378
414
|
| Doc | Contents |
|
|
379
415
|
|-----|----------|
|
|
380
|
-
| **[Author's Preset](docs/authors-preset.md)** | The exact config the author runs daily — OpenAI
|
|
416
|
+
| **[Author's Preset](docs/authors-preset.md)** | The exact config the author runs daily — OpenAI Pro + GitHub Copilot |
|
|
417
|
+
| **[$30 Preset](docs/thirty-dollars-preset.md)** | A mixed setup using Codex Plus ($20) + GitHub Copilot Pro ($10) for about $30/month total |
|
|
381
418
|
|
|
382
419
|
---
|
|
383
420
|
|
|
@@ -388,7 +425,7 @@ Slim only intercepts `apply_patch` before native execution. It rewrites recovera
|
|
|
388
425
|
<p><sub>Every merged contribution leaves a mark on the realm.</sub></p>
|
|
389
426
|
|
|
390
427
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
391
|
-
[](#contributors-)
|
|
392
429
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
393
430
|
</div>
|
|
394
431
|
|
|
@@ -447,6 +484,10 @@ Slim only intercepts `apply_patch` before native execution. It rewrites recovera
|
|
|
447
484
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/blaszewski"><img src="https://avatars.githubusercontent.com/u/14119531?v=4?s=100" width="100px;" alt="Bartosz Łaszewski"/><br /><sub><b>Bartosz Łaszewski</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=blaszewski" title="Code">💻</a></td>
|
|
448
485
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/huilang021x"><img src="https://avatars.githubusercontent.com/u/77293911?v=4?s=100" width="100px;" alt="huilang021x"/><br /><sub><b>huilang021x</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=huilang021x" title="Code">💻</a></td>
|
|
449
486
|
</tr>
|
|
487
|
+
<tr>
|
|
488
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/dkovacevic15"><img src="https://avatars.githubusercontent.com/u/24757821?v=4?s=100" width="100px;" alt="Dusan Kovacevic"/><br /><sub><b>Dusan Kovacevic</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=dkovacevic15" title="Code">💻</a></td>
|
|
489
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/jwcrystal"><img src="https://avatars.githubusercontent.com/u/121911854?v=4?s=100" width="100px;" alt="jwcrystal"/><br /><sub><b>jwcrystal</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=jwcrystal" title="Code">💻</a></td>
|
|
490
|
+
</tr>
|
|
450
491
|
</tbody>
|
|
451
492
|
</table>
|
|
452
493
|
|
|
@@ -462,8 +503,3 @@ Slim only intercepts `apply_patch` before native execution. It rewrites recovera
|
|
|
462
503
|
MIT
|
|
463
504
|
|
|
464
505
|
---
|
|
465
|
-
|
|
466
|
-
<!-- MoltFounders Banner -->
|
|
467
|
-
<a href="https://moltfounders.com/jobs/09d1c6e7-9e0e-4683-8d78-e2376aaa2333">
|
|
468
|
-
<img src="img/moltfounders-banner.png" alt="MoltFounders - The Agent Co-Founder Network">
|
|
469
|
-
</a>
|
package/dist/agents/index.d.ts
CHANGED
|
@@ -20,3 +20,11 @@ export declare function createAgents(config?: PluginConfig): AgentDefinition[];
|
|
|
20
20
|
* @returns Record mapping agent names to their SDK configurations
|
|
21
21
|
*/
|
|
22
22
|
export declare function getAgentConfigs(config?: PluginConfig): Record<string, SDKAgentConfig>;
|
|
23
|
+
/**
|
|
24
|
+
* Get the set of disabled agent names from config, applying protection rules.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getDisabledAgents(config?: PluginConfig): Set<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Get the list of enabled (non-disabled) agent names.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getEnabledAgentNames(config?: PluginConfig): string[];
|
|
@@ -15,8 +15,15 @@ export interface AgentDefinition {
|
|
|
15
15
|
* Otherwise, customAppendPrompt is appended to the base.
|
|
16
16
|
*/
|
|
17
17
|
export declare function resolvePrompt(base: string, customPrompt?: string, customAppendPrompt?: string): string;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Build the orchestrator prompt with dynamic agent filtering.
|
|
20
|
+
* @param disabledAgents - Set of disabled agent names to exclude from the prompt
|
|
21
|
+
* @returns The complete orchestrator prompt string
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildOrchestratorPrompt(disabledAgents?: Set<string>): string;
|
|
24
|
+
/** @deprecated Use buildOrchestratorPrompt() instead */
|
|
25
|
+
export declare const ORCHESTRATOR_PROMPT: string;
|
|
19
26
|
export declare function createOrchestratorAgent(model?: string | Array<string | {
|
|
20
27
|
id: string;
|
|
21
28
|
variant?: string;
|
|
22
|
-
}>, customPrompt?: string, customAppendPrompt?: string): AgentDefinition;
|
|
29
|
+
}>, customPrompt?: string, customAppendPrompt?: string, disabledAgents?: Set<string>): AgentDefinition;
|