nexum-code 0.7.11 → 0.7.17
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/README.md +1 -1
- package/dist/{app-BwutxHqk.mjs → app-CYgSfBVZ.mjs} +3789 -988
- package/dist/{dist-0bMQWc-B.mjs → dist-Dh_F9syl.mjs} +1 -1
- package/dist/{esm-BLHs2dah.mjs → esm-C7p5AwJU.mjs} +39 -39
- package/dist/{from-CKE2n10i.mjs → from-D_EZ04z8.mjs} +1 -1
- package/dist/{index.min-DtYFUEA3.mjs → index.min-Di7B-aJf.mjs} +138 -138
- package/dist/main.mjs +1 -1
- package/dist/{multipart-parser-BxHsVgPe.mjs → multipart-parser-uEw3PR6T.mjs} +2 -2
- package/dist/{chunk-apG1qJts.mjs → rolldown-runtime-CDCXy-ZS.mjs} +9 -2
- package/dist/{src-C6XAfwit.mjs → src-BAMmHkmC.mjs} +6 -6
- package/package.json +3 -1
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-
|
|
9
|
+
(await import("./app-CYgSfBVZ.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);
|
|
@@ -3,8 +3,8 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
|
|
|
3
3
|
import { dirname as __cjsShimDirname } from 'node:path';
|
|
4
4
|
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = __cjsShimDirname(__filename);
|
|
6
|
-
import { n as __esmMin } from "./
|
|
7
|
-
import { a as File, i as init_esm_min, n as FormData, t as init_from } from "./from-
|
|
6
|
+
import { n as __esmMin } from "./rolldown-runtime-CDCXy-ZS.mjs";
|
|
7
|
+
import { a as File, i as init_esm_min, n as FormData, t as init_from } from "./from-D_EZ04z8.mjs";
|
|
8
8
|
//#region ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/utils/multipart-parser.js
|
|
9
9
|
function _fileName(headerValue) {
|
|
10
10
|
const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
@@ -11,7 +11,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
11
11
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
12
|
var __getProtoOf = Object.getPrototypeOf;
|
|
13
13
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __esmMin = (fn, res) => () =>
|
|
14
|
+
var __esmMin = (fn, res, err) => () => {
|
|
15
|
+
if (err) throw err[0];
|
|
16
|
+
try {
|
|
17
|
+
return fn && (res = fn(fn = 0)), res;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw err = [e], e;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
15
22
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
16
23
|
var __exportAll = (all, no_symbols) => {
|
|
17
24
|
let target = {};
|
|
@@ -36,6 +43,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
43
|
value: mod,
|
|
37
44
|
enumerable: true
|
|
38
45
|
}) : target, mod));
|
|
39
|
-
var __require = /*
|
|
46
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
40
47
|
//#endregion
|
|
41
48
|
export { __toESM as a, __require as i, __esmMin as n, __exportAll as r, __commonJSMin as t };
|
|
@@ -3,8 +3,8 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
|
|
|
3
3
|
import { dirname as __cjsShimDirname } from 'node:path';
|
|
4
4
|
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = __cjsShimDirname(__filename);
|
|
6
|
-
import { n as __esmMin } from "./
|
|
7
|
-
import { c as init_fetch_blob, i as init_esm_min, n as FormData, r as formDataToBlob, s as Blob, t as init_from } from "./from-
|
|
6
|
+
import { n as __esmMin } from "./rolldown-runtime-CDCXy-ZS.mjs";
|
|
7
|
+
import { c as init_fetch_blob, i as init_esm_min, n as FormData, r as formDataToBlob, s as Blob, t as init_from } from "./from-D_EZ04z8.mjs";
|
|
8
8
|
import As, { PassThrough, pipeline } from "node:stream";
|
|
9
9
|
import { format } from "node:url";
|
|
10
10
|
import http from "node:http";
|
|
@@ -214,7 +214,7 @@ var init_body = __esmMin((() => {
|
|
|
214
214
|
for (const [name, value] of parameters) formData.append(name, value);
|
|
215
215
|
return formData;
|
|
216
216
|
}
|
|
217
|
-
const { toFormData } = await import("./multipart-parser-
|
|
217
|
+
const { toFormData } = await import("./multipart-parser-uEw3PR6T.mjs");
|
|
218
218
|
return toFormData(this.body, ct);
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
@@ -474,7 +474,7 @@ var init_headers = __esmMin((() => {
|
|
|
474
474
|
//#region ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/utils/is-redirect.js
|
|
475
475
|
var redirectStatus, isRedirect;
|
|
476
476
|
var init_is_redirect = __esmMin((() => {
|
|
477
|
-
redirectStatus = new Set([
|
|
477
|
+
redirectStatus = /* @__PURE__ */ new Set([
|
|
478
478
|
301,
|
|
479
479
|
302,
|
|
480
480
|
303,
|
|
@@ -745,7 +745,7 @@ function parseReferrerPolicyFromHeader(headers) {
|
|
|
745
745
|
}
|
|
746
746
|
var ReferrerPolicy, DEFAULT_REFERRER_POLICY;
|
|
747
747
|
var init_referrer = __esmMin((() => {
|
|
748
|
-
ReferrerPolicy = new Set([
|
|
748
|
+
ReferrerPolicy = /* @__PURE__ */ new Set([
|
|
749
749
|
"",
|
|
750
750
|
"no-referrer",
|
|
751
751
|
"no-referrer-when-downgrade",
|
|
@@ -1173,7 +1173,7 @@ __esmMin((() => {
|
|
|
1173
1173
|
init_is();
|
|
1174
1174
|
init_referrer();
|
|
1175
1175
|
init_from();
|
|
1176
|
-
supportedSchemas = new Set([
|
|
1176
|
+
supportedSchemas = /* @__PURE__ */ new Set([
|
|
1177
1177
|
"data:",
|
|
1178
1178
|
"http:",
|
|
1179
1179
|
"https:"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexum-code",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.17",
|
|
4
4
|
"description": "A terminal-native AI agent for builders",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NexumCli",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"e2e:real": "pnpm -w run build:packages && NEXUM_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts",
|
|
56
56
|
"preinstall": "node -e \"console.log('\\n正在安装 nexum-code,请稍候...\\n')\"",
|
|
57
57
|
"postinstall": "node scripts/postinstall.mjs",
|
|
58
|
+
"prepublishOnly": "node scripts/verify-publish.mjs",
|
|
58
59
|
"smoke": "node dist/main.mjs --version"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
"devDependencies": {
|
|
80
81
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
81
82
|
"@nexum-cli/config": "workspace:^",
|
|
83
|
+
"@nexum-cli/knowledge": "workspace:^",
|
|
82
84
|
"@nexum-cli/migration-legacy": "workspace:^",
|
|
83
85
|
"@nexum-cli/nexum-code-sdk": "workspace:^",
|
|
84
86
|
"@nexum-code/memory": "workspace:*",
|