@menasehk/sera 1.0.3 → 1.6.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.
Files changed (51) hide show
  1. package/README.md +94 -29
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/managers/conversation.d.ts +3 -1
  5. package/dist/managers/conversation.d.ts.map +1 -1
  6. package/dist/managers/conversation.js +1 -1
  7. package/dist/managers/conversation.js.map +1 -1
  8. package/dist/managers/setup.js +1 -1
  9. package/dist/providers/anthropic.js +1 -1
  10. package/dist/providers/index.js +1 -1
  11. package/dist/providers/ollama.js +1 -1
  12. package/dist/providers/openai.js +1 -1
  13. package/dist/storage/index.js +1 -1
  14. package/dist/storage/json-storage.js +1 -1
  15. package/dist/storage/sqlite-storage.js +1 -1
  16. package/dist/tools/browser.js +1 -1
  17. package/dist/tools/database.js +1 -1
  18. package/dist/tools/documents.d.ts +3 -0
  19. package/dist/tools/documents.d.ts.map +1 -0
  20. package/dist/tools/documents.js +1 -0
  21. package/dist/tools/documents.js.map +1 -0
  22. package/dist/tools/filesystem.js +1 -1
  23. package/dist/tools/glossary.d.ts +4 -0
  24. package/dist/tools/glossary.d.ts.map +1 -0
  25. package/dist/tools/glossary.js +1 -0
  26. package/dist/tools/glossary.js.map +1 -0
  27. package/dist/tools/index.d.ts +2 -0
  28. package/dist/tools/index.d.ts.map +1 -1
  29. package/dist/tools/index.js +1 -1
  30. package/dist/tools/index.js.map +1 -1
  31. package/dist/tools/memory.js +1 -1
  32. package/dist/tools/native.js +1 -1
  33. package/dist/tools/notification.js +1 -1
  34. package/dist/tools/shell.js +1 -1
  35. package/dist/tools/system.js +1 -1
  36. package/dist/tools/tasks.js +1 -1
  37. package/dist/types.js +1 -1
  38. package/dist/utils/amharic-glossary.d.ts +48 -0
  39. package/dist/utils/amharic-glossary.d.ts.map +1 -0
  40. package/dist/utils/amharic-glossary.js +1 -0
  41. package/dist/utils/amharic-glossary.js.map +1 -0
  42. package/dist/utils/config.js +1 -1
  43. package/dist/utils/daemon.js +1 -1
  44. package/dist/utils/errors.js +1 -1
  45. package/dist/utils/logger.js +1 -1
  46. package/dist/utils/memory.js +1 -1
  47. package/dist/utils/permissions.js +1 -1
  48. package/dist/utils/recurrence.js +1 -1
  49. package/dist/utils/retry.js +1 -1
  50. package/dist/utils/sanitize.js +1 -1
  51. package/package.json +2 -1
package/README.md CHANGED
@@ -1,6 +1,20 @@
1
- # SERA / ስራ
1
+ # SERA
2
2
 
3
- > **ስራ** means *work* in Amharic. Your AI-powered daily work command center — manage tasks, calendar, contacts, notes, and automate your computer through natural conversation, right from your terminal.
3
+ ```
4
+ ╔══════════════════ SERA ══════════════════╗
5
+ ║ ║
6
+ ║ ███████╗███████╗██████╗ █████╗ ║
7
+ ║ ██╔════╝██╔════╝██╔══██╗██╔══██╗ ║
8
+ ║ ███████╗█████╗ ██████╔╝███████║ ║
9
+ ║ ╚════██║██╔══╝ ██╔══██╗██╔══██║ ║
10
+ ║ ███████║███████╗██║ ██║██║ ██║ ║
11
+ ║ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ║
12
+ ║ ║
13
+ ║ › ስ ራ ‹ AI-Powered Work Command Center ║
14
+ ╚══════════════════════════════════════════╝
15
+ ```
16
+
17
+ > **ስራ** means *work* in Amharic. Manage tasks, calendar, contacts, notes, and automate your computer through natural conversation — right from your terminal.
4
18
 
5
19
  ---
6
20
 
@@ -20,7 +34,7 @@ sera setup
20
34
 
21
35
  ## What you can do
22
36
 
23
- Just open SERA and talk to it naturally. No special syntax needed.
37
+ Just open SERA and talk to it naturally:
24
38
 
25
39
  ```bash
26
40
  sera # open and start chatting
@@ -34,29 +48,27 @@ sera # open and start chatting
34
48
  "Add Sarah Connor to my contacts, phone 555-0123"
35
49
  "What do I have on Friday?"
36
50
  "Remember that I prefer short responses"
37
- "Create a collection to track my expenses"
38
- "Show all expenses over $50 this month"
51
+ "Write an MOU between us and Acme Corp"
52
+ "ቃለ-ጉባኤ ጻፍ ዛሬ ጠዋት የነበረው ስብሰባ"
39
53
  ```
