claude-wec 1.0.0
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/LICENSE +675 -0
- package/README.md +371 -0
- package/dist/api-docs.html +879 -0
- package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/assets/index-cIxJ4RXb.js +1226 -0
- package/dist/assets/index-oyEz69sP.css +32 -0
- package/dist/assets/vendor-codemirror-CJLzwpLB.js +39 -0
- package/dist/assets/vendor-react-DcyRfQm3.js +59 -0
- package/dist/assets/vendor-xterm-DfaPXD3y.js +66 -0
- package/dist/clear-cache.html +85 -0
- package/dist/convert-icons.md +53 -0
- package/dist/favicon.png +0 -0
- package/dist/favicon.svg +9 -0
- package/dist/generate-icons.js +49 -0
- package/dist/icons/claude-ai-icon.svg +1 -0
- package/dist/icons/codex-white.svg +3 -0
- package/dist/icons/codex.svg +3 -0
- package/dist/icons/cursor-white.svg +12 -0
- package/dist/icons/cursor.svg +1 -0
- package/dist/icons/generate-icons.md +19 -0
- package/dist/icons/icon-128x128.png +0 -0
- package/dist/icons/icon-128x128.svg +12 -0
- package/dist/icons/icon-144x144.png +0 -0
- package/dist/icons/icon-144x144.svg +12 -0
- package/dist/icons/icon-152x152.png +0 -0
- package/dist/icons/icon-152x152.svg +12 -0
- package/dist/icons/icon-192x192.png +0 -0
- package/dist/icons/icon-192x192.svg +12 -0
- package/dist/icons/icon-384x384.png +0 -0
- package/dist/icons/icon-384x384.svg +12 -0
- package/dist/icons/icon-512x512.png +0 -0
- package/dist/icons/icon-512x512.svg +12 -0
- package/dist/icons/icon-72x72.png +0 -0
- package/dist/icons/icon-72x72.svg +12 -0
- package/dist/icons/icon-96x96.png +0 -0
- package/dist/icons/icon-96x96.svg +12 -0
- package/dist/icons/icon-template.svg +12 -0
- package/dist/index.html +52 -0
- package/dist/logo-128.png +0 -0
- package/dist/logo-256.png +0 -0
- package/dist/logo-32.png +0 -0
- package/dist/logo-512.png +0 -0
- package/dist/logo-64.png +0 -0
- package/dist/logo.svg +17 -0
- package/dist/manifest.json +61 -0
- package/dist/screenshots/cli-selection.png +0 -0
- package/dist/screenshots/desktop-main.png +0 -0
- package/dist/screenshots/mobile-chat.png +0 -0
- package/dist/screenshots/tools-modal.png +0 -0
- package/dist/sw.js +49 -0
- package/package.json +109 -0
- package/server/claude-sdk.js +721 -0
- package/server/cli.js +327 -0
- package/server/cursor-cli.js +267 -0
- package/server/database/auth.db +0 -0
- package/server/database/db.js +361 -0
- package/server/database/init.sql +52 -0
- package/server/index.js +1747 -0
- package/server/middleware/auth.js +111 -0
- package/server/openai-codex.js +389 -0
- package/server/projects.js +1604 -0
- package/server/routes/agent.js +1230 -0
- package/server/routes/auth.js +135 -0
- package/server/routes/cli-auth.js +263 -0
- package/server/routes/codex.js +345 -0
- package/server/routes/commands.js +521 -0
- package/server/routes/cursor.js +795 -0
- package/server/routes/git.js +1128 -0
- package/server/routes/mcp-utils.js +48 -0
- package/server/routes/mcp.js +552 -0
- package/server/routes/projects.js +378 -0
- package/server/routes/settings.js +178 -0
- package/server/routes/taskmaster.js +1963 -0
- package/server/routes/user.js +106 -0
- package/server/utils/commandParser.js +303 -0
- package/server/utils/gitConfig.js +24 -0
- package/server/utils/mcp-detector.js +198 -0
- package/server/utils/taskmaster-websocket.js +129 -0
- package/shared/modelConstants.js +65 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TASKMASTER WEBSOCKET UTILITIES
|
|
3
|
+
* ==============================
|
|
4
|
+
*
|
|
5
|
+
* Utilities for broadcasting TaskMaster state changes via WebSocket.
|
|
6
|
+
* Integrates with the existing WebSocket system to provide real-time updates.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Broadcast TaskMaster project update to all connected clients
|
|
11
|
+
* @param {WebSocket.Server} wss - WebSocket server instance
|
|
12
|
+
* @param {string} projectName - Name of the updated project
|
|
13
|
+
* @param {Object} taskMasterData - Updated TaskMaster data
|
|
14
|
+
*/
|
|
15
|
+
export function broadcastTaskMasterProjectUpdate(wss, projectName, taskMasterData) {
|
|
16
|
+
if (!wss || !projectName) {
|
|
17
|
+
console.warn('TaskMaster WebSocket broadcast: Missing wss or projectName');
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const message = {
|
|
22
|
+
type: 'taskmaster-project-updated',
|
|
23
|
+
projectName,
|
|
24
|
+
taskMasterData,
|
|
25
|
+
timestamp: new Date().toISOString()
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
wss.clients.forEach((client) => {
|
|
30
|
+
if (client.readyState === 1) { // WebSocket.OPEN
|
|
31
|
+
try {
|
|
32
|
+
client.send(JSON.stringify(message));
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error('Error sending TaskMaster project update:', error);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Broadcast TaskMaster tasks update for a specific project
|
|
42
|
+
* @param {WebSocket.Server} wss - WebSocket server instance
|
|
43
|
+
* @param {string} projectName - Name of the project with updated tasks
|
|
44
|
+
* @param {Object} tasksData - Updated tasks data
|
|
45
|
+
*/
|
|
46
|
+
export function broadcastTaskMasterTasksUpdate(wss, projectName, tasksData) {
|
|
47
|
+
if (!wss || !projectName) {
|
|
48
|
+
console.warn('TaskMaster WebSocket broadcast: Missing wss or projectName');
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const message = {
|
|
53
|
+
type: 'taskmaster-tasks-updated',
|
|
54
|
+
projectName,
|
|
55
|
+
tasksData,
|
|
56
|
+
timestamp: new Date().toISOString()
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
wss.clients.forEach((client) => {
|
|
61
|
+
if (client.readyState === 1) { // WebSocket.OPEN
|
|
62
|
+
try {
|
|
63
|
+
client.send(JSON.stringify(message));
|
|
64
|
+
} catch (error) {
|
|
65
|
+
console.error('Error sending TaskMaster tasks update:', error);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Broadcast MCP server status change
|
|
73
|
+
* @param {WebSocket.Server} wss - WebSocket server instance
|
|
74
|
+
* @param {Object} mcpStatus - Updated MCP server status
|
|
75
|
+
*/
|
|
76
|
+
export function broadcastMCPStatusChange(wss, mcpStatus) {
|
|
77
|
+
if (!wss) {
|
|
78
|
+
console.warn('TaskMaster WebSocket broadcast: Missing wss');
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const message = {
|
|
83
|
+
type: 'taskmaster-mcp-status-changed',
|
|
84
|
+
mcpStatus,
|
|
85
|
+
timestamp: new Date().toISOString()
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
wss.clients.forEach((client) => {
|
|
90
|
+
if (client.readyState === 1) { // WebSocket.OPEN
|
|
91
|
+
try {
|
|
92
|
+
client.send(JSON.stringify(message));
|
|
93
|
+
} catch (error) {
|
|
94
|
+
console.error('Error sending TaskMaster MCP status update:', error);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Broadcast general TaskMaster update notification
|
|
102
|
+
* @param {WebSocket.Server} wss - WebSocket server instance
|
|
103
|
+
* @param {string} updateType - Type of update (e.g., 'initialization', 'configuration')
|
|
104
|
+
* @param {Object} data - Additional data about the update
|
|
105
|
+
*/
|
|
106
|
+
export function broadcastTaskMasterUpdate(wss, updateType, data = {}) {
|
|
107
|
+
if (!wss || !updateType) {
|
|
108
|
+
console.warn('TaskMaster WebSocket broadcast: Missing wss or updateType');
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const message = {
|
|
113
|
+
type: 'taskmaster-update',
|
|
114
|
+
updateType,
|
|
115
|
+
data,
|
|
116
|
+
timestamp: new Date().toISOString()
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
wss.clients.forEach((client) => {
|
|
121
|
+
if (client.readyState === 1) { // WebSocket.OPEN
|
|
122
|
+
try {
|
|
123
|
+
client.send(JSON.stringify(message));
|
|
124
|
+
} catch (error) {
|
|
125
|
+
console.error('Error sending TaskMaster update:', error);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized Model Definitions
|
|
3
|
+
* Single source of truth for all supported AI models
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Claude (Anthropic) Models
|
|
8
|
+
*
|
|
9
|
+
* Note: Claude uses two different formats:
|
|
10
|
+
* - SDK format ('sonnet', 'opus') - used by the UI and claude-sdk.js
|
|
11
|
+
* - API format ('claude-sonnet-4.5') - used by slash commands for display
|
|
12
|
+
*/
|
|
13
|
+
export const CLAUDE_MODELS = {
|
|
14
|
+
// Models in SDK format (what the actual SDK accepts)
|
|
15
|
+
OPTIONS: [
|
|
16
|
+
{ value: 'sonnet', label: 'Sonnet' },
|
|
17
|
+
{ value: 'opus', label: 'Opus' },
|
|
18
|
+
{ value: 'haiku', label: 'Haiku' },
|
|
19
|
+
{ value: 'opusplan', label: 'Opus Plan' },
|
|
20
|
+
{ value: 'sonnet[1m]', label: 'Sonnet [1M]' }
|
|
21
|
+
],
|
|
22
|
+
|
|
23
|
+
DEFAULT: 'sonnet'
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Cursor Models
|
|
28
|
+
*/
|
|
29
|
+
export const CURSOR_MODELS = {
|
|
30
|
+
OPTIONS: [
|
|
31
|
+
{ value: 'gpt-5.2-high', label: 'GPT-5.2 High' },
|
|
32
|
+
{ value: 'gemini-3-pro', label: 'Gemini 3 Pro' },
|
|
33
|
+
{ value: 'opus-4.5-thinking', label: 'Claude 4.5 Opus (Thinking)' },
|
|
34
|
+
{ value: 'gpt-5.2', label: 'GPT-5.2' },
|
|
35
|
+
{ value: 'gpt-5.1', label: 'GPT-5.1' },
|
|
36
|
+
{ value: 'gpt-5.1-high', label: 'GPT-5.1 High' },
|
|
37
|
+
{ value: 'composer-1', label: 'Composer 1' },
|
|
38
|
+
{ value: 'auto', label: 'Auto' },
|
|
39
|
+
{ value: 'sonnet-4.5', label: 'Claude 4.5 Sonnet' },
|
|
40
|
+
{ value: 'sonnet-4.5-thinking', label: 'Claude 4.5 Sonnet (Thinking)' },
|
|
41
|
+
{ value: 'opus-4.5', label: 'Claude 4.5 Opus' },
|
|
42
|
+
{ value: 'gpt-5.1-codex', label: 'GPT-5.1 Codex' },
|
|
43
|
+
{ value: 'gpt-5.1-codex-high', label: 'GPT-5.1 Codex High' },
|
|
44
|
+
{ value: 'gpt-5.1-codex-max', label: 'GPT-5.1 Codex Max' },
|
|
45
|
+
{ value: 'gpt-5.1-codex-max-high', label: 'GPT-5.1 Codex Max High' },
|
|
46
|
+
{ value: 'opus-4.1', label: 'Claude 4.1 Opus' },
|
|
47
|
+
{ value: 'grok', label: 'Grok' }
|
|
48
|
+
],
|
|
49
|
+
|
|
50
|
+
DEFAULT: 'gpt-5'
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Codex (OpenAI) Models
|
|
55
|
+
*/
|
|
56
|
+
export const CODEX_MODELS = {
|
|
57
|
+
OPTIONS: [
|
|
58
|
+
{ value: 'gpt-5.2', label: 'GPT-5.2' },
|
|
59
|
+
{ value: 'gpt-5.1-codex-max', label: 'GPT-5.1 Codex Max' },
|
|
60
|
+
{ value: 'o3', label: 'O3' },
|
|
61
|
+
{ value: 'o4-mini', label: 'O4-mini' }
|
|
62
|
+
],
|
|
63
|
+
|
|
64
|
+
DEFAULT: 'gpt-5.2'
|
|
65
|
+
};
|