@pheem49/mint 1.2.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.
Files changed (69) hide show
  1. package/BUILD_AND_RELEASE.md +75 -0
  2. package/LICENSE +654 -0
  3. package/README.md +165 -0
  4. package/assets/Agent_Mint.png +0 -0
  5. package/assets/CLI_Screen.png +0 -0
  6. package/assets/Settings.png +0 -0
  7. package/assets/icon.png +0 -0
  8. package/benchmark_ai.js +71 -0
  9. package/main.js +968 -0
  10. package/mint-cli-logic.js +71 -0
  11. package/mint-cli.js +239 -0
  12. package/package.json +60 -0
  13. package/preload-picker.js +11 -0
  14. package/preload-settings.js +11 -0
  15. package/preload.js +37 -0
  16. package/privacy.txt +1 -0
  17. package/src/AI_Brain/Gemini_API.js +419 -0
  18. package/src/AI_Brain/autonomous_brain.js +139 -0
  19. package/src/AI_Brain/behavior_memory.js +114 -0
  20. package/src/AI_Brain/headless_agent.js +120 -0
  21. package/src/AI_Brain/knowledge_base.js +222 -0
  22. package/src/AI_Brain/proactive_engine.js +168 -0
  23. package/src/Automation_Layer/browser_automation.js +147 -0
  24. package/src/Automation_Layer/file_operations.js +80 -0
  25. package/src/Automation_Layer/open_app.js +56 -0
  26. package/src/Automation_Layer/open_website.js +38 -0
  27. package/src/CLI/chat_ui.js +468 -0
  28. package/src/CLI/list_features.js +56 -0
  29. package/src/CLI/onboarding.js +60 -0
  30. package/src/Command_Parser/parser.js +34 -0
  31. package/src/Plugins/dev_tools.js +41 -0
  32. package/src/Plugins/discord.js +20 -0
  33. package/src/Plugins/docker.js +45 -0
  34. package/src/Plugins/google_calendar.js +26 -0
  35. package/src/Plugins/obsidian.js +54 -0
  36. package/src/Plugins/plugin_manager.js +81 -0
  37. package/src/Plugins/spotify.js +45 -0
  38. package/src/Plugins/system_metrics.js +31 -0
  39. package/src/System/chat_history_manager.js +57 -0
  40. package/src/System/config_manager.js +73 -0
  41. package/src/System/custom_workflows.js +127 -0
  42. package/src/System/daemon_manager.js +67 -0
  43. package/src/System/system_automation.js +88 -0
  44. package/src/System/system_events.js +79 -0
  45. package/src/System/system_info.js +55 -0
  46. package/src/System/task_manager.js +85 -0
  47. package/src/UI/floating.css +80 -0
  48. package/src/UI/floating.html +17 -0
  49. package/src/UI/floating.js +67 -0
  50. package/src/UI/index.html +126 -0
  51. package/src/UI/preload-floating.js +7 -0
  52. package/src/UI/preload-spotlight.js +10 -0
  53. package/src/UI/preload-widget.js +5 -0
  54. package/src/UI/proactive-glow.html +42 -0
  55. package/src/UI/renderer.js +978 -0
  56. package/src/UI/screenPicker.html +214 -0
  57. package/src/UI/screenPicker.js +262 -0
  58. package/src/UI/settings.css +705 -0
  59. package/src/UI/settings.html +396 -0
  60. package/src/UI/settings.js +514 -0
  61. package/src/UI/spotlight.css +119 -0
  62. package/src/UI/spotlight.html +23 -0
  63. package/src/UI/spotlight.js +181 -0
  64. package/src/UI/styles.css +627 -0
  65. package/src/UI/widget.css +218 -0
  66. package/src/UI/widget.html +29 -0
  67. package/src/UI/widget.js +10 -0
  68. package/tech_news.txt +3 -0
  69. package/test_knowledge.txt +3 -0
@@ -0,0 +1,75 @@
1
+ # คู่มือการ Build & Release (สำหรับ Linux)
2
+
3
+ ไฟล์นี้จะอธิบายขั้นตอนการสร้างตัวติดตั้ง (Build) ของ Mint สำหรับ Linux และวิธีการปล่อยเวอร์ชันใหม่ (Release) บน GitHub
4
+
5
+ ## 1) การ Build แอป (Linux)
6
+
7
+ ใช้คำสั่งเหล่านี้เพื่อสร้างไฟล์ติดตั้ง:
8
+
9
+ ```bash
10
+ npm install
11
+ npm run build:linux
12
+ ```
13
+
14
+ เมื่อรันเสร็จ ไฟล์ตัวติดตั้งจะปรากฏในโฟลเดอร์ `dist/` เช่น:
15
+ - `Mint-X.Y.Z.AppImage`
16
+ - `mint_X.Y.Z_amd64.deb`
17
+
18
+ ---
19
+
20
+ ## 2) การ Push โค้ดขึ้น GitHub
21
+
22
+ อัปเดตโค้ดล่าสุดขึ้น Server:
23
+
24
+ ```bash
25
+ git add .
26
+ git commit -m "ใส่ข้อความอธิบายการแก้ไข"
27
+ git push
28
+ ```
29
+
30
+ **หากเป็นการตั้งค่าครั้งแรก:**
31
+ ```bash
32
+ git init
33
+ git remote add origin https://github.com/Pheem49/Luna-Mint.git
34
+ git branch -M main
35
+ git add .
36
+ git commit -m "Initial commit"
37
+ git push -u origin main
38
+ ```
39
+
40
+ ---
41
+
42
+ ## 3) การสร้าง Release บน GitHub ด้วย `gh` CLI
43
+
44
+ ต้องล็อกอินก่อน (ทำแค่ครั้งแรกครั้งเดียว):
45
+ ```bash
46
+ gh auth login
47
+ ```
48
+
49
+ **สร้าง Release ใหม่พร้อมอัปโหลดไฟล์ตัวติดตั้ง:**
50
+ (เปลี่ยน `v1.x.x` เป็นเวอร์ชันที่คุณต้องการ เช่น `v1.1.0`)
51
+
52
+ ```bash
53
+ # แบบระบุข้อความอธิบายเอง
54
+ gh release create v1.2.1 dist/*.deb dist/*.AppImage --title "Mint v1.2.1" --notes "Implemented slash command autocomplete and fixed double-typing issue in the TUI."
55
+
56
+
57
+ # หรือแบบให้ GitHub สรุปสิ่งที่แก้ไขให้โดยอัตโนมัติ (แนะนำ)
58
+ gh release create v1.1.0 dist/*.deb dist/*.AppImage --generate-notes
59
+ ```
60
+
61
+ **หากต้องการอัปโหลดไฟล์เพิ่มเข้าไปใน Release เดิม:**
62
+ ```bash
63
+ gh release upload v1.2.1 dist/*.deb dist/*.AppImage --clobber
64
+ ```
65
+
66
+ ---
67
+
68
+ ## 4) วิธีแก้ปัญหา "Source code ในหน้า Release ไม่ใช่ตัวล่าสุด"
69
+
70
+ ปกติไฟล์ Source code (.zip) จะถูกสร้างจาก **Tag** หากคุณ push โค้ดใหม่แต่ลืมย้าย Tag ให้รันคำสั่งนี้:
71
+
72
+ ```bash
73
+ git tag -f v1.2.1
74
+ git push -f origin v1.2.1
75
+ ```