PPQ Private Mode StartOS package
Wraps the ppq-private-mode-proxy (git submodule, built from its own Dockerfile) as a StartOS 0.4.0 service: - Critical first-run task + masked action to set the PPQ.AI API key - OpenAI-/Anthropic-compatible API interface on port 8787 - Health check reflects enclave attestation (proxy binds only after attestation succeeds) - x86_64 + aarch64, config backed up via the main volume Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
commit
b6b2589c55
40 files changed
+2532
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { sdk } from '../sdk'
|
||||
import { configJson } from '../fileModels/config.json'
|
||||
import { configureApiKey } from '../actions/configureApiKey'
|
||||
import { i18n } from '../i18n'
|
||||
|
||||
// The proxy cannot start without a PPQ.AI API key, so a critical task blocks
|
||||
// startup until the user provides one.
|
||||
export const taskConfigureApiKey = sdk.setupOnInit(async (effects, kind) => {
|
||||
const apiKey = await configJson
|
||||
.read((c) => c.apiKey)
|
||||
.once()
|
||||
.catch(() => undefined)
|
||||
|
||||
if (!apiKey) {
|
||||
await sdk.action.createOwnTask(effects, configureApiKey, 'critical', {
|
||||
reason: i18n('Add your PPQ.AI API key to start the proxy'),
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user