@hienlh/ppm 0.13.67 → 0.13.68

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.
Files changed (72) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/assets/skills/ppm/SKILL.md +1 -1
  3. package/assets/skills/ppm/references/cli-reference.md +4 -4
  4. package/assets/skills/ppm/references/http-api.md +3 -1
  5. package/bun.lock +2170 -0
  6. package/bunfig.toml +2 -0
  7. package/dist/web/assets/architecture-PBZL5I3N-CS5Rvu_a.js +1 -0
  8. package/dist/web/assets/{audio-preview-Iq-XRBGw.js → audio-preview-DLz0dEw6.js} +1 -1
  9. package/dist/web/assets/{chat-tab-DkVXRD9e.js → chat-tab-B0L_i2ls.js} +3 -3
  10. package/dist/web/assets/{code-editor-M6wHw8AZ.js → code-editor-BEdecTYr.js} +2 -2
  11. package/dist/web/assets/{conflict-editor-D_8t44Wi.js → conflict-editor-CkUhGJsN.js} +1 -1
  12. package/dist/web/assets/{database-viewer-Cj5yCn4w.js → database-viewer-CRBrhKbW.js} +1 -1
  13. package/dist/web/assets/{diff-viewer-BgPv67fJ.js → diff-viewer-DcyIipTd.js} +1 -1
  14. package/dist/web/assets/{docx-preview-BbmDvXdS.js → docx-preview-m0bGH6IL.js} +1 -1
  15. package/dist/web/assets/{extension-webview-CP_AtfYs.js → extension-webview-D50XqcZE.js} +1 -1
  16. package/dist/web/assets/{git-log-panel-DPRoZgWG.js → git-log-panel-CyYHsqIb.js} +1 -1
  17. package/dist/web/assets/gitGraph-HDMCJU4V-BjUgCE-3.js +1 -0
  18. package/dist/web/assets/{glide-data-grid-BrtUKC3w.js → glide-data-grid-Dn8CvXh7.js} +1 -1
  19. package/dist/web/assets/{image-preview-BFj-ipom.js → image-preview-DTfGdGj8.js} +1 -1
  20. package/dist/web/assets/index-BgHCBGwE.js +27 -0
  21. package/dist/web/assets/info-3K5VOQVL-Bu3VpM9a.js +1 -0
  22. package/dist/web/assets/keybindings-store-BhM4ou6C.js +1 -0
  23. package/dist/web/assets/{markdown-renderer-B63eYfrn.js → markdown-renderer-940Y1Maq.js} +3 -3
  24. package/dist/web/assets/notification-store-DWsPQ2XR.js +1 -0
  25. package/dist/web/assets/packet-RMMSAZCW-C83Lg2yy.js +1 -0
  26. package/dist/web/assets/{pdf-preview-JOwOGTIk.js → pdf-preview-D8lVKDTs.js} +1 -1
  27. package/dist/web/assets/pie-UPGHQEXC-DoT-QQxi.js +1 -0
  28. package/dist/web/assets/{port-forwarding-tab-DJRRbLGF.js → port-forwarding-tab-B-hu3lGI.js} +1 -1
  29. package/dist/web/assets/{postgres-viewer-AIOBOfCg.js → postgres-viewer-DfCzELiK.js} +1 -1
  30. package/dist/web/assets/radar-KQ55EAFF-B6r4mqYF.js +1 -0
  31. package/dist/web/assets/{settings-store-CSDOihqv.js → settings-store-BFlBSwKg.js} +1 -1
  32. package/dist/web/assets/{settings-tab-BMHf9pO5.js → settings-tab-BNGqONuA.js} +1 -1
  33. package/dist/web/assets/{sql-query-editor-Dw9UvzWt.js → sql-query-editor-D3Jyjw6V.js} +1 -1
  34. package/dist/web/assets/{sqlite-viewer-HusTxs1Z.js → sqlite-viewer-B5Mrzox5.js} +1 -1
  35. package/dist/web/assets/{system-monitor-tab-BNJIkOan.js → system-monitor-tab-_ZjrnvgM.js} +1 -1
  36. package/dist/web/assets/{terminal-tab-W1VShnP7.js → terminal-tab-DNswsdLl.js} +1 -1
  37. package/dist/web/assets/treemap-KZPCXAKY-3t3gW0fB.js +1 -0
  38. package/dist/web/assets/{use-monaco-theme-qx6SfVRk.js → use-monaco-theme-6AirEH08.js} +1 -1
  39. package/dist/web/assets/{vendor-mermaid-DCie7hiR.js → vendor-mermaid-DU911Xa9.js} +2 -2
  40. package/dist/web/assets/{video-preview-BPAYbuvs.js → video-preview-CaB29_z0.js} +1 -1
  41. package/dist/web/index.html +3 -3
  42. package/dist/web/sw.js +1 -1
  43. package/package.json +1 -1
  44. package/src/index.ts +0 -0
  45. package/src/server/routes/projects.ts +37 -0
  46. package/src/services/git.service.ts +15 -0
  47. package/src/web/components/layout/add-project-form.tsx +213 -70
  48. package/.opencode/.env.example +0 -98
  49. package/.opencode/skills/ads-management/scripts/.env.example +0 -13
  50. package/.opencode/skills/ai-multimodal/.env.example +0 -230
  51. package/.opencode/skills/cip-design/.env.example +0 -6
  52. package/.opencode/skills/devops/.env.example +0 -76
  53. package/.opencode/skills/docs-seeker/.env.example +0 -15
  54. package/.opencode/skills/elevenlabs/.env.example +0 -3
  55. package/.opencode/skills/marketing-dashboard/.env.example +0 -15
  56. package/.opencode/skills/marketing-dashboard/app/.env.example +0 -2
  57. package/.opencode/skills/marketing-dashboard/server/.env.example +0 -2
  58. package/.opencode/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
  59. package/.opencode/skills/mcp-management/scripts/dist/cli.js +0 -160
  60. package/.opencode/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
  61. package/.opencode/skills/payment-integration/scripts/.env.example +0 -20
  62. package/.opencode/skills/sequential-thinking/.env.example +0 -8
  63. package/dist/web/assets/architecture-PBZL5I3N-DLKD1Xjj.js +0 -1
  64. package/dist/web/assets/gitGraph-HDMCJU4V-2a0r4GHr.js +0 -1
  65. package/dist/web/assets/index-CJZZ6v1o.js +0 -27
  66. package/dist/web/assets/info-3K5VOQVL-CWKw4e0V.js +0 -1
  67. package/dist/web/assets/keybindings-store-BOV4khyp.js +0 -1
  68. package/dist/web/assets/notification-store-BklO85um.js +0 -1
  69. package/dist/web/assets/packet-RMMSAZCW-Ar00Wbhd.js +0 -1
  70. package/dist/web/assets/pie-UPGHQEXC-Q4ssDdib.js +0 -1
  71. package/dist/web/assets/radar-KQ55EAFF-kq5v4OKX.js +0 -1
  72. package/dist/web/assets/treemap-KZPCXAKY-DChODgHt.js +0 -1
