ovr 7.0.0-next.23 → 7.0.0-next.25

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # ovr
2
2
 
3
+ ## 7.0.0-next.25
4
+
5
+ ### Patch Changes
6
+
7
+ - d82e9b9: The error for `preprocess()` on a table column says what to do: convert the value in your handler before inserting, or have the field reject what should not be stored.
8
+
9
+ ## 7.0.0-next.24
10
+
11
+ ### Patch Changes
12
+
13
+ - A tool's form lists every choice given as the page renders, however many there are.
14
+
3
15
  ## 7.0.0-next.23
4
16
 
5
17
  ### Patch Changes
@@ -27,6 +39,7 @@
27
39
  - Form state in a URL shows no more rows of a list than it takes, and never sets a row's hidden value.
28
40
  - The page a sign-in link opens is sent with `Referrer-Policy: no-referrer`.
29
41
  - A file's name in an agent's tool result is only a name.
42
+ - A write that redirects answers an agent `Redirected to /recipes`, without the `Done.` that next.18 put before it.
30
43
 
31
44
  ## 7.0.0-next.19
32
45
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEN,KAAK,MAAM,EAKX,MAAM,oBAAoB,CAAC;AAyC5B,kFAAkF;AAClF,eAAO,MAAM,KAAK,eAAkB,CAAC;AAErC,yBAAiB,QAAQ,CAAC;IACzB,kCAAkC;IAClC,KAAY,OAAO,GAAG;QACrB,wEAAwE;QACxE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;QAEzC;;;;;;;;;;;;WAYG;QACH,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,EACd,CAAC,CACD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,GAAG,KAET;YACA,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,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AAS,CAAC;QAEzC;;;;;;;;;;;;WAYG;QACH,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,EACd,CAAC,CACD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,GAAG,KAET;YACA,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC7B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;YAC7B,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;SAC1B,GACD,SAAS,CAAC,GACZ,SAAS,CAAC;KACb,CAAC;CACF;AAq1CD;;;;;;;;;GASG;AACH,qBAAa,QAAQ;;IAOpB;;;;;OAKG;IACH,YAAY,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,EAG3D;IAED,+CAA+C;IACxC,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAWrE;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,+CAE7D;IAED;;;;;;OAMG;IACH,OAAa,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,mBAcnE;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,KAAK,CAEzD;CACD"}
@@ -756,11 +756,7 @@ class Writer {
756
756
  let line = `- ${Writer.#code(f.name)}`;
757
757
  if (f.value.length)
758
758
  line += `: ${Writer.#codes(f.value)}`;
759
- // many choices, such as every record a person has, are a
760
- // few of them and how many: another tool lists them all
761
- if (f.options.length > 20)
762
- line += `, options: 5 of ${f.options.length}, ${Writer.#codes(f.options.slice(0, 5))}`;
763
- else if (f.options.length)
759
+ if (f.options.length)
764
760
  line += `, options: ${Writer.#codes(f.options)}`;
765
761
  return Writer.#notes(f, line);
766
762
  })
@@ -116,7 +116,7 @@ export class Table extends Schema {
116
116
  // form fields normalize their input, a stored value parses unchanged
117
117
  if (normalizers.has(def.fn))
118
118
  return Table.#type(def.inner.def, column);
119
- throw Table.#invalid(column, `preprocess() would change stored values when they are read, convert before inserting instead`);
119
+ throw Table.#invalid(column, `preprocess() would run on stored values as they are read, convert the value in your handler before inserting instead, or have the field reject what should not be stored`);
120
120
  case "json":
121
121
  throw Table.#invalid(column, `use the parsed object or array schema for JSON instead of json()`);
122
122
  // optional() and nullish() are type errors, see `Table.Omissible`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ovr",
3
3
  "description": "Web apps anyone can use. Each route serves people a page and agents Markdown and MCP tools, with forms, Postgres, and passkey sign-in built in.",
4
- "version": "7.0.0-next.23",
4
+ "version": "7.0.0-next.25",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -888,11 +888,7 @@ class Writer {
888
888
  .map((f) => {
889
889
  let line = `- ${Writer.#code(f.name)}`;
890
890
  if (f.value.length) line += `: ${Writer.#codes(f.value)}`;
891
- // many choices, such as every record a person has, are a
892
- // few of them and how many: another tool lists them all
893
- if (f.options.length > 20)
894
- line += `, options: 5 of ${f.options.length}, ${Writer.#codes(f.options.slice(0, 5))}`;
895
- else if (f.options.length)
891
+ if (f.options.length)
896
892
  line += `, options: ${Writer.#codes(f.options)}`;
897
893
  return Writer.#notes(f, line);
898
894
  })
@@ -280,7 +280,7 @@ export class Table<
280
280
 
281
281
  throw Table.#invalid(
282
282
  column,
283
- `preprocess() would change stored values when they are read, convert before inserting instead`,
283
+ `preprocess() would run on stored values as they are read, convert the value in your handler before inserting instead, or have the field reject what should not be stored`,
284
284
  );
285
285
  case "json":
286
286
  throw Table.#invalid(