@nghyane/arcane 0.1.7 → 0.1.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
1
  # Changelog
2
2
 
3
3
  ## [Unreleased]
4
+
5
+ ## [0.1.8] - 2026-02-22
6
+
7
+ ### Changed
8
+
9
+ - Read VERSION from own package.json instead of shared utils package
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@nghyane/arcane",
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://github.com/nghyane/arcane",
7
7
  "author": "Can Bölük",
@@ -8,9 +8,10 @@ import { execSync, spawnSync } from "node:child_process";
8
8
  import * as fs from "node:fs";
9
9
  import { pipeline } from "node:stream/promises";
10
10
  import { isEnoent } from "@nghyane/arcane-utils";
11
- import { APP_NAME, VERSION } from "@nghyane/arcane-utils/dirs";
11
+ import { APP_NAME } from "@nghyane/arcane-utils/dirs";
12
12
  import chalk from "chalk";
13
13
  import { theme } from "../modes/theme/theme";
14
+ import { VERSION } from "../version";
14
15
 
15
16
  /**
16
17
  * Detect if we're running as a Bun compiled binary.
package/src/cli.ts CHANGED
@@ -4,7 +4,8 @@
4
4
  * lightweight CLI runner from pi-utils.
5
5
  */
6
6
  import { type CommandEntry, run } from "@nghyane/arcane-utils/cli";
7
- import { APP_NAME, VERSION } from "@nghyane/arcane-utils/dirs";
7
+ import { APP_NAME } from "@nghyane/arcane-utils/dirs";
8
+ import { VERSION } from "./version";
8
9
 
9
10
  // Detect known Bun errata that cause TUI crashes (e.g. Bun.stringWidth mishandling OSC sequences).
10
11
  if (Bun.stringWidth("\x1b[0m\x1b]8;;\x07") !== 0) {
@@ -2,7 +2,8 @@
2
2
  * System information collection for debug reports.
3
3
  */
4
4
  import * as os from "node:os";
5
- import { getProjectDir, VERSION } from "@nghyane/arcane-utils/dirs";
5
+ import { getProjectDir } from "@nghyane/arcane-utils/dirs";
6
+ import { VERSION } from "../version";
6
7
 
7
8
  export interface SystemInfo {
8
9
  os: string;
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@ export { StringEnum } from "@nghyane/arcane-ai";
7
7
  export { Container, Markdown, Spacer, Text } from "@nghyane/arcane-tui";
8
8
  // Logging
9
9
  export { logger } from "@nghyane/arcane-utils";
10
- export { getAgentDir, VERSION } from "@nghyane/arcane-utils/dirs";
10
+ export { getAgentDir } from "@nghyane/arcane-utils/dirs";
11
11
  export { formatKeyHint, formatKeyHints } from "./config/keybindings";
12
12
  export { ModelRegistry } from "./config/model-registry";
13
13
  // Prompt templates
@@ -273,3 +273,4 @@ export {
273
273
  type WriteToolDetails,
274
274
  type WriteToolInput,
275
275
  } from "./tools";
276
+ export { VERSION } from "./version";
package/src/main.ts CHANGED
@@ -12,7 +12,7 @@ import * as path from "node:path";
12
12
  import { createInterface } from "node:readline/promises";
13
13
  import { type ImageContent, supportsXhigh } from "@nghyane/arcane-ai";
14
14
  import { $env, postmortem } from "@nghyane/arcane-utils";
15
- import { getProjectDir, setProjectDir, VERSION } from "@nghyane/arcane-utils/dirs";
15
+ import { getProjectDir, setProjectDir } from "@nghyane/arcane-utils/dirs";
16
16
  import chalk from "chalk";
17
17
  import type { Args } from "./cli/args";
18
18
  import { processFileArguments } from "./cli/file-processor";
@@ -33,6 +33,7 @@ import { type SessionInfo, SessionManager } from "./session/session-manager";
33
33
  import { resolvePromptInput } from "./system-prompt";
34
34
  import { getChangelogPath, getNewEntries, parseChangelog } from "./utils/changelog";
35
35
  import { printTimings, time } from "./utils/timings";
36
+ import { VERSION } from "./version";
36
37
 
37
38
  /** Conditional startup debug prints (stderr) when ARCANE_DEBUG_STARTUP is set */
38
39
  const debugStartup = $env.ARCANE_DEBUG_STARTUP
package/src/version.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { version } from "../package.json" with { type: "json" };
2
+
3
+ export const VERSION: string = version;