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 +1 -1
- package/src/mcp-server.js +1 -1
- package/src/platform.js +3 -4
package/package.json
CHANGED
package/src/mcp-server.js
CHANGED
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
|
-
|
|
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
|
|
139
|
+
return getAutomationInstructions('claude-code', frequency, apiKey);
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
142
|
|