@projectservan8n/cnapse 0.5.2 → 0.5.4
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/dist/{ConfigUI-4436NFLC.js → ConfigUI-I2CJVODT.js} +5 -6
- package/dist/{Setup-HAPL64ZK.js → Setup-KGYXCA7Y.js} +6 -6
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/src/components/App.tsx +3 -2
- package/src/components/ConfigUI.tsx +5 -6
- package/src/components/HelpMenu.tsx +1 -1
- package/src/components/ProviderSelector.tsx +3 -3
- package/src/components/Setup.tsx +3 -3
|
@@ -36,12 +36,11 @@ var PROVIDERS = [
|
|
|
36
36
|
description: "Many models, pay-per-use, great value",
|
|
37
37
|
needsApiKey: true,
|
|
38
38
|
models: [
|
|
39
|
-
{ id: "
|
|
40
|
-
{ id: "
|
|
41
|
-
{ id: "
|
|
42
|
-
{ id: "
|
|
43
|
-
{ id: "
|
|
44
|
-
{ id: "deepseek/deepseek-chat", name: "DeepSeek V3", description: "Cheap, $0.14/1M tokens" }
|
|
39
|
+
{ id: "openai/gpt-5-nano", name: "GPT-5 Nano", description: "Best budget vision! $0.05/1M in", recommended: true },
|
|
40
|
+
{ id: "google/gemini-2.5-flash-lite", name: "Gemini 2.5 Flash Lite", description: "Fast reasoning, $0.10/1M in" },
|
|
41
|
+
{ id: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen 2.5 Coder 32B", description: "Best for coding, $0.07/1M" },
|
|
42
|
+
{ id: "meta-llama/llama-3.3-70b-instruct", name: "Llama 3.3 70B", description: "Powerful, $0.10/1M" },
|
|
43
|
+
{ id: "deepseek/deepseek-chat", name: "DeepSeek V3", description: "Cheap, $0.14/1M" }
|
|
45
44
|
]
|
|
46
45
|
},
|
|
47
46
|
{
|
|
@@ -18,14 +18,14 @@ var PROVIDERS = [
|
|
|
18
18
|
var DEFAULT_MODELS = {
|
|
19
19
|
ollama: ["qwen2.5:0.5b", "qwen2.5:7b", "llama3.2:3b", "codellama:7b"],
|
|
20
20
|
openrouter: [
|
|
21
|
+
"openai/gpt-5-nano",
|
|
22
|
+
// $0.05/1M - Best budget + vision!
|
|
23
|
+
"google/gemini-2.5-flash-lite",
|
|
24
|
+
// $0.10/1M - Fast reasoning
|
|
21
25
|
"qwen/qwen-2.5-coder-32b-instruct",
|
|
22
|
-
// $0.07/1M - Best
|
|
23
|
-
"
|
|
24
|
-
// FREE - Vision model
|
|
25
|
-
"meta-llama/llama-3.3-70b-instruct",
|
|
26
|
+
// $0.07/1M - Best for coding
|
|
27
|
+
"meta-llama/llama-3.3-70b-instruct"
|
|
26
28
|
// $0.10/1M
|
|
27
|
-
"google/gemini-2.0-flash-001"
|
|
28
|
-
// Free tier
|
|
29
29
|
],
|
|
30
30
|
anthropic: [
|
|
31
31
|
"claude-3-5-sonnet-20241022",
|
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var MENU_ITEMS = [
|
|
|
114
114
|
{ command: "/memory", description: "View/clear learned task patterns", category: "actions" },
|
|
115
115
|
// Settings
|
|
116
116
|
{ command: "/config", description: "Show/edit configuration", category: "settings" },
|
|
117
|
-
{ command: "/watch", shortcut: "Ctrl+
|
|
117
|
+
{ command: "/watch", shortcut: "Ctrl+E", description: "Toggle screen watching", category: "settings" },
|
|
118
118
|
{ command: "/model", description: "Change AI model", category: "settings" },
|
|
119
119
|
{ command: "/provider", shortcut: "Ctrl+P", description: "Change AI provider", category: "settings" }
|
|
120
120
|
];
|
|
@@ -278,10 +278,10 @@ var PROVIDERS = [
|
|
|
278
278
|
description: "Many models, budget-friendly",
|
|
279
279
|
needsApiKey: true,
|
|
280
280
|
models: [
|
|
281
|
-
{ id: "
|
|
282
|
-
{ id: "
|
|
281
|
+
{ id: "openai/gpt-5-nano", name: "GPT-5 Nano ($0.05/1M) + Vision", recommended: true },
|
|
282
|
+
{ id: "google/gemini-2.5-flash-lite", name: "Gemini 2.5 Flash Lite ($0.10/1M)" },
|
|
283
|
+
{ id: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen Coder 32B ($0.07/1M)" },
|
|
283
284
|
{ id: "meta-llama/llama-3.3-70b-instruct", name: "Llama 3.3 70B ($0.10/1M)" },
|
|
284
|
-
{ id: "google/gemini-2.0-flash-001", name: "Gemini 2.0 Flash (free tier)" },
|
|
285
285
|
{ id: "deepseek/deepseek-chat", name: "DeepSeek V3 ($0.14/1M)" }
|
|
286
286
|
]
|
|
287
287
|
},
|
|
@@ -1928,11 +1928,11 @@ function App() {
|
|
|
1928
1928
|
if (key.ctrl && inputChar === "l") chat2.clearMessages();
|
|
1929
1929
|
if (key.ctrl && inputChar === "h") setOverlay("help");
|
|
1930
1930
|
if (key.ctrl && inputChar === "p") setOverlay("provider");
|
|
1931
|
-
if (key.ctrl && inputChar === "
|
|
1931
|
+
if (key.ctrl && inputChar === "e") {
|
|
1932
1932
|
setScreenWatch((prev) => {
|
|
1933
1933
|
const newState = !prev;
|
|
1934
1934
|
chat2.addSystemMessage(
|
|
1935
|
-
newState ? "\u{1F5A5}\uFE0F Screen watching enabled
|
|
1935
|
+
newState ? "\u{1F5A5}\uFE0F Screen watching enabled (Ctrl+E to toggle)" : "\u{1F5A5}\uFE0F Screen watching disabled."
|
|
1936
1936
|
);
|
|
1937
1937
|
return newState;
|
|
1938
1938
|
});
|
|
@@ -2165,7 +2165,7 @@ async function main() {
|
|
|
2165
2165
|
case "config": {
|
|
2166
2166
|
const subcommand = args[1];
|
|
2167
2167
|
if (!subcommand) {
|
|
2168
|
-
const { ConfigUI } = await import("./ConfigUI-
|
|
2168
|
+
const { ConfigUI } = await import("./ConfigUI-I2CJVODT.js");
|
|
2169
2169
|
render(/* @__PURE__ */ jsx8(ConfigUI, {}));
|
|
2170
2170
|
return;
|
|
2171
2171
|
}
|
|
@@ -2242,7 +2242,7 @@ Manual Setup:
|
|
|
2242
2242
|
process.exit(0);
|
|
2243
2243
|
}
|
|
2244
2244
|
case "init": {
|
|
2245
|
-
const { Setup } = await import("./Setup-
|
|
2245
|
+
const { Setup } = await import("./Setup-KGYXCA7Y.js");
|
|
2246
2246
|
render(/* @__PURE__ */ jsx8(Setup, {}));
|
|
2247
2247
|
return;
|
|
2248
2248
|
}
|
package/package.json
CHANGED
package/src/components/App.tsx
CHANGED
|
@@ -39,11 +39,12 @@ export function App() {
|
|
|
39
39
|
if (key.ctrl && inputChar === 'l') chat.clearMessages();
|
|
40
40
|
if (key.ctrl && inputChar === 'h') setOverlay('help');
|
|
41
41
|
if (key.ctrl && inputChar === 'p') setOverlay('provider');
|
|
42
|
-
|
|
42
|
+
// Note: Ctrl+W avoided - conflicts with terminal close
|
|
43
|
+
if (key.ctrl && inputChar === 'e') {
|
|
43
44
|
setScreenWatch(prev => {
|
|
44
45
|
const newState = !prev;
|
|
45
46
|
chat.addSystemMessage(newState
|
|
46
|
-
? '🖥️ Screen watching enabled
|
|
47
|
+
? '🖥️ Screen watching enabled (Ctrl+E to toggle)'
|
|
47
48
|
: '🖥️ Screen watching disabled.'
|
|
48
49
|
);
|
|
49
50
|
return newState;
|
|
@@ -53,12 +53,11 @@ const PROVIDERS: ProviderConfig[] = [
|
|
|
53
53
|
description: 'Many models, pay-per-use, great value',
|
|
54
54
|
needsApiKey: true,
|
|
55
55
|
models: [
|
|
56
|
-
{ id: '
|
|
57
|
-
{ id: '
|
|
58
|
-
{ id: '
|
|
59
|
-
{ id: '
|
|
60
|
-
{ id: '
|
|
61
|
-
{ id: 'deepseek/deepseek-chat', name: 'DeepSeek V3', description: 'Cheap, $0.14/1M tokens' },
|
|
56
|
+
{ id: 'openai/gpt-5-nano', name: 'GPT-5 Nano', description: 'Best budget vision! $0.05/1M in', recommended: true },
|
|
57
|
+
{ id: 'google/gemini-2.5-flash-lite', name: 'Gemini 2.5 Flash Lite', description: 'Fast reasoning, $0.10/1M in' },
|
|
58
|
+
{ id: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen 2.5 Coder 32B', description: 'Best for coding, $0.07/1M' },
|
|
59
|
+
{ id: 'meta-llama/llama-3.3-70b-instruct', name: 'Llama 3.3 70B', description: 'Powerful, $0.10/1M' },
|
|
60
|
+
{ id: 'deepseek/deepseek-chat', name: 'DeepSeek V3', description: 'Cheap, $0.14/1M' },
|
|
62
61
|
],
|
|
63
62
|
},
|
|
64
63
|
{
|
|
@@ -22,7 +22,7 @@ const MENU_ITEMS: MenuItem[] = [
|
|
|
22
22
|
|
|
23
23
|
// Settings
|
|
24
24
|
{ command: '/config', description: 'Show/edit configuration', category: 'settings' },
|
|
25
|
-
{ command: '/watch', shortcut: 'Ctrl+
|
|
25
|
+
{ command: '/watch', shortcut: 'Ctrl+E', description: 'Toggle screen watching', category: 'settings' },
|
|
26
26
|
{ command: '/model', description: 'Change AI model', category: 'settings' },
|
|
27
27
|
{ command: '/provider', shortcut: 'Ctrl+P', description: 'Change AI provider', category: 'settings' },
|
|
28
28
|
];
|
|
@@ -54,10 +54,10 @@ const PROVIDERS: ProviderConfig[] = [
|
|
|
54
54
|
description: 'Many models, budget-friendly',
|
|
55
55
|
needsApiKey: true,
|
|
56
56
|
models: [
|
|
57
|
-
{ id: '
|
|
58
|
-
{ id: '
|
|
57
|
+
{ id: 'openai/gpt-5-nano', name: 'GPT-5 Nano ($0.05/1M) + Vision', recommended: true },
|
|
58
|
+
{ id: 'google/gemini-2.5-flash-lite', name: 'Gemini 2.5 Flash Lite ($0.10/1M)' },
|
|
59
|
+
{ id: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen Coder 32B ($0.07/1M)' },
|
|
59
60
|
{ id: 'meta-llama/llama-3.3-70b-instruct', name: 'Llama 3.3 70B ($0.10/1M)' },
|
|
60
|
-
{ id: 'google/gemini-2.0-flash-001', name: 'Gemini 2.0 Flash (free tier)' },
|
|
61
61
|
{ id: 'deepseek/deepseek-chat', name: 'DeepSeek V3 ($0.14/1M)' },
|
|
62
62
|
],
|
|
63
63
|
},
|
package/src/components/Setup.tsx
CHANGED
|
@@ -15,10 +15,10 @@ const PROVIDERS = [
|
|
|
15
15
|
const DEFAULT_MODELS: Record<string, string[]> = {
|
|
16
16
|
ollama: ['qwen2.5:0.5b', 'qwen2.5:7b', 'llama3.2:3b', 'codellama:7b'],
|
|
17
17
|
openrouter: [
|
|
18
|
-
'
|
|
19
|
-
'
|
|
18
|
+
'openai/gpt-5-nano', // $0.05/1M - Best budget + vision!
|
|
19
|
+
'google/gemini-2.5-flash-lite', // $0.10/1M - Fast reasoning
|
|
20
|
+
'qwen/qwen-2.5-coder-32b-instruct', // $0.07/1M - Best for coding
|
|
20
21
|
'meta-llama/llama-3.3-70b-instruct', // $0.10/1M
|
|
21
|
-
'google/gemini-2.0-flash-001', // Free tier
|
|
22
22
|
],
|
|
23
23
|
anthropic: [
|
|
24
24
|
'claude-3-5-sonnet-20241022',
|