@av-pi-studio/server 0.0.105 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ From the monorepo root:
|
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
71
|
npm install # install all workspace deps
|
|
72
|
-
npm run build:server # build this package (compiles protocol
|
|
72
|
+
npm run build:server # build this package (compiles protocol first via project refs)
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
Or build everything: `npm run build`.
|
|
@@ -214,6 +214,10 @@ export function createPiEventMapper() {
|
|
|
214
214
|
case "error":
|
|
215
215
|
return { kind: "error", message: str(event.message ?? event.error) };
|
|
216
216
|
// ── Ignored (handled elsewhere / not surfaced as timeline events) ──
|
|
217
|
+
// `auto_retry_end` left Pi's *declared* session-event union in 0.85.0 but the shipped
|
|
218
|
+
// bundle still emits it, so the case stays. This switch is on a loose `string`, not Pi's
|
|
219
|
+
// union, so a `.d.ts` removal cannot break the build — verify against
|
|
220
|
+
// `dist/bundle/chunks/` before deleting a case here.
|
|
217
221
|
case "turn_start":
|
|
218
222
|
case "turn_end":
|
|
219
223
|
case "message_start":
|
|
@@ -28,7 +28,7 @@ const PI_CLI_FALLBACKS = [join("dist", "bundle", "cli.js"), join("dist", "cli.js
|
|
|
28
28
|
*
|
|
29
29
|
* Reading the declared `bin` rather than hardcoding a path is deliberate: Pi moved it from
|
|
30
30
|
* `dist/cli.js` to `dist/bundle/cli.js` in 0.84.4, and the dependency range intentionally accepts
|
|
31
|
-
* future minor releases (`>=0.
|
|
31
|
+
* future minor releases (`>=0.85.1 <1.0.0`), so a relocation must not silently fall back to a
|
|
32
32
|
* global `pi` — or to an entry upstream has stopped shipping.
|
|
33
33
|
*/
|
|
34
34
|
function resolvePiCliInPackage(root) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SERVER_PACKAGE: "@av-pi-studio/server";
|
|
2
|
-
/** Proves the server consumes protocol
|
|
3
|
-
export declare const SERVER_DEPS: readonly ["@av-pi-studio/protocol"
|
|
2
|
+
/** Proves the server consumes protocol's emitted declarations. */
|
|
3
|
+
export declare const SERVER_DEPS: readonly ["@av-pi-studio/protocol"];
|
|
4
4
|
export * from "./persistence/index.js";
|
|
5
5
|
export * from "./config/index.js";
|
|
6
6
|
export * from "./daemon/index.js";
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// @av-pi-studio/server — the daemon: WS API, agent supervision, stores, relay.
|
|
2
|
-
import { HIGHLIGHT_PACKAGE } from "@av-pi-studio/highlight";
|
|
3
2
|
import { PROTOCOL_PACKAGE } from "@av-pi-studio/protocol";
|
|
4
3
|
export const SERVER_PACKAGE = "@av-pi-studio/server";
|
|
5
|
-
/** Proves the server consumes protocol
|
|
6
|
-
export const SERVER_DEPS = [PROTOCOL_PACKAGE
|
|
4
|
+
/** Proves the server consumes protocol's emitted declarations. */
|
|
5
|
+
export const SERVER_DEPS = [PROTOCOL_PACKAGE];
|
|
7
6
|
// File-based JSON persistence (atomic store primitive + entity stores).
|
|
8
7
|
export * from "./persistence/index.js";
|
|
9
8
|
// Configuration (daemon config.json + per-project pi-studio.json).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@av-pi-studio/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.106",
|
|
4
4
|
"bin": {
|
|
5
5
|
"pi-studio-daemon": "dist/daemon/main.js"
|
|
6
6
|
},
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@av-pi-studio/
|
|
28
|
-
"@av-pi-studio/
|
|
29
|
-
"@
|
|
30
|
-
"@earendil-works/pi-coding-agent": "^0.84.4",
|
|
27
|
+
"@av-pi-studio/protocol": "^0.0.106",
|
|
28
|
+
"@av-pi-studio/relay": "^0.0.106",
|
|
29
|
+
"@earendil-works/pi-coding-agent": ">=0.85.1 <1.0.0",
|
|
31
30
|
"@xterm/addon-serialize": "^0.14.0",
|
|
32
31
|
"@xterm/headless": "^6.0.0",
|
|
33
32
|
"bcryptjs": "^3.0.3",
|