@rdmind/rdmind 0.0.20-alpha.1 → 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 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.1";
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
@@ -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.1";
342048
+ return "0.0.20-alpha.2";
342049
342049
  }
342050
342050
  __name(getCliVersion, "getCliVersion");
342051
342051
 
@@ -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,4 @@
1
+ {
2
+ "name": "context-example",
3
+ "version": "1.0.0"
4
+ }
@@ -0,0 +1,6 @@
1
+ prompt = """
2
+ Please summarize the findings for the pattern `{{args}}`.
3
+
4
+ Search Results:
5
+ !{grep -r {{args}} .}
6
+ """
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "custom-commands",
3
+ "version": "1.0.0"
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "excludeTools",
3
+ "version": "1.0.0",
4
+ "excludeTools": ["run_shell_command(rm -rf)"]
5
+ }
@@ -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,11 @@
1
+ {
2
+ "name": "mcp-server-example",
3
+ "version": "1.0.0",
4
+ "mcpServers": {
5
+ "nodeServer": {
6
+ "command": "node",
7
+ "args": ["${extensionPath}${/}dist${/}example.js"],
8
+ "cwd": "${extensionPath}"
9
+ }
10
+ }
11
+ }
@@ -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.1",
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.1"
22
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.0.20-alpha.2"
22
23
  },
23
24
  "publishConfig": {
24
25
  "access": "public"