@opencode-compat/ocp 0.1.0 → 0.1.2

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
@@ -1,20 +1,17 @@
1
1
  # @opencode-compat/ocp
2
2
 
3
- User-facing **OCP umbrella**: one install + **`ocp setup`** writes Layer A install-tree overrides so published OpenCode plugins resolve `@opencode-ai/plugin` / `@opencode-ai/sdk` through the compatibility facades.
3
+ User-facing **OCP umbrella**: one install + **`ocp setup`** writes Layer A install-tree overrides (and default Option B provider entry shims) so published OpenCode plugins resolve `@opencode-ai/plugin` / `@opencode-ai/sdk` through the compatibility facades.
4
+
5
+ **End-user install (MiMo / Kilo + npm):** see the monorepo [**INSTALL.md**](../../INSTALL.md).
4
6
 
5
7
  ```bash
6
- # from this monorepo
8
+ # from this monorepo (developers)
7
9
  bun run build
8
10
  bun packages/ocp/bin/ocp.ts setup --host mimo --dry-run
9
11
  bun packages/ocp/bin/ocp.ts setup --dir /path/to/host/plugin/cache
10
-
11
- # after public npm publish (see docs/guides/npm-publish.md)
12
- bun add -g @opencode-compat/ocp
13
- ocp setup --host mimo
14
- ocp doctor --host kilo
15
12
  ```
16
13
 
17
- `setup` default `--mode auto` uses local `file:` facade paths from this checkout when present; outside the monorepo (or with `--mode npm`) it writes `npm:@opencode-compat/facade-*@0.1.0`.
14
+ `setup` default `--mode auto` uses local `file:` facade paths from this checkout when present; outside the monorepo use **`--mode npm`** (see [INSTALL.md](../../INSTALL.md)).
18
15
 
19
16
  ## Commands
20
17
 
@@ -26,14 +23,10 @@ ocp doctor --host kilo
26
23
  | `ocp matrix` | OCP §10 fixtures (checkout-rooted) |
27
24
  | `ocp migrate-zcode` | Companion migrator (not OCP ABI) |
28
25
 
29
- `setup` options: `--dir`, `--host`, `--mode auto|npm|file`, `--version`, `--dry-run`, `--deep` / `--no-deep`, `--reify` / `--no-reify` (default auto-reify when a patched tree already has `node_modules`).
30
-
31
- On MiMo/Kilo, install consumer plugins first, then run `ocp setup` (and re-run after plugin upgrades) — hosts use isolated per-plugin install dirs.
32
-
33
- Listing this package in a host `plugin` config entry is **optional bootstrap only** — it does **not** intercept other plugins’ `@opencode-ai/plugin` imports. Layer A requires the overrides that `ocp setup` writes.
26
+ `setup` options: `--dir`, `--host`, `--mode auto|npm|file`, `--version`, `--dry-run`, `--deep` / `--no-deep`, `--reify` / `--no-reify` (default auto-reify when a patched tree already has `node_modules`), `--provider-shim` / `--no-provider-shim`.
34
27
 
35
28
  Bridge packages (`profile`, `facade-*`, `adapter`, `host-promise-v2`, `cli`, …) ship as transitive dependencies / implementation detail.
36
29
 
37
30
  **License:** MPL-2.0
38
31
 
39
- See the monorepo [README](../../README.md), [OCP 0.1](../../docs/ocp/0.1.md), and host notes under [`docs/hosts/`](../../docs/hosts/).
32
+ See [INSTALL.md](../../INSTALL.md), the monorepo [README](../../README.md), [OCP 0.1](../../docs/ocp/0.1.md), and host notes under [`docs/hosts/`](../../docs/hosts/).
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * config. Bridge packages remain implementation detail / transitive deps.
6
6
  */
7
7
  export declare const PKG: "@opencode-compat/ocp";
8
- export declare const VERSION: "0.1.0";
8
+ export declare const VERSION: "0.1.2";
9
9
  export { doctor, main, mainAsync, matrix, setup, parseSetupArgs, type DoctorResult, type MatrixCell, type MatrixCliOptions, type SetupOptions, type SetupResult, } from "@opencode-compat/cli";
10
10
  export { detect, facadeOverrides, facadeOverrideSnippet, type DetectOptions, type DetectResult, type HostId, type HostProfile, } from "@opencode-compat/profile";
11
11
  export { createPromiseV2Host, definePromisePlugin, runPromisePlugin, wirePromiseV2, type LanguageModelInput, type LanguageModelV3Like, type PluginContext, type PromiseV2Host, type PromiseV2Plugin, } from "@opencode-compat/adapter";
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * config. Bridge packages remain implementation detail / transitive deps.
6
6
  */
7
7
  export const PKG = "@opencode-compat/ocp";
8
- export const VERSION = "0.1.0";
8
+ export const VERSION = "0.1.2";
9
9
  export { doctor, main, mainAsync, matrix, setup, parseSetupArgs, } from "@opencode-compat/cli";
10
10
  export { detect, facadeOverrides, facadeOverrideSnippet, } from "@opencode-compat/profile";
11
11
  export { createPromiseV2Host, definePromisePlugin, runPromisePlugin, wirePromiseV2, } from "@opencode-compat/adapter";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode-compat/ocp",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "OCP umbrella UX — one install + ocp setup for Layer A facade overrides",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
@@ -37,13 +37,13 @@
37
37
  "prepack": "bunx tsc -p tsconfig.json"
38
38
  },
39
39
  "dependencies": {
40
- "@opencode-compat/adapter": "0.1.0",
41
- "@opencode-compat/cli": "0.1.0",
42
- "@opencode-compat/facade-plugin": "0.1.0",
43
- "@opencode-compat/facade-sdk": "0.1.0",
44
- "@opencode-compat/host-promise-v2": "0.1.0",
45
- "@opencode-compat/migrate-zcode": "0.1.0",
46
- "@opencode-compat/profile": "0.1.0"
40
+ "@opencode-compat/adapter": "0.1.2",
41
+ "@opencode-compat/cli": "0.1.2",
42
+ "@opencode-compat/facade-plugin": "0.1.2",
43
+ "@opencode-compat/facade-sdk": "0.1.2",
44
+ "@opencode-compat/host-promise-v2": "0.1.2",
45
+ "@opencode-compat/migrate-zcode": "0.1.2",
46
+ "@opencode-compat/profile": "0.1.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "typescript": "^5.8.3"