@rdmind/rdmind 0.0.20-alpha.0 → 0.0.20-alpha.2
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 +6 -3
- package/examples/context/RDMind.md +8 -0
- package/examples/context/rdmind-extension.json +4 -0
- package/examples/custom-commands/commands/fs/grep-code.toml +6 -0
- package/examples/custom-commands/rdmind-extension.json +4 -0
- package/examples/exclude-tools/rdmind-extension.json +5 -0
- package/examples/mcp-server/example.ts +60 -0
- package/examples/mcp-server/package.json +18 -0
- package/examples/mcp-server/rdmind-extension.json +11 -0
- package/examples/mcp-server/tsconfig.json +13 -0
- package/package.json +3 -2
package/cli.js
CHANGED
|
@@ -183747,7 +183747,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
|
|
|
183747
183747
|
};
|
|
183748
183748
|
}
|
|
183749
183749
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
183750
|
-
const version2 = "0.0.20-alpha.
|
|
183750
|
+
const version2 = "0.0.20-alpha.2";
|
|
183751
183751
|
const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
183752
183752
|
const baseHeaders = {
|
|
183753
183753
|
"User-Agent": userAgent2
|
|
@@ -319943,7 +319943,7 @@ init_esbuild_shims();
|
|
|
319943
319943
|
|
|
319944
319944
|
// packages/cli/src/generated/git-commit.ts
|
|
319945
319945
|
init_esbuild_shims();
|
|
319946
|
-
var GIT_COMMIT_INFO2 = "
|
|
319946
|
+
var GIT_COMMIT_INFO2 = "ee8c0a30";
|
|
319947
319947
|
|
|
319948
319948
|
// packages/cli/src/ui/components/AboutBox.tsx
|
|
319949
319949
|
var import_jsx_runtime43 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -342045,7 +342045,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
342045
342045
|
// packages/cli/src/utils/version.ts
|
|
342046
342046
|
async function getCliVersion() {
|
|
342047
342047
|
const pkgJson = await getPackageJson();
|
|
342048
|
-
return "0.0.20-alpha.
|
|
342048
|
+
return "0.0.20-alpha.2";
|
|
342049
342049
|
}
|
|
342050
342050
|
__name(getCliVersion, "getCliVersion");
|
|
342051
342051
|
|
|
@@ -349547,6 +349547,9 @@ var FileCommandLoader = class {
|
|
|
349547
349547
|
);
|
|
349548
349548
|
allCommands.push(...commands);
|
|
349549
349549
|
} catch (error) {
|
|
349550
|
+
if (error instanceof Error && error.name === "AbortError") {
|
|
349551
|
+
return [];
|
|
349552
|
+
}
|
|
349550
349553
|
if (error.code !== "ENOENT") {
|
|
349551
349554
|
console.error(
|
|
349552
349555
|
`[FileCommandLoader] Error loading commands from ${dirInfo.path}:`,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Ink Library Screen Reader Guidance
|
|
2
|
+
|
|
3
|
+
When building custom components, it's important to keep accessibility in mind. While Ink provides the building blocks, ensuring your components are accessible will make your CLIs usable by a wider audience.
|
|
4
|
+
|
|
5
|
+
## General Principles
|
|
6
|
+
|
|
7
|
+
Provide screen reader-friendly output: Use the useIsScreenReaderEnabled hook to detect if a screen reader is active. You can then render a more descriptive output for screen reader users.
|
|
8
|
+
Leverage ARIA props: For components that have a specific role (e.g., a checkbox or a button), use the aria-role, aria-state, and aria-label props on <Box> and <Text> to provide semantic meaning to screen readers.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
|
|
11
|
+
const server = new McpServer({
|
|
12
|
+
name: 'prompt-server',
|
|
13
|
+
version: '1.0.0',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
server.registerTool(
|
|
17
|
+
'fetch_posts',
|
|
18
|
+
{
|
|
19
|
+
description: 'Fetches a list of posts from a public API.',
|
|
20
|
+
inputSchema: z.object({}).shape,
|
|
21
|
+
},
|
|
22
|
+
async () => {
|
|
23
|
+
const apiResponse = await fetch(
|
|
24
|
+
'https://jsonplaceholder.typicode.com/posts',
|
|
25
|
+
);
|
|
26
|
+
const posts = await apiResponse.json();
|
|
27
|
+
const response = { posts: posts.slice(0, 5) };
|
|
28
|
+
return {
|
|
29
|
+
content: [
|
|
30
|
+
{
|
|
31
|
+
type: 'text',
|
|
32
|
+
text: JSON.stringify(response),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
server.registerPrompt(
|
|
40
|
+
'poem-writer',
|
|
41
|
+
{
|
|
42
|
+
title: 'Poem Writer',
|
|
43
|
+
description: 'Write a nice haiku',
|
|
44
|
+
argsSchema: { title: z.string(), mood: z.string().optional() },
|
|
45
|
+
},
|
|
46
|
+
({ title, mood }) => ({
|
|
47
|
+
messages: [
|
|
48
|
+
{
|
|
49
|
+
role: 'user',
|
|
50
|
+
content: {
|
|
51
|
+
type: 'text',
|
|
52
|
+
text: `Write a haiku${mood ? ` with the mood ${mood}` : ''} called ${title}. Note that a haiku is 5 syllables followed by 7 syllables followed by 5 syllables `,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
}),
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
const transport = new StdioServerTransport();
|
|
60
|
+
await server.connect(transport);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-server-example",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Example MCP Server for Gemini CLI Extension",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "example.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"typescript": "~5.4.5",
|
|
12
|
+
"@types/node": "^20.11.25"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@modelcontextprotocol/sdk": "^1.11.0",
|
|
16
|
+
"zod": "^3.22.4"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"outDir": "./dist"
|
|
11
|
+
},
|
|
12
|
+
"include": ["example.ts"]
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdmind/rdmind",
|
|
3
|
-
"version": "0.0.20-alpha.
|
|
3
|
+
"version": "0.0.20-alpha.2",
|
|
4
4
|
"description": "RDMind - AI-powered coding assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cli.js",
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
"*.sb",
|
|
14
14
|
"template",
|
|
15
15
|
"templates",
|
|
16
|
+
"examples",
|
|
16
17
|
".knowledge",
|
|
17
18
|
"README.md",
|
|
18
19
|
"LICENSE"
|
|
19
20
|
],
|
|
20
21
|
"config": {
|
|
21
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.0.20-alpha.
|
|
22
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.0.20-alpha.2"
|
|
22
23
|
},
|
|
23
24
|
"publishConfig": {
|
|
24
25
|
"access": "public"
|