- pin @start9labs/start-sdk 3.0.3, regenerate the lock, drop the toolchain devDependencies and scripts the SDK supplies, point .prettierrc at the SDK's shared config - file models use z.looseObject - empty sdk.Dependencies builder passed to buildManifest and setupInit; drop the manifest dependencies field - sync workflows to the package template on main (ready_for_review, pr-retarget.yml) - Verbose Logging's description says what it logs - resync AGENTS.md boilerplate and trim its repo notes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
581 B
TypeScript
16 lines
581 B
TypeScript
import { FileHelper, z } from '@start9labs/start-sdk'
|
|
import { sdk } from '../sdk'
|
|
|
|
// Upstream's own persistent config, at <PPQ_DATA_DIR>/config.json. The proxy
|
|
// loads the key from here at startup and rewrites the whole file when one is
|
|
// saved from the status page, so this shape must stay exactly upstream's and
|
|
// nothing else may live in it — see fileModels/store.json.ts.
|
|
const shape = z.looseObject({
|
|
apiKey: z.string().optional().catch(undefined),
|
|
})
|
|
|
|
export const configJson = FileHelper.json(
|
|
{ base: sdk.volumes.main, subpath: 'proxy/config.json' },
|
|
shape,
|
|
)
|