@pheem49/mint 1.4.2 → 1.5.1
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/GUIDE_TH.md +113 -0
- package/README.md +267 -78
- package/assets/CLI_Screen.png +0 -0
- package/main.js +76 -890
- package/mint-cli-logic.js +3 -107
- package/mint-cli.js +594 -29
- package/models/Shiroko_Model/Shiroko/Shiroko_Core/72d86db84cfa9730b894c241fd24c0db.png +0 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core/items_pinned_to_model.json +14 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//345/221/206/347/214/253.exp3.json +10 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//345/221/206/347/214/253/347/234/274/347/217/240/346/221/207/346/231/203.exp3.json +15 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//345/233/264/350/243/231.exp3.json +10 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//346/213/215/347/205/247.exp3.json +50 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//346/213/277/347/254/224.exp3.json +10 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//347/202/271/344/270/200/344/270/213.exp3.json +10 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//347/214/253/345/222/252/346/273/244/351/225/234.exp3.json +10 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//347/234/274/351/225/234.exp3.json +10 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.4096/texture_00.png +0 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.4096/texture_01.png +0 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.4096/texture_02.png +0 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.4096/texture_03.png +0 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.cdi3.json +1498 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.moc3 +0 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.model3.json +47 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.physics3.json +6658 -0
- package/models/Shiroko_Model/Shiroko/Shiroko_Core//351/235/242/351/245/2740.vtube.json +1299 -0
- package/models/Shiroko_Model/Shiroko//342/232/241/351/253/230/344/272/256/342/232/241/344/275/277/347/224/250/346/225/231/347/250/213/344/270/216/346/263/250/346/204/217/344/272/213/351/241/271.txt +23 -0
- package/package.json +37 -4
- package/src/AI_Brain/Gemini_API.js +223 -65
- package/src/AI_Brain/autonomous_brain.js +11 -0
- package/src/AI_Brain/behavior_memory.js +26 -5
- package/src/AI_Brain/headless_agent.js +4 -0
- package/src/AI_Brain/knowledge_base.js +61 -8
- package/src/AI_Brain/memory_store.js +354 -10
- package/src/Automation_Layer/file_operations.js +1 -1
- package/src/CLI/chat_router.js +20 -7
- package/src/CLI/chat_ui.js +596 -825
- package/src/CLI/code_agent.js +347 -56
- package/src/CLI/gmail_auth.js +210 -0
- package/src/CLI/image_input.js +90 -0
- package/src/CLI/list_features.js +2 -0
- package/src/CLI/onboarding.js +364 -55
- package/src/CLI/updater.js +210 -0
- package/src/Channels/brave_search_bridge.js +35 -0
- package/src/Channels/discord_bridge.js +68 -0
- package/src/Channels/google_search_bridge.js +38 -0
- package/src/Channels/line_bridge.js +60 -0
- package/src/Channels/slack_bridge.js +53 -0
- package/src/Channels/telegram_bridge.js +49 -0
- package/src/Channels/whatsapp_bridge.js +55 -0
- package/src/Command_Parser/parser.js +12 -1
- package/src/Plugins/gmail.js +251 -0
- package/src/Plugins/google_calendar.js +245 -19
- package/src/Plugins/notion.js +256 -0
- package/src/System/action_executor.js +178 -0
- package/src/System/bridge_manager.js +76 -0
- package/src/System/chat_history_manager.js +23 -5
- package/src/System/config_manager.js +71 -7
- package/src/System/custom_workflows.js +31 -2
- package/src/System/google_tts_urls.js +51 -0
- package/src/System/granular_automation.js +122 -53
- package/src/System/ipc_handlers.js +238 -0
- package/src/System/proactive_loop.js +153 -0
- package/src/System/safety_manager.js +273 -0
- package/src/System/sandbox_runner.js +182 -0
- package/src/System/screen_capture.js +175 -0
- package/src/System/system_automation.js +127 -81
- package/src/System/system_info.js +70 -0
- package/src/System/task_manager.js +15 -5
- package/src/System/tool_registry.js +280 -0
- package/src/System/window_manager.js +212 -0
- package/src/UI/live2d_manager.js +368 -0
- package/src/UI/renderer.js +208 -24
- package/src/UI/settings.html +24 -0
- package/src/UI/settings.js +14 -4
- package/src/UI/styles.css +466 -32
- package/.codex +0 -0
- package/docs/assets/Agent_Mint.png +0 -0
- package/docs/assets/CLI_Screen.png +0 -0
- package/docs/assets/Settings.png +0 -0
- package/docs/assets/icon.png +0 -0
- package/docs/index.html +0 -132
- package/docs/style.css +0 -579
- package/index.html +0 -16
- package/src/UI/index.html +0 -126
- package/tech_news.txt +0 -3
- package/test_knowledge.txt +0 -3
- package/tests/agent_orchestrator.test.js +0 -41
- package/tests/chat_router.test.js +0 -42
- package/tests/code_agent.test.js +0 -69
- package/tests/config_manager.test.js +0 -141
- package/tests/docker.test.js +0 -46
- package/tests/file_operations.test.js +0 -57
- package/tests/memory_store.test.js +0 -185
- package/tests/provider_routing.test.js +0 -67
- package/tests/spotify.test.js +0 -201
- package/tests/system_monitor.test.js +0 -37
- package/tests/workspace_manager.test.js +0 -56
package/mint-cli-logic.js
CHANGED
|
@@ -1,107 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const { createFolder, openFile, deleteFile, findPath } = require('./src/Automation_Layer/file_operations');
|
|
5
|
-
|
|
6
|
-
async function executeAction(action) {
|
|
7
|
-
if (!action || action.type === 'none') return null;
|
|
8
|
-
|
|
9
|
-
try {
|
|
10
|
-
switch (action.type) {
|
|
11
|
-
case 'open_url':
|
|
12
|
-
openWebsite(action.target);
|
|
13
|
-
return `Opened URL: ${action.target}`;
|
|
14
|
-
case 'search':
|
|
15
|
-
openSearch(action.target);
|
|
16
|
-
return `Searching for: ${action.target}`;
|
|
17
|
-
case 'open_app':
|
|
18
|
-
openApp(action.target);
|
|
19
|
-
return `Opening app: ${action.target}`;
|
|
20
|
-
case 'create_folder':
|
|
21
|
-
createFolder(action.target);
|
|
22
|
-
return `Created folder: ${action.target}`;
|
|
23
|
-
case 'open_file':
|
|
24
|
-
case 'open_folder':
|
|
25
|
-
const res = await openFile(action.target);
|
|
26
|
-
return res === true ? `Opening: ${action.target}` : res;
|
|
27
|
-
case 'delete_file':
|
|
28
|
-
await deleteFile(action.target);
|
|
29
|
-
return `Deleted: ${action.target}`;
|
|
30
|
-
case 'find_path': {
|
|
31
|
-
const result = findPath(action.target, {
|
|
32
|
-
type: action.pathType,
|
|
33
|
-
maxResults: 10
|
|
34
|
-
});
|
|
35
|
-
if (!result.success) {
|
|
36
|
-
return result.message;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (action.openAfter === true) {
|
|
40
|
-
if (result.matches.length === 1) {
|
|
41
|
-
const match = result.matches[0];
|
|
42
|
-
await openFile(match.path);
|
|
43
|
-
return `Found and opened ${match.type === 'dir' ? 'folder' : 'file'}: ${match.path}`;
|
|
44
|
-
}
|
|
45
|
-
return `Found multiple matches for "${action.target}". Please be more specific:\n${result.matches.map(m => `- [${m.type}] ${m.path}`).join('\n')}`;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return `Found matches for "${action.target}":\n${result.matches.map(m => `- [${m.type}] ${m.path}`).join('\n')}`;
|
|
49
|
-
}
|
|
50
|
-
case 'learn_file':
|
|
51
|
-
return await indexFile(action.target);
|
|
52
|
-
case 'mcp_tool':
|
|
53
|
-
const mcpManager = require('./src/Plugins/mcp_manager');
|
|
54
|
-
const mcpResult = await mcpManager.callTool(action.server, action.target, action.args);
|
|
55
|
-
return JSON.stringify(mcpResult.content);
|
|
56
|
-
case 'mouse_move':
|
|
57
|
-
const granularAutomation = require('./src/System/granular_automation');
|
|
58
|
-
return await granularAutomation.mouseMove(action.x, action.y);
|
|
59
|
-
case 'mouse_click':
|
|
60
|
-
const granularAutomationClick = require('./src/System/granular_automation');
|
|
61
|
-
return await granularAutomationClick.mouseClick(action.x, action.y, action.button || 1);
|
|
62
|
-
case 'type_text':
|
|
63
|
-
const granularAutomationType = require('./src/System/granular_automation');
|
|
64
|
-
return await granularAutomationType.typeText(action.target);
|
|
65
|
-
case 'key_tap':
|
|
66
|
-
const granularAutomationKey = require('./src/System/granular_automation');
|
|
67
|
-
return await granularAutomationKey.keyTap(action.target);
|
|
68
|
-
case 'plugin':
|
|
69
|
-
return await pluginManager.executePlugin(action.pluginName, action.target);
|
|
70
|
-
case 'system_automation':
|
|
71
|
-
return await handleSystemAutomation(action.target);
|
|
72
|
-
case 'system_info':
|
|
73
|
-
return await SystemAutomation.getSystemInfo(action.target);
|
|
74
|
-
default:
|
|
75
|
-
return `Action ${action.type} is not yet fully supported in CLI.`;
|
|
76
|
-
}
|
|
77
|
-
} catch (err) {
|
|
78
|
-
return `Error executing action: ${err.message}`;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
async function handleSystemAutomation(target) {
|
|
83
|
-
const [cmd, value] = target.split(':');
|
|
84
|
-
switch (cmd) {
|
|
85
|
-
case 'volume':
|
|
86
|
-
return await SystemAutomation.setVolume(parseInt(value));
|
|
87
|
-
case 'mute':
|
|
88
|
-
return await SystemAutomation.mute();
|
|
89
|
-
case 'brightness':
|
|
90
|
-
return await SystemAutomation.setBrightness(parseInt(value));
|
|
91
|
-
case 'sleep':
|
|
92
|
-
return await SystemAutomation.sleep();
|
|
93
|
-
case 'restart':
|
|
94
|
-
return await SystemAutomation.restart();
|
|
95
|
-
case 'shutdown':
|
|
96
|
-
return await SystemAutomation.shutdown();
|
|
97
|
-
case 'minimize_all':
|
|
98
|
-
return await SystemAutomation.minimizeAll();
|
|
99
|
-
default:
|
|
100
|
-
if (SystemAutomation[target]) {
|
|
101
|
-
return await SystemAutomation[target]();
|
|
102
|
-
}
|
|
103
|
-
throw new Error(`Unknown system command: ${target}`);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
module.exports = { executeAction };
|
|
1
|
+
// Backward-compatible CLI entry point for Mint actions.
|
|
2
|
+
// Keep execution rules in one place so desktop, CLI, and agents share safety behavior.
|
|
3
|
+
module.exports = require('./src/System/action_executor');
|