oh-my-opencode-slim 0.9.1 → 0.9.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/README.md +5 -2
- package/dist/cli/index.js +26 -4
- package/dist/index.js +8 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -385,7 +385,7 @@ If any agent fails to respond, check your provider authentication and config fil
|
|
|
385
385
|
<p><sub>Every merged contribution leaves a mark on the realm.</sub></p>
|
|
386
386
|
|
|
387
387
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
388
|
-
[](#contributors-)
|
|
389
389
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
390
390
|
</div>
|
|
391
391
|
|
|
@@ -397,7 +397,7 @@ If any agent fails to respond, check your provider authentication and config fil
|
|
|
397
397
|
<table>
|
|
398
398
|
<tbody>
|
|
399
399
|
<tr>
|
|
400
|
-
<td align="center" valign="top" width="16.66%"><a href="https://boringdystopia.ai/"><img src="https://avatars.githubusercontent.com/u/204474669?v=4?s=100" width="100px;" alt="Alvin"/><br /><sub><b>Alvin</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=alvinunreal" title="Code">💻</a
|
|
400
|
+
<td align="center" valign="top" width="16.66%"><a href="https://boringdystopia.ai/"><img src="https://avatars.githubusercontent.com/u/204474669?v=4?s=100" width="100px;" alt="Alvin"/><br /><sub><b>Alvin</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=alvinunreal" title="Code">💻</a></td>
|
|
401
401
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/alvinreal"><img src="https://avatars.githubusercontent.com/u/262747402?v=4?s=100" width="100px;" alt="alvinreal"/><br /><sub><b>alvinreal</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=alvinreal" title="Code">💻</a></td>
|
|
402
402
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/imarshallwidjaja"><img src="https://avatars.githubusercontent.com/u/60992624?v=4?s=100" width="100px;" alt="imw"/><br /><sub><b>imw</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=imarshallwidjaja" title="Code">💻</a></td>
|
|
403
403
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/adikpb"><img src="https://avatars.githubusercontent.com/u/67222969?v=4?s=100" width="100px;" alt="Adithya Kozham Burath Bijoy"/><br /><sub><b>Adithya Kozham Burath Bijoy</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=adikpb" title="Code">💻</a></td>
|
|
@@ -432,6 +432,9 @@ If any agent fails to respond, check your provider authentication and config fil
|
|
|
432
432
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/xLillium"><img src="https://avatars.githubusercontent.com/u/16964936?v=4?s=100" width="100px;" alt="xLillium"/><br /><sub><b>xLillium</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=xLillium" title="Code">💻</a></td>
|
|
433
433
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/CoolZxp"><img src="https://avatars.githubusercontent.com/u/54017765?v=4?s=100" width="100px;" alt="4.435km/s"/><br /><sub><b>4.435km/s</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=CoolZxp" title="Code">💻</a></td>
|
|
434
434
|
<td align="center" valign="top" width="16.66%"><a href="https://github.com/drindr"><img src="https://avatars.githubusercontent.com/u/34709601?v=4?s=100" width="100px;" alt="Drin"/><br /><sub><b>Drin</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=drindr" title="Code">💻</a></td>
|
|
435
|
+
<td align="center" valign="top" width="16.66%"><a href="https://hzu.lol/"><img src="https://avatars.githubusercontent.com/u/42469039?v=4?s=100" width="100px;" alt="Hakim Zulkufli"/><br /><sub><b>Hakim Zulkufli</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=hakimzulkufli" title="Code">💻</a></td>
|
|
436
|
+
<td align="center" valign="top" width="16.66%"><a href="https://bit.ly/2N1ynXZ"><img src="https://avatars.githubusercontent.com/u/14874913?v=4?s=100" width="100px;" alt="Simon Klakegg"/><br /><sub><b>Simon Klakegg</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=sklakegg" title="Code">💻</a></td>
|
|
437
|
+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/sudorest"><img src="https://avatars.githubusercontent.com/u/214225921?v=4?s=100" width="100px;" alt="Kiwi"/><br /><sub><b>Kiwi</b></sub></a><br /><a href="https://github.com/alvinunreal/oh-my-opencode-slim/commits?author=sudorest" title="Code">💻</a></td>
|
|
435
438
|
</tr>
|
|
436
439
|
</tbody>
|
|
437
440
|
</table>
|
package/dist/cli/index.js
CHANGED
|
@@ -90,6 +90,9 @@ function ensureOpenCodeConfigDir() {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
// src/cli/config-io.ts
|
|
94
|
+
import { pathToFileURL } from "url";
|
|
95
|
+
|
|
93
96
|
// src/config/constants.ts
|
|
94
97
|
var SUBAGENT_NAMES = [
|
|
95
98
|
"explorer",
|
|
@@ -13801,7 +13804,7 @@ var PluginConfigSchema = exports_external.object({
|
|
|
13801
13804
|
});
|
|
13802
13805
|
// src/config/agent-mcps.ts
|
|
13803
13806
|
var DEFAULT_AGENT_MCPS = {
|
|
13804
|
-
orchestrator: ["
|
|
13807
|
+
orchestrator: ["*"],
|
|
13805
13808
|
designer: [],
|
|
13806
13809
|
oracle: [],
|
|
13807
13810
|
librarian: ["websearch", "context7", "grep_app"],
|
|
@@ -14005,6 +14008,24 @@ function generateLiteConfig(installConfig) {
|
|
|
14005
14008
|
|
|
14006
14009
|
// src/cli/config-io.ts
|
|
14007
14010
|
var PACKAGE_NAME = "oh-my-opencode-slim";
|
|
14011
|
+
function isPluginEntry(entry) {
|
|
14012
|
+
return entry === PACKAGE_NAME || entry.startsWith(`${PACKAGE_NAME}@`) || entry.startsWith("file://") && entry.includes(PACKAGE_NAME);
|
|
14013
|
+
}
|
|
14014
|
+
function getPluginEntry() {
|
|
14015
|
+
const cliEntryPath = process.argv[1];
|
|
14016
|
+
if (!cliEntryPath) {
|
|
14017
|
+
return PACKAGE_NAME;
|
|
14018
|
+
}
|
|
14019
|
+
try {
|
|
14020
|
+
const pluginEntryPath = cliEntryPath.match(/[\\/]dist[\\/]cli[\\/]index\.js$/) ? cliEntryPath.replace(/[\\/]dist[\\/]cli[\\/]index\.js$/, "/dist/index.js") : null;
|
|
14021
|
+
if (!pluginEntryPath) {
|
|
14022
|
+
return PACKAGE_NAME;
|
|
14023
|
+
}
|
|
14024
|
+
return pathToFileURL(pluginEntryPath).href;
|
|
14025
|
+
} catch {
|
|
14026
|
+
return PACKAGE_NAME;
|
|
14027
|
+
}
|
|
14028
|
+
}
|
|
14008
14029
|
function stripJsonComments(json2) {
|
|
14009
14030
|
const commentPattern = /\\"|"(?:\\"|[^"])*"|(\/\/.*|\/\*[\s\S]*?\*\/)/g;
|
|
14010
14031
|
const trailingCommaPattern = /\\"|"(?:\\"|[^"])*"|(,)(\s*[}\]])/g;
|
|
@@ -14071,8 +14092,9 @@ async function addPluginToOpenCodeConfig() {
|
|
|
14071
14092
|
}
|
|
14072
14093
|
const config2 = parsedConfig ?? {};
|
|
14073
14094
|
const plugins = config2.plugin ?? [];
|
|
14074
|
-
const
|
|
14075
|
-
filteredPlugins.
|
|
14095
|
+
const pluginEntry = getPluginEntry();
|
|
14096
|
+
const filteredPlugins = plugins.filter((p) => !isPluginEntry(p));
|
|
14097
|
+
filteredPlugins.push(pluginEntry);
|
|
14076
14098
|
config2.plugin = filteredPlugins;
|
|
14077
14099
|
writeConfig(configPath, config2);
|
|
14078
14100
|
return { success: true, configPath };
|
|
@@ -14151,7 +14173,7 @@ function detectCurrentConfig() {
|
|
|
14151
14173
|
if (!config2)
|
|
14152
14174
|
return result;
|
|
14153
14175
|
const plugins = config2.plugin ?? [];
|
|
14154
|
-
result.isInstalled = plugins.some((p) => p
|
|
14176
|
+
result.isInstalled = plugins.some((p) => isPluginEntry(p));
|
|
14155
14177
|
result.hasAntigravity = plugins.some((p) => p.startsWith("opencode-antigravity-auth"));
|
|
14156
14178
|
const providers = config2.provider;
|
|
14157
14179
|
result.hasKimi = !!providers?.kimi;
|
package/dist/index.js
CHANGED
|
@@ -17242,7 +17242,7 @@ import * as path from "path";
|
|
|
17242
17242
|
|
|
17243
17243
|
// src/config/agent-mcps.ts
|
|
17244
17244
|
var DEFAULT_AGENT_MCPS = {
|
|
17245
|
-
orchestrator: ["
|
|
17245
|
+
orchestrator: ["*"],
|
|
17246
17246
|
designer: [],
|
|
17247
17247
|
oracle: [],
|
|
17248
17248
|
librarian: ["websearch", "context7", "grep_app"],
|
|
@@ -20249,10 +20249,6 @@ async function runBackgroundUpdateCheck(ctx, autoUpdate) {
|
|
|
20249
20249
|
log("[auto-update-checker] No version found (cached or pinned)");
|
|
20250
20250
|
return;
|
|
20251
20251
|
}
|
|
20252
|
-
if (pluginInfo.isPinned) {
|
|
20253
|
-
log(`[auto-update-checker] Version is pinned; skipping update check.`);
|
|
20254
|
-
return;
|
|
20255
|
-
}
|
|
20256
20252
|
const channel = extractChannel(pluginInfo.pinnedVersion ?? currentVersion);
|
|
20257
20253
|
const latestVersion = await getLatestVersion(channel);
|
|
20258
20254
|
if (!latestVersion) {
|
|
@@ -20264,8 +20260,14 @@ async function runBackgroundUpdateCheck(ctx, autoUpdate) {
|
|
|
20264
20260
|
return;
|
|
20265
20261
|
}
|
|
20266
20262
|
log(`[auto-update-checker] Update available (${channel}): ${currentVersion} \u2192 ${latestVersion}`);
|
|
20263
|
+
if (pluginInfo.isPinned) {
|
|
20264
|
+
showToast(ctx, `OMO-Slim ${latestVersion}`, `v${latestVersion} available.
|
|
20265
|
+
Version is pinned. Update your plugin config to apply.`, "info", 8000);
|
|
20266
|
+
log(`[auto-update-checker] Version is pinned; skipping auto-update.`);
|
|
20267
|
+
return;
|
|
20268
|
+
}
|
|
20267
20269
|
if (!autoUpdate) {
|
|
20268
|
-
showToast(ctx, `OMO-Slim ${latestVersion}`, `v${latestVersion} available.
|
|
20270
|
+
showToast(ctx, `OMO-Slim ${latestVersion}`, `v${latestVersion} available. Auto-update is disabled.`, "info", 8000);
|
|
20269
20271
|
log("[auto-update-checker] Auto-update disabled, notification only");
|
|
20270
20272
|
return;
|
|
20271
20273
|
}
|
package/package.json
CHANGED