@misterhuydo/sentinel 1.0.23 → 1.0.24
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/.cairn/session.json +2 -2
- package/lib/init.js +3 -4
- package/package.json +1 -1
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-03-21T19:
|
|
3
|
-
"checkpoint_at": "2026-03-21T19:
|
|
2
|
+
"message": "Auto-checkpoint at 2026-03-21T19:37:13.807Z",
|
|
3
|
+
"checkpoint_at": "2026-03-21T19:37:13.808Z",
|
|
4
4
|
"active_files": [],
|
|
5
5
|
"notes": [],
|
|
6
6
|
"mtime_snapshot": {}
|
package/lib/init.js
CHANGED
|
@@ -96,6 +96,9 @@ module.exports = async function init() {
|
|
|
96
96
|
], { onCancel: () => process.exit(0) });
|
|
97
97
|
|
|
98
98
|
const { workspace, authMode, anthropicKey, example, systemd, smtpUser, smtpPassword, smtpHost, setupSlack, slackBotToken, slackAppToken } = answers;
|
|
99
|
+
const effectiveSmtpPassword = smtpPassword || existing.SMTP_PASSWORD || '';
|
|
100
|
+
const effectiveSlackBotToken = slackBotToken || existing.SLACK_BOT_TOKEN || '';
|
|
101
|
+
const effectiveSlackAppToken = slackAppToken || existing.SLACK_APP_TOKEN || '';
|
|
99
102
|
const codeDir = path.join(workspace, 'code');
|
|
100
103
|
|
|
101
104
|
// ── Python ──────────────────────────────────────────────────────────────────
|
|
@@ -172,10 +175,6 @@ module.exports = async function init() {
|
|
|
172
175
|
|
|
173
176
|
// ── Workspace start/stop scripts ─────────────────────────────────────────────
|
|
174
177
|
step('Generating scripts…');
|
|
175
|
-
// If user left password blank (pressed Enter to keep), fall back to existing
|
|
176
|
-
const effectiveSmtpPassword = smtpPassword || existing.SMTP_PASSWORD || '';
|
|
177
|
-
const effectiveSlackBotToken = slackBotToken || existing.SLACK_BOT_TOKEN || '';
|
|
178
|
-
const effectiveSlackAppToken = slackAppToken || existing.SLACK_APP_TOKEN || '';
|
|
179
178
|
generateWorkspaceScripts(workspace, { host: smtpHost, user: smtpUser, password: effectiveSmtpPassword }, { botToken: effectiveSlackBotToken, appToken: effectiveSlackAppToken });
|
|
180
179
|
ok(`${workspace}/startAll.sh`);
|
|
181
180
|
ok(`${workspace}/stopAll.sh`);
|