deus-machine 0.3.13 → 0.3.14

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/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ var init_package = __esm({
19
19
  "package.json"() {
20
20
  package_default = {
21
21
  name: "deus-machine",
22
- version: "0.3.13",
22
+ version: "0.3.14",
23
23
  description: "Run Deus IDE from the command line \u2014 headless server or desktop installer",
24
24
  license: "MIT",
25
25
  author: {
@@ -54,6 +54,10 @@ var init_package = __esm({
54
54
  engines: {
55
55
  node: ">=20"
56
56
  },
57
+ os: [
58
+ "darwin",
59
+ "linux"
60
+ ],
57
61
  scripts: {
58
62
  build: "bunx tsx build.ts"
59
63
  },
@@ -87,22 +91,12 @@ import { mkdirSync as mkdirSync2 } from "node:fs";
87
91
  import path from "node:path";
88
92
  var DEUS_APP_ID = "com.deus.app";
89
93
  var DEUS_DB_FILENAME = "deus.db";
90
- function getPathModule(platform4) {
91
- return platform4 === "win32" ? path.win32 : path.posix;
92
- }
93
94
  function resolveDefaultDataDir(options) {
94
- const targetPath = getPathModule(options.platform);
95
95
  if (options.platform === "darwin") {
96
- return targetPath.join(options.homeDir, "Library", "Application Support", DEUS_APP_ID);
97
- }
98
- if (options.platform === "win32") {
99
- return targetPath.join(
100
- options.appData || targetPath.join(options.homeDir, "AppData", "Roaming"),
101
- DEUS_APP_ID
102
- );
96
+ return path.posix.join(options.homeDir, "Library", "Application Support", DEUS_APP_ID);
103
97
  }
104
- return targetPath.join(
105
- options.xdgDataHome || targetPath.join(options.homeDir, ".local", "share"),
98
+ return path.posix.join(
99
+ options.xdgDataHome || path.posix.join(options.homeDir, ".local", "share"),
106
100
  "deus"
107
101
  );
108
102
  }
@@ -112,7 +106,6 @@ function resolveRuntimeStagePaths(projectRoot) {
112
106
  const electronRoot = path.join(runtimeRoot, "electron");
113
107
  return {
114
108
  root: runtimeRoot,
115
- manifest: path.join(runtimeRoot, "manifest.json"),
116
109
  common: {
117
110
  root: commonRoot,
118
111
  backendBundle: path.join(commonRoot, "server.bundled.cjs")
@@ -160,25 +153,24 @@ function rgb(r, g, b, text) {
160
153
  if (noColor) return text;
161
154
  return `\x1B[38;2;${r};${g};${b}m${text}${RESET}`;
162
155
  }
163
- var isUnicode = process.platform !== "win32" || !!process.env.WT_SESSION;
164
156
  var sym = {
165
- tick: isUnicode ? "\u2713" : "\u221A",
166
- cross: isUnicode ? "\u2717" : "\xD7",
167
- dot: isUnicode ? "\u25CF" : "*",
168
- dash: isUnicode ? "\u2500" : "-",
169
- arrow: isUnicode ? "\u2192" : "->",
170
- diamond: isUnicode ? "\u25C6" : "*",
171
- pointer: isUnicode ? "\u276F" : ">",
157
+ tick: "\u2713",
158
+ cross: "\u2717",
159
+ dot: "\u25CF",
160
+ dash: "\u2500",
161
+ arrow: "\u2192",
162
+ diamond: "\u25C6",
163
+ pointer: "\u276F",
172
164
  info: "i",
173
- warning: isUnicode ? "\u26A0" : "!",
174
- bullet: isUnicode ? "\u2022" : "-",
165
+ warning: "\u26A0",
166
+ bullet: "\u2022",
175
167
  // Box drawing
176
- tl: isUnicode ? "\u256D" : "+",
177
- tr: isUnicode ? "\u256E" : "+",
178
- bl: isUnicode ? "\u2570" : "+",
179
- br: isUnicode ? "\u256F" : "+",
180
- h: isUnicode ? "\u2500" : "-",
181
- v: isUnicode ? "\u2502" : "|"
168
+ tl: "\u256D",
169
+ tr: "\u256E",
170
+ bl: "\u2570",
171
+ br: "\u256F",
172
+ h: "\u2500",
173
+ v: "\u2502"
182
174
  };
183
175
  var LOGO_D = ["\u2588\u2588\u2588\u2588\u2588\u2588\u2557 ", "\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557", "\u2588\u2588\u2551 \u2588\u2588\u2551", "\u2588\u2588\u2551 \u2588\u2588\u2551", "\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D", "\u255A\u2550\u2550\u2550\u2550\u2550\u255D "];
184
176
  var LOGO_E = ["\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557", "\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D", "\u2588\u2588\u2588\u2588\u2588\u2557 ", "\u2588\u2588\u2554\u2550\u2550\u255D ", "\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557", "\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D"];
@@ -247,7 +239,7 @@ function renderLogoFrame(letterCount) {
247
239
  }
248
240
  function banner(version) {
249
241
  console.log("");
250
- if (isUnicode && !noColor) {
242
+ if (!noColor) {
251
243
  for (const line of renderLogoFrame(4)) {
252
244
  console.log(line);
253
245
  }
@@ -263,7 +255,7 @@ function banner(version) {
263
255
  console.log("");
264
256
  }
265
257
  async function animatedBanner(version) {
266
- if (!isUnicode || noColor || !process.stdout.isTTY) {
258
+ if (noColor || !process.stdout.isTTY) {
267
259
  banner(version);
268
260
  return;
269
261
  }
@@ -292,7 +284,7 @@ async function animatedBanner(version) {
292
284
  console.log(tag + ver);
293
285
  console.log("");
294
286
  }
295
- var SPINNER_FRAMES = isUnicode ? ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"] : ["-", "\\", "|", "/"];
287
+ var SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
296
288
  var SPINNER_INTERVAL = 80;
297
289
  function spinner(text) {
298
290
  const stream = process.stderr;
@@ -450,8 +442,8 @@ function statusLine(getText, intervalMs = 1e3) {
450
442
  };
451
443
  }
452
444
  var BAR_WIDTH = 30;
453
- var BAR_FILLED = isUnicode ? "\u2588" : "#";
454
- var BAR_EMPTY = isUnicode ? "\u2591" : ".";
445
+ var BAR_FILLED = "\u2588";
446
+ var BAR_EMPTY = "\u2591";
455
447
  function progressBar(current, total, label) {
456
448
  if (!process.stderr.isTTY) return;
457
449
  const pct = Math.min(1, current / total);
@@ -498,9 +490,6 @@ function getConfigDir() {
498
490
  if (os === "darwin") {
499
491
  return join(homedir(), ".config", "deus");
500
492
  }
501
- if (os === "win32") {
502
- return join(process.env.APPDATA || join(homedir(), "AppData", "Roaming"), "deus");
503
- }
504
493
  return join(process.env.XDG_CONFIG_HOME || join(homedir(), ".config"), "deus");
505
494
  }
506
495
  function getConfigPath() {
@@ -802,11 +791,7 @@ function detectClaudeCli() {
802
791
  }
803
792
  }
804
793
  try {
805
- const claudePath = platform2() === "win32" ? execSync("where claude", {
806
- encoding: "utf-8",
807
- timeout: 5e3,
808
- stdio: ["pipe", "pipe", "pipe"]
809
- }).trim().split(/\r?\n/)[0] : execSync(`${process.env.SHELL || "/bin/sh"} -lc "command -v claude"`, {
794
+ const claudePath = execSync(`${process.env.SHELL || "/bin/sh"} -lc "command -v claude"`, {
810
795
  encoding: "utf-8",
811
796
  timeout: 5e3,
812
797
  stdio: ["pipe", "pipe", "pipe"]
@@ -1709,7 +1694,6 @@ function resolveDataDir(customDir) {
1709
1694
  const dir = customDir ?? resolveDefaultDataDir({
1710
1695
  platform: process.platform,
1711
1696
  homeDir: homedir3(),
1712
- appData: process.env.APPDATA,
1713
1697
  xdgDataHome: process.env.XDG_DATA_HOME
1714
1698
  });
1715
1699
  mkdirSync2(dir, { recursive: true });
@@ -2334,8 +2318,7 @@ async function main() {
2334
2318
  const resolvedCommand = command ?? autoDetect();
2335
2319
  switch (resolvedCommand) {
2336
2320
  // ── Start headless server ──────────────────────────────────────
2337
- case "start":
2338
- case "serve": {
2321
+ case "start": {
2339
2322
  const { values } = parseArgs({
2340
2323
  args: commandArgs,
2341
2324
  options: {
@@ -2349,8 +2332,7 @@ async function main() {
2349
2332
  break;
2350
2333
  }
2351
2334
  // ── Install desktop app ────────────────────────────────────────
2352
- case "install":
2353
- case "desktop": {
2335
+ case "install": {
2354
2336
  const installedPath = findInstalledApp();
2355
2337
  if (installedPath) {
2356
2338
  success(`Deus is installed at ${c.dim(installedPath)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deus-machine",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Run Deus IDE from the command line — headless server or desktop installer",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -35,6 +35,10 @@
35
35
  "engines": {
36
36
  "node": ">=20"
37
37
  },
38
+ "os": [
39
+ "darwin",
40
+ "linux"
41
+ ],
38
42
  "scripts": {
39
43
  "build": "bunx tsx build.ts"
40
44
  },