@frockbot/kernel-do 0.3.33 → 0.3.35

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/applets.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/kernel-do",
3
- "version": "0.3.33",
3
+ "version": "0.3.35",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -12,8 +12,8 @@
12
12
  "typecheck": "tsc --noEmit -p tsconfig.json"
13
13
  },
14
14
  "dependencies": {
15
- "@frockbot/kernel-composition": "0.3.33",
16
- "@frockbot/kernel-contracts": "0.3.33",
15
+ "@frockbot/kernel-composition": "0.3.35",
16
+ "@frockbot/kernel-contracts": "0.3.35",
17
17
  "cordis": "4.0.0-rc.8"
18
18
  },
19
19
  "devDependencies": {
package/src/applets.ts CHANGED
@@ -578,6 +578,20 @@ export interface AppletViewerClaimsV1 {
578
578
  /** Fifteen minutes, per plan §4. */
579
579
  export const APPLET_VIEWER_TOKEN_TTL_MS = 15 * 60_000;
580
580
 
581
+ /*
582
+ * The two halves of one failure: the deployment cannot sign a viewer token,
583
+ * because it was never given the secret that signs them.
584
+ *
585
+ * A User can do nothing about that and does not need to know its name, so they
586
+ * get a sentence that is true and final. The operator needs the name and gets
587
+ * it in the Worker log, where a secret's absence is a fact about the
588
+ * deployment rather than something to say over somebody's conversation.
589
+ */
590
+ export const APPLETS_UNAVAILABLE_MESSAGE_V1 =
591
+ "Applets are unavailable right now.";
592
+ export const APPLET_VIEWER_UNCONFIGURED_DETAIL_V1 =
593
+ "APPLET_VIEWER_SECRET is not set on this deployment, so no Applet viewer token can be signed and every published Applet answers 503. See docs/architecture/delivery.md.";
594
+
581
595
  export class AppletViewerTokenError extends Error {
582
596
  override readonly name = "AppletViewerTokenError";
583
597
  readonly status: number;