@rdmind/rdmind 0.1.4-alpha.3 → 0.1.4-alpha.5
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/cli.js +45 -33
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -37605,7 +37605,12 @@ var require_sign_stream = __commonJS({
|
|
|
37605
37605
|
}
|
|
37606
37606
|
__name(jwsSign, "jwsSign");
|
|
37607
37607
|
function SignStream(opts) {
|
|
37608
|
-
var secret = opts.secret
|
|
37608
|
+
var secret = opts.secret;
|
|
37609
|
+
secret = secret == null ? opts.privateKey : secret;
|
|
37610
|
+
secret = secret == null ? opts.key : secret;
|
|
37611
|
+
if (/^hs/i.test(opts.header.alg) === true && secret == null) {
|
|
37612
|
+
throw new TypeError("secret must be a string or buffer or a KeyObject");
|
|
37613
|
+
}
|
|
37609
37614
|
var secretStream = new DataStream(secret);
|
|
37610
37615
|
this.readable = true;
|
|
37611
37616
|
this.header = opts.header;
|
|
@@ -37728,7 +37733,12 @@ var require_verify_stream = __commonJS({
|
|
|
37728
37733
|
__name(jwsDecode, "jwsDecode");
|
|
37729
37734
|
function VerifyStream(opts) {
|
|
37730
37735
|
opts = opts || {};
|
|
37731
|
-
var secretOrKey = opts.secret
|
|
37736
|
+
var secretOrKey = opts.secret;
|
|
37737
|
+
secretOrKey = secretOrKey == null ? opts.publicKey : secretOrKey;
|
|
37738
|
+
secretOrKey = secretOrKey == null ? opts.key : secretOrKey;
|
|
37739
|
+
if (/^hs/i.test(opts.algorithm) === true && secretOrKey == null) {
|
|
37740
|
+
throw new TypeError("secret must be a string or buffer or a KeyObject");
|
|
37741
|
+
}
|
|
37732
37742
|
var secretStream = new DataStream(secretOrKey);
|
|
37733
37743
|
this.readable = true;
|
|
37734
37744
|
this.algorithm = opts.algorithm;
|
|
@@ -160801,7 +160811,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
160801
160811
|
};
|
|
160802
160812
|
}
|
|
160803
160813
|
async function createContentGenerator(config2, gcConfig, isInitialAuth) {
|
|
160804
|
-
const version3 = "0.1.4-alpha.
|
|
160814
|
+
const version3 = "0.1.4-alpha.5";
|
|
160805
160815
|
const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
|
|
160806
160816
|
const baseHeaders = {
|
|
160807
160817
|
"User-Agent": userAgent2
|
|
@@ -209082,7 +209092,7 @@ var init_ide_client = __esm({
|
|
|
209082
209092
|
if (this.connectionConfig?.authToken) {
|
|
209083
209093
|
this.authToken = this.connectionConfig.authToken;
|
|
209084
209094
|
}
|
|
209085
|
-
const workspacePath = this.connectionConfig?.workspacePath ?? process.env["
|
|
209095
|
+
const workspacePath = this.connectionConfig?.workspacePath ?? process.env["RDMIND_CODE_IDE_WORKSPACE_PATH"];
|
|
209086
209096
|
const { isValid: isValid2, error: error2 } = _IdeClient.validateWorkspacePath(
|
|
209087
209097
|
workspacePath,
|
|
209088
209098
|
process.cwd()
|
|
@@ -209392,18 +209402,18 @@ var init_ide_client = __esm({
|
|
|
209392
209402
|
return { isValid: true };
|
|
209393
209403
|
}
|
|
209394
209404
|
getPortFromEnv() {
|
|
209395
|
-
const port = process.env["
|
|
209405
|
+
const port = process.env["RDMIND_CODE_IDE_SERVER_PORT"];
|
|
209396
209406
|
if (!port) {
|
|
209397
209407
|
return void 0;
|
|
209398
209408
|
}
|
|
209399
209409
|
return port;
|
|
209400
209410
|
}
|
|
209401
209411
|
getStdioConfigFromEnv() {
|
|
209402
|
-
const command2 = process.env["
|
|
209412
|
+
const command2 = process.env["RDMIND_CODE_IDE_SERVER_STDIO_COMMAND"];
|
|
209403
209413
|
if (!command2) {
|
|
209404
209414
|
return void 0;
|
|
209405
209415
|
}
|
|
209406
|
-
const argsStr = process.env["
|
|
209416
|
+
const argsStr = process.env["RDMIND_CODE_IDE_SERVER_STDIO_ARGS"];
|
|
209407
209417
|
let args = [];
|
|
209408
209418
|
if (argsStr) {
|
|
209409
209419
|
try {
|
|
@@ -209412,11 +209422,11 @@ var init_ide_client = __esm({
|
|
|
209412
209422
|
args = parsedArgs;
|
|
209413
209423
|
} else {
|
|
209414
209424
|
logger.error(
|
|
209415
|
-
"
|
|
209425
|
+
"RDMIND_CODE_IDE_SERVER_STDIO_ARGS must be a JSON array string."
|
|
209416
209426
|
);
|
|
209417
209427
|
}
|
|
209418
209428
|
} catch (e3) {
|
|
209419
|
-
logger.error("Failed to parse
|
|
209429
|
+
logger.error("Failed to parse RDMIND_CODE_IDE_SERVER_STDIO_ARGS:", e3);
|
|
209420
209430
|
}
|
|
209421
209431
|
}
|
|
209422
209432
|
return { command: command2, args };
|
|
@@ -209428,7 +209438,7 @@ var init_ide_client = __esm({
|
|
|
209428
209438
|
try {
|
|
209429
209439
|
const portFile = path38.join(
|
|
209430
209440
|
os20.tmpdir(),
|
|
209431
|
-
`
|
|
209441
|
+
`rdmind-code-ide-server-${this.ideProcessInfo.pid}.json`
|
|
209432
209442
|
);
|
|
209433
209443
|
const portFileContents = await fs35.promises.readFile(portFile, "utf8");
|
|
209434
209444
|
return JSON.parse(portFileContents);
|
|
@@ -209446,7 +209456,7 @@ var init_ide_client = __esm({
|
|
|
209446
209456
|
return void 0;
|
|
209447
209457
|
}
|
|
209448
209458
|
const fileRegex = new RegExp(
|
|
209449
|
-
`^
|
|
209459
|
+
`^rdmind-code-ide-server-${this.ideProcessInfo.pid}-\\d+\\.json$`
|
|
209450
209460
|
);
|
|
209451
209461
|
const matchingFiles = portFiles.filter((file) => fileRegex.test(file)).sort();
|
|
209452
209462
|
if (matchingFiles.length === 0) {
|
|
@@ -235953,8 +235963,8 @@ var init_git_commit = __esm({
|
|
|
235953
235963
|
"packages/core/src/generated/git-commit.ts"() {
|
|
235954
235964
|
"use strict";
|
|
235955
235965
|
init_esbuild_shims();
|
|
235956
|
-
GIT_COMMIT_INFO = "
|
|
235957
|
-
CLI_VERSION = "0.1.4-alpha.
|
|
235966
|
+
GIT_COMMIT_INFO = "24f4e0cf";
|
|
235967
|
+
CLI_VERSION = "0.1.4-alpha.5";
|
|
235958
235968
|
}
|
|
235959
235969
|
});
|
|
235960
235970
|
|
|
@@ -286479,12 +286489,12 @@ var init_header = __esm({
|
|
|
286479
286489
|
if (!buf || !(buf.length >= off + 512)) {
|
|
286480
286490
|
throw new Error("need 512 bytes for header");
|
|
286481
286491
|
}
|
|
286482
|
-
this.path = decString(buf, off, 100);
|
|
286483
|
-
this.mode = decNumber(buf, off + 100, 8);
|
|
286484
|
-
this.uid = decNumber(buf, off + 108, 8);
|
|
286485
|
-
this.gid = decNumber(buf, off + 116, 8);
|
|
286486
|
-
this.size = decNumber(buf, off + 124, 12);
|
|
286487
|
-
this.mtime = decDate(buf, off + 136, 12);
|
|
286492
|
+
this.path = ex?.path ?? decString(buf, off, 100);
|
|
286493
|
+
this.mode = ex?.mode ?? gex?.mode ?? decNumber(buf, off + 100, 8);
|
|
286494
|
+
this.uid = ex?.uid ?? gex?.uid ?? decNumber(buf, off + 108, 8);
|
|
286495
|
+
this.gid = ex?.gid ?? gex?.gid ?? decNumber(buf, off + 116, 8);
|
|
286496
|
+
this.size = ex?.size ?? gex?.size ?? decNumber(buf, off + 124, 12);
|
|
286497
|
+
this.mtime = ex?.mtime ?? gex?.mtime ?? decDate(buf, off + 136, 12);
|
|
286488
286498
|
this.cksum = decNumber(buf, off + 148, 12);
|
|
286489
286499
|
if (gex)
|
|
286490
286500
|
this.#slurp(gex, true);
|
|
@@ -286502,10 +286512,10 @@ var init_header = __esm({
|
|
|
286502
286512
|
}
|
|
286503
286513
|
this.linkpath = decString(buf, off + 157, 100);
|
|
286504
286514
|
if (buf.subarray(off + 257, off + 265).toString() === "ustar\x0000") {
|
|
286505
|
-
this.uname = decString(buf, off + 265, 32);
|
|
286506
|
-
this.gname = decString(buf, off + 297, 32);
|
|
286507
|
-
this.devmaj = decNumber(buf, off + 329, 8) ?? 0;
|
|
286508
|
-
this.devmin = decNumber(buf, off + 337, 8) ?? 0;
|
|
286515
|
+
this.uname = ex?.uname ?? gex?.uname ?? decString(buf, off + 265, 32);
|
|
286516
|
+
this.gname = ex?.gname ?? gex?.gname ?? decString(buf, off + 297, 32);
|
|
286517
|
+
this.devmaj = ex?.devmaj ?? gex?.devmaj ?? decNumber(buf, off + 329, 8) ?? 0;
|
|
286518
|
+
this.devmin = ex?.devmin ?? gex?.devmin ?? decNumber(buf, off + 337, 8) ?? 0;
|
|
286509
286519
|
if (buf[off + 475] !== 0) {
|
|
286510
286520
|
const prefix = decString(buf, off + 345, 155);
|
|
286511
286521
|
this.path = prefix + "/" + this.path;
|
|
@@ -286514,8 +286524,8 @@ var init_header = __esm({
|
|
|
286514
286524
|
if (prefix) {
|
|
286515
286525
|
this.path = prefix + "/" + this.path;
|
|
286516
286526
|
}
|
|
286517
|
-
this.atime = decDate(buf, off + 476, 12);
|
|
286518
|
-
this.ctime = decDate(buf, off + 488, 12);
|
|
286527
|
+
this.atime = ex?.atime ?? gex?.atime ?? decDate(buf, off + 476, 12);
|
|
286528
|
+
this.ctime = ex?.ctime ?? gex?.ctime ?? decDate(buf, off + 488, 12);
|
|
286519
286529
|
}
|
|
286520
286530
|
}
|
|
286521
286531
|
let sum = 8 * 32;
|
|
@@ -287510,13 +287520,15 @@ var init_list = __esm({
|
|
|
287510
287520
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
287511
287521
|
if (stat7.size < readSize) {
|
|
287512
287522
|
const buf = Buffer.allocUnsafe(stat7.size);
|
|
287513
|
-
fs63.readSync(fd, buf, 0, stat7.size, 0);
|
|
287514
|
-
p.end(buf);
|
|
287523
|
+
const read3 = fs63.readSync(fd, buf, 0, stat7.size, 0);
|
|
287524
|
+
p.end(read3 === buf.byteLength ? buf : buf.subarray(0, read3));
|
|
287515
287525
|
} else {
|
|
287516
287526
|
let pos2 = 0;
|
|
287517
287527
|
const buf = Buffer.allocUnsafe(readSize);
|
|
287518
287528
|
while (pos2 < stat7.size) {
|
|
287519
287529
|
const bytesRead = fs63.readSync(fd, buf, 0, readSize, pos2);
|
|
287530
|
+
if (bytesRead === 0)
|
|
287531
|
+
break;
|
|
287520
287532
|
pos2 += bytesRead;
|
|
287521
287533
|
p.write(buf.subarray(0, bytesRead));
|
|
287522
287534
|
}
|
|
@@ -346308,7 +346320,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
346308
346320
|
// packages/cli/src/utils/version.ts
|
|
346309
346321
|
async function getCliVersion() {
|
|
346310
346322
|
const pkgJson = await getPackageJson();
|
|
346311
|
-
return "0.1.4-alpha.
|
|
346323
|
+
return "0.1.4-alpha.5";
|
|
346312
346324
|
}
|
|
346313
346325
|
__name(getCliVersion, "getCliVersion");
|
|
346314
346326
|
|
|
@@ -352838,7 +352850,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
352838
352850
|
|
|
352839
352851
|
// packages/cli/src/generated/git-commit.ts
|
|
352840
352852
|
init_esbuild_shims();
|
|
352841
|
-
var GIT_COMMIT_INFO2 = "
|
|
352853
|
+
var GIT_COMMIT_INFO2 = "24f4e0cf";
|
|
352842
352854
|
|
|
352843
352855
|
// packages/cli/src/utils/systemInfo.ts
|
|
352844
352856
|
async function getNpmVersion() {
|
|
@@ -388422,7 +388434,7 @@ function IdeIntegrationNudge({
|
|
|
388422
388434
|
{ isActive: true }
|
|
388423
388435
|
);
|
|
388424
388436
|
const { displayName: ideName } = ide;
|
|
388425
|
-
const isExtensionPreInstalled = !!process.env["
|
|
388437
|
+
const isExtensionPreInstalled = !!process.env["RDMIND_CODE_IDE_SERVER_PORT"] && !!process.env["RDMIND_CODE_IDE_WORKSPACE_PATH"];
|
|
388426
388438
|
const OPTIONS = [
|
|
388427
388439
|
{
|
|
388428
388440
|
label: "Yes",
|
|
@@ -405708,8 +405720,8 @@ async function start_sandbox(config2, nodeArgs = [], cliConfig, cliArgs = []) {
|
|
|
405708
405720
|
args.push("--env", `COLORTERM=${process.env["COLORTERM"]}`);
|
|
405709
405721
|
}
|
|
405710
405722
|
for (const envVar of [
|
|
405711
|
-
"
|
|
405712
|
-
"
|
|
405723
|
+
"RDMIND_CODE_IDE_SERVER_PORT",
|
|
405724
|
+
"RDMIND_CODE_IDE_WORKSPACE_PATH",
|
|
405713
405725
|
"TERM_PROGRAM"
|
|
405714
405726
|
]) {
|
|
405715
405727
|
if (process.env[envVar]) {
|
|
@@ -408528,7 +408540,7 @@ var GeminiAgent = class {
|
|
|
408528
408540
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
408529
408541
|
description: APPROVAL_MODE_INFO[mode].description
|
|
408530
408542
|
}));
|
|
408531
|
-
const version3 = "0.1.4-alpha.
|
|
408543
|
+
const version3 = "0.1.4-alpha.5";
|
|
408532
408544
|
return {
|
|
408533
408545
|
protocolVersion: PROTOCOL_VERSION,
|
|
408534
408546
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.1.4-alpha.
|
|
3
|
+
"version": "0.1.4-alpha.5",
|
|
4
4
|
"description": "RDMind - AI-powered coding assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cli.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"locales"
|
|
21
21
|
],
|
|
22
22
|
"config": {
|
|
23
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.4-alpha.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.4-alpha.5"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|