@@ -1,76 +0,0 @@
1
- # DevOps Skill - Environment Variables
2
-
3
- # =============================================================================
4
- # Cloudflare Configuration
5
- # =============================================================================
6
- # Get these from: https://dash.cloudflare.com
7
- # API Token: Profile -> API Tokens -> Create Token
8
- # Account ID: Overview -> Account ID (right sidebar)
9
-
10
- CLOUDFLARE_API_TOKEN=your_cloudflare_api_token_here
11
- CLOUDFLARE_ACCOUNT_ID=your_cloudflare_account_id_here
12
-
13
- # Optional: Specific zone configuration
14
- # CLOUDFLARE_ZONE_ID=your_zone_id_here
15
-
16
- # =============================================================================
17
- # Google Cloud Configuration
18
- # =============================================================================
19
- # Authentication via service account key file or gcloud CLI
20
- # Download from: IAM & Admin -> Service Accounts -> Create Key
21
-
22
- # Option 1: Service account key file path
23
- GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json
24
-
25
- # Option 2: Project configuration
26
- # GCP_PROJECT_ID=your-project-id
27
- # GCP_REGION=us-central1
28
- # GCP_ZONE=us-central1-a
29
-
30
- # =============================================================================
31
- # Docker Configuration
32
- # =============================================================================
33
- # Optional: Docker registry authentication
34
-
35
- # Docker Hub
36
- # DOCKER_USERNAME=your_docker_username
37
- # DOCKER_PASSWORD=your_docker_password
38
-
39
- # Google Container Registry (GCR)
40
- # GCR_HOSTNAME=gcr.io
41
- # GCR_PROJECT_ID=your-project-id
42
-
43
- # AWS ECR
44
- # AWS_ACCOUNT_ID=123456789012
45
- # AWS_REGION=us-east-1
46
-
47
- # =============================================================================
48
- # CI/CD Configuration
49
- # =============================================================================
50
- # Optional: For automated deployments
51
-
52
- # GitHub Actions
53
- # GITHUB_TOKEN=your_github_token
54
-
55
- # GitLab CI
56
- # GITLAB_TOKEN=your_gitlab_token
57
-
58
- # =============================================================================
59
- # Monitoring & Logging
60
- # =============================================================================
61
- # Optional: For observability
62
-
63
- # Sentry
64
- # SENTRY_DSN=your_sentry_dsn
65
-
66
- # Datadog
67
- # DD_API_KEY=your_datadog_api_key
68
-
69
- # =============================================================================
70
- # Notes
71
- # =============================================================================
72
- # 1. Copy this file to .env and fill in your actual values
73
- # 2. Never commit .env file to version control
74
- # 3. Use different credentials for dev/staging/production
75
- # 4. Rotate credentials regularly
76
- # 5. Use least-privilege principle for API tokens
@@ -1,15 +0,0 @@
1
- # Context7 API Configuration (optional)
2
- # Get your API key from https://context7.com/dashboard/api-keys
3
- CONTEXT7_API_KEY=
4
-
5
- # Gemini API Configuration (optional, for ai-multimodal integration)
6
- # Get your API key from https://aistudio.google.com/app/apikey
7
- GEMINI_API_KEY=
8
-
9
- # GitHub Token (optional, for higher rate limits on repository analysis)
10
- # Create at https://github.com/settings/tokens
11
- GITHUB_TOKEN=
12
-
13
- # Output settings
14
- OUTPUT_FORMAT=json
15
- DEBUG=false
@@ -1,3 +0,0 @@
1
- # ElevenLabs API Key
2
- # Get your key at: https://elevenlabs.io/app/settings/api-keys
3
- ELEVENLABS_API_KEY=your_api_key_here
@@ -1,15 +0,0 @@
1
- # Marketing Dashboard Environment Variables
2
-
3
- # Server Configuration
4
- PORT=3457
5
- NODE_ENV=development
6
- ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3457
7
-
8
- # Security
9
- # API Key for authentication (required in production)
10
- # Generate a secure key: openssl rand -hex 32
11
- API_KEY=your-secure-api-key-here
12
-
13
- # Skip authentication in development (set to 'true' only for local dev)
14
- # WARNING: Never set to 'true' in production
15
- SKIP_AUTH=true
@@ -1,2 +0,0 @@
1
- # API Base URL for the marketing dashboard backend
2
- VITE_API_BASE_URL=http://localhost:3457/api
@@ -1,2 +0,0 @@
1
- # API Base URL for static assets and external URLs
2
- API_BASE_URL=http://localhost:3457
@@ -1,70 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Tool Analyzer - Intelligently selects relevant MCP tools for tasks
4
- */
5
- /**
6
- * Analyze tools and return those relevant to the task
7
- */
8
- export function analyzeToolsForTask(tools, taskDescription) {
9
- const keywords = extractKeywords(taskDescription);
10
- const scoredTools = tools.map(tool => ({
11
- tool,
12
- score: calculateRelevanceScore(tool, keywords, taskDescription),
13
- reasons: explainScore(tool, keywords, taskDescription)
14
- }));
15
- // Sort by score descending
16
- scoredTools.sort((a, b) => b.score - a.score);
17
- // Filter tools with score above threshold
18
- const threshold = 0.3;
19
- const relevant = scoredTools.filter(st => st.score > threshold);
20
- return {
21
- relevantTools: relevant.map(st => st.tool),
22
- reasoning: relevant.map(st => `${st.tool.name} (${st.tool.serverName}): ${st.reasons.join('; ')}`),
23
- confidence: relevant.length > 0
24
- ? relevant[0].score
25
- : 0
26
- };
27
- }
28
- function extractKeywords(text) {
29
- const stopWords = new Set([
30
- 'the', 'a', 'an', 'and', 'or', 'but', 'in', 'on', 'at',
31
- 'to', 'for', 'of', 'with', 'by', 'from', 'as', 'is', 'was', 'are'
32
- ]);
33
- return text
34
- .toLowerCase()
35
- .split(/\W+/)
36
- .filter(word => word.length > 2 && !stopWords.has(word));
37
- }
38
- function calculateRelevanceScore(tool, keywords, taskDescription) {
39
- let score = 0;
40
- const toolText = `${tool.name} ${tool.description}`.toLowerCase();
41
- // Keyword matching
42
- for (const keyword of keywords) {
43
- if (toolText.includes(keyword)) {
44
- score += 0.2;
45
- }
46
- }
47
- // Exact phrase matching
48
- const taskLower = taskDescription.toLowerCase();
49
- if (toolText.includes(taskLower) || taskLower.includes(tool.name.toLowerCase())) {
50
- score += 0.5;
51
- }
52
- // Schema complexity bonus (more params = more specialized)
53
- if (tool.inputSchema?.properties) {
54
- const paramCount = Object.keys(tool.inputSchema.properties).length;
55
- score += Math.min(paramCount * 0.05, 0.3);
56
- }
57
- return Math.min(score, 1.0);
58
- }
59
- function explainScore(tool, keywords, taskDescription) {
60
- const reasons = [];
61
- const toolText = `${tool.name} ${tool.description}`.toLowerCase();
62
- const matchedKeywords = keywords.filter(k => toolText.includes(k));
63
- if (matchedKeywords.length > 0) {
64
- reasons.push(`matches keywords: ${matchedKeywords.join(', ')}`);
65
- }
66
- if (tool.description) {
67
- reasons.push(`description: ${tool.description.slice(0, 100)}`);
68
- }
69
- return reasons;
70
- }
@@ -1,160 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * MCP Management CLI - Command-line interface for MCP operations
4
- */
5
- import { MCPClientManager } from './mcp-client.js';
6
- import { writeFileSync, mkdirSync } from 'fs';
7
- import { dirname, join } from 'path';
8
- import { fileURLToPath } from 'url';
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = dirname(__filename);
11
- const GLOBAL_TIMEOUT_MS = parseInt(process.env.MCP_TIMEOUT || '120000', 10);
12
- let globalManager = null;
13
- function setupShutdownHandlers() {
14
- const shutdown = async (signal) => {
15
- console.log(`\nReceived ${signal}, cleaning up...`);
16
- if (globalManager) {
17
- await globalManager.cleanup();
18
- }
19
- process.exit(0);
20
- };
21
- process.on('SIGINT', () => shutdown('SIGINT'));
22
- process.on('SIGTERM', () => shutdown('SIGTERM'));
23
- process.on('SIGHUP', () => shutdown('SIGHUP'));
24
- process.on('unhandledRejection', (reason) => {
25
- console.error('Unhandled rejection:', reason);
26
- process.exit(1);
27
- });
28
- }
29
- async function main() {
30
- const args = process.argv.slice(2);
31
- const command = args[0];
32
- // Setup shutdown handlers
33
- setupShutdownHandlers();
34
- // Check for help flags BEFORE connecting to servers
35
- if (!command || command === '--help' || command === 'help') {
36
- printUsage();
37
- process.exit(0);
38
- }
39
- // Global timeout
40
- const timeoutHandle = setTimeout(() => {
41
- console.error('Global timeout exceeded, forcing exit');
42
- process.exit(1);
43
- }, GLOBAL_TIMEOUT_MS);
44
- timeoutHandle.unref();
45
- const manager = new MCPClientManager();
46
- globalManager = manager;
47
- try {
48
- // Load config
49
- await manager.loadConfig();
50
- console.log('✓ Config loaded');
51
- // Connect to all servers
52
- await manager.connectAll();
53
- console.log('✓ Connected to all MCP servers\n');
54
- switch (command) {
55
- case 'list-tools':
56
- await listTools(manager);
57
- break;
58
- case 'list-prompts':
59
- await listPrompts(manager);
60
- break;
61
- case 'list-resources':
62
- await listResources(manager);
63
- break;
64
- case 'call-tool':
65
- await callTool(manager, args[1], args[2], args[3]);
66
- break;
67
- default:
68
- printUsage();
69
- }
70
- await manager.cleanup();
71
- process.exit(0);
72
- }
73
- catch (error) {
74
- console.error('Error:', error);
75
- process.exit(1);
76
- }
77
- }
78
- async function listTools(manager) {
79
- const tools = await manager.getAllTools();
80
- console.log(`Found ${tools.length} tools:\n`);
81
- for (const tool of tools) {
82
- console.log(`📦 ${tool.serverName} / ${tool.name}`);
83
- console.log(` ${tool.description}`);
84
- if (tool.inputSchema?.properties) {
85
- console.log(` Parameters: ${Object.keys(tool.inputSchema.properties).join(', ')}`);
86
- }
87
- console.log('');
88
- }
89
- // Save tools to JSON file
90
- const assetsDir = join(__dirname, '..', 'assets');
91
- const toolsPath = join(assetsDir, 'tools.json');
92
- try {
93
- mkdirSync(assetsDir, { recursive: true });
94
- writeFileSync(toolsPath, JSON.stringify(tools, null, 2));
95
- console.log(`\n✓ Tools saved to ${toolsPath}`);
96
- }
97
- catch (error) {
98
- console.error(`\n✗ Failed to save tools: ${error}`);
99
- }
100
- }
101
- async function listPrompts(manager) {
102
- const prompts = await manager.getAllPrompts();
103
- console.log(`Found ${prompts.length} prompts:\n`);
104
- for (const prompt of prompts) {
105
- console.log(`💬 ${prompt.serverName} / ${prompt.name}`);
106
- console.log(` ${prompt.description}`);
107
- if (prompt.arguments && prompt.arguments.length > 0) {
108
- console.log(` Arguments: ${prompt.arguments.map((a) => a.name).join(', ')}`);
109
- }
110
- console.log('');
111
- }
112
- }
113
- async function listResources(manager) {
114
- const resources = await manager.getAllResources();
115
- console.log(`Found ${resources.length} resources:\n`);
116
- for (const resource of resources) {
117
- console.log(`📄 ${resource.serverName} / ${resource.name}`);
118
- console.log(` URI: ${resource.uri}`);
119
- if (resource.description) {
120
- console.log(` ${resource.description}`);
121
- }
122
- if (resource.mimeType) {
123
- console.log(` Type: ${resource.mimeType}`);
124
- }
125
- console.log('');
126
- }
127
- }
128
- async function callTool(manager, serverName, toolName, argsJson) {
129
- if (!serverName || !toolName || !argsJson) {
130
- console.error('Usage: cli.ts call-tool <server> <tool> <json-args>');
131
- process.exit(1);
132
- }
133
- const args = JSON.parse(argsJson);
134
- console.log(`Calling ${serverName}/${toolName}...`);
135
- const result = await manager.callTool(serverName, toolName, args);
136
- console.log('\nResult:');
137
- console.log(JSON.stringify(result, null, 2));
138
- }
139
- function printUsage() {
140
- console.log(`
141
- MCP Management CLI
142
-
143
- Usage:
144
- cli.ts <command> [options]
145
-
146
- Commands:
147
- list-tools List all tools and save to assets/tools.json
148
- list-prompts List all prompts from all MCP servers
149
- list-resources List all resources from all MCP servers
150
- call-tool <server> <tool> <json> Call a specific tool
151
-
152
- Examples:
153
- cli.ts list-tools
154
- cli.ts call-tool memory create_entities '{"entities":[{"name":"Alice","entityType":"person"}]}'
155
- cli.ts call-tool human-mcp playwright_screenshot_fullpage '{"url":"https://example.com"}'
156
-
157
- Note: Tool analysis is done by the LLM reading assets/tools.json directly.
158
- `);
159
- }
160
- main();
@@ -1,183 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * MCP Client - Core client for interacting with MCP servers
4
- */
5
- import { Client } from '@modelcontextprotocol/sdk/client/index.js';
6
- import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
7
- import { readFile } from 'fs/promises';
8
- import { resolve } from 'path';
9
- export class MCPClientManager {
10
- config = null;
11
- clients = new Map();
12
- transports = new Map();
13
- async loadConfig(configPath = '.claude/.mcp.json') {
14
- const fullPath = resolve(process.cwd(), configPath);
15
- const content = await readFile(fullPath, 'utf-8');
16
- const config = JSON.parse(content);
17
- this.config = config;
18
- return config;
19
- }
20
- async connectToServer(serverName) {
21
- if (!this.config?.mcpServers[serverName]) {
22
- throw new Error(`Server ${serverName} not found in config`);
23
- }
24
- const serverConfig = this.config.mcpServers[serverName];
25
- const transport = new StdioClientTransport({
26
- command: serverConfig.command,
27
- args: serverConfig.args,
28
- env: serverConfig.env
29
- });
30
- const client = new Client({
31
- name: `mcp-manager-${serverName}`,
32
- version: '1.0.0'
33
- }, { capabilities: {} });
34
- await client.connect(transport);
35
- this.clients.set(serverName, client);
36
- this.transports.set(serverName, transport); // Track transport!
37
- return client;
38
- }
39
- async connectAll() {
40
- if (!this.config) {
41
- throw new Error('Config not loaded. Call loadConfig() first.');
42
- }
43
- const serverNames = Object.keys(this.config.mcpServers);
44
- console.log(`Connecting to ${serverNames.length} servers sequentially...`);
45
- for (const serverName of serverNames) {
46
- try {
47
- await this.connectToServer(serverName);
48
- console.log(`✓ ${serverName} connected`);
49
- }
50
- catch (error) {
51
- console.error(`✗ ${serverName} failed:`, error);
52
- // Continue with other servers
53
- }
54
- }
55
- }
56
- async getAllTools() {
57
- const allTools = [];
58
- for (const [serverName, client] of this.clients.entries()) {
59
- try {
60
- const response = await client.listTools({}, { timeout: 300000 });
61
- for (const tool of response.tools) {
62
- allTools.push({
63
- serverName,
64
- name: tool.name,
65
- description: tool.description || '',
66
- inputSchema: tool.inputSchema,
67
- outputSchema: tool.outputSchema
68
- });
69
- }
70
- }
71
- catch (error) {
72
- if (error?.code === -32601) {
73
- console.warn(`${serverName} does not support listTools`);
74
- }
75
- else {
76
- console.error(`Error from ${serverName}:`, error);
77
- }
78
- // Continue with other servers!
79
- }
80
- }
81
- return allTools;
82
- }
83
- async getAllPrompts() {
84
- const allPrompts = [];
85
- for (const [serverName, client] of this.clients.entries()) {
86
- try {
87
- const response = await client.listPrompts({}, { timeout: 300000 });
88
- for (const prompt of response.prompts) {
89
- allPrompts.push({
90
- serverName,
91
- name: prompt.name,
92
- description: prompt.description || '',
93
- arguments: prompt.arguments
94
- });
95
- }
96
- }
97
- catch (error) {
98
- if (error?.code === -32601) {
99
- console.warn(`${serverName} does not support listPrompts`);
100
- }
101
- else {
102
- console.error(`Error from ${serverName}:`, error);
103
- }
104
- // Continue with other servers!
105
- }
106
- }
107
- return allPrompts;
108
- }
109
- async getAllResources() {
110
- const allResources = [];
111
- for (const [serverName, client] of this.clients.entries()) {
112
- try {
113
- const response = await client.listResources({}, { timeout: 300000 });
114
- for (const resource of response.resources) {
115
- allResources.push({
116
- serverName,
117
- uri: resource.uri,
118
- name: resource.name,
119
- description: resource.description,
120
- mimeType: resource.mimeType
121
- });
122
- }
123
- }
124
- catch (error) {
125
- if (error?.code === -32601) {
126
- console.warn(`${serverName} does not support listResources`);
127
- }
128
- else {
129
- console.error(`Error from ${serverName}:`, error);
130
- }
131
- // Continue with other servers!
132
- }
133
- }
134
- return allResources;
135
- }
136
- async callTool(serverName, toolName, args) {
137
- const client = this.clients.get(serverName);
138
- if (!client)
139
- throw new Error(`Not connected to server: ${serverName}`);
140
- return await client.callTool({ name: toolName, arguments: args }, undefined, { timeout: 300000 });
141
- }
142
- async getPrompt(serverName, promptName, args) {
143
- const client = this.clients.get(serverName);
144
- if (!client)
145
- throw new Error(`Not connected to server: ${serverName}`);
146
- return await client.getPrompt({ name: promptName, arguments: args }, { timeout: 300000 });
147
- }
148
- async readResource(serverName, uri) {
149
- const client = this.clients.get(serverName);
150
- if (!client)
151
- throw new Error(`Not connected to server: ${serverName}`);
152
- return await client.readResource({ uri }, { timeout: 300000 });
153
- }
154
- async cleanup() {
155
- // Close clients with timeout
156
- const cleanupPromises = [];
157
- for (const [serverName, client] of this.clients.entries()) {
158
- cleanupPromises.push((async () => {
159
- try {
160
- await client.close();
161
- }
162
- catch (error) {
163
- console.warn(`Warning closing ${serverName}:`, error);
164
- }
165
- })());
166
- }
167
- await Promise.race([
168
- Promise.all(cleanupPromises),
169
- new Promise((resolve) => setTimeout(resolve, 5000))
170
- ]);
171
- // CRITICAL: Close transports to kill subprocesses
172
- for (const [serverName, transport] of this.transports.entries()) {
173
- try {
174
- await transport.close();
175
- }
176
- catch (error) {
177
- console.warn(`Warning closing ${serverName} transport:`, error);
178
- }
179
- }
180
- this.clients.clear();
181
- this.transports.clear();
182
- }
183
- }
@@ -1,20 +0,0 @@
1
- # SePay Configuration
2
- SEPAY_MERCHANT_ID=SP-TEST-XXXXXXX
3
- SEPAY_SECRET_KEY=spsk_test_xxxxxxxxxxxxx
4
- SEPAY_ENV=sandbox # or 'production'
5
-
6
- # SePay Webhook Configuration
7
- SEPAY_WEBHOOK_AUTH_TYPE=api_key # or 'oauth2' or 'none'
8
- SEPAY_WEBHOOK_API_KEY=your_webhook_api_key
9
-
10
- # Polar Configuration
11
- POLAR_ACCESS_TOKEN=polar_xxxxxxxxxxxxxxxx
12
- POLAR_SERVER=sandbox # or 'production'
13
- POLAR_ORG_ID=org_xxxxxxxxxxxxx
14
-
15
- # Polar Webhook Configuration
16
- POLAR_WEBHOOK_SECRET=base64_encoded_secret
17
-
18
- # Optional: Database or other configuration
19
- # DATABASE_URL=postgresql://user:password@localhost:5432/dbname
20
- # REDIS_URL=redis://localhost:6379
@@ -1,8 +0,0 @@
1
- # Sequential Thinking Configuration
2
-
3
- # Disable thought logging output (useful for automated processing)
4
- # Set to "true" to disable console logging
5
- DISABLE_THOUGHT_LOGGING=false
6
-
7
- # History file location (optional, defaults to scripts/.thought-history.json)
8
- # THOUGHT_HISTORY_FILE=/path/to/custom/history.json
@@ -1 +0,0 @@
1
- import{G as e}from"./vendor-mermaid-DCie7hiR.js";export{e as createArchitectureServices};
@@ -1 +0,0 @@
1
- import{U as e}from"./vendor-mermaid-DCie7hiR.js";export{e as createGitGraphServices};