nexum-code 0.7.9 → 0.7.10

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.
@@ -4,7 +4,7 @@ import { dirname as __cjsShimDirname } from 'node:path';
4
4
  const __filename = __cjsShimFileURLToPath(import.meta.url);
5
5
  const __dirname = __cjsShimDirname(__filename);
6
6
  import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-apG1qJts.mjs";
7
- import { t as uo } from "./index.min-DtYFUEA3.mjs";
7
+ import { t as uo } from "./index.min-D4utBuC7.mjs";
8
8
  import fs from "fs";
9
9
  import https from "https";
10
10
  import path from "path";
@@ -88,7 +88,7 @@ var require_tokenizers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
88
88
  localFileExisted = existsSync(join(__dirname, "tokenizers.darwin-universal.node"));
89
89
  try {
90
90
  if (localFileExisted) nativeBinding = __require("./tokenizers.darwin-universal.node");
91
- else nativeBinding = __require("@anush008/tokenizers-darwin-universal");
91
+ else nativeBinding = __require("./assets/tokenizers.darwin-universal-BJ7w7c9-.node");
92
92
  break;
93
93
  } catch {}
94
94
  switch (arch) {
@@ -138,7 +138,7 @@ var require_tokenizers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
138
138
  localFileExisted = existsSync(join(__dirname, "tokenizers.linux-x64-gnu.node"));
139
139
  try {
140
140
  if (localFileExisted) nativeBinding = __require("./tokenizers.linux-x64-gnu.node");
141
- else nativeBinding = __require("@anush008/tokenizers-linux-x64-gnu");
141
+ else nativeBinding = __require("./assets/tokenizers.linux-x64-gnu-BGGFQRsL.node");
142
142
  } catch (e) {
143
143
  loadError = e;
144
144
  }
package/dist/main.mjs CHANGED
@@ -6,7 +6,7 @@ const __dirname = __cjsShimDirname(__filename);
6
6
  import "./suppress-sqlite-warning-C2VB0doZ.mjs";
7
7
  //#region src/main.ts
8
8
  try {
9
- (await import("./app-ZXJgoL2e.mjs")).main();
9
+ (await import("./app-MzrtWfvw.mjs")).main();
10
10
  } catch (error) {
11
11
  process.stderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
12
12
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexum-code",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "description": "A terminal-native AI agent for builders",
5
5
  "license": "MIT",
6
6
  "author": "NexumCli",
@@ -41,8 +41,7 @@
41
41
  "#constant/*": "./src/constant/*.ts"
42
42
  },
43
43
  "publishConfig": {
44
- "access": "public",
45
- "provenance": true
44
+ "access": "public"
46
45
  },
47
46
  "scripts": {
48
47
  "build": "tsdown",
@@ -268,22 +268,22 @@ async function main() {
268
268
  );
269
269
  }
270
270
 
271
- async function ensureDocumentOcrRuntime() {
272
- if (process.env.NEXUM_DOC_SKIP_OCR_SETUP === '1') return;
273
-
274
- try {
275
- const executable = await findTesseractExecutable();
276
- if (executable === undefined) {
277
- return;
278
- }
279
-
280
- const languages = await listTesseractLanguages(executable);
281
- if (!languages.includes('chi_sim')) {
282
- notify(
283
- '[nexum-code] /doc OCR note: Tesseract is installed, but chi_sim language data was not found. ' +
284
- 'Nexum will fall back to bundled npm OCR data for Chinese OCR.',
285
- );
286
- }
271
+ async function ensureDocumentOcrRuntime() {
272
+ if (process.env.NEXUM_DOC_SKIP_OCR_SETUP === '1') return;
273
+
274
+ try {
275
+ const executable = await findTesseractExecutable();
276
+ if (executable === undefined) {
277
+ return;
278
+ }
279
+
280
+ const languages = await listTesseractLanguages(executable);
281
+ if (!languages.includes('chi_sim')) {
282
+ notify(
283
+ '[nexum-code] /doc OCR note: Tesseract is installed, but chi_sim language data was not found. ' +
284
+ 'Nexum will fall back to bundled npm OCR data for Chinese OCR.',
285
+ );
286
+ }
287
287
  } catch (error) {
288
288
  const message = error instanceof Error ? error.message : String(error);
289
289
  notify(`[nexum-code] /doc OCR setup warning: ${message}`);
@@ -14,8 +14,8 @@ import * as Ms from "zlib";
14
14
  import Jr from "zlib";
15
15
  import Kt from "node:fs";
16
16
  import path$1, { basename, join, posix, win32 } from "node:path";
17
- import { StringDecoder } from "node:string_decoder";
18
17
  import { EventEmitter as EventEmitter$1 } from "node:events";
18
+ import { StringDecoder } from "node:string_decoder";
19
19
  import Pi from "assert";
20
20
  import no from "node:assert";
21
21
  //#region ../../node_modules/.pnpm/tar@7.5.16/node_modules/tar/dist/esm/index.min.js