my-durable 0.0.115 → 0.0.117
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/apps/dpi-backend/src/backup.ts +41 -0
- package/apps/dpi-backend/src/diagnostics.ts +12 -1
- package/apps/dpi-backend/src/git.ts +92 -35
- package/apps/dpi-backend/src/store.ts +46 -6
- package/apps/dpi-backend/src/vitals.ts +6 -0
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-5H8W3a_-.js +83 -0
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/{index-lji31QeB.css → index-DD66rPUN.css} +1 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/index.html +2 -2
- package/apps/dpi-playground/apps/dpi-playground-fe/src/client/composables.ts +29 -2
- package/apps/dpi-playground/apps/dpi-playground-fe/src/client/export-bundle.ts +14 -0
- package/apps/dpi-playground/apps/dpi-playground-fe/src/client/markdown.ts +7 -2
- package/apps/dpi-playground/apps/dpi-playground-fe/src/components/GitPanel.vue +11 -8
- package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TunnelStatusBar.vue +5 -1
- package/apps/dpi-playground/apps/dpi-playground-hub/src/main.ts +12 -2
- package/apps/dpi-playground/apps/dpi-playground-hub/src/mux.ts +153 -17
- package/apps/dpi-playground/apps/dpi-playground-hub/src/tunnel-transport.ts +38 -11
- package/apps/dpi-sdk/src/client.ts +53 -2
- package/apps/dpi-sdk/src/node/ops.ts +6 -2
- package/apps/dpi-sdk/src/node/private-file.ts +34 -1
- package/apps/dpi-sdk/src/node/registry.ts +5 -1
- package/apps/dpi-sdk/src/protocol/limits.ts +21 -0
- package/docs/verification.md +18 -0
- package/package.json +1 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-jjYABCI4.js +0 -83
package/docs/verification.md
CHANGED
|
@@ -90,6 +90,24 @@ and hashes of uncommitted source, not just a commit name.
|
|
|
90
90
|
- Soak/capacity, real-model/provider acceptance and untested platforms remain
|
|
91
91
|
separate work. Historical records do not become current acceptance results.
|
|
92
92
|
|
|
93
|
+
## Effective SSE bounds (run-11 h1-2)
|
|
94
|
+
|
|
95
|
+
The hub's streaming memory is bounded by one layered admission chain — every
|
|
96
|
+
layer must pass before bytes reach the socket. The canon numbers live in
|
|
97
|
+
`apps/dpi-sdk/src/protocol/limits.ts`:
|
|
98
|
+
|
|
99
|
+
| Layer | Constant | Bound |
|
|
100
|
+
|---|---|---|
|
|
101
|
+
| Per event (transport gate) | `LOGICAL_MESSAGE_MAX_BYTES` | 16 MiB — an SSE frame over it is faulted, never queued |
|
|
102
|
+
| Queued, per writer | `CONNECTION_BUFFER_BUDGET_BYTES` | 32 MiB local ByteBudget per paced SSE writer; each device connection additionally gets 32 MiB for reassembly + outbound queue |
|
|
103
|
+
| Per socket | `SSE_HUB_VIEWER_BYTES` | 4 MB output cap before a slow viewer is ended (not an event-size limit) |
|
|
104
|
+
| Hub-wide shared | `HUB_BUFFER_BUDGET_BYTES` | 64 MiB covering ALL tab writers plus the device reassembly/relay queues |
|
|
105
|
+
|
|
106
|
+
The per-writer local budget and the per-socket cap fire first (one slow tab is
|
|
107
|
+
isolated); the shared 64 MiB budget bounds the aggregate across tabs and
|
|
108
|
+
devices. This section documents existing behavior (run-11 h1-2); it changed
|
|
109
|
+
no constant and no code path.
|
|
110
|
+
|
|
93
111
|
## Memory units
|
|
94
112
|
|
|
95
113
|
The M1 contract is **150 MB = 150,000,000 bytes**, not 150 MiB.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my-durable",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.117",
|
|
4
4
|
"description": "Durable Pi — the durable agent network: hub web UI, device backend daemon, TUI admin and the shared SDK, packaged as one runnable monorepo install",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|