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,5 @@
|
||||
Use the `/fileModels` directory to create separate `.ts` files to represent underlying files used by you package. The exported `FileModels` afford a convenient and type safe way to read amd write to the underlying files, as well as react to changes.
|
||||
|
||||
Supported file formats are `.yaml`, `.toml`, `.json`, `.env`, `.ini`, and `.txt`. For alternative file formats, you can use the `raw` method and provide custom serialization and parser functions.
|
||||
|
||||
It is common for packages to use a `store.json.ts` FileModel as a convenient place to persist arbitrary data that are needed by the package but are _not_ persisted by the upstream service. For example, you might use store.json to persist startup flags or login credentials.
|
||||
@@ -0,0 +1,15 @@
|
||||
import { FileHelper, z } from '@start9labs/start-sdk'
|
||||
import { sdk } from '../sdk'
|
||||
|
||||
// Package-owned settings file on the main volume. The upstream proxy is
|
||||
// configured purely through environment variables; main.ts bridges these
|
||||
// values into the daemon's env.
|
||||
const shape = z.object({
|
||||
apiKey: z.string().optional().catch(undefined),
|
||||
debug: z.boolean().catch(false),
|
||||
})
|
||||
|
||||
export const configJson = FileHelper.json(
|
||||
{ base: sdk.volumes.main, subpath: 'config.json' },
|
||||
shape,
|
||||
)
|
||||
Reference in new issue
Block a user