ReviewOS

also looking at this

stacks/drone

feat: own runtime firmware candidates

#49
Merged chris wants to merge codex/runtime-candidate-ownership into main
24 files +1245 -92
app/Commands/UpdatesCandidates.tsadded+14-0
Changes to app/Commands/UpdatesCandidates.ts
@@ -0,0 +1,14 @@
1import { defineCommand } from '@stacksjs/cli'
2import { printAsync } from '../../resources/functions/cli/output'
3import { storeCommandFailure, storeCommandReference, storeReferenceFlags } from '../../resources/functions/drone/updates/command'
4import { inspectRuntimeFirmwareCandidates } from '../../resources/functions/drone/updates/store'
5
6export default defineCommand({
7 name: 'updates:candidates <directory>',
8 description: 'Inspect owned candidate identity and recorded-byte integrity without granting selection authority',
9 options: storeReferenceFlags,
10 async handle(options, directory) {
11 try { await printAsync(JSON.stringify(await inspectRuntimeFirmwareCandidates(storeCommandReference(options, directory)))) }
12 catch { await storeCommandFailure() }
13 },
14})