-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdronewire.config.js
More file actions
81 lines (74 loc) · 4.05 KB
/
dronewire.config.js
File metadata and controls
81 lines (74 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* Dronewire configuration file.
* Copy this file to ~/.dronewire/dronewire.config.js and customize it.
*
* Start the server:
* dronewire server start
* dronewire server start --config /path/to/dronewire.config.js
*/
export default {
// ── Server ──────────────────────────────────────────────────────────────
server: {
port: 3847,
host: 'localhost',
},
// ── Ollama AI ────────────────────────────────────────────────────────────
ollama: {
host: 'http://localhost:11434',
model: 'llama3.2',
apikey: 'your-ollama-api-key-here',
// Global system prompt used for all connectors unless overridden per-connector
systemPrompt:
'Summarize the following release notes in 2-3 concise bullet points. Focus on what changed for users.',
},
// ── Slack ────────────────────────────────────────────────────────────────
slack: {
// Set to true to disable all Slack messages (summaries are logged to console instead)
disabled: false,
// Your Slack bot token (xoxb-...)
token: 'xoxb-your-token-here',
// All summaries are sent here unless a connector sets disableCentralChannel: true
// Set to null to disable the central channel
centralChannel: '#releases',
},
// ── Cron ─────────────────────────────────────────────────────────────────
// Set true to disable all cron scheduling on startup (synced to state)
disableCron: false,
// Global fallback cutoff date for first run — used if a connector has no state
// and no connector-level initialLookbackDate. ISO 8601 string or null.
initialLookbackDate: null,
// ── Connectors ───────────────────────────────────────────────────────────
connectors: [
// ── Built-in: WordPress ──────────────────────────────────────────────
// {
// id: 'my-wordpress', // Unique identifier (used in CLI commands)
// type: 'wordpress', // Built-in connector type
// config: {
// url: 'https://example.com', // WordPress site URL
// perPage: 5, // Posts to fetch per run (default: 10)
// // categories: [1, 2], // Optional: filter by category IDs
// // tags: [3], // Optional: filter by tag IDs
// },
// schedule: '0 9 * * *', // Cron schedule (daily at 9am)
// initialLookbackDate: '2025-01-01T00:00:00Z', // Used on first run if no state exists
// slackChannel: '#my-releases', // Per-connector Slack channel (null to skip)
// disableCentralChannel: false, // Set true to opt out of centralChannel
// disableCron: false, // Set true to permanently skip scheduling (ignores state)
// // systemPrompt: '...', // Override global system prompt for this connector
// },
// ── Custom connector ─────────────────────────────────────────────────
// {
// id: 'my-custom',
// type: 'custom',
// script: '/path/to/MyConnector.js', // Must default-export a BaseConnector subclass
// config: {
// // Your connector-specific config here
// },
// schedule: '0 10 * * *',
// initialLookbackDate: '2025-01-01T00:00:00Z',
// slackChannel: '#custom-releases',
// disableCentralChannel: false,
// disableCron: false,
// },
],
};