inferay 0.1.104 → 0.1.106
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 +1 -1
- package/src/install.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inferay",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.106",
|
|
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/install.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { execFile } from "node:child_process";
|
|
2
|
-
import { cp, mkdir, readdir, rm } from "node:fs/promises";
|
|
3
2
|
import { existsSync } from "node:fs";
|
|
3
|
+
import { cp, mkdir, readdir, rm } from "node:fs/promises";
|
|
4
4
|
import { basename, dirname, join, resolve } from "node:path";
|
|
5
5
|
import { promisify } from "node:util";
|
|
6
6
|
import { getChannel } from "./config.js";
|
|
7
|
+
import { openFile } from "./launch.js";
|
|
7
8
|
import {
|
|
8
9
|
defaultInstallPath,
|
|
9
10
|
findExistingApp,
|
|
10
11
|
platformInfo,
|
|
11
12
|
} from "./platform.js";
|
|
12
13
|
import { downloadAsset, fetchRelease, findAsset } from "./releases.js";
|
|
13
|
-
import { openFile } from "./launch.js";
|
|
14
14
|
|
|
15
15
|
const execFileAsync = promisify(execFile);
|
|
16
16
|
|
|
@@ -27,14 +27,14 @@ async function copyAppBundle(source, destination = defaultInstallPath()) {
|
|
|
27
27
|
function parseMountPoint(output) {
|
|
28
28
|
return output
|
|
29
29
|
.split("\n")
|
|
30
|
-
.map((line) => line.
|
|
31
|
-
.find(
|
|
30
|
+
.map((line) => line.match(/\/Volumes\/[^\r\n]+/)?.[0].trim())
|
|
31
|
+
.find(Boolean);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
async function findAppBundle(directory) {
|
|
35
35
|
const entries = await readdir(directory, { withFileTypes: true });
|
|
36
36
|
const app = entries.find(
|
|
37
|
-
(entry) => entry.isDirectory() && entry.name.endsWith(".app")
|
|
37
|
+
(entry) => entry.isDirectory() && entry.name.endsWith(".app"),
|
|
38
38
|
);
|
|
39
39
|
if (!app) {
|
|
40
40
|
throw new Error(`no .app bundle found in ${directory}`);
|
|
@@ -100,7 +100,7 @@ export async function install({ local, launch = true, force = false } = {}) {
|
|
|
100
100
|
const asset = findAsset(release, platform);
|
|
101
101
|
if (!asset) {
|
|
102
102
|
throw new Error(
|
|
103
|
-
`no ${platform.target} release asset found for ${release.tag_name || channel}
|
|
103
|
+
`no ${platform.target} release asset found for ${release.tag_name || channel}`,
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
|