@useorgx/orgx-opencode-plugin 0.1.0-alpha.12 → 0.1.0-alpha.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/README.md CHANGED
@@ -11,13 +11,14 @@ cost, and outcome references required by `ExecutionResult`.
11
11
 
12
12
  ## Install
13
13
 
14
- OpenCode can load the peer as a native plugin from `opencode.json` once
15
- `@useorgx/orgx-opencode-plugin@0.1.0-alpha.2` or newer is published to npm:
14
+ OpenCode can load the current prerelease peer as a native plugin from
15
+ `opencode.json`. Select the `alpha` distribution tag explicitly so a fresh
16
+ install resolves the newest tested prerelease instead of npm's default tag:
16
17
 
17
18
  ```json
18
19
  {
19
20
  "$schema": "https://opencode.ai/config.json",
20
- "plugin": ["@useorgx/orgx-opencode-plugin"]
21
+ "plugin": ["@useorgx/orgx-opencode-plugin@alpha"]
21
22
  }
22
23
  ```
23
24
 
@@ -84,8 +85,8 @@ claimed as resumed until a client applies it again.
84
85
  You can also run the peer directly:
85
86
 
86
87
  ```bash
87
- npm install -g @useorgx/orgx-opencode-plugin
88
- # or pnpm: pnpm add -g @useorgx/orgx-opencode-plugin
88
+ npm install -g @useorgx/orgx-opencode-plugin@alpha
89
+ # or pnpm: pnpm add -g @useorgx/orgx-opencode-plugin@alpha
89
90
 
90
91
  export ORGX_API_KEY=oxk_...
91
92
  export ORGX_WORKSPACE_ID=<uuid>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useorgx/orgx-opencode-plugin",
3
- "version": "0.1.0-alpha.12",
3
+ "version": "0.1.0-alpha.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -47,7 +47,8 @@
47
47
  "@opencode-ai/plugin": "^1.18.2",
48
48
  "@types/node": "^22.0.0",
49
49
  "typescript": "^5.4.0",
50
- "vitest": "^2.0.0"
50
+ "vite": "^6.4.3",
51
+ "vitest": "^4.1.11"
51
52
  },
52
53
  "keywords": [
53
54
  "orgx",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "plugin_name": "@useorgx/orgx-opencode-plugin",
3
- "version": "0.1.0-alpha.12",
3
+ "version": "0.1.0-alpha.13",
4
4
  "manifest_fingerprint": "",
5
5
  "signature": "",
6
6
  "capabilities": [
@@ -0,0 +1,28 @@
1
+ import assert from 'node:assert/strict';
2
+ import { readFileSync } from 'node:fs';
3
+ import test from 'node:test';
4
+ import { fileURLToPath } from 'node:url';
5
+
6
+ const readmePath = fileURLToPath(new URL('../README.md', import.meta.url));
7
+ const readme = readFileSync(readmePath, 'utf8');
8
+
9
+ test('prerelease install examples select the current alpha channel explicitly', () => {
10
+ assert.match(
11
+ readme,
12
+ /"plugin": \["@useorgx\/orgx-opencode-plugin@alpha"\]/,
13
+ 'opencode.json must select the alpha dist-tag'
14
+ );
15
+ assert.match(readme, /npm install -g @useorgx\/orgx-opencode-plugin@alpha/);
16
+ assert.match(readme, /pnpm add -g @useorgx\/orgx-opencode-plugin@alpha/);
17
+
18
+ assert.doesNotMatch(
19
+ readme,
20
+ /"plugin": \["@useorgx\/orgx-opencode-plugin"\]/,
21
+ 'an untagged plugin entry can resolve npm\'s stale default tag'
22
+ );
23
+ assert.doesNotMatch(
24
+ readme,
25
+ /(?:npm install|pnpm add) -g @useorgx\/orgx-opencode-plugin(?:\s|$)/,
26
+ 'global prerelease installs must not use the untagged package'
27
+ );
28
+ });