oceancode 0.1.1 → 0.1.3

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.
@@ -1,6 +0,0 @@
1
- import {
2
- runCommand
3
- } from "./chunk-U5PZQWEB.js";
4
- export {
5
- runCommand
6
- };
@@ -1,27 +0,0 @@
1
- /**
2
- * Fail-soft postinstall check for oceancode.
3
- *
4
- * The `opencode-ai` dependency ships the `opencode` backend binary that the
5
- * CLI shells out to (`opencode serve`). This script only VERIFIES it resolves
6
- * from PATH and prints friendly guidance if not — it must NEVER fail the
7
- * install (exit code is always 0).
8
- */
9
- import { spawnSync } from "node:child_process";
10
-
11
- try {
12
- const cmd = process.platform === "win32" ? "where" : "which";
13
- const res = spawnSync(cmd, ["opencode"], { encoding: "utf-8", shell: false });
14
- if (res.status === 0) {
15
- const foundAt = (res.stdout || "").split(/\r?\n/).filter(Boolean)[0] || "on PATH";
16
- console.log(`\x1b[32m✔ oceancode: backend 'opencode' found (${foundAt}). You're ready — run \`oceancode\`.\x1b[0m`);
17
- } else {
18
- console.log(
19
- "\x1b[33m⚠ oceancode: the 'opencode' backend binary was not found on PATH.\n" +
20
- " It is bundled via the 'opencode-ai' dependency — if this was a global install, " +
21
- "make sure your npm global bin dir is on PATH, or run: npm install -g opencode-ai\x1b[0m"
22
- );
23
- }
24
- } catch {
25
- // Intentionally silent — postinstall must never break installation.
26
- }
27
- process.exit(0);