@op1/threads 0.2.0 → 0.2.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/README.md CHANGED
@@ -19,19 +19,21 @@ See [capacity and limits](docs/workflow-capacity-findings.md) for total agent st
19
19
  Install the versioned plugin globally:
20
20
 
21
21
  ```sh
22
- opencode plugin add @op1/threads@0.2.0
22
+ opencode plugin add @op1/threads@0.2.1
23
23
  ```
24
24
 
25
25
  Or add it to `plugins` in `~/.config/opencode/opencode.jsonc`:
26
26
 
27
27
  ```jsonc
28
28
  {
29
- "plugins": ["@op1/threads@0.2.0"]
29
+ "plugins": ["@op1/threads@0.2.1"]
30
30
  }
31
31
  ```
32
32
 
33
33
  Keep the other entries in your plugin list. Open a fresh TUI to load the terminal entrypoint. Session tabs must be enabled.
34
34
 
35
+ Version 0.2.1 fixes the published TUI failing to load because 0.2.0 omitted its JSX configuration. Upgrade if Activity and `/activities` are missing after installing 0.2.0.
36
+
35
37
  The `skills/managed-sessions` directory contains the VERA delegation guide. Copy or link it into `~/.config/opencode/skills/managed-sessions` to make it available to agents.
36
38
 
37
39
  The internal plugin ID remains `op-threads`, so switching between local and published installs preserves worker records. For local development, clone the `dynamic-workflows` branch, run `bun install`, and use the checkout's absolute path as the plugin entry.
@@ -195,6 +197,8 @@ Run `bun run verify:tabs` to verify project grouping across real git worktrees,
195
197
 
196
198
  Run `bun run verify:activity` to exercise Activity enabled against an isolated instance of the installed OpenCode version. The suite clears its own `.audit/activity` artifacts, uses the deterministic model fixture, and reads actual renderer bounds through the test-only TUI probe. It checks layout, click and keyboard navigation, one-click pin and close controls, and native prompt responses. It also covers section and worker-stack collapse, aggregated worker status, title cleanup, worker restoration, fallback layouts, reloads, and restart persistence. `verify:tabs` and `verify:idle-tabs` explicitly disable Activity to inspect native ordering.
197
199
 
200
+ Before publishing, run `bun run verify:package-ui /absolute/path/to/extracted/package` after installing production dependencies in an extracted npm tarball outside this checkout. This check starts a clean TUI without the probe plugin and verifies Activity, `/activities`, and `/workflows`. It also accepts a published package such as `@op1/threads@0.2.1`.
201
+
198
202
  Run `bun run verify:roles` to verify named profiles against the native server and deterministic model endpoint. It checks actual system prompts, model variants, native delegation, read-only execution, reporting, and role-aware retries.
199
203
 
200
204
  Run `bun run verify:workflows` to exercise dynamic scripts through real OpenCode tools and sessions. The isolated fixture checks structured pipelines, exact retries, role restrictions, ownership, checkpoints, saved scripts, retained worktrees, service restart, and the terminal navigator.
@@ -4,6 +4,17 @@ The hardening pass targets the seven defects reproduced against `5858de1`, plus
4
4
 
5
5
  Current verification uses OpenCode `2.0.14`, Bun `1.4.0`, and published `@opencode/codemode` `2.0.12`. Earlier baseline and failing-before evidence used OpenCode `2.0.12`.
6
6
 
7
+ ## Version 0.2.1 packaging correction
8
+
9
+ The published 0.2.0 package omitted `tsconfig.json`. In a clean TUI, its TSX modules were compiled with React defaults and failed with `Cannot find package 'react'`. The earlier native suites loaded a test-only TUI probe and did not catch this packaging failure. Their results did not establish that the published terminal entrypoint could load by itself.
10
+
11
+ Version 0.2.1 includes the existing JSX configuration in the npm package. The focused `verify:package-ui` regression removes the probe before starting the TUI and requires a published package or an extracted package outside the source checkout:
12
+
13
+ - Published 0.2.0 reproduced the React import failure and missing Activity rail.
14
+ - The extracted 0.2.1 tarball, with fresh production dependencies, passed Activity rendering, the `/activities` picker, and `/workflows` command registration.
15
+ - Typecheck and all 109 unit tests / 407 assertions passed.
16
+ - Independent static review returned **PASS WITH NOTES**, with no release-blocking findings. Artifact execution was verified by the release coordinator.
17
+
7
18
  ## Version 0.2.0 release verification
8
19
 
9
20
  The release adds configurable `workflowConcurrency` and `workflowMaxAgents` defaults for new runs. Explicit run values take precedence, and resumed records retain their original limits. The persisted schema defaults remain 3 concurrent agents and 4 total steps.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op1/threads",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Visible worker sessions and durable dynamic workflows for OpenCode V2.",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -8,7 +8,7 @@
8
8
  ".": "./index.ts",
9
9
  "./tui": "./tui.ts"
10
10
  },
11
- "files": ["index.ts", "tui.ts", "src/", "skills/", "docs/workflows.md", "docs/workflows-verification.md", "docs/workflow-capacity-findings.md", "docs/dynamic-workflows-plan.md"],
11
+ "files": ["index.ts", "tui.ts", "tsconfig.json", "src/", "skills/", "docs/workflows.md", "docs/workflows-verification.md", "docs/workflow-capacity-findings.md", "docs/dynamic-workflows-plan.md"],
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/opzero1/threads.git"
@@ -25,6 +25,7 @@
25
25
  "typecheck": "tsc --noEmit",
26
26
  "test": "bun test",
27
27
  "verify:live": "uv run --with pyte python scripts/verify-live.py",
28
+ "verify:package-ui": "uv run --with pyte python scripts/verify-package-ui.py",
28
29
  "verify:roles": "python3 scripts/verify-roles.py",
29
30
  "verify:idle-tabs": "uv run --with pyte python scripts/verify-idle-tabs.py",
30
31
  "verify:tabs": "uv run --with pyte python scripts/verify-tab-groups.py",
package/tsconfig.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "lib": ["ESNext"],
5
+ "module": "Preserve",
6
+ "moduleResolution": "bundler",
7
+ "jsx": "preserve",
8
+ "jsxImportSource": "@opentui/solid",
9
+ "types": ["bun"],
10
+ "strict": true,
11
+ "skipLibCheck": true,
12
+ "noEmit": true
13
+ },
14
+ "include": ["index.ts", "tui.ts", "src", "test", "scripts"]
15
+ }