@opencode-compat/cli 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,17 +1,20 @@
1
1
  # @opencode-compat/cli
2
2
 
3
- OCP compat doctor, Plugin×Host×Tier matrix runner, Layer A `setup` / `overrides`, and `migrate-zcode` companion CLI.
3
+ OCP compat doctor, Plugin×Host×Tier matrix runner, Layer A `setup` / `overrides`, Option B provider shims, and `migrate-zcode` companion CLI.
4
+
5
+ **End-user install:** see the monorepo [**INSTALL.md**](../../INSTALL.md).
4
6
 
5
7
  ```text
6
8
  compat doctor [--host opencode|mimo|kilo|zcode]
7
- compat setup [--dir <path>] [--host <id>] [--mode auto|npm|file] [--dry-run]
8
- [--deep|--no-deep] [--reify|--no-reify]
9
+ compat setup [--dir <path>] [--host <id>] [--mode auto|npm|file] [--version <x.y.z>]
10
+ [--dry-run] [--deep|--no-deep] [--reify|--no-reify]
11
+ [--provider-shim|--no-provider-shim]
9
12
  compat overrides
10
13
  compat matrix [...]
11
14
  compat migrate-zcode --plugin <dir> [--out <dir>] [--dry-run]
12
15
  ```
13
16
 
14
- `setup` defaults to **deep** child `package.json` patches and **auto-reify** (`npm install`) when a patched tree already has `node_modules` required on MiMo/Kilo isolated per-plugin install dirs. Re-run after installing or upgrading consumer plugins.
17
+ `setup` defaults to **deep** child `package.json` patches, **auto-reify** (`npm install`) when a patched tree already has `node_modules`, and **`--provider-shim`** (Option B in-place entry shims). Deep + reify are required on MiMo/Kilo isolated per-plugin install dirs. Re-run after installing or upgrading consumer plugins. Outside this monorepo prefer **`--mode npm`**.
15
18
 
16
19
  User-facing entry is **`ocp`** from `@opencode-compat/ocp` (defaults to `setup`). This package remains the bridge CLI implementation.
17
20
 
@@ -19,4 +22,4 @@ User-facing entry is **`ocp`** from `@opencode-compat/ocp` (defaults to `setup`)
19
22
 
20
23
  **License:** MPL-2.0
21
24
 
22
- See the monorepo [README](../../README.md), [OCP 0.1](../../docs/ocp/0.1.md), and [migrator plan](../../docs/plans/zcode-asset-migrator-plan.md).
25
+ See [INSTALL.md](../../INSTALL.md), the monorepo [README](../../README.md), [OCP 0.1](../../docs/ocp/0.1.md), and [migrator plan](../../docs/plans/zcode-asset-migrator-plan.md).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @opencode-compat/cli — `compat doctor` + matrix + setup + migrate-zcode companion.
3
3
  */
4
4
  export declare const PKG: "@opencode-compat/cli";
5
- export declare const VERSION: "0.1.0";
5
+ export declare const VERSION: "0.1.2";
6
6
  import { type MigrateMarketplaceReport, type MigrateReport } from "@opencode-compat/migrate-zcode";
7
7
  import { type DetectOptions, type HostId } from "@opencode-compat/profile";
8
8
  export { parseSetupArgs, setup, type SetupOptions, type SetupResult } from "./setup";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @opencode-compat/cli — `compat doctor` + matrix + setup + migrate-zcode companion.
3
3
  */
4
4
  export const PKG = "@opencode-compat/cli";
5
- export const VERSION = "0.1.0";
5
+ export const VERSION = "0.1.2";
6
6
  import { doctorReport } from "@opencode-compat/adapter";
7
7
  import { migrateZcode, migrateZcodeMarketplace, } from "@opencode-compat/migrate-zcode";
8
8
  import { facadeOverrideSnippet, } from "@opencode-compat/profile";
@@ -67,7 +67,7 @@ setup options:
67
67
  --dir <path> Install tree root (default: host pluginInstallDir)
68
68
  --host opencode|mimo|kilo|... Force host detection
69
69
  --mode auto|npm|file Override spec form (auto prefers local file:)
70
- --version <ver> npm: facade version (default 0.1.0)
70
+ --version <ver> npm: facade version (default: current OCP train)
71
71
  --dry-run Print plan only; do not write
72
72
  --deep / --no-deep Also patch child package.json (default: deep)
73
73
  --reify / --no-reify npm install after patch when node_modules exists (default: auto)
package/dist/setup.d.ts CHANGED
@@ -10,7 +10,7 @@ export type SetupOptions = {
10
10
  dir?: string;
11
11
  /** Force host id (sets OPENCODE_COMPAT_HOST for detect). */
12
12
  host?: HostId | string;
13
- /** Override map version for npm: specs (default 0.1.0). */
13
+ /** Override map version for npm: specs (default: current OCP train). */
14
14
  version?: string;
15
15
  /** Prefer npm: specs or local file: paths. Auto when omitted. */
16
16
  mode?: SetupMode | "auto";
package/dist/setup.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Layer A setup — write `@opencode-ai/{plugin,sdk}` install-tree overrides
3
3
  * that resolve to `@opencode-compat/facade-*`, then Option B provider shims.
4
4
  */
5
- import { detect, facadeOverrides, } from "@opencode-compat/profile";
5
+ import { detect, facadeOverrides, OCP_VERSION, } from "@opencode-compat/profile";
6
6
  import { spawnSync } from "node:child_process";
7
7
  import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
8
8
  import { dirname, join, resolve } from "node:path";
@@ -126,7 +126,7 @@ function reifyInstallTree(pkgDir, dryRun) {
126
126
  }
127
127
  /** Apply Layer A overrides into one or more package.json files under an install tree. */
128
128
  export function setup(options = {}) {
129
- const version = options.version ?? "0.1.0";
129
+ const version = options.version ?? OCP_VERSION;
130
130
  const dryRun = options.dryRun ?? false;
131
131
  const deep = options.deep ?? true;
132
132
  const reify = options.reify ?? "auto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode-compat/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "OCP compat doctor, Plugin×Host×Tier matrix runner, Layer A setup/overrides, and migrate-zcode companion CLI",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
@@ -38,9 +38,9 @@
38
38
  "prepack": "bunx tsc -p tsconfig.json"
39
39
  },
40
40
  "dependencies": {
41
- "@opencode-compat/profile": "0.1.0",
42
- "@opencode-compat/adapter": "0.1.0",
43
- "@opencode-compat/migrate-zcode": "0.1.0"
41
+ "@opencode-compat/profile": "0.1.2",
42
+ "@opencode-compat/adapter": "0.1.2",
43
+ "@opencode-compat/migrate-zcode": "0.1.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "^5.8.3"