40
54
 
41
- SERA figures out what you mean and does it — including creating tasks, scheduling calendar events, saving contacts, running shell commands, reading files, and more.
42
-
43
55
  ---
44
56
 
45
57
  ## Quick commands
46
58
 
47
59
  ```bash
48
- sera # Start chatting with your AI
49
- sera setup # First-time setup (AI provider, API key, preferences)
50
- sera today # Today's tasks and appointments at a glance
60
+ sera # Start chatting
61
+ sera setup # First-time setup
62
+ sera today # Today's tasks and appointments
51
63
  sera tasks # View all active tasks
52
64
  sera add "Buy groceries" -p low # Quick-add a task
53
65
  sera done "Buy groceries" # Mark a task done
54
66
  sera cal # Upcoming appointments
55
- sera remind 15 "Stand up call" # Desktop notification in 15 minutes
67
+ sera remind 15 "Stand up call" # Desktop notification in 15 min
56
68
  sera note "Great idea I had" # Save a quick note
57
69
  sera notes # View all notes
58
70
  sera memory # See what SERA remembers about you
59
- sera daemon start # Run in the background (notifications when not open)
71
+ sera daemon start # Run in background (notifications when closed)
60
72
  sera daemon install # Auto-start at login
61
73
  sera export # Back up all your data
62
74
  ```
@@ -72,13 +84,70 @@ sera export # Back up all your data
72
84
  | **Ollama** | llama3.1, mistral, gemma3 (runs locally, free) |
73
85
  | **Groq** | llama-3.3-70b, mixtral, … |
74
86
 
75
- Run `sera setup` to choose your provider and paste in your API key. For Ollama no API key is needed.
87
+ Run `sera setup` to choose your provider and paste in your API key. Ollama needs no API key.
88
+
89
+ ---
90
+
91
+ ## Amharic Document Generation
92
+
93
+ SERA writes professional Word (`.docx`) documents in Amharic or English. Files are saved to your Desktop and opened automatically.
94
+
95
+ **Supported document types:**
96
+
97
+ | Type | Amharic Name |
98
+ |---|---|
99
+ | MOU | የስምምነት ማስታወሻ |
100
+ | Meeting Minutes | ቃለ-ጉባኤ |
101
+ | Official Letter | ደብዳቤ |
102
+ | Report | ሪፖርት |
103
+ | Agreement | ስምምነት |
104
+ | Contract | ውል |
105
+ | Custom | any structure |
106
+
107
+ **Examples:**
108
+
109
+ ```
110
+ "Write an MOU between Tagcodi and the Ministry of Education"
111
+ "ቃለ-ጉባኤ ጻፍ — ዛሬ ጠዋት ከቦርዱ ጋር የነበረው ስብሰባ"
112
+ "Draft an official letter to the Ministry of Finance"
113
+ "Create meeting minutes — attendees were Kassu, Sara, and John"
114
+ "Write a 1-year service contract between us and our client"
115
+ "ሪፖርት ጻፍ — Q1 የስራ አፈጻጸም"
116
+ ```
117
+
118
+ All documents use proper Ethiopic fonts (Nyala on Windows, Kefa on macOS) with correct structure — signature lines, reference numbers, section headings, and standard Amharic phrasing.
119
+
120
+ ---
121
+
122
+ ## Amharic Terminology & Learning
123
+
124
+ SERA comes with a built-in Amharic glossary of 60+ standard document terms — legal words, titles, phrases, and document sections — and learns new ones as you teach it.
125
+
126
+ **Pre-loaded categories:**
127
+
128
+ - Document types — `ቃለ-ጉባኤ`, `ደብዳቤ`, `የስምምነት ማስታወሻ`, `ውል`, `ሪፖርት`
129
+ - Legal terms — `ወገን`, `አንቀጽ`, `ፊርማ`, `ግዴታ`, `መብት`, `ቅጣት`
130
+ - Titles & roles — `ሰብሳቢ`, `ፀሐፊ`, `ሃላፊ`, `ወኪል`, `ዳይሬክተር`
131
+ - Formal phrases — `ለክቡርነትዎ`, `በአክብሮት`, `ተዋዋይ ወገኖች`
132
+ - Document sections — `ጉዳዩ`, `ዓላማ`, `ምክረ-ሃሳብ`, `አጀንዳ`, `አባሪ`
133
+ - Ethiopic numerals — ፩ ፪ ፫ ፬ ፭ …
134
+
135
+ **Teaching SERA new words:**
136
+
137
+ ```
138
+ "Learn the word ተጠቃሚ — it means beneficiary in legal documents"
139
+ "ሰብሳቢ is also written as ሊቀ-ወንበር — remember that variant"
140
+ "How do you spell the Amharic word for arbitration?"
141
+ "What does ቃለ-ጉባኤ mean?"
142
+ ```
143
+
144
+ Every learned term is saved permanently and immediately used in future documents.
76
145
 
