@rdmind/rdmind 0.2.4-alpha.5 → 0.2.4
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 +68 -57
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -147469,9 +147469,7 @@ function convertInlineDataToCodexMessage(inlineData) {
|
|
|
147469
147469
|
return {
|
|
147470
147470
|
role: "user",
|
|
147471
147471
|
type: "message",
|
|
147472
|
-
content: [
|
|
147473
|
-
{ type: "input_image", image_url: dataUrl }
|
|
147474
|
-
]
|
|
147472
|
+
content: [{ type: "input_image", image_url: dataUrl }]
|
|
147475
147473
|
};
|
|
147476
147474
|
}
|
|
147477
147475
|
if (mimeType === "application/pdf") {
|
|
@@ -147501,9 +147499,7 @@ function convertFileDataToCodexMessage(fileData) {
|
|
|
147501
147499
|
return {
|
|
147502
147500
|
role: "user",
|
|
147503
147501
|
type: "message",
|
|
147504
|
-
content: [
|
|
147505
|
-
{ type: "input_image", image_url: fileUri }
|
|
147506
|
-
]
|
|
147502
|
+
content: [{ type: "input_image", image_url: fileUri }]
|
|
147507
147503
|
};
|
|
147508
147504
|
}
|
|
147509
147505
|
if (mimeType === "application/pdf") {
|
|
@@ -147567,7 +147563,9 @@ async function convertTools(toolList) {
|
|
|
147567
147563
|
if (func.parametersJsonSchema) {
|
|
147568
147564
|
parameters = func.parametersJsonSchema;
|
|
147569
147565
|
} else if (func.parameters) {
|
|
147570
|
-
parameters = convertGeminiSchemaToOpenAI(
|
|
147566
|
+
parameters = convertGeminiSchemaToOpenAI(
|
|
147567
|
+
func.parameters
|
|
147568
|
+
);
|
|
147571
147569
|
}
|
|
147572
147570
|
tools.push({
|
|
147573
147571
|
type: "function",
|
|
@@ -147761,14 +147759,19 @@ var init_codexContentGenerator = __esm({
|
|
|
147761
147759
|
});
|
|
147762
147760
|
if (!response.ok) {
|
|
147763
147761
|
const errorText = await response.text();
|
|
147764
|
-
throw new Error(
|
|
147762
|
+
throw new Error(
|
|
147763
|
+
`Codex API request failed: ${response.status} - ${errorText}`
|
|
147764
|
+
);
|
|
147765
147765
|
}
|
|
147766
147766
|
return response;
|
|
147767
147767
|
}
|
|
147768
147768
|
async buildCodexRequest(request4, stream2 = false) {
|
|
147769
147769
|
const model = extractBaseModel(request4.model);
|
|
147770
147770
|
const reasoningEffort = extractReasoningEffort(request4.model) || (typeof this.reasoning === "object" ? this.reasoning?.effort : "medium");
|
|
147771
|
-
const input = buildCodexInput(
|
|
147771
|
+
const input = buildCodexInput(
|
|
147772
|
+
request4.contents,
|
|
147773
|
+
request4.config?.systemInstruction
|
|
147774
|
+
);
|
|
147772
147775
|
const codexRequest = {
|
|
147773
147776
|
model,
|
|
147774
147777
|
input,
|
|
@@ -159551,7 +159554,7 @@ __export(geminiContentGenerator_exports2, {
|
|
|
159551
159554
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
159552
159555
|
});
|
|
159553
159556
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
159554
|
-
const version2 = "0.2.4
|
|
159557
|
+
const version2 = "0.2.4";
|
|
159555
159558
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
159556
159559
|
const baseHeaders = {
|
|
159557
159560
|
"User-Agent": userAgent2
|
|
@@ -245745,13 +245748,13 @@ var init_extensionManager = __esm({
|
|
|
245745
245748
|
);
|
|
245746
245749
|
}
|
|
245747
245750
|
let tempDir;
|
|
245748
|
-
if (installMetadata.
|
|
245751
|
+
if (installMetadata.originSource === "Claude" && installMetadata.marketplaceConfig && !installMetadata.pluginName) {
|
|
245749
245752
|
const pluginName = await this.requestChoicePlugin(
|
|
245750
245753
|
installMetadata.marketplaceConfig
|
|
245751
245754
|
);
|
|
245752
245755
|
installMetadata.pluginName = pluginName;
|
|
245753
245756
|
}
|
|
245754
|
-
if (installMetadata.type === "
|
|
245757
|
+
if (installMetadata.type === "git" || installMetadata.type === "github-release") {
|
|
245755
245758
|
tempDir = await ExtensionStorage.createTmpDir();
|
|
245756
245759
|
try {
|
|
245757
245760
|
const result = await downloadFromGitHubRelease(
|
|
@@ -245764,7 +245767,7 @@ var init_extensionManager = __esm({
|
|
|
245764
245767
|
}
|
|
245765
245768
|
} catch (_error) {
|
|
245766
245769
|
await cloneFromGit(installMetadata, tempDir);
|
|
245767
|
-
if (installMetadata.type === "
|
|
245770
|
+
if (installMetadata.type === "github-release") {
|
|
245768
245771
|
installMetadata.type = "git";
|
|
245769
245772
|
}
|
|
245770
245773
|
}
|
|
@@ -254841,7 +254844,20 @@ async function parseInstallSource(source2) {
|
|
|
254841
254844
|
let installMetadata;
|
|
254842
254845
|
let repoSource = repo;
|
|
254843
254846
|
let marketplaceConfig = null;
|
|
254844
|
-
|
|
254847
|
+
let isLocalPath = false;
|
|
254848
|
+
try {
|
|
254849
|
+
await stat7(repo);
|
|
254850
|
+
isLocalPath = true;
|
|
254851
|
+
} catch {
|
|
254852
|
+
}
|
|
254853
|
+
if (isLocalPath) {
|
|
254854
|
+
installMetadata = {
|
|
254855
|
+
source: repo,
|
|
254856
|
+
type: "local",
|
|
254857
|
+
pluginName
|
|
254858
|
+
};
|
|
254859
|
+
marketplaceConfig = await readLocalMarketplaceConfig(repo);
|
|
254860
|
+
} else if (isGitUrl(repo)) {
|
|
254845
254861
|
installMetadata = {
|
|
254846
254862
|
source: repoSource,
|
|
254847
254863
|
type: "git",
|
|
@@ -254865,20 +254881,9 @@ async function parseInstallSource(source2) {
|
|
|
254865
254881
|
} catch {
|
|
254866
254882
|
}
|
|
254867
254883
|
} else {
|
|
254868
|
-
|
|
254869
|
-
await stat7(repo);
|
|
254870
|
-
installMetadata = {
|
|
254871
|
-
source: repo,
|
|
254872
|
-
type: "local",
|
|
254873
|
-
pluginName
|
|
254874
|
-
};
|
|
254875
|
-
marketplaceConfig = await readLocalMarketplaceConfig(repo);
|
|
254876
|
-
} catch {
|
|
254877
|
-
throw new Error(`Install source not found: ${repo}`);
|
|
254878
|
-
}
|
|
254884
|
+
throw new Error(`Install source not found: ${repo}`);
|
|
254879
254885
|
}
|
|
254880
254886
|
if (marketplaceConfig) {
|
|
254881
|
-
installMetadata.type = "marketplace";
|
|
254882
254887
|
installMetadata.marketplaceConfig = marketplaceConfig;
|
|
254883
254888
|
installMetadata.originSource = "Claude";
|
|
254884
254889
|
}
|
|
@@ -359818,7 +359823,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
359818
359823
|
// packages/cli/src/utils/version.ts
|
|
359819
359824
|
async function getCliVersion() {
|
|
359820
359825
|
const pkgJson = await getPackageJson();
|
|
359821
|
-
return "0.2.4
|
|
359826
|
+
return "0.2.4";
|
|
359822
359827
|
}
|
|
359823
359828
|
__name(getCliVersion, "getCliVersion");
|
|
359824
359829
|
|
|
@@ -367540,7 +367545,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
367540
367545
|
|
|
367541
367546
|
// packages/cli/src/generated/git-commit.ts
|
|
367542
367547
|
init_esbuild_shims();
|
|
367543
|
-
var GIT_COMMIT_INFO = "
|
|
367548
|
+
var GIT_COMMIT_INFO = "a0037c023";
|
|
367544
367549
|
|
|
367545
367550
|
// packages/cli/src/utils/systemInfo.ts
|
|
367546
367551
|
async function getNpmVersion() {
|
|
@@ -407166,35 +407171,41 @@ var XHS_SSO_MODELS = [
|
|
|
407166
407171
|
baseUrl: "https://runway.devops.xiaohongshu.com/openai/moonshot/v1",
|
|
407167
407172
|
contextWindow: "256K",
|
|
407168
407173
|
description: "\u5728 Agent\u3001\u4EE3\u7801\u3001\u89C6\u89C9\u7406\u89E3\u53CA\u4E00\u7CFB\u5217\u901A\u7528\u667A\u80FD\u4EFB\u52A1\u4E0A\u53D6\u5F97\u5F00\u6E90 SoTA \u8868\u73B0"
|
|
407169
|
-
},
|
|
407170
|
-
{
|
|
407171
|
-
id: "gpt-5-codex(low)",
|
|
407172
|
-
displayName: "GPT-5-Codex(low)",
|
|
407173
|
-
baseUrl: "https://runway.devops.rednote.life/openai/v1/responses?api-version=v1",
|
|
407174
|
-
contextWindow: "272K",
|
|
407175
|
-
description: "GPT-5 \u7684\u4E00\u4E2A\u7248\u672C\uFF0C\u4E13\u4E3A Codex \u4E2D\u7684\u667A\u80FD\u4F53\u7F16\u7A0B\u800C\u4F18\u5316 (\u63A8\u7406\u5F3A\u5EA6\u4F4E)"
|
|
407176
|
-
},
|
|
407177
|
-
{
|
|
407178
|
-
id: "gpt-5-codex(medium)",
|
|
407179
|
-
displayName: "GPT-5-Codex(medium)",
|
|
407180
|
-
baseUrl: "https://runway.devops.rednote.life/openai/v1/responses?api-version=v1",
|
|
407181
|
-
contextWindow: "272K",
|
|
407182
|
-
description: "GPT-5 \u7684\u4E00\u4E2A\u7248\u672C\uFF0C\u4E13\u4E3A Codex \u4E2D\u7684\u667A\u80FD\u4F53\u7F16\u7A0B\u800C\u4F18\u5316 (\u63A8\u7406\u5F3A\u5EA6\u4E2D)"
|
|
407183
|
-
},
|
|
407184
|
-
{
|
|
407185
|
-
id: "gpt-5-codex(high)",
|
|
407186
|
-
displayName: "GPT-5-Codex(high)",
|
|
407187
|
-
baseUrl: "https://runway.devops.rednote.life/openai/v1/responses?api-version=v1",
|
|
407188
|
-
contextWindow: "272K",
|
|
407189
|
-
description: "GPT-5 \u7684\u4E00\u4E2A\u7248\u672C\uFF0C\u4E13\u4E3A Codex \u4E2D\u7684\u667A\u80FD\u4F53\u7F16\u7A0B\u800C\u4F18\u5316 (\u63A8\u7406\u5F3A\u5EA6\u9AD8)"
|
|
407190
|
-
},
|
|
407191
|
-
{
|
|
407192
|
-
id: "claude-opus-4-5@20251101",
|
|
407193
|
-
displayName: "Claude Opus 4.5",
|
|
407194
|
-
baseUrl: "https://runway.devops.rednote.life/openai/google/anthropic/v1",
|
|
407195
|
-
contextWindow: "200K",
|
|
407196
|
-
description: "Anthropic \u6700\u5F3A\u5927\u7684\u6A21\u578B\uFF0C\u64C5\u957F\u590D\u6742\u63A8\u7406\u548C\u4EE3\u7801\u751F\u6210"
|
|
407197
407174
|
}
|
|
407175
|
+
// {
|
|
407176
|
+
// id: 'gpt-5-codex(low)',
|
|
407177
|
+
// displayName: 'GPT-5-Codex(low)',
|
|
407178
|
+
// baseUrl:
|
|
407179
|
+
// 'https://runway.devops.rednote.life/openai/v1/responses?api-version=v1',
|
|
407180
|
+
// contextWindow: '272K',
|
|
407181
|
+
// description:
|
|
407182
|
+
// 'GPT-5 的一个版本,专为 Codex 中的智能体编程而优化 (推理强度低)',
|
|
407183
|
+
// },
|
|
407184
|
+
// {
|
|
407185
|
+
// id: 'gpt-5-codex(medium)',
|
|
407186
|
+
// displayName: 'GPT-5-Codex(medium)',
|
|
407187
|
+
// baseUrl:
|
|
407188
|
+
// 'https://runway.devops.rednote.life/openai/v1/responses?api-version=v1',
|
|
407189
|
+
// contextWindow: '272K',
|
|
407190
|
+
// description:
|
|
407191
|
+
// 'GPT-5 的一个版本,专为 Codex 中的智能体编程而优化 (推理强度中)',
|
|
407192
|
+
// },
|
|
407193
|
+
// {
|
|
407194
|
+
// id: 'gpt-5-codex(high)',
|
|
407195
|
+
// displayName: 'GPT-5-Codex(high)',
|
|
407196
|
+
// baseUrl:
|
|
407197
|
+
// 'https://runway.devops.rednote.life/openai/v1/responses?api-version=v1',
|
|
407198
|
+
// contextWindow: '272K',
|
|
407199
|
+
// description:
|
|
407200
|
+
// 'GPT-5 的一个版本,专为 Codex 中的智能体编程而优化 (推理强度高)',
|
|
407201
|
+
// },
|
|
407202
|
+
// {
|
|
407203
|
+
// id: 'claude-opus-4-5@20251101',
|
|
407204
|
+
// displayName: 'Claude Opus 4.5',
|
|
407205
|
+
// baseUrl: 'https://runway.devops.rednote.life/openai/google/anthropic/v1',
|
|
407206
|
+
// contextWindow: '200K',
|
|
407207
|
+
// description: 'Anthropic 最强大的模型,擅长复杂推理和代码生成',
|
|
407208
|
+
// },
|
|
407198
407209
|
];
|
|
407199
407210
|
|
|
407200
407211
|
// packages/cli/src/ui/components/XhsSsoModelConfigFlow.tsx
|
|
@@ -425347,7 +425358,7 @@ var GeminiAgent = class {
|
|
|
425347
425358
|
name: APPROVAL_MODE_INFO[mode].name,
|
|
425348
425359
|
description: APPROVAL_MODE_INFO[mode].description
|
|
425349
425360
|
}));
|
|
425350
|
-
const version2 = "0.2.4
|
|
425361
|
+
const version2 = "0.2.4";
|
|
425351
425362
|
return {
|
|
425352
425363
|
protocolVersion: PROTOCOL_VERSION,
|
|
425353
425364
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.2.4
|
|
3
|
+
"version": "0.2.4",
|
|
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.4
|
|
22
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.2.4"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|