@frockbot/computer-core 0.3.4 → 0.3.7

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 +2 -2
  2. package/src/core.ts +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/computer-core",
3
- "version": "0.3.4",
3
+ "version": "0.3.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -12,7 +12,7 @@
12
12
  "typecheck": "tsc --noEmit -p tsconfig.json"
13
13
  },
14
14
  "dependencies": {
15
- "@frockbot/kernel-contracts": "0.3.4",
15
+ "@frockbot/kernel-contracts": "0.3.7",
16
16
  "cordis": "4.0.0-rc.8"
17
17
  },
18
18
  "devDependencies": {
package/src/core.ts CHANGED
@@ -45,6 +45,18 @@ export type ComputerErrorCode =
45
45
  | "aborted"
46
46
  | "provider-failure";
47
47
 
48
+ /**
49
+ * What every seam says when this deployment has no Computer at all.
50
+ *
51
+ * One sentence, addressed to the person reading it. It names no environment
52
+ * variable and no settings screen: attaching a Computer is a deployment act,
53
+ * and nothing a User or a Bot can do inside the product changes it, so
54
+ * inventing a remedy here only sends the User looking for a control that does
55
+ * not exist.
56
+ */
57
+ export const COMPUTER_UNCONFIGURED_MESSAGE_V1 =
58
+ "This FrockBot has no Computer. Nothing in the app can attach one.";
59
+
48
60
  export class ComputerError extends Error {
49
61
  constructor(
50
62
  readonly code: ComputerErrorCode,