opencode-cockpit 0.2.1 → 0.3.0

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 CHANGED
@@ -7,20 +7,18 @@
7
7
 
8
8
  **Superpowers for [OpenCode](https://opencode.ai) — take all of them, or just the one you need.**
9
9
 
10
+ **[Documentation →](https://codestz.github.io/opencode-cockpit/)** · [Install](https://codestz.github.io/opencode-cockpit/start/install/) · [Shell](https://codestz.github.io/opencode-cockpit/shell/overview/) · [Configuration](https://codestz.github.io/opencode-cockpit/configuration/) · [Changelog](https://github.com/Codestz/opencode-cockpit/blob/main/CHANGELOG.md)
11
+
10
12
  Coding agents are stuck in a one-command-at-a-time world: they run something, wait for it to
11
13
  finish, and paste the whole log back into their context. Cockpit gives your agent the things a
12
14
  developer actually has — long-running terminals, a way to wait for "ready", and output it can read
13
15
  without drowning in it — and gives *you* a live view of all of it, inside OpenCode.
14
16
 
15
- ```
16
- ────────────────────────────────────────────────────────────────────────────────────────
17
- Shells ⠹ RUN dev server FAIL unit tests ▸ 3 more ctrl+x i console · ctrl+x o hide
18
- VITE v7.3.1 ready in 431 ms
19
- ➜ Local: http://localhost:5173/
20
- ✓ 142 modules transformed
21
- 2m14s sh_k4tq8b2p · $ npm run dev
22
- ────────────────────────────────────────────────────────────────────────────────────────
23
- ```
17
+ ![The shells panel: a dev server running under the conversation](https://raw.githubusercontent.com/Codestz/opencode-cockpit/main/media/dock.gif)
18
+
19
+ *A real recording every demo here is generated from a live OpenCode session by
20
+ [`bun run record`](https://github.com/Codestz/opencode-cockpit/blob/main/CONTRIBUTING.md), and re-run on release, so none of them can drift from what
21
+ ships.*
24
22
 
25
23
  ## Features
26
24
 
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.2.1",
3
+ "version": "0.3.0",
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
- "background",
23
- "tui",
24
+ "statusline",
24
25
  "terminal",
25
- "agents"
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.2.1",
52
- "@opencode-ai/plugin": "1.18.31"
52
+ "@opencode-cockpit/shell": "0.3.0",
53
+ "@opencode-ai/plugin": "1.18.31",
54
+ "@opencode-cockpit/status": "0.3.0"
53
55
  },
54
56
  "devDependencies": {
55
- "@opencode-cockpit/client": "0.2.1"
57
+ "@opencode-cockpit/client": "0.3.0"
56
58
  }
57
59
  }
@@ -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";