@rdmind/rdmind 0.2.8-alpha.10 → 0.2.8-alpha.11
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 +34 -7
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -149359,7 +149359,14 @@ var init_codexContentGenerator = __esm({
|
|
|
149359
149359
|
yieldCount: 0,
|
|
149360
149360
|
totalLines: 0,
|
|
149361
149361
|
skippedLines: 0,
|
|
149362
|
-
firstRawChunk: ""
|
|
149362
|
+
firstRawChunk: "",
|
|
149363
|
+
lastRawDataSnippet: "",
|
|
149364
|
+
finalEventType: "",
|
|
149365
|
+
finalStatus: "",
|
|
149366
|
+
finalOutputTypes: [],
|
|
149367
|
+
finalOutputSummary: [],
|
|
149368
|
+
finalExtractedTextLength: 0,
|
|
149369
|
+
finalExtractedFunctionCallCount: 0
|
|
149363
149370
|
};
|
|
149364
149371
|
const toolCallArgs = /* @__PURE__ */ new Map();
|
|
149365
149372
|
try {
|
|
@@ -149388,15 +149395,27 @@ var init_codexContentGenerator = __esm({
|
|
|
149388
149395
|
if (dataStr === "[DONE]") return;
|
|
149389
149396
|
try {
|
|
149390
149397
|
const data = JSON.parse(dataStr);
|
|
149398
|
+
streamDiag.lastRawDataSnippet = dataStr.slice(0, 1e3);
|
|
149391
149399
|
const eventType = currentEvent || data.type || "";
|
|
149392
149400
|
if (eventType && !streamDiag.eventTypes.includes(eventType)) {
|
|
149393
149401
|
streamDiag.eventTypes.push(eventType);
|
|
149394
149402
|
}
|
|
149403
|
+
if (eventType === "response.completed" || eventType === "response.incomplete" || eventType === "response.failed") {
|
|
149404
|
+
const finalResponse = data.response;
|
|
149405
|
+
streamDiag.finalEventType = eventType;
|
|
149406
|
+
streamDiag.finalStatus = finalResponse?.status || "";
|
|
149407
|
+
streamDiag.finalOutputTypes = finalResponse?.output?.map((item) => item.type) || [];
|
|
149408
|
+
streamDiag.finalOutputSummary = finalResponse?.output?.map((item) => ({
|
|
149409
|
+
type: item.type,
|
|
149410
|
+
contentTypes: item.content?.map((content) => content.type)
|
|
149411
|
+
})) || [];
|
|
149412
|
+
}
|
|
149395
149413
|
const response = this.handleStreamEvent(
|
|
149396
149414
|
eventType,
|
|
149397
149415
|
data,
|
|
149398
149416
|
toolCallArgs,
|
|
149399
|
-
yieldState
|
|
149417
|
+
yieldState,
|
|
149418
|
+
streamDiag
|
|
149400
149419
|
);
|
|
149401
149420
|
if (response) {
|
|
149402
149421
|
streamDiag.yieldCount++;
|
|
@@ -149427,7 +149446,7 @@ var init_codexContentGenerator = __esm({
|
|
|
149427
149446
|
reader.releaseLock();
|
|
149428
149447
|
}
|
|
149429
149448
|
}
|
|
149430
|
-
handleStreamEvent(event, data, toolCallArgs, yieldState) {
|
|
149449
|
+
handleStreamEvent(event, data, toolCallArgs, yieldState, streamDiag) {
|
|
149431
149450
|
switch (event) {
|
|
149432
149451
|
case "response.reasoning_summary_text.delta": {
|
|
149433
149452
|
return null;
|
|
@@ -149480,7 +149499,12 @@ var init_codexContentGenerator = __esm({
|
|
|
149480
149499
|
for (const item of response.output) {
|
|
149481
149500
|
if (!yieldState.hasYieldedText && item.type === "message" && item.content) {
|
|
149482
149501
|
const text = item.content.map((c4) => c4.text).filter(Boolean).join("");
|
|
149483
|
-
if (text)
|
|
149502
|
+
if (text) {
|
|
149503
|
+
parts.push({ text });
|
|
149504
|
+
if (streamDiag) {
|
|
149505
|
+
streamDiag.finalExtractedTextLength += text.length;
|
|
149506
|
+
}
|
|
149507
|
+
}
|
|
149484
149508
|
} else if (!yieldState.hasYieldedFunctionCall && item.type === "function_call" && item.arguments) {
|
|
149485
149509
|
try {
|
|
149486
149510
|
const args = JSON.parse(item.arguments);
|
|
@@ -149491,6 +149515,9 @@ var init_codexContentGenerator = __esm({
|
|
|
149491
149515
|
args
|
|
149492
149516
|
}
|
|
149493
149517
|
});
|
|
149518
|
+
if (streamDiag) {
|
|
149519
|
+
streamDiag.finalExtractedFunctionCallCount += 1;
|
|
149520
|
+
}
|
|
149494
149521
|
} catch {
|
|
149495
149522
|
}
|
|
149496
149523
|
}
|
|
@@ -161171,7 +161198,7 @@ __export(geminiContentGenerator_exports2, {
|
|
|
161171
161198
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
161172
161199
|
});
|
|
161173
161200
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
161174
|
-
const version2 = "0.2.8-alpha.
|
|
161201
|
+
const version2 = "0.2.8-alpha.11";
|
|
161175
161202
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
161176
161203
|
const baseHeaders = {
|
|
161177
161204
|
"User-Agent": userAgent2
|
|
@@ -377151,7 +377178,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
377151
377178
|
// packages/cli/src/utils/version.ts
|
|
377152
377179
|
async function getCliVersion() {
|
|
377153
377180
|
const pkgJson = await getPackageJson();
|
|
377154
|
-
return "0.2.8-alpha.
|
|
377181
|
+
return "0.2.8-alpha.11";
|
|
377155
377182
|
}
|
|
377156
377183
|
__name(getCliVersion, "getCliVersion");
|
|
377157
377184
|
|
|
@@ -447250,7 +447277,7 @@ var QwenAgent = class {
|
|
|
447250
447277
|
async initialize(args) {
|
|
447251
447278
|
this.clientCapabilities = args.clientCapabilities;
|
|
447252
447279
|
const authMethods = buildAuthMethods();
|
|
447253
|
-
const version2 = "0.2.8-alpha.
|
|
447280
|
+
const version2 = "0.2.8-alpha.11";
|
|
447254
447281
|
return {
|
|
447255
447282
|
protocolVersion: PROTOCOL_VERSION,
|
|
447256
447283
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.2.8-alpha.
|
|
3
|
+
"version": "0.2.8-alpha.11",
|
|
4
4
|
"description": "RDMind - AI-powered coding assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cli.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"locales"
|
|
20
20
|
],
|
|
21
21
|
"config": {
|
|
22
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.8-alpha.
|
|
22
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.8-alpha.11"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|