@rdmind/rdmind 0.1.4-alpha.1 → 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 +59 -36
- 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
|
|
@@ -172624,6 +172634,12 @@ function getCachedEncodingForBuffer(buffer) {
|
|
|
172624
172634
|
cachedSystemEncoding = getSystemEncoding();
|
|
172625
172635
|
}
|
|
172626
172636
|
if (cachedSystemEncoding) {
|
|
172637
|
+
if (cachedSystemEncoding !== "utf-8") {
|
|
172638
|
+
const detected = detectEncodingFromBuffer(buffer);
|
|
172639
|
+
if (detected === "utf-8") {
|
|
172640
|
+
return "utf-8";
|
|
172641
|
+
}
|
|
172642
|
+
}
|
|
172627
172643
|
return cachedSystemEncoding;
|
|
172628
172644
|
}
|
|
172629
172645
|
return detectEncodingFromBuffer(buffer) || "utf-8";
|
|
@@ -209076,7 +209092,7 @@ var init_ide_client = __esm({
|
|
|
209076
209092
|
if (this.connectionConfig?.authToken) {
|
|
209077
209093
|
this.authToken = this.connectionConfig.authToken;
|
|
209078
209094
|
}
|
|
209079
|
-
const workspacePath = this.connectionConfig?.workspacePath ?? process.env["
|
|
209095
|
+
const workspacePath = this.connectionConfig?.workspacePath ?? process.env["RDMIND_CODE_IDE_WORKSPACE_PATH"];
|
|
209080
209096
|
const { isValid: isValid2, error: error2 } = _IdeClient.validateWorkspacePath(
|
|
209081
209097
|
workspacePath,
|
|
209082
209098
|
process.cwd()
|
|
@@ -209386,18 +209402,18 @@ var init_ide_client = __esm({
|
|
|
209386
209402
|
return { isValid: true };
|
|
209387
209403
|
}
|
|
209388
209404
|
getPortFromEnv() {
|
|
209389
|
-
const port = process.env["
|
|
209405
|
+
const port = process.env["RDMIND_CODE_IDE_SERVER_PORT"];
|
|
209390
209406
|
if (!port) {
|
|
209391
209407
|
return void 0;
|
|
209392
209408
|
}
|
|
209393
209409
|
return port;
|
|
209394
209410
|
}
|
|
209395
209411
|
getStdioConfigFromEnv() {
|
|
209396
|
-
const command2 = process.env["
|
|
209412
|
+
const command2 = process.env["RDMIND_CODE_IDE_SERVER_STDIO_COMMAND"];
|
|
209397
209413
|
if (!command2) {
|
|
209398
209414
|
return void 0;
|
|
209399
209415
|
}
|
|
209400
|
-
const argsStr = process.env["
|
|
209416
|
+
const argsStr = process.env["RDMIND_CODE_IDE_SERVER_STDIO_ARGS"];
|
|
209401
209417
|
let args = [];
|
|
209402
209418
|
if (argsStr) {
|
|
209403
209419
|
try {
|
|
@@ -209406,11 +209422,11 @@ var init_ide_client = __esm({
|
|
|
209406
209422
|
args = parsedArgs;
|
|
209407
209423
|
} else {
|
|
209408
209424
|
logger.error(
|
|
209409
|
-
"
|
|
209425
|
+
"RDMIND_CODE_IDE_SERVER_STDIO_ARGS must be a JSON array string."
|
|
209410
209426
|
);
|
|
209411
209427
|
}
|
|
209412
209428
|
} catch (e3) {
|
|
209413
|
-
logger.error("Failed to parse
|
|
209429
|
+
logger.error("Failed to parse RDMIND_CODE_IDE_SERVER_STDIO_ARGS:", e3);
|
|
209414
209430
|
}
|
|
209415
209431
|
}
|
|
209416
209432
|
return { command: command2, args };
|
|
@@ -209422,7 +209438,7 @@ var init_ide_client = __esm({
|
|
|
209422
209438
|
try {
|
|
209423
209439
|
const portFile = path38.join(
|
|
209424
209440
|
os20.tmpdir(),
|
|
209425
|
-
`
|
|
209441
|
+
`rdmind-code-ide-server-${this.ideProcessInfo.pid}.json`
|
|
209426
209442
|
);
|
|
209427
209443
|
const portFileContents = await fs35.promises.readFile(portFile, "utf8");
|
|
209428
209444
|
return JSON.parse(portFileContents);
|
|
@@ -209440,7 +209456,7 @@ var init_ide_client = __esm({
|
|
|
209440
209456
|
return void 0;
|
|
209441
209457
|
}
|
|
209442
209458
|
const fileRegex = new RegExp(
|
|
209443
|
-
`^
|
|
209459
|
+
`^rdmind-code-ide-server-${this.ideProcessInfo.pid}-\\d+\\.json$`
|
|
209444
209460
|
);
|
|
209445
209461
|
const matchingFiles = portFiles.filter((file) => fileRegex.test(file)).sort();
|
|
209446
209462
|
if (matchingFiles.length === 0) {
|
|
@@ -235947,8 +235963,8 @@ var init_git_commit = __esm({
|
|
|
235947
235963
|
"packages/core/src/generated/git-commit.ts"() {
|
|
235948
235964
|
"use strict";
|
|
235949
235965
|
init_esbuild_shims();
|
|
235950
|
-
GIT_COMMIT_INFO = "
|
|
235951
|
-
CLI_VERSION = "0.1.4-alpha.
|
|
235966
|
+
GIT_COMMIT_INFO = "24f4e0cf";
|
|
235967
|
+
CLI_VERSION = "0.1.4-alpha.5";
|
|
235952
235968
|
}
|
|
235953
235969
|
});
|
|
235954
235970
|
|
|
@@ -286473,12 +286489,12 @@ var init_header = __esm({
|
|
|
286473
286489
|
if (!buf || !(buf.length >= off + 512)) {
|
|
286474
286490
|
throw new Error("need 512 bytes for header");
|
|
286475
286491
|
}
|
|
286476
|
-
this.path = decString(buf, off, 100);
|
|
286477
|
-
this.mode = decNumber(buf, off + 100, 8);
|
|
286478
|
-
this.uid = decNumber(buf, off + 108, 8);
|
|
286479
|
-
this.gid = decNumber(buf, off + 116, 8);
|
|
286480
|
-
this.size = decNumber(buf, off + 124, 12);
|
|
286481
|
-
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);
|
|
286482
286498
|
this.cksum = decNumber(buf, off + 148, 12);
|
|
286483
286499
|
if (gex)
|
|
286484
286500
|
this.#slurp(gex, true);
|
|
@@ -286496,10 +286512,10 @@ var init_header = __esm({
|
|
|
286496
286512
|
}
|
|
286497
286513
|
this.linkpath = decString(buf, off + 157, 100);
|
|
286498
286514
|
if (buf.subarray(off + 257, off + 265).toString() === "ustar\x0000") {
|
|
286499
|
-
this.uname = decString(buf, off + 265, 32);
|
|
286500
|
-
this.gname = decString(buf, off + 297, 32);
|
|
286501
|
-
this.devmaj = decNumber(buf, off + 329, 8) ?? 0;
|
|
286502
|
-
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;
|
|
286503
286519
|
if (buf[off + 475] !== 0) {
|
|
286504
286520
|
const prefix = decString(buf, off + 345, 155);
|
|
286505
286521
|
this.path = prefix + "/" + this.path;
|
|
@@ -286508,8 +286524,8 @@ var init_header = __esm({
|
|
|
286508
286524
|
if (prefix) {
|
|
286509
286525
|
this.path = prefix + "/" + this.path;
|
|
286510
286526
|
}
|
|
286511
|
-
this.atime = decDate(buf, off + 476, 12);
|
|
286512
|
-
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);
|
|
286513
286529
|
}
|
|
286514
286530
|
}
|
|
286515
286531
|
let sum = 8 * 32;
|
|
@@ -287504,13 +287520,15 @@ var init_list = __esm({
|
|
|
287504
287520
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
287505
287521
|
if (stat7.size < readSize) {
|
|
287506
287522
|
const buf = Buffer.allocUnsafe(stat7.size);
|
|
287507
|
-
fs63.readSync(fd, buf, 0, stat7.size, 0);
|
|
287508
|
-
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));
|
|
287509
287525
|
} else {
|
|
287510
287526
|
let pos2 = 0;
|
|
287511
287527
|
const buf = Buffer.allocUnsafe(readSize);
|
|
287512
287528
|
while (pos2 < stat7.size) {
|
|
287513
287529
|
const bytesRead = fs63.readSync(fd, buf, 0, readSize, pos2);
|
|
287530
|
+
if (bytesRead === 0)
|
|
287531
|
+
break;
|
|
287514
287532
|
pos2 += bytesRead;
|
|
287515
287533
|
p.write(buf.subarray(0, bytesRead));
|
|
287516
287534
|
}
|
|
@@ -346302,7 +346320,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
346302
346320
|
// packages/cli/src/utils/version.ts
|
|
346303
346321
|
async function getCliVersion() {
|
|
346304
346322
|
const pkgJson = await getPackageJson();
|
|
346305
|
-
return "0.1.4-alpha.
|
|
346323
|
+
return "0.1.4-alpha.5";
|
|
346306
346324
|
}
|
|
346307
346325
|
__name(getCliVersion, "getCliVersion");
|
|
346308
346326
|
|
|
@@ -352832,7 +352850,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
352832
352850
|
|
|
352833
352851
|
// packages/cli/src/generated/git-commit.ts
|
|
352834
352852
|
init_esbuild_shims();
|
|
352835
|
-
var GIT_COMMIT_INFO2 = "
|
|
352853
|
+
var GIT_COMMIT_INFO2 = "24f4e0cf";
|
|
352836
352854
|
|
|
352837
352855
|
// packages/cli/src/utils/systemInfo.ts
|
|
352838
352856
|
async function getNpmVersion() {
|
|
@@ -388416,7 +388434,7 @@ function IdeIntegrationNudge({
|
|
|
388416
388434
|
{ isActive: true }
|
|
388417
388435
|
);
|
|
388418
388436
|
const { displayName: ideName } = ide;
|
|
388419
|
-
const isExtensionPreInstalled = !!process.env["
|
|
388437
|
+
const isExtensionPreInstalled = !!process.env["RDMIND_CODE_IDE_SERVER_PORT"] && !!process.env["RDMIND_CODE_IDE_WORKSPACE_PATH"];
|
|
388420
388438
|
const OPTIONS = [
|
|
388421
388439
|
{
|
|
388422
388440
|
label: "Yes",
|
|
@@ -394072,12 +394090,17 @@ var InputPrompt = /* @__PURE__ */ __name(({
|
|
|
394072
394090
|
statusColor = theme.status.warning;
|
|
394073
394091
|
statusText = t3("Accepting edits");
|
|
394074
394092
|
}
|
|
394093
|
+
const borderColor = isShellFocused && !isEmbeddedShellFocused ? statusColor ?? theme.border.focused : theme.border.default;
|
|
394075
394094
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
|
|
394076
394095
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
394077
394096
|
Box_default,
|
|
394078
394097
|
{
|
|
394079
|
-
borderStyle: "
|
|
394080
|
-
|
|
394098
|
+
borderStyle: "single",
|
|
394099
|
+
borderTop: true,
|
|
394100
|
+
borderBottom: true,
|
|
394101
|
+
borderLeft: false,
|
|
394102
|
+
borderRight: false,
|
|
394103
|
+
borderColor,
|
|
394081
394104
|
paddingX: 1,
|
|
394082
394105
|
children: [
|
|
394083
394106
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
@@ -394156,7 +394179,7 @@ var InputPrompt = /* @__PURE__ */ __name(({
|
|
|
394156
394179
|
});
|
|
394157
394180
|
if (isOnCursorLine && cursorVisualColAbsolute === cpLen(lineText)) {
|
|
394158
394181
|
renderedLine.push(
|
|
394159
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { children: showCursor ? import_chalk7.default.inverse(" ") : " " }, `cursor-end-${cursorVisualColAbsolute}`)
|
|
394182
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { children: showCursor ? import_chalk7.default.inverse(" ") + "\u200B" : " \u200B" }, `cursor-end-${cursorVisualColAbsolute}`)
|
|
394160
394183
|
);
|
|
394161
394184
|
}
|
|
394162
394185
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Box_default, { height: 1, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { children: renderedLine }) }, `line-${visualIdxInRenderedSet}`);
|
|
@@ -405697,8 +405720,8 @@ async function start_sandbox(config2, nodeArgs = [], cliConfig, cliArgs = []) {
|
|
|
405697
405720
|
args.push("--env", `COLORTERM=${process.env["COLORTERM"]}`);
|
|
405698
405721
|
}
|
|
405699
405722
|
for (const envVar of [
|
|
405700
|
-
"
|
|
405701
|
-
"
|
|
405723
|
+
"RDMIND_CODE_IDE_SERVER_PORT",
|
|
405724
|
+
"RDMIND_CODE_IDE_WORKSPACE_PATH",
|
|
405702
405725
|
"TERM_PROGRAM"
|
|
405703
405726
|
]) {
|
|
405704
405727
|
if (process.env[envVar]) {
|
|
@@ -408517,7 +408540,7 @@ var GeminiAgent = class {
|
|
|
408517
408540
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
408518
408541
|
description: APPROVAL_MODE_INFO[mode].description
|
|
408519
408542
|
}));
|
|
408520
|
-
const version3 = "0.1.4-alpha.
|
|
408543
|
+
const version3 = "0.1.4-alpha.5";
|
|
408521
408544
|
return {
|
|
408522
408545
|
protocolVersion: PROTOCOL_VERSION,
|
|
408523
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"
|