instar 0.7.18 → 0.7.20
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.
|
@@ -557,7 +557,7 @@ Create the directory structure and write config files:
|
|
|
557
557
|
mkdir -p .instar/state/sessions .instar/state/jobs .instar/logs
|
|
558
558
|
```
|
|
559
559
|
|
|
560
|
-
**`.instar/config.json
|
|
560
|
+
**`.instar/config.json`** (messaging section shown with Telegram — use `"messaging": []` if Telegram was not configured):
|
|
561
561
|
```json
|
|
562
562
|
{
|
|
563
563
|
"projectName": "my-project",
|
|
@@ -581,7 +581,19 @@ mkdir -p .instar/state/sessions .instar/state/jobs .instar/logs
|
|
|
581
581
|
"quotaThresholds": { "normal": 50, "elevated": 70, "critical": 85, "shutdown": 95 }
|
|
582
582
|
},
|
|
583
583
|
"users": [],
|
|
584
|
-
"messaging": [
|
|
584
|
+
"messaging": [
|
|
585
|
+
{
|
|
586
|
+
"type": "telegram",
|
|
587
|
+
"enabled": true,
|
|
588
|
+
"config": {
|
|
589
|
+
"token": "<BOT_TOKEN from BotFather>",
|
|
590
|
+
"chatId": "<CHAT_ID from Step 3e>",
|
|
591
|
+
"lifelineTopicId": "<LIFELINE_THREAD_ID from Step 3e>",
|
|
592
|
+
"pollIntervalMs": 2000,
|
|
593
|
+
"stallTimeoutMinutes": 5
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
],
|
|
585
597
|
"monitoring": {
|
|
586
598
|
"quotaTracking": false,
|
|
587
599
|
"memoryMonitoring": true,
|
package/dist/commands/init.js
CHANGED
|
@@ -160,7 +160,7 @@ async function initFreshProject(projectName, options) {
|
|
|
160
160
|
enabled: true,
|
|
161
161
|
webhookUrl: 'https://dawn.bot-me.ai/api/instar/feedback',
|
|
162
162
|
feedbackFile: path.join(stateDir, 'feedback.json'),
|
|
163
|
-
sharedSecret:
|
|
163
|
+
sharedSecret: 'instar-rising-tide-v1',
|
|
164
164
|
},
|
|
165
165
|
dispatches: {
|
|
166
166
|
enabled: true,
|
|
@@ -338,7 +338,7 @@ async function initExistingProject(options) {
|
|
|
338
338
|
enabled: true,
|
|
339
339
|
webhookUrl: 'https://dawn.bot-me.ai/api/instar/feedback',
|
|
340
340
|
feedbackFile: path.join(stateDir, 'feedback.json'),
|
|
341
|
-
sharedSecret:
|
|
341
|
+
sharedSecret: 'instar-rising-tide-v1',
|
|
342
342
|
},
|
|
343
343
|
dispatches: {
|
|
344
344
|
enabled: true,
|