@jigs.design/server 0.3.6 → 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/dist/scope.js +8 -4
  2. package/package.json +6 -6
package/dist/scope.js CHANGED
@@ -7,9 +7,13 @@ import { z } from "zod";
7
7
  //#region src/scope.ts
8
8
  /** The longest description a saved tag may have, in characters. */
9
9
  const MAX_DESCRIPTION = 300;
10
- /** The longest example a saved tag may have, in characters. */
11
- const MAX_EXAMPLE = 300;
12
- /** The longest signature a saved tag may render to, in characters. */
10
+ /** The longest example a saved tag may have, in characters: sample rows fit. */
11
+ const MAX_EXAMPLE = 1e3;
12
+ /**
13
+ * The longest signature a saved tag may render to, in characters. Expression
14
+ * defaults print as `{…}`, so a signature is its prop names and scalar
15
+ * defaults: a backstop, not a bound a template meets.
16
+ */
13
17
  const MAX_SIGNATURE = 500;
14
18
  /** What the scope cache holds at most: 32 MB of sources and tails. */
15
19
  const MAX_SCOPE_BYTES = 33554432;
@@ -61,7 +65,7 @@ function scanTag(row, reserved) {
61
65
  const signature = jigSignature({
62
66
  name,
63
67
  source: split.body
64
- });
68
+ }, { elideExpressions: true });
65
69
  lines.push([
66
70
  "signature",
67
71
  signature,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jigs.design/server",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "createJigsServer: checks and streams programs, runs procedures, and serves the sandbox frame.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,11 +29,11 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@jigs.design/compiler": "0.3.6",
33
- "@jigs.design/host": "0.3.6",
34
- "@jigs.design/prompt": "0.3.6",
35
- "@jigs.design/protocol": "0.3.6",
36
- "@jigs.design/runtime": "0.3.6"
32
+ "@jigs.design/compiler": "0.3.7",
33
+ "@jigs.design/host": "0.3.7",
34
+ "@jigs.design/prompt": "0.3.7",
35
+ "@jigs.design/protocol": "0.3.7",
36
+ "@jigs.design/runtime": "0.3.7"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "zod": "^4.0.0"