create-loopengine 0.1.64 → 0.1.66
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/package.json
CHANGED
|
@@ -124,6 +124,7 @@ import {
|
|
|
124
124
|
listAgentPending,
|
|
125
125
|
listAgentSlackChannels,
|
|
126
126
|
slackCredentialsFor,
|
|
127
|
+
slackConversationsOn,
|
|
127
128
|
openSlackAnswerModal,
|
|
128
129
|
parseSlackInteraction,
|
|
129
130
|
replyInSlack,
|
|
@@ -2758,7 +2759,7 @@ async function handleSlackEvents(req: IncomingMessage, res: ServerResponse, agen
|
|
|
2758
2759
|
}
|
|
2759
2760
|
// Slack wants an answer within three seconds; the reply is posted after.
|
|
2760
2761
|
res.writeHead(200).end()
|
|
2761
|
-
if (event.type !== 'message' || !firstSighting(event)) return
|
|
2762
|
+
if (event.type !== 'message' || !firstSighting(event) || !slackConversationsOn(entry.config)) return
|
|
2762
2763
|
const environment = process.env.LOOPENGINE_ENV ?? 'production'
|
|
2763
2764
|
await handleInboundMessage(event, {
|
|
2764
2765
|
agentName,
|
|
@@ -3097,7 +3098,11 @@ const server = createServer(async (req, res) => {
|
|
|
3097
3098
|
// The Settings section's Upgrade button (web/upgrade-admin.ts).
|
|
3098
3099
|
if (req.method === 'GET' && pathname === '/config/upgrade') {
|
|
3099
3100
|
res.writeHead(200, { 'content-type': 'application/json', 'cache-control': 'no-store' }).end(
|
|
3100
|
-
JSON.stringify({
|
|
3101
|
+
JSON.stringify({
|
|
3102
|
+
...(await describeUpgrade(undefined, { refresh: new URL(req.url ?? '/', 'http://localhost').searchParams.get('refresh') === '1' })),
|
|
3103
|
+
canUpgrade: secretsProtected,
|
|
3104
|
+
restartsItself: exitOnCodeChange,
|
|
3105
|
+
}),
|
|
3101
3106
|
)
|
|
3102
3107
|
return
|
|
3103
3108
|
}
|