opencode-cockpit 0.2.2 → 0.3.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.
- package/dist/features.js +1 -1
- package/dist/tui.js +5 -0
- package/package.json +9 -7
- package/types/features.d.ts +2 -1
package/dist/features.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Every feature the bundle can load. Adding one: list it here and wire it in server.ts / tui.ts. */
|
|
2
|
-
export const FEATURES = ["shell"];
|
|
2
|
+
export const FEATURES = ["shell", "status"];
|
|
3
3
|
export const BUNDLE = "opencode-cockpit";
|
|
4
4
|
export function isEnabled(options, feature) {
|
|
5
5
|
return options?.features?.[feature] !== false;
|
package/dist/tui.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { createShellTui } from "@opencode-cockpit/shell/tui";
|
|
2
|
+
import { createStatusTui } from "@opencode-cockpit/status/tui";
|
|
2
3
|
import { BUNDLE, featureOptions, isEnabled } from "./features.js";
|
|
3
4
|
const shell = createShellTui({
|
|
4
5
|
source: BUNDLE
|
|
5
6
|
});
|
|
7
|
+
const status = createStatusTui({
|
|
8
|
+
source: BUNDLE
|
|
9
|
+
});
|
|
6
10
|
const tui = async (api, rawOptions, meta) => {
|
|
7
11
|
const options = rawOptions;
|
|
8
12
|
if (isEnabled(options, "shell")) await shell(api, featureOptions(options, "shell"), meta);
|
|
13
|
+
if (isEnabled(options, "status")) await status(api, featureOptions(options, "status"), meta);
|
|
9
14
|
};
|
|
10
15
|
const plugin = {
|
|
11
16
|
id: BUNDLE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-cockpit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "OpenCode superpowers, all in one: installs every opencode-cockpit feature (Shell today), each can be switched off",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,14 +15,15 @@
|
|
|
15
15
|
"url": "https://github.com/Codestz/opencode-cockpit/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
|
+
"agents",
|
|
19
|
+
"background",
|
|
18
20
|
"opencode",
|
|
19
21
|
"opencode-plugin",
|
|
20
22
|
"pty",
|
|
21
23
|
"shell",
|
|
22
|
-
"
|
|
23
|
-
"tui",
|
|
24
|
+
"statusline",
|
|
24
25
|
"terminal",
|
|
25
|
-
"
|
|
26
|
+
"tui"
|
|
26
27
|
],
|
|
27
28
|
"exports": {
|
|
28
29
|
"./server": {
|
|
@@ -48,10 +49,11 @@
|
|
|
48
49
|
"access": "public"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@opencode-cockpit/shell": "0.
|
|
52
|
-
"@opencode-ai/plugin": "1.18.31"
|
|
52
|
+
"@opencode-cockpit/shell": "0.3.1",
|
|
53
|
+
"@opencode-ai/plugin": "1.18.31",
|
|
54
|
+
"@opencode-cockpit/status": "0.3.1"
|
|
53
55
|
},
|
|
54
56
|
"devDependencies": {
|
|
55
|
-
"@opencode-cockpit/client": "0.
|
|
57
|
+
"@opencode-cockpit/client": "0.3.1"
|
|
56
58
|
}
|
|
57
59
|
}
|
package/types/features.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/** Every feature the bundle can load. Adding one: list it here and wire it in server.ts / tui.ts. */
|
|
2
|
-
export declare const FEATURES: readonly ["shell"];
|
|
2
|
+
export declare const FEATURES: readonly ["shell", "status"];
|
|
3
3
|
export type Feature = (typeof FEATURES)[number];
|
|
4
4
|
export interface CockpitOptions {
|
|
5
5
|
/** Switch features off, e.g. `{ "shell": false }`. Everything is on by default. */
|
|
6
6
|
features?: Partial<Record<Feature, boolean>>;
|
|
7
7
|
/** Options passed to a single feature, keyed by feature name. */
|
|
8
8
|
shell?: Record<string, unknown>;
|
|
9
|
+
status?: Record<string, unknown>;
|
|
9
10
|
[key: string]: unknown;
|
|
10
11
|
}
|
|
11
12
|
export declare const BUNDLE = "opencode-cockpit";
|