77
146
  ---
78
147
 
79
148
  ## AI Memory
80
149
 
81
- SERA remembers things about you across sessions automatically — no prompting needed. Just chat normally.
150
+ SERA remembers things about you across sessions automatically — no prompting needed.
82
151
 
83
152
  ```
84
153
  "My name is Kassu and I live in Helsinki"
@@ -86,25 +155,21 @@ SERA remembers things about you across sessions automatically — no prompting n
86
155
  "I'm working on a mobile app called Fana"
87
156
  ```
88
157
 
89
- Next time you open SERA it already knows all of this. View or clear memories any time:
90
-
91
158
  ```bash
92
159
  sera memory # See everything SERA remembers
93
160
  sera memory --forget "timezone" # Remove one memory
94
161
  sera memory --forget-all # Start fresh
95
162
  ```
96
163
 
97
- Or type `/memory` while chatting.
98
-
99
164
  ---
100
165
 
101
166
  ## Calendar & Contacts
102
167
 
103
- On macOS SERA talks directly to Calendar.app and Contacts.app. On other platforms it creates `.ics` / `.vcf` files that open in whatever app you use.
168
+ On macOS SERA talks directly to Calendar.app and Contacts.app. On other platforms it creates `.ics` / `.vcf` files that open in your default app.
104
169
 
105
170
  ```
106
- "Add dentist appointment Friday 3pm, set a 30 minute reminder"
107
- "Add John Smith to my contacts, email john@acme.com, phone 555-1234"
171
+ "Add dentist appointment Friday 3pm with a 30 minute reminder"
172
+ "Add John Smith to my contacts, email john@acme.com"
108
173
  "Look up Alice in my contacts"
109
174
  "Put this on my Google Calendar: team lunch, Thursday noon"
110
175
  ```
@@ -113,18 +178,19 @@ SERA always asks your permission before touching your calendar or contacts.
113
178
 
114
179
  ---
115
180
 
116
- ## Background daemon
181
+ ## Background Daemon
117
182
 
118
- Keep SERA running silently in the background so you get notified even when the app is closed.
183
+ Runs silently in the background and sends desktop notifications even when SERA is closed.
119
184
 
120
185
  ```bash
121
186
  sera daemon start # Start background monitoring
122
187
  sera daemon install # Auto-start every time you log in
123
188
  sera daemon status # Check if it's running
124
189
  sera daemon stop # Turn it off
190
+ sera daemon logs # View recent activity
125
191
  ```
126
192
 
127
- The daemon sends desktop notifications for overdue tasks, upcoming appointments (15 min warning + at start time), and a 9 AM morning briefing.
193
+ Monitors: overdue tasks, appointment reminders (15 min + at start), daily 9 AM briefing.
128
194
 
129
195
  ---
130
196
 
@@ -133,10 +199,10 @@ The daemon sends desktop notifications for overdue tasks, upcoming appointments
133
199
  SERA asks before doing anything that touches your system. You choose how strict:
134
200
 
135
201
  - `ask` — confirm every action
136
- - `auto` — auto-allow safe actions, ask for risky ones
202
+ - `auto` — auto-allow safe actions, ask for risky ones
137
203
  - `allow` — allow everything
138
204
 
139
- You can always allow or deny permanently per tool so you're never asked twice for the same thing.
205
+ You can always allow or deny permanently per tool so you're never asked twice.
140
206
 
141
207
  ---
142
208
 
@@ -150,15 +216,14 @@ Everything stays on your machine. No cloud sync, no tracking.
150
216
  | `~/.ai-daily-cli/data.json` | Tasks, appointments, notes |
151
217
  | `~/.ai-daily-cli/memory.json` | Things SERA remembers about you |
152
218
  | `~/.ai-daily-cli/collections.json` | Custom data collections |
219
+ | `~/.ai-daily-cli/amharic-glossary.json` | Amharic terms and learned words |
153
220
 
154
- The only outbound traffic is your conversation being sent to your chosen AI provider's API.
221
+ The only outbound traffic is your conversation sent to your chosen AI provider's API.
155
222
 
156
223
  ---
157
224
 
158
225
  ## In-chat slash commands
159
226
 
160
- While chatting you can type these shortcuts:
161
-
162
227
  | Command | What it does |
163
228
  |---|---|
164
229
  | `/help` | Show all slash commands |