@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 +6 -0
- package/package.json +1 -1
- package/src/cli/update-cli.ts +2 -1
- package/src/cli.ts +2 -1
- package/src/debug/system-info.ts +2 -1
- package/src/index.ts +2 -1
- package/src/main.ts +2 -1
- package/src/version.ts +3 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/cli/update-cli.ts
CHANGED
|
@@ -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
|
|
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
|
|
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) {
|
package/src/debug/system-info.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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