opencode-hub 1.0.12 → 1.0.13
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/oc-tui.js +2 -1
- package/package.json +27 -27
package/oc-tui.js
CHANGED
|
@@ -25,7 +25,7 @@ function loadNpmPlugins() {
|
|
|
25
25
|
if (!existsSync(ocPath)) return [];
|
|
26
26
|
try {
|
|
27
27
|
var raw = readFileSync(ocPath, "utf-8");
|
|
28
|
-
var stripped = raw.replace(
|
|
28
|
+
var stripped = raw.replace(/^\s*\/\/[^\n]*/gm, "");
|
|
29
29
|
var oc = JSON.parse(stripped);
|
|
30
30
|
var plugins = oc.plugin || [];
|
|
31
31
|
return plugins
|
|
@@ -377,6 +377,7 @@ function showCur() { process.stderr.write(E + "?25h"); }
|
|
|
377
377
|
|
|
378
378
|
var items = buildList();
|
|
379
379
|
var pluginItems = buildPluginList();
|
|
380
|
+
|
|
380
381
|
var npmPluginItems = loadNpmPlugins();
|
|
381
382
|
var cursor = 0;
|
|
382
383
|
var pcursor = 0; // plugin page cursor
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
"name": "opencode-hub",
|
|
3
|
+
"version": "1.0.13",
|
|
4
|
+
"description": "TUI launcher for OpenCode - project switcher and plugin manager with oc command",
|
|
5
|
+
"main": "plugin.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "intisy",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/intisy/opencode-hub.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/intisy/opencode-hub#readme",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"opencode",
|
|
16
|
+
"launcher",
|
|
17
|
+
"tui",
|
|
18
|
+
"project-switcher",
|
|
19
|
+
"plugin"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=20.0.0"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"plugin.js",
|
|
26
|
+
"oc-tui.js",
|
|
27
|
+
"README.md"
|
|
28
|
+
]
|
|
29
29
|
}
|