tokens-for-good 0.2.2 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokens-for-good",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Donate your spare AI tokens to research nonprofits for Fierce Philanthropy",
6
6
  "bin": {
package/src/mcp-server.js CHANGED
@@ -26,7 +26,7 @@ updateState({ platform });
26
26
 
27
27
  const server = new McpServer({
28
28
  name: 'tokens-for-good',
29
- version: '0.2.2',
29
+ version: '0.2.3',
30
30
  });
31
31
 
32
32
  // --- No-key onboarding message ---
package/src/platform.js CHANGED
@@ -1,21 +1,20 @@
1
1
  // Platform detection and automation guidance
2
2
 
3
3
  export function detectPlatform() {
4
- // Check environment hints
5
4
  if (process.env.CLAUDE_CODE) return 'claude-code';
6
5
  if (process.env.OPENCODE) return 'opencode';
7
6
  if (process.env.DEVIN) return 'devin';
8
7
  if (process.env.CURSOR_SESSION) return 'cursor';
9
8
  if (process.env.WINDSURF_SESSION) return 'windsurf';
10
9
 
11
- // Check parent process name
12
10
  const parentName = process.env._ || process.env.PARENT_PROCESS || '';
13
11
  if (parentName.includes('claude')) return 'claude-code';
14
12
  if (parentName.includes('opencode')) return 'opencode';
15
13
  if (parentName.includes('cursor')) return 'cursor';
16
14
  if (parentName.includes('windsurf')) return 'windsurf';
17
15
 
18
- return 'unknown';
16
+ // Default to claude-code since it's the primary MCP host
17
+ return 'claude-code';
19
18
  }
20
19
 
21
20
  export function isSchedulable(platform) {
@@ -137,7 +136,7 @@ Configure a ${frequency} recurring session with the prompt:
137
136
  Devin runs in the cloud, fully autonomous.`;
138
137
 
139
138
  default:
140
- return `Automated contributions are not available on this platform. You can contribute manually by saying "Research an org for Fierce Philanthropy" in any session.`;
139
+ return getAutomationInstructions('claude-code', frequency, apiKey);
141
140
  }
142
141
  }
143
142