forked from unom/punktfunk
The v0.31.3 CHANGELOG recorded this cut as a decision left open, on the same reasoning v0.31.0 used for 0.1.5: a plugin resolves `@punktfunk/host` from the registry, so types sitting in `sdk/` reach nobody until a version carries them. #374 added `PATCH /clients/{fingerprint}`, `RenameClient` and `PairedClient.label` to the management API and regenerated the client for them — so without this cut the route exists on every 0.31.3 host and no plugin can call it in a typed way. ONE FILE is the whole diff since sdk-v0.1.5: `sdk/src/gen/punktfunk.ts`. It is larger than the feature because regenerating it from the UNCHANGED committed spec already produced a ~700-line diff — the checked-in copy had drifted from its own pinned generator, and nothing in CI regenerates or verifies it (unlike api/openapi.json and include/punktfunk_core.h, which are both gated). #374 landed the clean regeneration rather than hand-patching generated code, and this cut publishes it. `SDK_VERSION` moves with `package.json`. It is a hand-maintained constant — the build sets `rootDir: "src"` so it cannot import the manifest, and the runner ships as one bundled `runner-cli.js` with no manifest beside it — and the runner compares it against the SDK installed in the plugins tree to decide whether to reinstall. Shipping 0.1.6 with the constant still reading 0.1.5 would publish the types and then never deliver them. `version.test.ts` gates exactly that, which is also what sdk-publish.yml's "Tag matches package version" step re-checks against the tag. GATES, all four steps sdk-publish.yml runs, in order and locally: `bun install --frozen-lockfile --ignore-scripts` clean, `bun run typecheck` clean, `bun test` 83 pass / 0 fail / 191 expect() calls across 12 files (the same 83 the 0.1.5 cut reported), `bun run build` clean. Nothing but the two version sites and the two release documents is touched — no dist/ or lockfile churn reached the tree. `@punktfunk/plugin-kit` is deliberately NOT re-cut: nothing under plugin-kit/ has moved since 0.4.4, which stays the registry's `latest`. Tag `sdk-v0.1.6` on the merge commit, alongside `v0.31.3`. The two version independently by design — sdk-publish.yml triggers on `sdk-v*` and the app's `v*` tags never republish the SDK — so the shared commit is a convenience, not a coupling.
72 lines
1.7 KiB
JSON
72 lines
1.7 KiB
JSON
{
|
|
"name": "@punktfunk/host",
|
|
"version": "0.1.6",
|
|
"description": "TypeScript SDK for the punktfunk streaming host: typed management-API client + lifecycle event stream, built on Effect.",
|
|
"type": "module",
|
|
"license": "MIT OR Apache-2.0",
|
|
"homepage": "https://git.unom.io/unom/punktfunk/src/branch/main/sdk",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.unom.io/unom/punktfunk.git",
|
|
"directory": "sdk"
|
|
},
|
|
"bugs": {
|
|
"url": "https://git.unom.io/unom/punktfunk/issues"
|
|
},
|
|
"keywords": [
|
|
"punktfunk",
|
|
"game-streaming",
|
|
"automation",
|
|
"sdk",
|
|
"effect"
|
|
],
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./effect": {
|
|
"types": "./dist/effect.d.ts",
|
|
"default": "./dist/effect.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"punktfunk-scripting": "./dist/runner-cli.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"registry": "https://git.unom.io/api/packages/unom/npm/"
|
|
},
|
|
"scripts": {
|
|
"prepare": "if command -v bun2nix >/dev/null 2>&1; then bun2nix -o bun.nix; fi",
|
|
"gen": "openapigen --spec ../api/openapi.json --name Punktfunk --format httpclient > src/gen/punktfunk.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"test": "bun test",
|
|
"runner": "bun src/runner-cli.ts",
|
|
"prepublishOnly": "bun run build"
|
|
},
|
|
"peerDependencies": {
|
|
"effect": "^4.0.0-beta.98"
|
|
},
|
|
"devDependencies": {
|
|
"effect": "^4.0.0-beta.98",
|
|
"@effect/openapi-generator": "4.0.0-beta.98",
|
|
"@effect/platform-node": "4.0.0-beta.98",
|
|
"@types/bun": "^1.3.0",
|
|
"bun2nix": "2.1.2",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"optionalDependencies": {
|
|
"undici": "^7.0.0"
|
|
},
|
|
"overrides": {
|
|
"undici": "^8.9.0"
|
|
}
|
|
}
|