@spotto/contract 1.0.70-alpha.6 → 1.0.70-alpha.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.
@@ -3,8 +3,19 @@ export interface PostAiExpressionResponse {
3
3
  ok: boolean;
4
4
  /** The generated excelexp expression, or null when declined / unbuildable. */
5
5
  expression: string | null;
6
- /** Author-facing note: why it declined, or what is ambiguous. */
6
+ /**
7
+ * readinessRule: the display text shown when the rule fires — house-style, with
8
+ * `{FieldName}` placeholders. null for computedField, and null on a decline.
9
+ */
7
10
  message: string | null;
11
+ /**
12
+ * readinessRule severity, set ONLY from explicit severity words in the prompt:
13
+ * 1 = amber, 2 = red. null when the prompt stated no severity (the author picks)
14
+ * or for computedField.
15
+ */
16
+ level: 1 | 2 | null;
17
+ /** Author-facing explanation/caveat: why it declined, or a one-line caveat. */
18
+ note: string | null;
8
19
  /** Server-side compiler findings (empty when the expression compiles cleanly). */
9
20
  warnings: string[];
10
21
  /** The model that answered. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.70-alpha.6",
4
+ "version": "1.0.70-alpha.7",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -18,5 +18,5 @@
18
18
  "@types/geojson": "^7946.0.11",
19
19
  "shx": "^0.3.4"
20
20
  },
21
- "gitHead": "e32007c14ef62c49c1230f49be30f97fa033d7db"
21
+ "gitHead": "0aea12e3fb0ac4b03042419430b59629caeb272a"
22
22
  }