ReviewOS

also looking at this

stacks/analyticshq

fix(dashboard): stop remote commands importing an absent config module

#59
Merged glennmichael123 wants to merge fix/analyticshq-remote-and-subscribers into main
5 files +114 -0
app/Actions/Dashboard/Remote/RemoteCommandRunAction.tsadded+16-0
Changes to app/Actions/Dashboard/Remote/RemoteCommandRunAction.ts
@@ -0,0 +1,16 @@
1import { Action } from '@stacksjs/actions'
2import { response } from '@stacksjs/router'
3
4/**
5 * Fail closed because AnalyticsHQ has no remote-command registry or gate.
6 */
7export default new Action({
8 name: 'RemoteCommandRunAction',
9 description: 'Reject remote commands because AnalyticsHQ does not configure them',
10 method: 'POST',
11 async handle() {
12 return response.json({
13 message: 'Remote commands are not configured for AnalyticsHQ.',
14 }, 403)
15 },
16})