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.
- package/README.md +666 -0
- package/SOUL.md +104 -0
- package/config/hooks.json +14 -0
- package/config/mcp.json +145 -0
- package/package.json +86 -0
- package/skills/.gitkeep +0 -0
- package/skills/apple-notes.md +193 -0
- package/skills/apple-reminders.md +189 -0
- package/skills/camsnap.md +162 -0
- package/skills/coding.md +14 -0
- package/skills/documents.md +13 -0
- package/skills/email.md +13 -0
- package/skills/gif-search.md +196 -0
- package/skills/healthcheck.md +225 -0
- package/skills/image-gen.md +147 -0
- package/skills/model-usage.md +182 -0
- package/skills/obsidian.md +207 -0
- package/skills/pdf.md +211 -0
- package/skills/research.md +13 -0
- package/skills/skill-creator.md +142 -0
- package/skills/spotify.md +149 -0
- package/skills/summarize.md +230 -0
- package/skills/things.md +199 -0
- package/skills/tmux.md +204 -0
- package/skills/trello.md +183 -0
- package/skills/video-frames.md +202 -0
- package/skills/weather.md +127 -0
- package/src/a2a/A2AClient.js +136 -0
- package/src/a2a/A2AServer.js +316 -0
- package/src/a2a/AgentCard.js +79 -0
- package/src/agents/SubAgentManager.js +369 -0
- package/src/agents/Supervisor.js +192 -0
- package/src/channels/BaseChannel.js +104 -0
- package/src/channels/DiscordChannel.js +288 -0
- package/src/channels/EmailChannel.js +172 -0
- package/src/channels/GoogleChatChannel.js +316 -0
- package/src/channels/HttpChannel.js +26 -0
- package/src/channels/LineChannel.js +168 -0
- package/src/channels/SignalChannel.js +186 -0
- package/src/channels/SlackChannel.js +329 -0
- package/src/channels/TeamsChannel.js +272 -0
- package/src/channels/TelegramChannel.js +347 -0
- package/src/channels/WhatsAppChannel.js +219 -0
- package/src/channels/index.js +198 -0
- package/src/cli.js +1267 -0
- package/src/config/agentProfiles.js +120 -0
- package/src/config/channels.js +32 -0
- package/src/config/default.js +206 -0
- package/src/config/models.js +123 -0
- package/src/config/permissions.js +167 -0
- package/src/core/AgentLoop.js +446 -0
- package/src/core/Compaction.js +143 -0
- package/src/core/CostTracker.js +116 -0
- package/src/core/EventBus.js +46 -0
- package/src/core/Task.js +67 -0
- package/src/core/TaskQueue.js +206 -0
- package/src/core/TaskRunner.js +226 -0
- package/src/daemon/DaemonManager.js +301 -0
- package/src/hooks/HookRunner.js +230 -0
- package/src/index.js +482 -0
- package/src/mcp/MCPAgentRunner.js +112 -0
- package/src/mcp/MCPClient.js +186 -0
- package/src/mcp/MCPManager.js +412 -0
- package/src/models/ModelRouter.js +180 -0
- package/src/safety/AuditLog.js +135 -0
- package/src/safety/CircuitBreaker.js +126 -0
- package/src/safety/FilesystemGuard.js +169 -0
- package/src/safety/GitRollback.js +139 -0
- package/src/safety/HumanApproval.js +156 -0
- package/src/safety/InputSanitizer.js +72 -0
- package/src/safety/PermissionGuard.js +83 -0
- package/src/safety/Sandbox.js +70 -0
- package/src/safety/SecretScanner.js +100 -0
- package/src/safety/SecretVault.js +250 -0
- package/src/scheduler/Heartbeat.js +115 -0
- package/src/scheduler/Scheduler.js +228 -0
- package/src/services/models/outputSchema.js +15 -0
- package/src/services/openai.js +25 -0
- package/src/services/sessions.js +65 -0
- package/src/setup/theme.js +110 -0
- package/src/setup/wizard.js +788 -0
- package/src/skills/SkillLoader.js +168 -0
- package/src/storage/TaskStore.js +69 -0
- package/src/systemPrompt.js +526 -0
- package/src/tenants/TenantContext.js +19 -0
- package/src/tenants/TenantManager.js +379 -0
- package/src/tools/ToolRegistry.js +141 -0
- package/src/tools/applyPatch.js +144 -0
- package/src/tools/browserAutomation.js +223 -0
- package/src/tools/createDocument.js +265 -0
- package/src/tools/cronTool.js +105 -0
- package/src/tools/editFile.js +139 -0
- package/src/tools/executeCommand.js +123 -0
- package/src/tools/glob.js +67 -0
- package/src/tools/grep.js +121 -0
- package/src/tools/imageAnalysis.js +120 -0
- package/src/tools/index.js +173 -0
- package/src/tools/listDirectory.js +47 -0
- package/src/tools/manageAgents.js +47 -0
- package/src/tools/manageMCP.js +159 -0
- package/src/tools/memory.js +478 -0
- package/src/tools/messageChannel.js +45 -0
- package/src/tools/projectTracker.js +259 -0
- package/src/tools/readFile.js +52 -0
- package/src/tools/screenCapture.js +112 -0
- package/src/tools/searchContent.js +76 -0
- package/src/tools/searchFiles.js +75 -0
- package/src/tools/sendEmail.js +118 -0
- package/src/tools/sendFile.js +63 -0
- package/src/tools/textToSpeech.js +161 -0
- package/src/tools/transcribeAudio.js +82 -0
- package/src/tools/useMCP.js +29 -0
- package/src/tools/webFetch.js +150 -0
- package/src/tools/webSearch.js +134 -0
- 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
|
+
}
|