daemora 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.
Files changed (115) hide show
  1. package/README.md +666 -0
  2. package/SOUL.md +104 -0
  3. package/config/hooks.json +14 -0
  4. package/config/mcp.json +145 -0
  5. package/package.json +86 -0
  6. package/skills/.gitkeep +0 -0
  7. package/skills/apple-notes.md +193 -0
  8. package/skills/apple-reminders.md +189 -0
  9. package/skills/camsnap.md +162 -0
  10. package/skills/coding.md +14 -0
  11. package/skills/documents.md +13 -0
  12. package/skills/email.md +13 -0
  13. package/skills/gif-search.md +196 -0
  14. package/skills/healthcheck.md +225 -0
  15. package/skills/image-gen.md +147 -0
  16. package/skills/model-usage.md +182 -0
  17. package/skills/obsidian.md +207 -0
  18. package/skills/pdf.md +211 -0
  19. package/skills/research.md +13 -0
  20. package/skills/skill-creator.md +142 -0
  21. package/skills/spotify.md +149 -0
  22. package/skills/summarize.md +230 -0
  23. package/skills/things.md +199 -0
  24. package/skills/tmux.md +204 -0
  25. package/skills/trello.md +183 -0
  26. package/skills/video-frames.md +202 -0
  27. package/skills/weather.md +127 -0
  28. package/src/a2a/A2AClient.js +136 -0
  29. package/src/a2a/A2AServer.js +316 -0
  30. package/src/a2a/AgentCard.js +79 -0
  31. package/src/agents/SubAgentManager.js +369 -0
  32. package/src/agents/Supervisor.js +192 -0
  33. package/src/channels/BaseChannel.js +104 -0
  34. package/src/channels/DiscordChannel.js +288 -0
  35. package/src/channels/EmailChannel.js +172 -0
  36. package/src/channels/GoogleChatChannel.js +316 -0
  37. package/src/channels/HttpChannel.js +26 -0
  38. package/src/channels/LineChannel.js +168 -0
  39. package/src/channels/SignalChannel.js +186 -0
  40. package/src/channels/SlackChannel.js +329 -0
  41. package/src/channels/TeamsChannel.js +272 -0
  42. package/src/channels/TelegramChannel.js +347 -0
  43. package/src/channels/WhatsAppChannel.js +219 -0
  44. package/src/channels/index.js +198 -0
  45. package/src/cli.js +1267 -0
  46. package/src/config/agentProfiles.js +120 -0
  47. package/src/config/channels.js +32 -0
  48. package/src/config/default.js +206 -0
  49. package/src/config/models.js +123 -0
  50. package/src/config/permissions.js +167 -0
  51. package/src/core/AgentLoop.js +446 -0
  52. package/src/core/Compaction.js +143 -0
  53. package/src/core/CostTracker.js +116 -0
  54. package/src/core/EventBus.js +46 -0
  55. package/src/core/Task.js +67 -0
  56. package/src/core/TaskQueue.js +206 -0
  57. package/src/core/TaskRunner.js +226 -0
  58. package/src/daemon/DaemonManager.js +301 -0
  59. package/src/hooks/HookRunner.js +230 -0
  60. package/src/index.js +482 -0
  61. package/src/mcp/MCPAgentRunner.js +112 -0
  62. package/src/mcp/MCPClient.js +186 -0
  63. package/src/mcp/MCPManager.js +412 -0
  64. package/src/models/ModelRouter.js +180 -0
  65. package/src/safety/AuditLog.js +135 -0
  66. package/src/safety/CircuitBreaker.js +126 -0
  67. package/src/safety/FilesystemGuard.js +169 -0
  68. package/src/safety/GitRollback.js +139 -0
  69. package/src/safety/HumanApproval.js +156 -0
  70. package/src/safety/InputSanitizer.js +72 -0
  71. package/src/safety/PermissionGuard.js +83 -0
  72. package/src/safety/Sandbox.js +70 -0
  73. package/src/safety/SecretScanner.js +100 -0
  74. package/src/safety/SecretVault.js +250 -0
  75. package/src/scheduler/Heartbeat.js +115 -0
  76. package/src/scheduler/Scheduler.js +228 -0
  77. package/src/services/models/outputSchema.js +15 -0
  78. package/src/services/openai.js +25 -0
  79. package/src/services/sessions.js +65 -0
  80. package/src/setup/theme.js +110 -0
  81. package/src/setup/wizard.js +788 -0
  82. package/src/skills/SkillLoader.js +168 -0
  83. package/src/storage/TaskStore.js +69 -0
  84. package/src/systemPrompt.js +526 -0
  85. package/src/tenants/TenantContext.js +19 -0
  86. package/src/tenants/TenantManager.js +379 -0
  87. package/src/tools/ToolRegistry.js +141 -0
  88. package/src/tools/applyPatch.js +144 -0
  89. package/src/tools/browserAutomation.js +223 -0
  90. package/src/tools/createDocument.js +265 -0
  91. package/src/tools/cronTool.js +105 -0
  92. package/src/tools/editFile.js +139 -0
  93. package/src/tools/executeCommand.js +123 -0
  94. package/src/tools/glob.js +67 -0
  95. package/src/tools/grep.js +121 -0
  96. package/src/tools/imageAnalysis.js +120 -0
  97. package/src/tools/index.js +173 -0
  98. package/src/tools/listDirectory.js +47 -0
  99. package/src/tools/manageAgents.js +47 -0
  100. package/src/tools/manageMCP.js +159 -0
  101. package/src/tools/memory.js +478 -0
  102. package/src/tools/messageChannel.js +45 -0
  103. package/src/tools/projectTracker.js +259 -0
  104. package/src/tools/readFile.js +52 -0
  105. package/src/tools/screenCapture.js +112 -0
  106. package/src/tools/searchContent.js +76 -0
  107. package/src/tools/searchFiles.js +75 -0
  108. package/src/tools/sendEmail.js +118 -0
  109. package/src/tools/sendFile.js +63 -0
  110. package/src/tools/textToSpeech.js +161 -0
  111. package/src/tools/transcribeAudio.js +82 -0
  112. package/src/tools/useMCP.js +29 -0
  113. package/src/tools/webFetch.js +150 -0
  114. package/src/tools/webSearch.js +134 -0
  115. package/src/tools/writeFile.js +26 -0
