@mostra/protocol 0.0.0-stage → 0.1.0
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/LICENSE +202 -0
- package/README.md +38 -2
- package/dist/actions.d.ts +273 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +154 -0
- package/dist/actions.js.map +1 -0
- package/dist/artifact.d.ts +113 -0
- package/dist/artifact.d.ts.map +1 -0
- package/dist/artifact.js +79 -0
- package/dist/artifact.js.map +1 -0
- package/dist/bridge.d.ts +295 -0
- package/dist/bridge.d.ts.map +1 -0
- package/dist/bridge.js +343 -0
- package/dist/bridge.js.map +1 -0
- package/dist/browser.d.ts +195 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +156 -0
- package/dist/browser.js.map +1 -0
- package/dist/bundle.d.ts +155 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/bundle.js +130 -0
- package/dist/bundle.js.map +1 -0
- package/dist/canonical.d.ts +23 -0
- package/dist/canonical.d.ts.map +1 -0
- package/dist/canonical.js +45 -0
- package/dist/canonical.js.map +1 -0
- package/dist/capability.d.ts +38 -0
- package/dist/capability.d.ts.map +1 -0
- package/dist/capability.js +61 -0
- package/dist/capability.js.map +1 -0
- package/dist/diagnostics/codes/a11y.d.ts +8 -0
- package/dist/diagnostics/codes/a11y.d.ts.map +1 -0
- package/dist/diagnostics/codes/a11y.js +30 -0
- package/dist/diagnostics/codes/a11y.js.map +1 -0
- package/dist/diagnostics/codes/action.d.ts +8 -0
- package/dist/diagnostics/codes/action.d.ts.map +1 -0
- package/dist/diagnostics/codes/action.js +110 -0
- package/dist/diagnostics/codes/action.js.map +1 -0
- package/dist/diagnostics/codes/artifact.d.ts +8 -0
- package/dist/diagnostics/codes/artifact.d.ts.map +1 -0
- package/dist/diagnostics/codes/artifact.js +121 -0
- package/dist/diagnostics/codes/artifact.js.map +1 -0
- package/dist/diagnostics/codes/build.d.ts +8 -0
- package/dist/diagnostics/codes/build.d.ts.map +1 -0
- package/dist/diagnostics/codes/build.js +55 -0
- package/dist/diagnostics/codes/build.js.map +1 -0
- package/dist/diagnostics/codes/cli.d.ts +8 -0
- package/dist/diagnostics/codes/cli.d.ts.map +1 -0
- package/dist/diagnostics/codes/cli.js +44 -0
- package/dist/diagnostics/codes/cli.js.map +1 -0
- package/dist/diagnostics/codes/console.d.ts +8 -0
- package/dist/diagnostics/codes/console.d.ts.map +1 -0
- package/dist/diagnostics/codes/console.js +30 -0
- package/dist/diagnostics/codes/console.js.map +1 -0
- package/dist/diagnostics/codes/dep.d.ts +8 -0
- package/dist/diagnostics/codes/dep.d.ts.map +1 -0
- package/dist/diagnostics/codes/dep.js +88 -0
- package/dist/diagnostics/codes/dep.js.map +1 -0
- package/dist/diagnostics/codes/env.d.ts +8 -0
- package/dist/diagnostics/codes/env.d.ts.map +1 -0
- package/dist/diagnostics/codes/env.js +132 -0
- package/dist/diagnostics/codes/env.js.map +1 -0
- package/dist/diagnostics/codes/field.d.ts +8 -0
- package/dist/diagnostics/codes/field.d.ts.map +1 -0
- package/dist/diagnostics/codes/field.js +99 -0
- package/dist/diagnostics/codes/field.js.map +1 -0
- package/dist/diagnostics/codes/home.d.ts +8 -0
- package/dist/diagnostics/codes/home.d.ts.map +1 -0
- package/dist/diagnostics/codes/home.js +132 -0
- package/dist/diagnostics/codes/home.js.map +1 -0
- package/dist/diagnostics/codes/host.d.ts +8 -0
- package/dist/diagnostics/codes/host.d.ts.map +1 -0
- package/dist/diagnostics/codes/host.js +176 -0
- package/dist/diagnostics/codes/host.js.map +1 -0
- package/dist/diagnostics/codes/hygiene.d.ts +8 -0
- package/dist/diagnostics/codes/hygiene.d.ts.map +1 -0
- package/dist/diagnostics/codes/hygiene.js +154 -0
- package/dist/diagnostics/codes/hygiene.js.map +1 -0
- package/dist/diagnostics/codes/index.d.ts +51 -0
- package/dist/diagnostics/codes/index.d.ts.map +1 -0
- package/dist/diagnostics/codes/index.js +72 -0
- package/dist/diagnostics/codes/index.js.map +1 -0
- package/dist/diagnostics/codes/live.d.ts +8 -0
- package/dist/diagnostics/codes/live.d.ts.map +1 -0
- package/dist/diagnostics/codes/live.js +30 -0
- package/dist/diagnostics/codes/live.js.map +1 -0
- package/dist/diagnostics/codes/manifest.d.ts +8 -0
- package/dist/diagnostics/codes/manifest.d.ts.map +1 -0
- package/dist/diagnostics/codes/manifest.js +44 -0
- package/dist/diagnostics/codes/manifest.js.map +1 -0
- package/dist/diagnostics/codes/network.d.ts +8 -0
- package/dist/diagnostics/codes/network.d.ts.map +1 -0
- package/dist/diagnostics/codes/network.js +30 -0
- package/dist/diagnostics/codes/network.js.map +1 -0
- package/dist/diagnostics/codes/platform.d.ts +8 -0
- package/dist/diagnostics/codes/platform.d.ts.map +1 -0
- package/dist/diagnostics/codes/platform.js +18 -0
- package/dist/diagnostics/codes/platform.js.map +1 -0
- package/dist/diagnostics/codes/publish.d.ts +8 -0
- package/dist/diagnostics/codes/publish.d.ts.map +1 -0
- package/dist/diagnostics/codes/publish.js +44 -0
- package/dist/diagnostics/codes/publish.js.map +1 -0
- package/dist/diagnostics/codes/regression.d.ts +8 -0
- package/dist/diagnostics/codes/regression.d.ts.map +1 -0
- package/dist/diagnostics/codes/regression.js +77 -0
- package/dist/diagnostics/codes/regression.js.map +1 -0
- package/dist/diagnostics/codes/runtime.d.ts +8 -0
- package/dist/diagnostics/codes/runtime.d.ts.map +1 -0
- package/dist/diagnostics/codes/runtime.js +66 -0
- package/dist/diagnostics/codes/runtime.js.map +1 -0
- package/dist/diagnostics/codes/secret.d.ts +8 -0
- package/dist/diagnostics/codes/secret.d.ts.map +1 -0
- package/dist/diagnostics/codes/secret.js +18 -0
- package/dist/diagnostics/codes/secret.js.map +1 -0
- package/dist/diagnostics/codes/smoke.d.ts +8 -0
- package/dist/diagnostics/codes/smoke.d.ts.map +1 -0
- package/dist/diagnostics/codes/smoke.js +30 -0
- package/dist/diagnostics/codes/smoke.js.map +1 -0
- package/dist/diagnostics/codes/submit.d.ts +8 -0
- package/dist/diagnostics/codes/submit.d.ts.map +1 -0
- package/dist/diagnostics/codes/submit.js +99 -0
- package/dist/diagnostics/codes/submit.js.map +1 -0
- package/dist/diagnostics/codes/target.d.ts +8 -0
- package/dist/diagnostics/codes/target.d.ts.map +1 -0
- package/dist/diagnostics/codes/target.js +18 -0
- package/dist/diagnostics/codes/target.js.map +1 -0
- package/dist/diagnostics/codes/type.d.ts +8 -0
- package/dist/diagnostics/codes/type.d.ts.map +1 -0
- package/dist/diagnostics/codes/type.js +30 -0
- package/dist/diagnostics/codes/type.js.map +1 -0
- package/dist/diagnostics/codes/verify.d.ts +8 -0
- package/dist/diagnostics/codes/verify.d.ts.map +1 -0
- package/dist/diagnostics/codes/verify.js +99 -0
- package/dist/diagnostics/codes/verify.js.map +1 -0
- package/dist/diagnostics/diagnostic.d.ts +79 -0
- package/dist/diagnostics/diagnostic.d.ts.map +1 -0
- package/dist/diagnostics/diagnostic.js +131 -0
- package/dist/diagnostics/diagnostic.js.map +1 -0
- package/dist/diagnostics/spec.d.ts +49 -0
- package/dist/diagnostics/spec.d.ts.map +1 -0
- package/dist/diagnostics/spec.js +31 -0
- package/dist/diagnostics/spec.js.map +1 -0
- package/dist/hygiene.d.ts +66 -0
- package/dist/hygiene.d.ts.map +1 -0
- package/dist/hygiene.js +134 -0
- package/dist/hygiene.js.map +1 -0
- package/dist/ids.d.ts +119 -0
- package/dist/ids.d.ts.map +1 -0
- package/dist/ids.js +135 -0
- package/dist/ids.js.map +1 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.js +86 -0
- package/dist/interaction.d.ts +391 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +306 -0
- package/dist/interaction.js.map +1 -0
- package/dist/manifest.d.ts +97 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +101 -0
- package/dist/manifest.js.map +1 -0
- package/dist/method.d.ts +26 -0
- package/dist/method.d.ts.map +1 -0
- package/dist/method.js +10 -0
- package/dist/method.js.map +1 -0
- package/dist/methods/artifact/create.d.ts +29 -0
- package/dist/methods/artifact/create.d.ts.map +1 -0
- package/dist/methods/artifact/create.js +31 -0
- package/dist/methods/artifact/create.js.map +1 -0
- package/dist/methods/artifact/get.d.ts +17 -0
- package/dist/methods/artifact/get.d.ts.map +1 -0
- package/dist/methods/artifact/get.js +21 -0
- package/dist/methods/artifact/get.js.map +1 -0
- package/dist/methods/artifact/list.d.ts +22 -0
- package/dist/methods/artifact/list.d.ts.map +1 -0
- package/dist/methods/artifact/list.js +19 -0
- package/dist/methods/artifact/list.js.map +1 -0
- package/dist/methods/artifact/publish.d.ts +28 -0
- package/dist/methods/artifact/publish.d.ts.map +1 -0
- package/dist/methods/artifact/publish.js +28 -0
- package/dist/methods/artifact/publish.js.map +1 -0
- package/dist/methods/artifact/verify.d.ts +29 -0
- package/dist/methods/artifact/verify.d.ts.map +1 -0
- package/dist/methods/artifact/verify.js +27 -0
- package/dist/methods/artifact/verify.js.map +1 -0
- package/dist/methods/deps/add.d.ts +43 -0
- package/dist/methods/deps/add.d.ts.map +1 -0
- package/dist/methods/deps/add.js +40 -0
- package/dist/methods/deps/add.js.map +1 -0
- package/dist/methods/dev/start.d.ts +52 -0
- package/dist/methods/dev/start.d.ts.map +1 -0
- package/dist/methods/dev/start.js +56 -0
- package/dist/methods/dev/start.js.map +1 -0
- package/dist/methods/dev/stop.d.ts +16 -0
- package/dist/methods/dev/stop.d.ts.map +1 -0
- package/dist/methods/dev/stop.js +21 -0
- package/dist/methods/dev/stop.js.map +1 -0
- package/dist/methods/events/ack.d.ts +20 -0
- package/dist/methods/events/ack.d.ts.map +1 -0
- package/dist/methods/events/ack.js +26 -0
- package/dist/methods/events/ack.js.map +1 -0
- package/dist/methods/events/read.d.ts +40 -0
- package/dist/methods/events/read.d.ts.map +1 -0
- package/dist/methods/events/read.js +35 -0
- package/dist/methods/events/read.js.map +1 -0
- package/dist/methods/events/subscribe.d.ts +54 -0
- package/dist/methods/events/subscribe.d.ts.map +1 -0
- package/dist/methods/events/subscribe.js +44 -0
- package/dist/methods/events/subscribe.js.map +1 -0
- package/dist/methods/events/unsubscribe.d.ts +16 -0
- package/dist/methods/events/unsubscribe.d.ts.map +1 -0
- package/dist/methods/events/unsubscribe.js +21 -0
- package/dist/methods/events/unsubscribe.js.map +1 -0
- package/dist/methods/gc/run.d.ts +76 -0
- package/dist/methods/gc/run.d.ts.map +1 -0
- package/dist/methods/gc/run.js +56 -0
- package/dist/methods/gc/run.js.map +1 -0
- package/dist/methods/index.d.ts +6 -0
- package/dist/methods/index.d.ts.map +1 -0
- package/dist/methods/index.js +78 -0
- package/dist/methods/index.js.map +1 -0
- package/dist/methods/instance/check.d.ts +30 -0
- package/dist/methods/instance/check.d.ts.map +1 -0
- package/dist/methods/instance/check.js +34 -0
- package/dist/methods/instance/check.js.map +1 -0
- package/dist/methods/instance/status.d.ts +102 -0
- package/dist/methods/instance/status.d.ts.map +1 -0
- package/dist/methods/instance/status.js +83 -0
- package/dist/methods/instance/status.js.map +1 -0
- package/dist/methods/live/push.d.ts +28 -0
- package/dist/methods/live/push.d.ts.map +1 -0
- package/dist/methods/live/push.js +35 -0
- package/dist/methods/live/push.js.map +1 -0
- package/dist/methods/mostra/initialize.d.ts +143 -0
- package/dist/methods/mostra/initialize.d.ts.map +1 -0
- package/dist/methods/mostra/initialize.js +97 -0
- package/dist/methods/mostra/initialize.js.map +1 -0
- package/dist/methods/mostra/shutdown.d.ts +14 -0
- package/dist/methods/mostra/shutdown.d.ts.map +1 -0
- package/dist/methods/mostra/shutdown.js +22 -0
- package/dist/methods/mostra/shutdown.js.map +1 -0
- package/dist/methods/port/drafts-mirror.d.ts +30 -0
- package/dist/methods/port/drafts-mirror.d.ts.map +1 -0
- package/dist/methods/port/drafts-mirror.js +33 -0
- package/dist/methods/port/drafts-mirror.js.map +1 -0
- package/dist/methods/port/secrets-get.d.ts +19 -0
- package/dist/methods/port/secrets-get.d.ts.map +1 -0
- package/dist/methods/port/secrets-get.js +31 -0
- package/dist/methods/port/secrets-get.js.map +1 -0
- package/dist/methods/port/submissions-deliver.d.ts +38 -0
- package/dist/methods/port/submissions-deliver.d.ts.map +1 -0
- package/dist/methods/port/submissions-deliver.js +38 -0
- package/dist/methods/port/submissions-deliver.js.map +1 -0
- package/dist/methods/port/trusted-controls-activated.d.ts +27 -0
- package/dist/methods/port/trusted-controls-activated.d.ts.map +1 -0
- package/dist/methods/port/trusted-controls-activated.js +33 -0
- package/dist/methods/port/trusted-controls-activated.js.map +1 -0
- package/dist/methods/port/trusted-controls-policy.d.ts +21 -0
- package/dist/methods/port/trusted-controls-policy.d.ts.map +1 -0
- package/dist/methods/port/trusted-controls-policy.js +27 -0
- package/dist/methods/port/trusted-controls-policy.js.map +1 -0
- package/dist/methods/results/get.d.ts +32 -0
- package/dist/methods/results/get.d.ts.map +1 -0
- package/dist/methods/results/get.js +36 -0
- package/dist/methods/results/get.js.map +1 -0
- package/dist/methods/secret/delete.d.ts +22 -0
- package/dist/methods/secret/delete.d.ts.map +1 -0
- package/dist/methods/secret/delete.js +32 -0
- package/dist/methods/secret/delete.js.map +1 -0
- package/dist/methods/secret/list.d.ts +21 -0
- package/dist/methods/secret/list.d.ts.map +1 -0
- package/dist/methods/secret/list.js +29 -0
- package/dist/methods/secret/list.js.map +1 -0
- package/dist/methods/secret/set.d.ts +37 -0
- package/dist/methods/secret/set.d.ts.map +1 -0
- package/dist/methods/secret/set.js +41 -0
- package/dist/methods/secret/set.js.map +1 -0
- package/dist/methods/state/get.d.ts +25 -0
- package/dist/methods/state/get.d.ts.map +1 -0
- package/dist/methods/state/get.js +29 -0
- package/dist/methods/state/get.js.map +1 -0
- package/dist/methods/state/patch.d.ts +32 -0
- package/dist/methods/state/patch.d.ts.map +1 -0
- package/dist/methods/state/patch.js +29 -0
- package/dist/methods/state/patch.js.map +1 -0
- package/dist/methods/view/default.d.ts +19 -0
- package/dist/methods/view/default.d.ts.map +1 -0
- package/dist/methods/view/default.js +23 -0
- package/dist/methods/view/default.js.map +1 -0
- package/dist/methods/view/launch.d.ts +27 -0
- package/dist/methods/view/launch.d.ts.map +1 -0
- package/dist/methods/view/launch.js +30 -0
- package/dist/methods/view/launch.js.map +1 -0
- package/dist/methods/view/revoke.d.ts +19 -0
- package/dist/methods/view/revoke.d.ts.map +1 -0
- package/dist/methods/view/revoke.js +26 -0
- package/dist/methods/view/revoke.js.map +1 -0
- package/dist/methods/view/rotate.d.ts +21 -0
- package/dist/methods/view/rotate.d.ts.map +1 -0
- package/dist/methods/view/rotate.js +27 -0
- package/dist/methods/view/rotate.js.map +1 -0
- package/dist/methods/view/url.d.ts +52 -0
- package/dist/methods/view/url.d.ts.map +1 -0
- package/dist/methods/view/url.js +43 -0
- package/dist/methods/view/url.js.map +1 -0
- package/dist/methods/wait/wait.d.ts +37 -0
- package/dist/methods/wait/wait.d.ts.map +1 -0
- package/dist/methods/wait/wait.js +39 -0
- package/dist/methods/wait/wait.js.map +1 -0
- package/dist/revision.d.ts +43 -0
- package/dist/revision.d.ts.map +1 -0
- package/dist/revision.js +69 -0
- package/dist/revision.js.map +1 -0
- package/dist/rpc/error.d.ts +47 -0
- package/dist/rpc/error.d.ts.map +1 -0
- package/dist/rpc/error.js +77 -0
- package/dist/rpc/error.js.map +1 -0
- package/dist/rpc/lines.d.ts +30 -0
- package/dist/rpc/lines.d.ts.map +1 -0
- package/dist/rpc/lines.js +63 -0
- package/dist/rpc/lines.js.map +1 -0
- package/dist/rpc/messages.d.ts +92 -0
- package/dist/rpc/messages.d.ts.map +1 -0
- package/dist/rpc/messages.js +133 -0
- package/dist/rpc/messages.js.map +1 -0
- package/dist/rpc/peer.d.ts +81 -0
- package/dist/rpc/peer.d.ts.map +1 -0
- package/dist/rpc/peer.js +208 -0
- package/dist/rpc/peer.js.map +1 -0
- package/dist/serializer.d.ts +178 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/serializer.js +929 -0
- package/dist/serializer.js.map +1 -0
- package/dist/verify.d.ts +254 -0
- package/dist/verify.d.ts.map +1 -0
- package/dist/verify.js +243 -0
- package/dist/verify.js.map +1 -0
- package/dist/view.d.ts +103 -0
- package/dist/view.d.ts.map +1 -0
- package/dist/view.js +110 -0
- package/dist/view.js.map +1 -0
- package/dist/wire-registry.js +11 -0
- package/dist/wire-registry.js.map +1 -0
- package/dist/worker.d.ts +249 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +158 -0
- package/dist/worker.js.map +1 -0
- package/package.json +114 -3
- package/schemas/protocol.draft-07.json +5120 -0
- package/schemas/protocol.schema.json +4964 -0
- package/src/actions.ts +418 -0
- package/src/artifact.ts +187 -0
- package/src/bridge.ts +618 -0
- package/src/browser.ts +374 -0
- package/src/bundle.ts +264 -0
- package/src/canonical.ts +49 -0
- package/src/capability.ts +92 -0
- package/src/diagnostics/codes/a11y.ts +41 -0
- package/src/diagnostics/codes/action.ts +125 -0
- package/src/diagnostics/codes/artifact.ts +137 -0
- package/src/diagnostics/codes/build.ts +65 -0
- package/src/diagnostics/codes/cli.ts +53 -0
- package/src/diagnostics/codes/console.ts +41 -0
- package/src/diagnostics/codes/dep.ts +101 -0
- package/src/diagnostics/codes/env.ts +149 -0
- package/src/diagnostics/codes/field.ts +113 -0
- package/src/diagnostics/codes/home.ts +150 -0
- package/src/diagnostics/codes/host.ts +197 -0
- package/src/diagnostics/codes/hygiene.ts +175 -0
- package/src/diagnostics/codes/index.ts +142 -0
- package/src/diagnostics/codes/live.ts +41 -0
- package/src/diagnostics/codes/manifest.ts +53 -0
- package/src/diagnostics/codes/network.ts +41 -0
- package/src/diagnostics/codes/platform.ts +30 -0
- package/src/diagnostics/codes/publish.ts +53 -0
- package/src/diagnostics/codes/regression.ts +89 -0
- package/src/diagnostics/codes/runtime.ts +77 -0
- package/src/diagnostics/codes/secret.ts +29 -0
- package/src/diagnostics/codes/smoke.ts +41 -0
- package/src/diagnostics/codes/submit.ts +113 -0
- package/src/diagnostics/codes/target.ts +29 -0
- package/src/diagnostics/codes/type.ts +41 -0
- package/src/diagnostics/codes/verify.ts +113 -0
- package/src/diagnostics/diagnostic.ts +240 -0
- package/src/diagnostics/spec.ts +90 -0
- package/src/hygiene.ts +224 -0
- package/src/ids.ts +279 -0
- package/src/index.ts +576 -0
- package/src/interaction.ts +728 -0
- package/src/manifest.ts +206 -0
- package/src/method.ts +42 -0
- package/src/methods/artifact/create.ts +56 -0
- package/src/methods/artifact/get.ts +30 -0
- package/src/methods/artifact/list.ts +42 -0
- package/src/methods/artifact/publish.ts +46 -0
- package/src/methods/artifact/verify.ts +46 -0
- package/src/methods/deps/add.ts +72 -0
- package/src/methods/dev/start.ts +84 -0
- package/src/methods/dev/stop.ts +32 -0
- package/src/methods/events/ack.ts +41 -0
- package/src/methods/events/read.ts +67 -0
- package/src/methods/events/subscribe.ts +91 -0
- package/src/methods/events/unsubscribe.ts +35 -0
- package/src/methods/gc/run.ts +125 -0
- package/src/methods/index.ts +81 -0
- package/src/methods/instance/check.ts +61 -0
- package/src/methods/instance/status.ts +172 -0
- package/src/methods/live/push.ts +54 -0
- package/src/methods/mostra/initialize.ts +249 -0
- package/src/methods/mostra/shutdown.ts +31 -0
- package/src/methods/port/drafts-mirror.ts +52 -0
- package/src/methods/port/secrets-get.ts +40 -0
- package/src/methods/port/submissions-deliver.ts +70 -0
- package/src/methods/port/trusted-controls-activated.ts +51 -0
- package/src/methods/port/trusted-controls-policy.ts +38 -0
- package/src/methods/results/get.ts +59 -0
- package/src/methods/secret/delete.ts +43 -0
- package/src/methods/secret/list.ts +40 -0
- package/src/methods/secret/set.ts +69 -0
- package/src/methods/state/get.ts +44 -0
- package/src/methods/state/patch.ts +51 -0
- package/src/methods/view/default.ts +32 -0
- package/src/methods/view/launch.ts +47 -0
- package/src/methods/view/revoke.ts +39 -0
- package/src/methods/view/rotate.ts +37 -0
- package/src/methods/view/url.ts +84 -0
- package/src/methods/wait/wait.ts +58 -0
- package/src/revision.ts +101 -0
- package/src/rpc/error.ts +107 -0
- package/src/rpc/lines.ts +70 -0
- package/src/rpc/messages.ts +188 -0
- package/src/rpc/peer.ts +341 -0
- package/src/serializer.ts +1217 -0
- package/src/timers.d.ts +8 -0
- package/src/verify.ts +458 -0
- package/src/view.ts +200 -0
- package/src/web-crypto.d.ts +9 -0
- package/src/web-platform.d.ts +35 -0
- package/src/wire-registry.ts +14 -0
- package/src/worker.ts +374 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live.d.ts","names":[],"sources":["../../../src/diagnostics/codes/live.ts"],"mappings":";;;qBAMa;;YAOD,6BAA6B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/live.ts
|
|
2
|
+
/** The codes of the LIVE area, in the order they were added. */
|
|
3
|
+
const liveDiagnosticCodes = ["MOSTRA_LIVE_TOO_LARGE", "MOSTRA_LIVE_SOURCE_FAILED"];
|
|
4
|
+
/** The LIVE area's catalog entries. */
|
|
5
|
+
const liveDiagnostics = {
|
|
6
|
+
MOSTRA_LIVE_TOO_LARGE: {
|
|
7
|
+
severity: "error",
|
|
8
|
+
phase: "runtime",
|
|
9
|
+
title: "Live value too large",
|
|
10
|
+
hint: "Push or produce a smaller value: at most 4 MiB serialized.",
|
|
11
|
+
docs: {
|
|
12
|
+
explanation: "A live value, pushed or produced, is over 4 MiB once serialized (DATA_MODEL §5). It is refused and the last good value stays.",
|
|
13
|
+
fix: "Send a smaller window of the data, or split it across several live sources. For high-rate series, push single points in append mode and let the page keep the window."
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
MOSTRA_LIVE_SOURCE_FAILED: {
|
|
17
|
+
severity: "error",
|
|
18
|
+
phase: "runtime",
|
|
19
|
+
title: "Live source failed",
|
|
20
|
+
hint: "Read the message, fix the live source's loader or stream, and publish again; the last good value stays meanwhile.",
|
|
21
|
+
docs: {
|
|
22
|
+
explanation: "A live source's `load` or `stream` threw, or its value was outside the serializable types. Pages keep showing the last good value with `useLive`'s `error` set, and the producer tries again on its schedule (FAILURE_MODEL §6).",
|
|
23
|
+
fix: "Fix the producer in `live.ts`, or catch transient failures there and return the previous value."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { liveDiagnosticCodes, liveDiagnostics };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=live.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live.js","names":[],"sources":["../../../src/diagnostics/codes/live.ts"],"sourcesContent":["/**\n * Diagnostic codes of the LIVE area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the LIVE area, in the order they were added. */\nexport const liveDiagnosticCodes = [\n \"MOSTRA_LIVE_TOO_LARGE\",\n \"MOSTRA_LIVE_SOURCE_FAILED\",\n // gen:codes\n] as const;\n\n/** The codes of the LIVE area. */\nexport type LiveDiagnosticCode = (typeof liveDiagnosticCodes)[number];\n\n/** The LIVE area's catalog entries. */\nexport const liveDiagnostics: AreaCatalog<LiveDiagnosticCode> = {\n MOSTRA_LIVE_TOO_LARGE: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Live value too large\",\n hint: \"Push or produce a smaller value: at most 4 MiB serialized.\",\n docs: {\n explanation:\n \"A live value, pushed or produced, is over 4 MiB once serialized (DATA_MODEL \\u00a75). It is refused and the last good value stays.\",\n fix: \"Send a smaller window of the data, or split it across several live sources. For high-rate series, push single points in append mode and let the page keep the window.\",\n },\n },\n MOSTRA_LIVE_SOURCE_FAILED: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Live source failed\",\n hint: \"Read the message, fix the live source's loader or stream, and publish again; the last good value stays meanwhile.\",\n docs: {\n explanation:\n \"A live source's `load` or `stream` threw, or its value was outside the serializable types. Pages keep showing the last good value with `useLive`'s `error` set, and the producer tries again on its schedule (FAILURE_MODEL \\u00a76).\",\n fix: \"Fix the producer in `live.ts`, or catch transient failures there and return the previous value.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,sBAAsB,CACjC,yBACA,2BAEF;;AAMA,MAAa,kBAAmD;CAC9D,uBAAuB;EACrB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,2BAA2B;EACzB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;AAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/manifest.d.ts
|
|
3
|
+
/** The codes of the MANIFEST area, in the order they were added. */
|
|
4
|
+
export declare const manifestDiagnosticCodes: readonly ["MOSTRA_MANIFEST_NOT_LITERAL", "MOSTRA_MANIFEST_INVALID", "MOSTRA_MANIFEST_UNKNOWN_KEY"];
|
|
5
|
+
/** The codes of the MANIFEST area. */
|
|
6
|
+
export type ManifestDiagnosticCode = (typeof manifestDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","names":[],"sources":["../../../src/diagnostics/codes/manifest.ts"],"mappings":";;;qBAMa;;YAQD,iCAAiC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/manifest.ts
|
|
2
|
+
/** The codes of the MANIFEST area, in the order they were added. */
|
|
3
|
+
const manifestDiagnosticCodes = [
|
|
4
|
+
"MOSTRA_MANIFEST_NOT_LITERAL",
|
|
5
|
+
"MOSTRA_MANIFEST_INVALID",
|
|
6
|
+
"MOSTRA_MANIFEST_UNKNOWN_KEY"
|
|
7
|
+
];
|
|
8
|
+
/** The MANIFEST area's catalog entries. */
|
|
9
|
+
const manifestDiagnostics = {
|
|
10
|
+
MOSTRA_MANIFEST_NOT_LITERAL: {
|
|
11
|
+
severity: "error",
|
|
12
|
+
phase: "manifest",
|
|
13
|
+
title: "Manifest isn't a literal",
|
|
14
|
+
hint: "Write the manifest as plain values: strings, numbers, booleans, null, arrays and objects, with no variables, calls, spreads or computed keys.",
|
|
15
|
+
docs: {
|
|
16
|
+
explanation: "Mostra reads an artifact's manifest without running its code: the `export const artifact = defineArtifact({...})` in a TSX entry, or the frontmatter of an MDX entry. It reports this code when the exported `artifact` isn't a `defineArtifact(...)` call with one object literal, or when a value inside it needs evaluation (an identifier, a function call, a spread, a computed key, a template literal with a placeholder). The location points at the first such value.",
|
|
17
|
+
fix: "Replace the value with the literal it stands for, for example `title: \"Q3 review\"` instead of `title: TITLE`. Keep computed values in the page code, where they can use anything. `as const` and `satisfies` on the object are fine."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
MOSTRA_MANIFEST_INVALID: {
|
|
21
|
+
severity: "error",
|
|
22
|
+
phase: "manifest",
|
|
23
|
+
title: "Manifest value is invalid",
|
|
24
|
+
hint: "Fix the manifest field named in the message so it matches the manifest's documented shape.",
|
|
25
|
+
docs: {
|
|
26
|
+
explanation: "The manifest was read, but a field has a value the manifest doesn't allow: a missing `title`, a wrong type, an `id` that isn't an artifact ID (`art_` followed by a ULID), a `mode` this runtime doesn't build (`spa` is the only one), or frontmatter that isn't valid YAML. The message names the field and what was expected.",
|
|
27
|
+
fix: "Correct the field the message names. Leave `id` out to let Mostra bind the artifact to its source path at first publish, or keep the `id` that `mostra new` wrote. Every field except `title` is optional."
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
MOSTRA_MANIFEST_UNKNOWN_KEY: {
|
|
31
|
+
severity: "warning",
|
|
32
|
+
phase: "manifest",
|
|
33
|
+
title: "Unknown manifest key",
|
|
34
|
+
hint: "Remove the key or correct its spelling; a newer Mostra may support it.",
|
|
35
|
+
docs: {
|
|
36
|
+
explanation: "The manifest has a key this runtime doesn't know. Mostra ignores it, so manifests written for a newer release still publish, but a misspelled key (`familly`, `decription`) silently has no effect.",
|
|
37
|
+
fix: "Check the key against the manifest fields (`id`, `title`, `description`, `family`, `links`, `mode`, `submission`, `kit`, `terminals`, `demos`, `limits`, `verify`) and fix the spelling, or remove it."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { manifestDiagnosticCodes, manifestDiagnostics };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","names":[],"sources":["../../../src/diagnostics/codes/manifest.ts"],"sourcesContent":["/**\n * Diagnostic codes of the MANIFEST area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the MANIFEST area, in the order they were added. */\nexport const manifestDiagnosticCodes = [\n \"MOSTRA_MANIFEST_NOT_LITERAL\",\n \"MOSTRA_MANIFEST_INVALID\",\n \"MOSTRA_MANIFEST_UNKNOWN_KEY\",\n // gen:codes\n] as const;\n\n/** The codes of the MANIFEST area. */\nexport type ManifestDiagnosticCode = (typeof manifestDiagnosticCodes)[number];\n\n/** The MANIFEST area's catalog entries. */\nexport const manifestDiagnostics: AreaCatalog<ManifestDiagnosticCode> = {\n MOSTRA_MANIFEST_NOT_LITERAL: {\n severity: \"error\",\n phase: \"manifest\",\n title: \"Manifest isn't a literal\",\n hint: \"Write the manifest as plain values: strings, numbers, booleans, null, arrays and objects, with no variables, calls, spreads or computed keys.\",\n docs: {\n explanation:\n \"Mostra reads an artifact's manifest without running its code: the `export const artifact = defineArtifact({...})` in a TSX entry, or the frontmatter of an MDX entry. It reports this code when the exported `artifact` isn't a `defineArtifact(...)` call with one object literal, or when a value inside it needs evaluation (an identifier, a function call, a spread, a computed key, a template literal with a placeholder). The location points at the first such value.\",\n fix: 'Replace the value with the literal it stands for, for example `title: \"Q3 review\"` instead of `title: TITLE`. Keep computed values in the page code, where they can use anything. `as const` and `satisfies` on the object are fine.',\n },\n },\n MOSTRA_MANIFEST_INVALID: {\n severity: \"error\",\n phase: \"manifest\",\n title: \"Manifest value is invalid\",\n hint: \"Fix the manifest field named in the message so it matches the manifest's documented shape.\",\n docs: {\n explanation:\n \"The manifest was read, but a field has a value the manifest doesn't allow: a missing `title`, a wrong type, an `id` that isn't an artifact ID (`art_` followed by a ULID), a `mode` this runtime doesn't build (`spa` is the only one), or frontmatter that isn't valid YAML. The message names the field and what was expected.\",\n fix: \"Correct the field the message names. Leave `id` out to let Mostra bind the artifact to its source path at first publish, or keep the `id` that `mostra new` wrote. Every field except `title` is optional.\",\n },\n },\n MOSTRA_MANIFEST_UNKNOWN_KEY: {\n severity: \"warning\",\n phase: \"manifest\",\n title: \"Unknown manifest key\",\n hint: \"Remove the key or correct its spelling; a newer Mostra may support it.\",\n docs: {\n explanation:\n \"The manifest has a key this runtime doesn't know. Mostra ignores it, so manifests written for a newer release still publish, but a misspelled key (`familly`, `decription`) silently has no effect.\",\n fix: \"Check the key against the manifest fields (`id`, `title`, `description`, `family`, `links`, `mode`, `submission`, `kit`, `terminals`, `demos`, `limits`, `verify`) and fix the spelling, or remove it.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,0BAA0B;CACrC;CACA;CACA;AAEF;;AAMA,MAAa,sBAA2D;CACtE,6BAA6B;EAC3B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,yBAAyB;EACvB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,6BAA6B;EAC3B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;AAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/network.d.ts
|
|
3
|
+
/** The codes of the NETWORK area, in the order they were added. */
|
|
4
|
+
export declare const networkDiagnosticCodes: readonly ["MOSTRA_NETWORK_REQUEST_FAILED", "MOSTRA_NETWORK_EXTERNAL_FAILED"];
|
|
5
|
+
/** The codes of the NETWORK area. */
|
|
6
|
+
export type NetworkDiagnosticCode = (typeof networkDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=network.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network.d.ts","names":[],"sources":["../../../src/diagnostics/codes/network.ts"],"mappings":";;;qBAMa;;YAOD,gCAAgC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/network.ts
|
|
2
|
+
/** The codes of the NETWORK area, in the order they were added. */
|
|
3
|
+
const networkDiagnosticCodes = ["MOSTRA_NETWORK_REQUEST_FAILED", "MOSTRA_NETWORK_EXTERNAL_FAILED"];
|
|
4
|
+
/** The NETWORK area's catalog entries. */
|
|
5
|
+
const networkDiagnostics = {
|
|
6
|
+
MOSTRA_NETWORK_REQUEST_FAILED: {
|
|
7
|
+
severity: "error",
|
|
8
|
+
phase: "network",
|
|
9
|
+
title: "Request for the page's own resource failed",
|
|
10
|
+
hint: "Check the path: a file the page loads from the artifact itself failed to load.",
|
|
11
|
+
docs: {
|
|
12
|
+
explanation: "A resource the page loaded from the artifact's own origin (the document, a script, a style, an image, a font, or a fetch by artifact code) failed or answered 4xx or 5xx. Requests the browser makes on its own, such as `/favicon.ico`, and Mostra's own protocol aren't counted.",
|
|
13
|
+
fix: "Put the file in `public/` (served at the root) or import it from the code so the build includes it, and check the path's spelling."
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
MOSTRA_NETWORK_EXTERNAL_FAILED: {
|
|
17
|
+
severity: "warning",
|
|
18
|
+
phase: "network",
|
|
19
|
+
title: "Request to another origin failed",
|
|
20
|
+
hint: "A request to another origin failed while verify ran; check the URL and whether that service was reachable.",
|
|
21
|
+
docs: {
|
|
22
|
+
explanation: "A request the page made to another origin failed or answered 4xx or 5xx. It may be the environment (no network, a service that is down, a request the service refuses from this origin) rather than the code, so it is a warning.",
|
|
23
|
+
fix: "Check the URL and the service. If the page depends on it, show a fallback when it fails."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { networkDiagnosticCodes, networkDiagnostics };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=network.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network.js","names":[],"sources":["../../../src/diagnostics/codes/network.ts"],"sourcesContent":["/**\n * Diagnostic codes of the NETWORK area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the NETWORK area, in the order they were added. */\nexport const networkDiagnosticCodes = [\n \"MOSTRA_NETWORK_REQUEST_FAILED\",\n \"MOSTRA_NETWORK_EXTERNAL_FAILED\",\n // gen:codes\n] as const;\n\n/** The codes of the NETWORK area. */\nexport type NetworkDiagnosticCode = (typeof networkDiagnosticCodes)[number];\n\n/** The NETWORK area's catalog entries. */\nexport const networkDiagnostics: AreaCatalog<NetworkDiagnosticCode> = {\n MOSTRA_NETWORK_REQUEST_FAILED: {\n severity: \"error\",\n phase: \"network\",\n title: \"Request for the page's own resource failed\",\n hint: \"Check the path: a file the page loads from the artifact itself failed to load.\",\n docs: {\n explanation:\n \"A resource the page loaded from the artifact's own origin (the document, a script, a style, an image, a font, or a fetch by artifact code) failed or answered 4xx or 5xx. Requests the browser makes on its own, such as `/favicon.ico`, and Mostra's own protocol aren't counted.\",\n fix: \"Put the file in `public/` (served at the root) or import it from the code so the build includes it, and check the path's spelling.\",\n },\n },\n MOSTRA_NETWORK_EXTERNAL_FAILED: {\n severity: \"warning\",\n phase: \"network\",\n title: \"Request to another origin failed\",\n hint: \"A request to another origin failed while verify ran; check the URL and whether that service was reachable.\",\n docs: {\n explanation:\n \"A request the page made to another origin failed or answered 4xx or 5xx. It may be the environment (no network, a service that is down, a request the service refuses from this origin) rather than the code, so it is a warning.\",\n fix: \"Check the URL and the service. If the page depends on it, show a fallback when it fails.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,yBAAyB,CACpC,iCACA,gCAEF;;AAMA,MAAa,qBAAyD;CACpE,+BAA+B;EAC7B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,gCAAgC;EAC9B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;AAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/platform.d.ts
|
|
3
|
+
/** The codes of the PLATFORM area, in the order they were added. */
|
|
4
|
+
export declare const platformDiagnosticCodes: readonly ["MOSTRA_PLATFORM_UNSUPPORTED"];
|
|
5
|
+
/** The codes of the PLATFORM area. */
|
|
6
|
+
export type PlatformDiagnosticCode = (typeof platformDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.d.ts","names":[],"sources":["../../../src/diagnostics/codes/platform.ts"],"mappings":";;;qBAOa;;YAMD,iCAAiC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/platform.ts
|
|
2
|
+
/** The codes of the PLATFORM area, in the order they were added. */
|
|
3
|
+
const platformDiagnosticCodes = ["MOSTRA_PLATFORM_UNSUPPORTED"];
|
|
4
|
+
/** The PLATFORM area's catalog entries. */
|
|
5
|
+
const platformDiagnostics = { MOSTRA_PLATFORM_UNSUPPORTED: {
|
|
6
|
+
severity: "error",
|
|
7
|
+
phase: "platform",
|
|
8
|
+
title: "Unsupported platform",
|
|
9
|
+
hint: "Run Mostra on macOS or Linux, on an x64 or arm64 machine.",
|
|
10
|
+
docs: {
|
|
11
|
+
explanation: "Mostra 1.0 runs on macOS and Linux, on x64 and arm64. On any other operating system or architecture, Windows included, every entry point stops with this code before it creates or changes anything, because the process model, sockets and storage are built and tested only on those platforms. The message names the platform that was detected.",
|
|
12
|
+
fix: "Run Mostra on a macOS or Linux machine with an x64 or arm64 processor. Windows support is planned for a release after 1.0."
|
|
13
|
+
}
|
|
14
|
+
} };
|
|
15
|
+
//#endregion
|
|
16
|
+
export { platformDiagnosticCodes, platformDiagnostics };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=platform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.js","names":[],"sources":["../../../src/diagnostics/codes/platform.ts"],"sourcesContent":["/**\n * Diagnostic codes of the PLATFORM area: the operating systems and architectures Mostra runs on\n * (D35, RT-07).\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the PLATFORM area, in the order they were added. */\nexport const platformDiagnosticCodes = [\n \"MOSTRA_PLATFORM_UNSUPPORTED\",\n // gen:codes\n] as const;\n\n/** The codes of the PLATFORM area. */\nexport type PlatformDiagnosticCode = (typeof platformDiagnosticCodes)[number];\n\n/** The PLATFORM area's catalog entries. */\nexport const platformDiagnostics: AreaCatalog<PlatformDiagnosticCode> = {\n MOSTRA_PLATFORM_UNSUPPORTED: {\n severity: \"error\",\n phase: \"platform\",\n title: \"Unsupported platform\",\n hint: \"Run Mostra on macOS or Linux, on an x64 or arm64 machine.\",\n docs: {\n explanation:\n \"Mostra 1.0 runs on macOS and Linux, on x64 and arm64. On any other operating system or architecture, Windows included, every entry point stops with this code before it creates or changes anything, because the process model, sockets and storage are built and tested only on those platforms. The message names the platform that was detected.\",\n fix: \"Run Mostra on a macOS or Linux machine with an x64 or arm64 processor. Windows support is planned for a release after 1.0.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAOA,MAAa,0BAA0B,CACrC,6BAEF;;AAMA,MAAa,sBAA2D,EACtE,6BAA6B;CAC3B,UAAU;CACV,OAAO;CACP,OAAO;CACP,MAAM;CACN,MAAM;EACJ,aACE;EACF,KAAK;CACP;AACF,EAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/publish.d.ts
|
|
3
|
+
/** The codes of the PUBLISH area, in the order they were added. */
|
|
4
|
+
export declare const publishDiagnosticCodes: readonly ["MOSTRA_PUBLISH_ID_CONFLICT", "MOSTRA_PUBLISH_SOURCE_CHANGED", "MOSTRA_PUBLISH_VERIFY_FAILED"];
|
|
5
|
+
/** The codes of the PUBLISH area. */
|
|
6
|
+
export type PublishDiagnosticCode = (typeof publishDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=publish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.d.ts","names":[],"sources":["../../../src/diagnostics/codes/publish.ts"],"mappings":";;;qBAMa;;YAQD,gCAAgC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/publish.ts
|
|
2
|
+
/** The codes of the PUBLISH area, in the order they were added. */
|
|
3
|
+
const publishDiagnosticCodes = [
|
|
4
|
+
"MOSTRA_PUBLISH_ID_CONFLICT",
|
|
5
|
+
"MOSTRA_PUBLISH_SOURCE_CHANGED",
|
|
6
|
+
"MOSTRA_PUBLISH_VERIFY_FAILED"
|
|
7
|
+
];
|
|
8
|
+
/** The PUBLISH area's catalog entries. */
|
|
9
|
+
const publishDiagnostics = {
|
|
10
|
+
MOSTRA_PUBLISH_ID_CONFLICT: {
|
|
11
|
+
severity: "error",
|
|
12
|
+
phase: "publish",
|
|
13
|
+
title: "Artifact ID claimed by two sources",
|
|
14
|
+
hint: "Give one of the two sources a different `id`, or delete the `id` line from the copy so it becomes a new artifact.",
|
|
15
|
+
docs: {
|
|
16
|
+
explanation: "An artifact's `id` names exactly one source. Mostra reports this code when a manifest claims an `id` that is already bound to another source path whose entry still claims it, which usually means a directory was copied. A source that moved, so that the old path no longer claims the `id`, is rebound instead. The message names both paths.",
|
|
17
|
+
fix: "Decide which source is the artifact. In the other one, remove the `id` from the manifest (it is then bound to its own path at its first publish) or replace it with a new ID from `mostra new`."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
MOSTRA_PUBLISH_SOURCE_CHANGED: {
|
|
21
|
+
severity: "error",
|
|
22
|
+
phase: "publish",
|
|
23
|
+
title: "Source changed during the publish",
|
|
24
|
+
hint: "Publish again once the artifact's files have stopped changing.",
|
|
25
|
+
docs: {
|
|
26
|
+
explanation: "Publishing reads the entry's manifest twice: once to find the artifact, and again from the snapshot it builds. Mostra reports this code when the two disagree about which artifact the source is, because the manifest `id` or the source's binding changed while the publish ran, for example when an editor saved the entry mid-publish or another publish rebound the path. Nothing was published.",
|
|
27
|
+
fix: "Wait until the files are saved and nothing else is publishing the same source, then publish again. If the manifest `id` was changed on purpose, the next publish uses the new one."
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
MOSTRA_PUBLISH_VERIFY_FAILED: {
|
|
31
|
+
severity: "error",
|
|
32
|
+
phase: "publish",
|
|
33
|
+
title: "Verify found errors",
|
|
34
|
+
hint: "Run `mostra verify` to see the errors and fix them, or publish with `--force` to record them in the version.",
|
|
35
|
+
docs: {
|
|
36
|
+
explanation: "Publish runs verify (or reuses the verdict it cached for the same source and environment) and refuses when the verdict has errors (D41). The message lists their codes. Nothing was published. With `--force`, publish goes ahead and records the codes in the version, where hosts read them; a source that doesn't build can't be published either way.",
|
|
37
|
+
fix: "Fix the errors `mostra verify` reports and publish again, or publish with `--force` if the version must ship as it is."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { publishDiagnosticCodes, publishDiagnostics };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=publish.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.js","names":[],"sources":["../../../src/diagnostics/codes/publish.ts"],"sourcesContent":["/**\n * Diagnostic codes of the PUBLISH area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the PUBLISH area, in the order they were added. */\nexport const publishDiagnosticCodes = [\n \"MOSTRA_PUBLISH_ID_CONFLICT\",\n \"MOSTRA_PUBLISH_SOURCE_CHANGED\",\n \"MOSTRA_PUBLISH_VERIFY_FAILED\",\n // gen:codes\n] as const;\n\n/** The codes of the PUBLISH area. */\nexport type PublishDiagnosticCode = (typeof publishDiagnosticCodes)[number];\n\n/** The PUBLISH area's catalog entries. */\nexport const publishDiagnostics: AreaCatalog<PublishDiagnosticCode> = {\n MOSTRA_PUBLISH_ID_CONFLICT: {\n severity: \"error\",\n phase: \"publish\",\n title: \"Artifact ID claimed by two sources\",\n hint: \"Give one of the two sources a different `id`, or delete the `id` line from the copy so it becomes a new artifact.\",\n docs: {\n explanation:\n \"An artifact's `id` names exactly one source. Mostra reports this code when a manifest claims an `id` that is already bound to another source path whose entry still claims it, which usually means a directory was copied. A source that moved, so that the old path no longer claims the `id`, is rebound instead. The message names both paths.\",\n fix: \"Decide which source is the artifact. In the other one, remove the `id` from the manifest (it is then bound to its own path at its first publish) or replace it with a new ID from `mostra new`.\",\n },\n },\n MOSTRA_PUBLISH_SOURCE_CHANGED: {\n severity: \"error\",\n phase: \"publish\",\n title: \"Source changed during the publish\",\n hint: \"Publish again once the artifact's files have stopped changing.\",\n docs: {\n explanation:\n \"Publishing reads the entry's manifest twice: once to find the artifact, and again from the snapshot it builds. Mostra reports this code when the two disagree about which artifact the source is, because the manifest `id` or the source's binding changed while the publish ran, for example when an editor saved the entry mid-publish or another publish rebound the path. Nothing was published.\",\n fix: \"Wait until the files are saved and nothing else is publishing the same source, then publish again. If the manifest `id` was changed on purpose, the next publish uses the new one.\",\n },\n },\n MOSTRA_PUBLISH_VERIFY_FAILED: {\n severity: \"error\",\n phase: \"publish\",\n title: \"Verify found errors\",\n hint: \"Run `mostra verify` to see the errors and fix them, or publish with `--force` to record them in the version.\",\n docs: {\n explanation:\n \"Publish runs verify (or reuses the verdict it cached for the same source and environment) and refuses when the verdict has errors (D41). The message lists their codes. Nothing was published. With `--force`, publish goes ahead and records the codes in the version, where hosts read them; a source that doesn't build can't be published either way.\",\n fix: \"Fix the errors `mostra verify` reports and publish again, or publish with `--force` if the version must ship as it is.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,yBAAyB;CACpC;CACA;CACA;AAEF;;AAMA,MAAa,qBAAyD;CACpE,4BAA4B;EAC1B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,+BAA+B;EAC7B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,8BAA8B;EAC5B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;AAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/regression.d.ts
|
|
3
|
+
/** The codes of the REGRESSION area, in the order they were added. */
|
|
4
|
+
export declare const regressionDiagnosticCodes: readonly ["MOSTRA_REGRESSION_ARIA", "MOSTRA_REGRESSION_PIXELS", "MOSTRA_REGRESSION_FIELD_REMOVED", "MOSTRA_REGRESSION_ACTION_REMOVED", "MOSTRA_REGRESSION_LIVE_REMOVED", "MOSTRA_REGRESSION_PAGE_REMOVED"];
|
|
5
|
+
/** The codes of the REGRESSION area. */
|
|
6
|
+
export type RegressionDiagnosticCode = (typeof regressionDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=regression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regression.d.ts","names":[],"sources":["../../../src/diagnostics/codes/regression.ts"],"mappings":";;;qBAMa;;YAWD,mCAAmC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/regression.ts
|
|
2
|
+
/** The codes of the REGRESSION area, in the order they were added. */
|
|
3
|
+
const regressionDiagnosticCodes = [
|
|
4
|
+
"MOSTRA_REGRESSION_ARIA",
|
|
5
|
+
"MOSTRA_REGRESSION_PIXELS",
|
|
6
|
+
"MOSTRA_REGRESSION_FIELD_REMOVED",
|
|
7
|
+
"MOSTRA_REGRESSION_ACTION_REMOVED",
|
|
8
|
+
"MOSTRA_REGRESSION_LIVE_REMOVED",
|
|
9
|
+
"MOSTRA_REGRESSION_PAGE_REMOVED"
|
|
10
|
+
];
|
|
11
|
+
/** The REGRESSION area's catalog entries. */
|
|
12
|
+
const regressionDiagnostics = {
|
|
13
|
+
MOSTRA_REGRESSION_ARIA: {
|
|
14
|
+
severity: "warning",
|
|
15
|
+
phase: "regression",
|
|
16
|
+
title: "Controls or landmarks gone since the last passing version",
|
|
17
|
+
hint: "Observed only: the last passing version had these controls or landmarks and this source doesn't; a change that removed them on purpose needs nothing more.",
|
|
18
|
+
docs: {
|
|
19
|
+
explanation: "Verify compared this source's accessibility snapshot with the newest version whose verdict passed, rendered in the same run with the same data. The controls or landmarks the message lists (by role and name) were there and aren't now. A redesign may remove them on purpose.",
|
|
20
|
+
fix: "If they should be gone, nothing needs to change. If not, look at what removed them."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
MOSTRA_REGRESSION_PIXELS: {
|
|
24
|
+
severity: "warning",
|
|
25
|
+
phase: "regression",
|
|
26
|
+
title: "Page looks different from the last passing version",
|
|
27
|
+
hint: "Observed only: this share of the viewport's pixels differs from the last passing version; an intended visual change shows here too and needs nothing more.",
|
|
28
|
+
docs: {
|
|
29
|
+
explanation: "Verify rendered the newest version whose verdict passed and this source at the same viewport, clock and data, and the share of pixels the message gives differs between them. Any intended visual change shows here too.",
|
|
30
|
+
fix: "If the change is one you made on purpose, nothing needs to change. To see where it is, read the ARIA snapshots, or look at the diff image the message names if you can view images."
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
MOSTRA_REGRESSION_FIELD_REMOVED: {
|
|
34
|
+
severity: "warning",
|
|
35
|
+
phase: "contract",
|
|
36
|
+
title: "Field gone since the last passing version",
|
|
37
|
+
hint: "Observed only: answers saved under this field ID won't carry over to this version; a field removed on purpose needs nothing more.",
|
|
38
|
+
docs: {
|
|
39
|
+
explanation: "A field ID the last passing version used is gone from this source. Viewers' answers under it become orphans when they switch (D42): kept, shown read-only and delivered, but not editable. The message gives how many saved answers it affects.",
|
|
40
|
+
fix: "If the field was renamed by mistake, keep its old ID. If it was removed on purpose, nothing needs to change."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
MOSTRA_REGRESSION_ACTION_REMOVED: {
|
|
44
|
+
severity: "warning",
|
|
45
|
+
phase: "contract",
|
|
46
|
+
title: "Server function gone since the last passing version",
|
|
47
|
+
hint: "Observed only: the last passing version had this server function and this source doesn't; one removed on purpose needs nothing more.",
|
|
48
|
+
docs: {
|
|
49
|
+
explanation: "A `\"use server\"` export the last passing version had is gone. Pages of the older version still call it while they are open, and keyed runs started by it can't be started again.",
|
|
50
|
+
fix: "If it was renamed by mistake, keep its name. If it was removed on purpose, nothing needs to change."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
MOSTRA_REGRESSION_LIVE_REMOVED: {
|
|
54
|
+
severity: "warning",
|
|
55
|
+
phase: "contract",
|
|
56
|
+
title: "Live source gone since the last passing version",
|
|
57
|
+
hint: "Observed only: the last passing version had this live source and this source doesn't; one removed on purpose needs nothing more.",
|
|
58
|
+
docs: {
|
|
59
|
+
explanation: "A live source (`live.ts` export) the last passing version had is gone, so its producer stops and hosts that push to it push to a key no page reads.",
|
|
60
|
+
fix: "If it was renamed by mistake, keep its name. If it was removed on purpose, nothing needs to change."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
MOSTRA_REGRESSION_PAGE_REMOVED: {
|
|
64
|
+
severity: "warning",
|
|
65
|
+
phase: "contract",
|
|
66
|
+
title: "Page route gone since the last passing version",
|
|
67
|
+
hint: "Observed only: the last passing version had this page route and this source doesn't; one removed on purpose needs nothing more.",
|
|
68
|
+
docs: {
|
|
69
|
+
explanation: "A route of `pages/` the last passing version had is gone, so links and bookmarks to it now open the artifact's fallback page.",
|
|
70
|
+
fix: "If it was renamed by mistake, keep its path. If it was removed on purpose, nothing needs to change."
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
export { regressionDiagnosticCodes, regressionDiagnostics };
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=regression.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regression.js","names":[],"sources":["../../../src/diagnostics/codes/regression.ts"],"sourcesContent":["/**\n * Diagnostic codes of the REGRESSION area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the REGRESSION area, in the order they were added. */\nexport const regressionDiagnosticCodes = [\n \"MOSTRA_REGRESSION_ARIA\",\n \"MOSTRA_REGRESSION_PIXELS\",\n \"MOSTRA_REGRESSION_FIELD_REMOVED\",\n \"MOSTRA_REGRESSION_ACTION_REMOVED\",\n \"MOSTRA_REGRESSION_LIVE_REMOVED\",\n \"MOSTRA_REGRESSION_PAGE_REMOVED\",\n // gen:codes\n] as const;\n\n/** The codes of the REGRESSION area. */\nexport type RegressionDiagnosticCode = (typeof regressionDiagnosticCodes)[number];\n\n/** The REGRESSION area's catalog entries. */\nexport const regressionDiagnostics: AreaCatalog<RegressionDiagnosticCode> = {\n MOSTRA_REGRESSION_ARIA: {\n severity: \"warning\",\n phase: \"regression\",\n title: \"Controls or landmarks gone since the last passing version\",\n hint: \"Observed only: the last passing version had these controls or landmarks and this source doesn't; a change that removed them on purpose needs nothing more.\",\n docs: {\n explanation:\n \"Verify compared this source's accessibility snapshot with the newest version whose verdict passed, rendered in the same run with the same data. The controls or landmarks the message lists (by role and name) were there and aren't now. A redesign may remove them on purpose.\",\n fix: \"If they should be gone, nothing needs to change. If not, look at what removed them.\",\n },\n },\n MOSTRA_REGRESSION_PIXELS: {\n severity: \"warning\",\n phase: \"regression\",\n title: \"Page looks different from the last passing version\",\n hint: \"Observed only: this share of the viewport's pixels differs from the last passing version; an intended visual change shows here too and needs nothing more.\",\n docs: {\n explanation:\n \"Verify rendered the newest version whose verdict passed and this source at the same viewport, clock and data, and the share of pixels the message gives differs between them. Any intended visual change shows here too.\",\n fix: \"If the change is one you made on purpose, nothing needs to change. To see where it is, read the ARIA snapshots, or look at the diff image the message names if you can view images.\",\n },\n },\n MOSTRA_REGRESSION_FIELD_REMOVED: {\n severity: \"warning\",\n phase: \"contract\",\n title: \"Field gone since the last passing version\",\n hint: \"Observed only: answers saved under this field ID won't carry over to this version; a field removed on purpose needs nothing more.\",\n docs: {\n explanation:\n \"A field ID the last passing version used is gone from this source. Viewers' answers under it become orphans when they switch (D42): kept, shown read-only and delivered, but not editable. The message gives how many saved answers it affects.\",\n fix: \"If the field was renamed by mistake, keep its old ID. If it was removed on purpose, nothing needs to change.\",\n },\n },\n MOSTRA_REGRESSION_ACTION_REMOVED: {\n severity: \"warning\",\n phase: \"contract\",\n title: \"Server function gone since the last passing version\",\n hint: \"Observed only: the last passing version had this server function and this source doesn't; one removed on purpose needs nothing more.\",\n docs: {\n explanation:\n 'A `\"use server\"` export the last passing version had is gone. Pages of the older version still call it while they are open, and keyed runs started by it can\\'t be started again.',\n fix: \"If it was renamed by mistake, keep its name. If it was removed on purpose, nothing needs to change.\",\n },\n },\n MOSTRA_REGRESSION_LIVE_REMOVED: {\n severity: \"warning\",\n phase: \"contract\",\n title: \"Live source gone since the last passing version\",\n hint: \"Observed only: the last passing version had this live source and this source doesn't; one removed on purpose needs nothing more.\",\n docs: {\n explanation:\n \"A live source (`live.ts` export) the last passing version had is gone, so its producer stops and hosts that push to it push to a key no page reads.\",\n fix: \"If it was renamed by mistake, keep its name. If it was removed on purpose, nothing needs to change.\",\n },\n },\n MOSTRA_REGRESSION_PAGE_REMOVED: {\n severity: \"warning\",\n phase: \"contract\",\n title: \"Page route gone since the last passing version\",\n hint: \"Observed only: the last passing version had this page route and this source doesn't; one removed on purpose needs nothing more.\",\n docs: {\n explanation:\n \"A route of `pages/` the last passing version had is gone, so links and bookmarks to it now open the artifact's fallback page.\",\n fix: \"If it was renamed by mistake, keep its path. If it was removed on purpose, nothing needs to change.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;CACA;AAEF;;AAMA,MAAa,wBAA+D;CAC1E,wBAAwB;EACtB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,0BAA0B;EACxB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,iCAAiC;EAC/B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,kCAAkC;EAChC,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,gCAAgC;EAC9B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,gCAAgC;EAC9B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;AAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/runtime.d.ts
|
|
3
|
+
/** The codes of the RUNTIME area, in the order they were added. */
|
|
4
|
+
export declare const runtimeDiagnosticCodes: readonly ["MOSTRA_RUNTIME_WORKER_CRASHED", "MOSTRA_RUNTIME_WORKER_PARKED", "MOSTRA_RUNTIME_PAGE_ERROR", "MOSTRA_RUNTIME_BLANK", "MOSTRA_RUNTIME_NOT_READY"];
|
|
5
|
+
/** The codes of the RUNTIME area. */
|
|
6
|
+
export type RuntimeDiagnosticCode = (typeof runtimeDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../../../src/diagnostics/codes/runtime.ts"],"mappings":";;;qBAMa;;YAUD,gCAAgC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/runtime.ts
|
|
2
|
+
/** The codes of the RUNTIME area, in the order they were added. */
|
|
3
|
+
const runtimeDiagnosticCodes = [
|
|
4
|
+
"MOSTRA_RUNTIME_WORKER_CRASHED",
|
|
5
|
+
"MOSTRA_RUNTIME_WORKER_PARKED",
|
|
6
|
+
"MOSTRA_RUNTIME_PAGE_ERROR",
|
|
7
|
+
"MOSTRA_RUNTIME_BLANK",
|
|
8
|
+
"MOSTRA_RUNTIME_NOT_READY"
|
|
9
|
+
];
|
|
10
|
+
/** The RUNTIME area's catalog entries. */
|
|
11
|
+
const runtimeDiagnostics = {
|
|
12
|
+
MOSTRA_RUNTIME_WORKER_CRASHED: {
|
|
13
|
+
severity: "error",
|
|
14
|
+
phase: "runtime",
|
|
15
|
+
title: "Artifact server code crashed",
|
|
16
|
+
hint: "Read the cause and the worker's last output, fix the server code, and publish again.",
|
|
17
|
+
docs: {
|
|
18
|
+
explanation: "The artifact version's worker process exited while serving a call: it threw outside any call, ran out of its heap (1 GiB by default), or kept its event loop blocked past the watchdog (10 s by default). Other artifacts and the gateway keep working (RT-04). Mostra appends `worker.crashed` with the cause and starts the worker again on the next request, waiting longer after each crash (1 s up to 60 s). `verify` reports it too when the source's server code crashes, fails to load or hangs while the page renders, even when the page handled the failed call.",
|
|
19
|
+
fix: "Fix the crash in the server code. A long synchronous computation can raise `limits.watchdogMs` in the manifest, and a large data set `limits.heapMb`; both are stability limits, not security ones."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
MOSTRA_RUNTIME_WORKER_PARKED: {
|
|
23
|
+
severity: "error",
|
|
24
|
+
phase: "runtime",
|
|
25
|
+
title: "Artifact server code keeps crashing",
|
|
26
|
+
hint: "Fix the server code and publish again, which clears the park; the message names the last crash's cause.",
|
|
27
|
+
docs: {
|
|
28
|
+
explanation: "The artifact version's worker crashed more than 5 times in 10 minutes, so Mostra stopped starting it (FAILURE_MODEL §2). Calls, runs and live sources of that version answer this code until the park clears, and the shell tells the viewer that the artifact's server code keeps crashing.",
|
|
29
|
+
fix: "Find the cause in the message and the worker's output, fix it, and publish again: a new publish, `verify` or a restart of the instance clears the park."
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
MOSTRA_RUNTIME_PAGE_ERROR: {
|
|
33
|
+
severity: "error",
|
|
34
|
+
phase: "runtime",
|
|
35
|
+
title: "Uncaught error in the page",
|
|
36
|
+
hint: "Fix the error the message names; it was thrown in the page and nothing caught it.",
|
|
37
|
+
docs: {
|
|
38
|
+
explanation: "The artifact's page threw an error that nothing caught, or a promise rejected with nothing handling it, while verify rendered it or while the smoke test used a control (the message says which). A viewer's page would meet the same error.",
|
|
39
|
+
fix: "Find the stack's first frame in the artifact's code and fix the error there, or catch it where the page can recover."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
MOSTRA_RUNTIME_BLANK: {
|
|
43
|
+
severity: "error",
|
|
44
|
+
phase: "runtime",
|
|
45
|
+
title: "Page rendered nothing",
|
|
46
|
+
hint: "Make the page render something visible; check its first render and its imports.",
|
|
47
|
+
docs: {
|
|
48
|
+
explanation: "After the page reported ready, no element had a visible box (text, image, SVG, canvas or video) and the screenshot was one uniform color. Usually the page threw during its first render, rendered nothing until data arrived, or hid everything with CSS.",
|
|
49
|
+
fix: "Look at the other diagnostics for an error during the first render, and make the page show content (or a loading state) right away."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
MOSTRA_RUNTIME_NOT_READY: {
|
|
53
|
+
severity: "error",
|
|
54
|
+
phase: "runtime",
|
|
55
|
+
title: "Page never became ready",
|
|
56
|
+
hint: "Make sure the entry's default export renders; check the other diagnostics for an error at load.",
|
|
57
|
+
docs: {
|
|
58
|
+
explanation: "The page never reported `mostra/ready`: the client runtime didn't mount it within the time verify allows, usually because the entry threw while loading or a module failed to load.",
|
|
59
|
+
fix: "Fix the load error the other diagnostics report. A page that waits for data should render a loading state first."
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
export { runtimeDiagnosticCodes, runtimeDiagnostics };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","names":[],"sources":["../../../src/diagnostics/codes/runtime.ts"],"sourcesContent":["/**\n * Diagnostic codes of the RUNTIME area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the RUNTIME area, in the order they were added. */\nexport const runtimeDiagnosticCodes = [\n \"MOSTRA_RUNTIME_WORKER_CRASHED\",\n \"MOSTRA_RUNTIME_WORKER_PARKED\",\n \"MOSTRA_RUNTIME_PAGE_ERROR\",\n \"MOSTRA_RUNTIME_BLANK\",\n \"MOSTRA_RUNTIME_NOT_READY\",\n // gen:codes\n] as const;\n\n/** The codes of the RUNTIME area. */\nexport type RuntimeDiagnosticCode = (typeof runtimeDiagnosticCodes)[number];\n\n/** The RUNTIME area's catalog entries. */\nexport const runtimeDiagnostics: AreaCatalog<RuntimeDiagnosticCode> = {\n MOSTRA_RUNTIME_WORKER_CRASHED: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Artifact server code crashed\",\n hint: \"Read the cause and the worker's last output, fix the server code, and publish again.\",\n docs: {\n explanation:\n \"The artifact version's worker process exited while serving a call: it threw outside any call, ran out of its heap (1 GiB by default), or kept its event loop blocked past the watchdog (10 s by default). Other artifacts and the gateway keep working (RT-04). Mostra appends `worker.crashed` with the cause and starts the worker again on the next request, waiting longer after each crash (1 s up to 60 s). `verify` reports it too when the source's server code crashes, fails to load or hangs while the page renders, even when the page handled the failed call.\",\n fix: \"Fix the crash in the server code. A long synchronous computation can raise `limits.watchdogMs` in the manifest, and a large data set `limits.heapMb`; both are stability limits, not security ones.\",\n },\n },\n MOSTRA_RUNTIME_WORKER_PARKED: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Artifact server code keeps crashing\",\n hint: \"Fix the server code and publish again, which clears the park; the message names the last crash's cause.\",\n docs: {\n explanation:\n \"The artifact version's worker crashed more than 5 times in 10 minutes, so Mostra stopped starting it (FAILURE_MODEL \\u00a72). Calls, runs and live sources of that version answer this code until the park clears, and the shell tells the viewer that the artifact's server code keeps crashing.\",\n fix: \"Find the cause in the message and the worker's output, fix it, and publish again: a new publish, `verify` or a restart of the instance clears the park.\",\n },\n },\n MOSTRA_RUNTIME_PAGE_ERROR: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Uncaught error in the page\",\n hint: \"Fix the error the message names; it was thrown in the page and nothing caught it.\",\n docs: {\n explanation:\n \"The artifact's page threw an error that nothing caught, or a promise rejected with nothing handling it, while verify rendered it or while the smoke test used a control (the message says which). A viewer's page would meet the same error.\",\n fix: \"Find the stack's first frame in the artifact's code and fix the error there, or catch it where the page can recover.\",\n },\n },\n MOSTRA_RUNTIME_BLANK: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Page rendered nothing\",\n hint: \"Make the page render something visible; check its first render and its imports.\",\n docs: {\n explanation:\n \"After the page reported ready, no element had a visible box (text, image, SVG, canvas or video) and the screenshot was one uniform color. Usually the page threw during its first render, rendered nothing until data arrived, or hid everything with CSS.\",\n fix: \"Look at the other diagnostics for an error during the first render, and make the page show content (or a loading state) right away.\",\n },\n },\n MOSTRA_RUNTIME_NOT_READY: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Page never became ready\",\n hint: \"Make sure the entry's default export renders; check the other diagnostics for an error at load.\",\n docs: {\n explanation:\n \"The page never reported `mostra/ready`: the client runtime didn't mount it within the time verify allows, usually because the entry threw while loading or a module failed to load.\",\n fix: \"Fix the load error the other diagnostics report. A page that waits for data should render a loading state first.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,yBAAyB;CACpC;CACA;CACA;CACA;CACA;AAEF;;AAMA,MAAa,qBAAyD;CACpE,+BAA+B;EAC7B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,8BAA8B;EAC5B,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,2BAA2B;EACzB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,sBAAsB;EACpB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,0BAA0B;EACxB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;AAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/secret.d.ts
|
|
3
|
+
/** The codes of the SECRET area, in the order they were added. */
|
|
4
|
+
export declare const secretDiagnosticCodes: readonly ["MOSTRA_SECRET_MISSING"];
|
|
5
|
+
/** The codes of the SECRET area. */
|
|
6
|
+
export type SecretDiagnosticCode = (typeof secretDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=secret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.d.ts","names":[],"sources":["../../../src/diagnostics/codes/secret.ts"],"mappings":";;;qBAMa;;YAMD,+BAA+B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/secret.ts
|
|
2
|
+
/** The codes of the SECRET area, in the order they were added. */
|
|
3
|
+
const secretDiagnosticCodes = ["MOSTRA_SECRET_MISSING"];
|
|
4
|
+
/** The SECRET area's catalog entries. */
|
|
5
|
+
const secretDiagnostics = { MOSTRA_SECRET_MISSING: {
|
|
6
|
+
severity: "error",
|
|
7
|
+
phase: "runtime",
|
|
8
|
+
title: "Secret not set",
|
|
9
|
+
hint: "Set the secret with `mostra secret set NAME`, reading the value from stdin.",
|
|
10
|
+
docs: {
|
|
11
|
+
explanation: "Server code called `secret(name)` for a secret that neither the host's `secrets` port, the artifact's own secrets nor the home's shared secrets hold (D44). The call throws, and an action run fails with this code.",
|
|
12
|
+
fix: "Set the secret for the artifact (`mostra secret set NAME --artifact <path|id>`) or for every artifact of the home (`mostra secret set NAME`), passing the value on stdin, then run the action again. Secret values never go into the artifact's source."
|
|
13
|
+
}
|
|
14
|
+
} };
|
|
15
|
+
//#endregion
|
|
16
|
+
export { secretDiagnosticCodes, secretDiagnostics };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=secret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.js","names":[],"sources":["../../../src/diagnostics/codes/secret.ts"],"sourcesContent":["/**\n * Diagnostic codes of the SECRET area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the SECRET area, in the order they were added. */\nexport const secretDiagnosticCodes = [\n \"MOSTRA_SECRET_MISSING\",\n // gen:codes\n] as const;\n\n/** The codes of the SECRET area. */\nexport type SecretDiagnosticCode = (typeof secretDiagnosticCodes)[number];\n\n/** The SECRET area's catalog entries. */\nexport const secretDiagnostics: AreaCatalog<SecretDiagnosticCode> = {\n MOSTRA_SECRET_MISSING: {\n severity: \"error\",\n phase: \"runtime\",\n title: \"Secret not set\",\n hint: \"Set the secret with `mostra secret set NAME`, reading the value from stdin.\",\n docs: {\n explanation:\n \"Server code called `secret(name)` for a secret that neither the host's `secrets` port, the artifact's own secrets nor the home's shared secrets hold (D44). The call throws, and an action run fails with this code.\",\n fix: \"Set the secret for the artifact (`mostra secret set NAME --artifact <path|id>`) or for every artifact of the home (`mostra secret set NAME`), passing the value on stdin, then run the action again. Secret values never go into the artifact's source.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,wBAAwB,CACnC,uBAEF;;AAMA,MAAa,oBAAuD,EAClE,uBAAuB;CACrB,UAAU;CACV,OAAO;CACP,OAAO;CACP,MAAM;CACN,MAAM;EACJ,aACE;EACF,KAAK;CACP;AACF,EAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/smoke.d.ts
|
|
3
|
+
/** The codes of the SMOKE area, in the order they were added. */
|
|
4
|
+
export declare const smokeDiagnosticCodes: readonly ["MOSTRA_SMOKE_NO_EFFECT", "MOSTRA_SMOKE_BUDGET"];
|
|
5
|
+
/** The codes of the SMOKE area. */
|
|
6
|
+
export type SmokeDiagnosticCode = (typeof smokeDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=smoke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smoke.d.ts","names":[],"sources":["../../../src/diagnostics/codes/smoke.ts"],"mappings":";;;qBAMa;;YAOD,8BAA8B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/diagnostics/codes/smoke.ts
|
|
2
|
+
/** The codes of the SMOKE area, in the order they were added. */
|
|
3
|
+
const smokeDiagnosticCodes = ["MOSTRA_SMOKE_NO_EFFECT", "MOSTRA_SMOKE_BUDGET"];
|
|
4
|
+
/** The SMOKE area's catalog entries. */
|
|
5
|
+
const smokeDiagnostics = {
|
|
6
|
+
MOSTRA_SMOKE_NO_EFFECT: {
|
|
7
|
+
severity: "warning",
|
|
8
|
+
phase: "smoke",
|
|
9
|
+
title: "Control showed no effect",
|
|
10
|
+
hint: "Observed only: using this control twice changed nothing verify could see; a control that acts on something verify can't observe needs no change.",
|
|
11
|
+
docs: {
|
|
12
|
+
explanation: "Verify's smoke test clicked or hovered the control the message names, once among the other controls and again after them, and saw no change either time: no change to the page, no request, no saved field, no navigation and no error. Controls that are disabled or already active (the selected tab) are skipped, and those that open on hover are hovered. A control can still be fine: it may act on something verify can't observe, such as the clipboard or a sound.",
|
|
13
|
+
fix: "Read the control's handler. If it does what it should, nothing needs to change; if it is meant to change the page, look at why it doesn't."
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
MOSTRA_SMOKE_BUDGET: {
|
|
17
|
+
severity: "hint",
|
|
18
|
+
phase: "smoke",
|
|
19
|
+
title: "Smoke test stopped at its budget",
|
|
20
|
+
hint: "Nothing to fix: the smoke test stops after 200 interactions or 60 s.",
|
|
21
|
+
docs: {
|
|
22
|
+
explanation: "The page has more controls than the smoke test uses in one run, so it stopped at its budget. The controls it used are counted in `smoke.interactions`.",
|
|
23
|
+
fix: "Nothing is required."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { smokeDiagnosticCodes, smokeDiagnostics };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=smoke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smoke.js","names":[],"sources":["../../../src/diagnostics/codes/smoke.ts"],"sourcesContent":["/**\n * Diagnostic codes of the SMOKE area.\n */\nimport type { AreaCatalog } from \"../spec.ts\";\n\n/** The codes of the SMOKE area, in the order they were added. */\nexport const smokeDiagnosticCodes = [\n \"MOSTRA_SMOKE_NO_EFFECT\",\n \"MOSTRA_SMOKE_BUDGET\",\n // gen:codes\n] as const;\n\n/** The codes of the SMOKE area. */\nexport type SmokeDiagnosticCode = (typeof smokeDiagnosticCodes)[number];\n\n/** The SMOKE area's catalog entries. */\nexport const smokeDiagnostics: AreaCatalog<SmokeDiagnosticCode> = {\n MOSTRA_SMOKE_NO_EFFECT: {\n severity: \"warning\",\n phase: \"smoke\",\n title: \"Control showed no effect\",\n hint: \"Observed only: using this control twice changed nothing verify could see; a control that acts on something verify can't observe needs no change.\",\n docs: {\n explanation:\n \"Verify's smoke test clicked or hovered the control the message names, once among the other controls and again after them, and saw no change either time: no change to the page, no request, no saved field, no navigation and no error. Controls that are disabled or already active (the selected tab) are skipped, and those that open on hover are hovered. A control can still be fine: it may act on something verify can't observe, such as the clipboard or a sound.\",\n fix: \"Read the control's handler. If it does what it should, nothing needs to change; if it is meant to change the page, look at why it doesn't.\",\n },\n },\n MOSTRA_SMOKE_BUDGET: {\n severity: \"hint\",\n phase: \"smoke\",\n title: \"Smoke test stopped at its budget\",\n hint: \"Nothing to fix: the smoke test stops after 200 interactions or 60 s.\",\n docs: {\n explanation:\n \"The page has more controls than the smoke test uses in one run, so it stopped at its budget. The controls it used are counted in `smoke.interactions`.\",\n fix: \"Nothing is required.\",\n },\n },\n // gen:entries\n};\n"],"mappings":";;AAMA,MAAa,uBAAuB,CAClC,0BACA,qBAEF;;AAMA,MAAa,mBAAqD;CAChE,wBAAwB;EACtB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;CACA,qBAAqB;EACnB,UAAU;EACV,OAAO;EACP,OAAO;EACP,MAAM;EACN,MAAM;GACJ,aACE;GACF,KAAK;EACP;CACF;AAEF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../spec.js";
|
|
2
|
+
//#region src/diagnostics/codes/submit.d.ts
|
|
3
|
+
/** The codes of the SUBMIT area, in the order they were added. */
|
|
4
|
+
export declare const submitDiagnosticCodes: readonly ["MOSTRA_SUBMIT_ALREADY", "MOSTRA_SUBMIT_REVISION_MOVED", "MOSTRA_SUBMIT_POLICY_NONE", "MOSTRA_SUBMIT_NOT_FOUND", "MOSTRA_SUBMIT_VIEW_INVALID", "MOSTRA_SUBMIT_SIGNAL_INVALID", "MOSTRA_SUBMIT_CHANNEL_DENIED", "MOSTRA_SUBMIT_BLOCKED"];
|
|
5
|
+
/** The codes of the SUBMIT area. */
|
|
6
|
+
export type SubmitDiagnosticCode = (typeof submitDiagnosticCodes)[number];
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=submit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submit.d.ts","names":[],"sources":["../../../src/diagnostics/codes/submit.ts"],"mappings":";;;qBAMa;;YAaD,+BAA+B"}
|