inferay 0.1.106 → 0.1.108

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inferay",
3
- "version": "0.1.106",
3
+ "version": "0.1.108",
4
4
  "description": "Install and launch Inferay, a macOS AI workspace for multi-pane Claude/Codex chats, project context, slash commands, agent workspaces, and diffs.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/src/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createRequire } from "node:module";
2
+ import { getChannel, setChannel } from "./config.js";
3
+ import { doctor } from "./doctor.js";
2
4
  import { install } from "./install.js";
3
5
  import { launchApp } from "./launch.js";
4
- import { doctor } from "./doctor.js";
5
- import { getChannel, setChannel } from "./config.js";
6
6
 
7
7
  const require = createRequire(import.meta.url);
8
8
  const { version: VERSION } = require("../package.json");
@@ -51,8 +51,11 @@ async function printDoctor(args) {
51
51
  }
52
52
  }
53
53
 
54
- async function update() {
55
- const result = await install({ force: true });
54
+ async function update(args) {
55
+ const result = await install({
56
+ force: true,
57
+ launch: !args.includes("--no-launch"),
58
+ });
56
59
  console.log(result.message);
57
60
  }
58
61
 
@@ -105,7 +108,7 @@ export async function main(argv) {
105
108
  await printDoctor(args);
106
109
  return;
107
110
  case "update":
108
- await update();
111
+ await update(args);
109
112
  return;
110
113
  case "channel":
111
114
  if (!args[1]) {
package/src/config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { mkdir, readFile, writeFile } from "node:fs/promises";
2
- import { dirname, join } from "node:path";
3
2
  import { homedir } from "node:os";
3
+ import { dirname, join } from "node:path";
4
4
 
5
5
  const CONFIG_DIR = join(homedir(), ".inferay");
6
6
  export const CONFIG_PATH = join(CONFIG_DIR, "config.json");
@@ -30,7 +30,7 @@ export async function setChannel(channel) {
30
30
  const allowed = new Set(["stable", "nightly", "dev"]);
31
31
  if (!allowed.has(channel)) {
32
32
  throw new Error(
33
- `unknown channel "${channel}". Use stable, nightly, or dev.`
33
+ `unknown channel "${channel}". Use stable, nightly, or dev.`,
34
34
  );
35
35
  }
36
36
  const config = await readConfig();
package/src/doctor.js CHANGED
@@ -33,7 +33,7 @@ async function appVersion(appPath) {
33
33
  ["-c", "Print :CFBundleShortVersionString", plist],
34
34
  {
35
35
  encoding: "utf8",
36
- }
36
+ },
37
37
  );
38
38
  return result.status === 0 ? result.stdout.trim() : null;
39
39
  }
@@ -74,7 +74,7 @@ export async function doctor({ dev = false } = {}) {
74
74
  ]);
75
75
  try {
76
76
  const packageJson = JSON.parse(
77
- await readFile(join(process.cwd(), "package.json"), "utf8")
77
+ await readFile(join(process.cwd(), "package.json"), "utf8"),
78
78
  );
79
79
  checks.push(["Project", packageJson.name || "unknown"]);
80
80
  } catch {
package/src/platform.js CHANGED
@@ -37,7 +37,7 @@ function devAppCandidates(cwd = process.cwd()) {
37
37
 
38
38
  export function findExistingApp(
39
39
  cwd = process.cwd(),
40
- { includeDev = false } = {}
40
+ { includeDev = false } = {},
41
41
  ) {
42
42
  const candidates = includeDev
43
43
  ? [...devAppCandidates(cwd), ...installedAppCandidates()]
package/src/releases.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createWriteStream } from "node:fs";
2
2
  import { mkdir } from "node:fs/promises";
3
+ import { tmpdir } from "node:os";
3
4
  import { join } from "node:path";
4
5
  import { pipeline } from "node:stream/promises";
5
- import { tmpdir } from "node:os";
6
6
 
7
7
  const DEFAULT_REPO = "raymondreaming/inferay";
8
8