@@ -0,0 +1,110 @@
1
+ import chalk from "chalk";
2
+
3
+ /**
4
+ * Daemora CLI Theme — professional color palette and symbols.
5
+ * No emojis. Clean Unicode symbols only.
6
+ */
7
+
8
+ const P = {
9
+ brand: "#7C6AFF",
10
+ accent: "#4ECDC4",
11
+ success: "#2ECC71",
12
+ warning: "#F1C40F",
13
+ error: "#E74C3C",
14
+ muted: "#7F8C8D",
15
+ info: "#3498DB",
16
+ dim: "#555E68",
17
+ };
18
+
19
+ export const t = {
20
+ brand: (s) => chalk.hex(P.brand)(s),
21
+ accent: (s) => chalk.hex(P.accent)(s),
22
+ success: (s) => chalk.hex(P.success)(s),
23
+ warning: (s) => chalk.hex(P.warning)(s),
24
+ error: (s) => chalk.hex(P.error)(s),
25
+ muted: (s) => chalk.hex(P.muted)(s),
26
+ info: (s) => chalk.hex(P.info)(s),
27
+ dim: (s) => chalk.hex(P.dim)(s),
28
+ bold: (s) => chalk.bold(s),
29
+ h: (s) => chalk.bold.hex(P.brand)(s),
30
+ cmd: (s) => chalk.hex(P.accent)(s),
31
+ };
32
+
33
+ export const S = {
34
+ check: chalk.hex(P.success)("\u2714"),
35
+ cross: chalk.hex(P.error)("\u2718"),
36
+ arrow: chalk.hex(P.brand)("\u25B8"),
37
+ dot: chalk.hex(P.muted)("\u00B7"),
38
+ bar: chalk.hex(P.dim)("\u2502"),
39
+ dash: chalk.hex(P.dim)("\u2500"),
40
+ diamond: chalk.hex(P.brand)("\u25C6"),
41
+ shield: chalk.hex(P.success)("\u25C8"),
42
+ lock: chalk.hex(P.warning)("\u25A3"),
43
+ gear: chalk.hex(P.muted)("\u25CB"),
44
+ bolt: chalk.hex(P.warning)("\u25CF"),
45
+ };
46
+
47
+ export function banner() {
48
+ const w = 56;
49
+ const line = chalk.hex(P.brand)("\u2501".repeat(w));
50
+ const dimLine = chalk.hex(P.dim)("\u2500".repeat(w));
51
+ console.log("");
52
+ console.log(line);
53
+ console.log("");
54
+ console.log(chalk.bold.hex(P.brand)(
55
+ " \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588"
56
+ ));
57
+ console.log(chalk.bold.hex(P.brand)(
58
+ " \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588"
59
+ ));
60
+ console.log(chalk.bold.hex(P.brand)(
61
+ " \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588"
62
+ ));
63
+ console.log(chalk.bold.hex(P.brand)(
64
+ " \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588"
65
+ ));
66
+ console.log(chalk.bold.hex(P.brand)(
67
+ " \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588"
68
+ ));
69
+ console.log("");
70
+ console.log(chalk.hex(P.muted)(" Your 24/7 AI Digital Worker"));
71
+ console.log(dimLine);
72
+ console.log("");
73
+ }
74
+
75
+ export function stepHeader(current, total, title) {
76
+ const filled = Math.round((current / total) * 20);
77
+ const empty = 20 - filled;
78
+ const bar = chalk.hex(P.brand)("\u2588".repeat(filled)) + chalk.hex(P.dim)("\u2591".repeat(empty));
79
+ const label = chalk.hex(P.dim)(`[${current}/${total}]`);
80
+ console.log(`\n ${bar} ${label} ${chalk.bold(title)}\n`);
81
+ }
82
+
83
+ export function kv(key, value) {
84
+ console.log(` ${S.bar} ${t.muted(key)} ${value}`);
85
+ }
86
+
87
+ export function summaryTable(title, rows) {
88
+ const maxKey = Math.max(...rows.map(([k]) => k.length), 10);
89
+ const w = maxKey + 30;
90
+ const line = chalk.hex(P.dim)("\u2500".repeat(w));
91
+ console.log(`\n ${t.h(title)}`);
92
+ console.log(` ${line}`);
93
+ for (const [key, val] of rows) {
94
+ const k = t.muted(key.padEnd(maxKey));
95
+ console.log(` ${S.bar} ${k} ${val}`);
96
+ }
97
+ console.log(` ${line}`);
98
+ }
99
+
100
+ export function completeBanner(lines) {
101
+ const w = 56;
102
+ const line = chalk.hex(P.success)("\u2501".repeat(w));
103
+ console.log(`\n${line}`);
104
+ console.log(` ${S.check} ${chalk.bold.hex(P.success)("Setup Complete")}`);
105
+ console.log("");
106
+ for (const l of lines) {
107
+ console.log(` ${l}`);
108
+ }
109
+ console.log(`${line}\n`);
110
+ }