@bendyline/gezel-sdk 1.1.13 → 1.1.15

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/README.md CHANGED
@@ -30,6 +30,25 @@ gezel.output({
30
30
  });
31
31
  ```
32
32
 
33
+ ## Running a script
34
+
35
+ Save the script as `~/.gezel/projects/<projectId>/scripts/has-tests.ts`, or
36
+ create it under **Scripts** in the Gezel app. The daemon then runs it on
37
+ demand, as a craftbook step's hook, or as a completion gate.
38
+ [Writing scripts with gezel-sdk](https://gezel.com/docs/writing-scripts-with-gezel-sdk/)
39
+ covers inputs, capabilities and gates.
40
+
41
+ The daemon's default executor is a Node sandbox that starts a script only inside
42
+ the operating system's own sandbox: Seatbelt on macOS, a systemd or helper
43
+ sandbox on Linux, and Microsoft's container launcher (MXC) on Windows. The
44
+ desktop app installs the Windows launcher; a daemon installed from npm downloads
45
+ it on first start when its security level allows app network traffic. Without
46
+ one, the daemon refuses to start a script rather than run it unconfined, with
47
+ `denyNet requires an enforceable OS network boundary`. To run scripts in your
48
+ own process instead, use the QuickJS executor from
49
+ [`@bendyline/gezel-script-runtime`](https://www.npmjs.com/package/@bendyline/gezel-script-runtime),
50
+ which needs no operating-system sandbox.
51
+
33
52
  ## Entry points
34
53
 
35
54
  | Subpath | Contents |
package/dist/checks.d.ts CHANGED
@@ -58,12 +58,17 @@ declare function runSniff(name: StepSniffName, content: string): boolean;
58
58
  * factual chat. It catches invention, not a wrong source copied faithfully.
59
59
  *
60
60
  * Citations it reads: `[n]` markers resolved through a Sources / References
61
- * list, and inline `(source: path)` notes. Cited URLs, `knowledge://`
62
- * references and PDF or Office files cannot be read here as text, so a
63
- * sentence citing only those counts as cited but unverified, never as
64
- * invented. `sources` adds material the facts
65
- * may come from without being cited (a contract's supplied brief), so a true
66
- * but uncited detail reads as a citation slip rather than an invention.
61
+ * list, inline `(source: path)` notes, bracketed paths, and a parenthesis
62
+ * holding only file names when those files exist (`(win-fulfillment.md)`).
63
+ * Cited URLs, `knowledge://` references and PDF or Office files cannot be
64
+ * read here as text, so a sentence citing only those counts as cited but
65
+ * unverified, never as invented. `sources` adds material the facts may come
66
+ * from without being cited (a contract's supplied brief), so a true but
67
+ * uncited detail reads as a citation slip rather than an invention.
68
+ *
69
+ * An HTML document or source is read as the text its reader sees
70
+ * (`htmlAsMarkdown`), so its styles and head are not facts and its headings,
71
+ * lists and links cite the way their Markdown forms do.
67
72
  */
68
73
  interface ClaimsGroundedOptions {
69
74
  /** Files or folders the facts may come from, cited or not. */
@@ -97,6 +102,8 @@ interface ClaimsGroundedResult extends CheckResult {
97
102
  };
98
103
  problems: string[];
99
104
  }
105
+ /** The `n -> reference` entries a document's own Sources / References section defines. */
106
+ declare function sourceListReferences(markdown: string): ReadonlyMap<number, string>;
100
107
  declare function claimsGrounded(ws: WorkspaceLike, file: string, opts?: ClaimsGroundedOptions): Promise<ClaimsGroundedResult>;
101
108
 
102
109
  /**
@@ -472,6 +479,13 @@ declare function citationsResolve(ws: WorkspaceLike, file: string, opts?: {
472
479
  * like a missing file.
473
480
  */
474
481
  resolveKnowledge?: (uri: string) => Promise<boolean>;
482
+ /**
483
+ * The document is a plan: a missing path it marks as new or to be
484
+ * created is forgiven like a known path (it never counts toward the
485
+ * minimum). Off for sources, where "a new study `x.pdf`" would launder
486
+ * a fabrication.
487
+ */
488
+ proposed?: boolean;
475
489
  }): Promise<CitationsResult>;
476
490
  /** Spec for {@link valuesSubsetOf}. */
477
491
  interface ValuesSubsetSpec {
@@ -963,4 +977,4 @@ declare function workspaceFromGezel(g: {
963
977
  };
964
978
  }): WorkspaceLike;
965
979
 
966
- export { type CellType, type CheckResult, type CitationsResult, type ClaimsGroundedOptions, type ClaimsGroundedResult, type CodebaseReviewReportOptions, type CodebaseReviewReportResult, type CorpusCoverageLedger, type CorpusCoverageMergeResult, type CorpusCoverageShardInput, type CsvShapeResult, type CsvShapeSpec, type EntitiesResult, type EntitySpec, type ExplainableSniff, type FigureCheckOptions, type FigureCheckResult, type FigureFinding, type FigureFindingKind, GateScriptResult, type GroundingFact, type GroundingResult, IMG_EXT, type ImageRefsReport, type InlineScript, type JsonPathEqualsResult, type JsonScalar, type JudgeVerdict, MIN_INLINE_JS_BYTES, MIN_JUDGE_EVIDENCE_SUBSTRING, type MarkdownHeadingsMatchResult, type ParsedTable, type PlanRow, type PlanStructureResult, type PlanStructureSpec, type ReadingLevelResult, type RecordFieldSpec, type RecordSchemaResult, type RecordSchemaSpec, type ScriptValidation, type SecurityReportOptions, type SecurityReportResult, type StepSniffName, type TableShapeResult, type TableShapeSpec, type UnsupportedClaimPattern, type UnsupportedClaimViolation, type UnsupportedClaimsResult, type ValuesSubsetResult, type ValuesSubsetSpec, type WordBandResult, type WorkspaceLike, buildJudgePrompt, checkFigures, citationsResolve, citedPathKey, claimsGrounded, cleanCitedPath, codebaseReviewReport, containsPattern, countDistinctMatches, createCitedPathChecker, cssMinBytes, csvShape, dataTableSniff, detectTypeScriptOnlySyntax, detectUnclosedScript, esmImports, explainSniff, extractInlineScripts, extractMoneyAmounts, fileCountByExt, fileMinBytes, fileMinLines, findImageRefs, frontmatterList, gateResult, grepMatches, htmlCompleteSniff, htmlGameSniff, imageRefsResolve, inlineJsBytes, isRealIsoDate, jsonPathEquals, jsonValid, listedFiles, markdownHeadingsMatch, mergeCorpusCoverageShards, namedEntitiesConsistent, normalizeDigitGroups, normalizeInlineEmphasis, normalizeTypography, notContainsPattern, parseCsv, parseJudgeVerdict, parseMarkdownTable, planStructure, readingLevel, recordSchema, requireOrderedSections, resolveRelative, runSniff, securityReport, standaloneJsParses, tableShape, totalMinBytes, unsupportedClaims, validateJudgeEvidence, validateScriptSyntax, valueGrounding, valuesSubsetOf, wordBand, workspaceFromGezel, wrapperReturnHint };
980
+ export { type CellType, type CheckResult, type CitationsResult, type ClaimsGroundedOptions, type ClaimsGroundedResult, type CodebaseReviewReportOptions, type CodebaseReviewReportResult, type CorpusCoverageLedger, type CorpusCoverageMergeResult, type CorpusCoverageShardInput, type CsvShapeResult, type CsvShapeSpec, type EntitiesResult, type EntitySpec, type ExplainableSniff, type FigureCheckOptions, type FigureCheckResult, type FigureFinding, type FigureFindingKind, GateScriptResult, type GroundingFact, type GroundingResult, IMG_EXT, type ImageRefsReport, type InlineScript, type JsonPathEqualsResult, type JsonScalar, type JudgeVerdict, MIN_INLINE_JS_BYTES, MIN_JUDGE_EVIDENCE_SUBSTRING, type MarkdownHeadingsMatchResult, type ParsedTable, type PlanRow, type PlanStructureResult, type PlanStructureSpec, type ReadingLevelResult, type RecordFieldSpec, type RecordSchemaResult, type RecordSchemaSpec, type ScriptValidation, type SecurityReportOptions, type SecurityReportResult, type StepSniffName, type TableShapeResult, type TableShapeSpec, type UnsupportedClaimPattern, type UnsupportedClaimViolation, type UnsupportedClaimsResult, type ValuesSubsetResult, type ValuesSubsetSpec, type WordBandResult, type WorkspaceLike, buildJudgePrompt, checkFigures, citationsResolve, citedPathKey, claimsGrounded, cleanCitedPath, codebaseReviewReport, containsPattern, countDistinctMatches, createCitedPathChecker, cssMinBytes, csvShape, dataTableSniff, detectTypeScriptOnlySyntax, detectUnclosedScript, esmImports, explainSniff, extractInlineScripts, extractMoneyAmounts, fileCountByExt, fileMinBytes, fileMinLines, findImageRefs, frontmatterList, gateResult, grepMatches, htmlCompleteSniff, htmlGameSniff, imageRefsResolve, inlineJsBytes, isRealIsoDate, jsonPathEquals, jsonValid, listedFiles, markdownHeadingsMatch, mergeCorpusCoverageShards, namedEntitiesConsistent, normalizeDigitGroups, normalizeInlineEmphasis, normalizeTypography, notContainsPattern, parseCsv, parseJudgeVerdict, parseMarkdownTable, planStructure, readingLevel, recordSchema, requireOrderedSections, resolveRelative, runSniff, securityReport, sourceListReferences, standaloneJsParses, tableShape, totalMinBytes, unsupportedClaims, validateJudgeEvidence, validateScriptSyntax, valueGrounding, valuesSubsetOf, wordBand, workspaceFromGezel, wrapperReturnHint };
package/dist/checks.js CHANGED
@@ -695,6 +695,7 @@ var MONTHS = [
695
695
  "november",
696
696
  "december"
697
697
  ];
698
+ var MONTH_NAME = MONTHS.map((m) => m[0].toUpperCase() + m.slice(1)).join("|");
698
699
  var SMALL_NUMBERS = [
699
700
  "zero",
700
701
  "one",
@@ -742,6 +743,26 @@ var NAME_JOINERS = /* @__PURE__ */ new Set([
742
743
  "the",
743
744
  "and"
744
745
  ]);
746
+ var MONTH_BEFORE_DAY = new RegExp(
747
+ `\\b(${MONTH_NAME})\\s+(?:\\d{1,2}(?:st|nd|rd|th)?\\s*[-\u2013\u2014]\\s*)?$`
748
+ );
749
+ var MONTH_AFTER_DAY = new RegExp(
750
+ `^\\s+(?:of\\s+)?(${MONTH_NAME})\\b(?:,?\\s+(1\\d{3}|20\\d{2})\\b)?`
751
+ );
752
+ var YEAR_AFTER_DAY = /^,?\s+(1\d{3}|20\d{2})\b/;
753
+ function dayOfMonth(before, after, digits) {
754
+ const day = Number(digits);
755
+ if (!/^\d{1,2}$/.test(digits) || day < 1 || day > 31) return void 0;
756
+ const monthOf = (name) => MONTHS.indexOf((name ?? "").toLowerCase()) + 1;
757
+ const lead = MONTH_BEFORE_DAY.exec(before);
758
+ if (lead) {
759
+ const year = YEAR_AFTER_DAY.exec(after)?.[1];
760
+ return { month: monthOf(lead[1]), ...year ? { year } : {} };
761
+ }
762
+ const trail = MONTH_AFTER_DAY.exec(after);
763
+ if (trail) return { month: monthOf(trail[1]), ...trail[2] ? { year: trail[2] } : {} };
764
+ return void 0;
765
+ }
745
766
  var CLOCK_TIME = /(?<![\d:.])((?:[01]?\d|2[0-3]):[0-5]\d(?::[0-5]\d)?)(?![\d:])/g;
746
767
  var APPROXIMATE = /(?:[~≈]\s*|\b(?:about|around|roughly|approximately|approx\.|nearly|almost|circa|some)\s+)(?:\d[\d,.]*\s*(?:[-–—]|to)\s*)?$/i;
747
768
  var ENUMERATOR_LABEL = /(?:\b(?:step|phase|slide|part|stage|round|option|item|section|chapter|no\.)\s*|[#§]\s*)$/i;
@@ -754,7 +775,7 @@ function extractClaims(text) {
754
775
  const claims = [];
755
776
  const seen = /* @__PURE__ */ new Set();
756
777
  const add = (kind, value, flags = {}) => {
757
- const key = `${kind}:${value.toLowerCase()}`;
778
+ const key = `${kind}:${value.toLowerCase()}${flags.day ? `@${flags.day.month}` : ""}`;
758
779
  if (!seen.has(key)) {
759
780
  seen.add(key);
760
781
  claims.push({
@@ -762,7 +783,8 @@ function extractClaims(text) {
762
783
  value,
763
784
  ...flags.approx ? { approx: true } : {},
764
785
  ...flags.percent ? { percent: true } : {},
765
- ...flags.clock ? { clock: true } : {}
786
+ ...flags.clock ? { clock: true } : {},
787
+ ...flags.day ? { day: flags.day } : {}
766
788
  });
767
789
  }
768
790
  };
@@ -773,22 +795,25 @@ function extractClaims(text) {
773
795
  for (const m of unquoted.matchAll(CLOCK_TIME)) add("number", m[1] ?? "", { clock: true });
774
796
  const numeric = unquoted.replace(CLOCK_TIME, (time) => " ".repeat(time.length));
775
797
  for (const m of numeric.matchAll(
776
- /(?<![\w.])(\d{1,3}(?:,\d{3})+|\d+(?:\.\d+)?)(?:st|nd|rd|th|s)?(?![\w.]*\d)/g
798
+ /(?<![\w.])(\d{1,3}(?:,\d{3})+(?:\.\d+)?|\d+(?:\.\d+)?)(?:st|nd|rd|th|s)?(?![\w.]*\d)/g
777
799
  )) {
778
800
  const digits = (m[1] ?? "").replace(/,/g, "");
779
801
  const value = Number(digits);
780
802
  const at = m.index ?? 0;
781
- if (isEnumerator(numeric.slice(0, at), numeric.slice(at + m[0].length), value)) continue;
803
+ const before = numeric.slice(0, at);
804
+ const after = numeric.slice(at + m[0].length);
805
+ if (isEnumerator(before, after, value)) continue;
782
806
  if (/^(1[0-9]{3}|20[0-9]{2})$/.test(digits) && !(m[1] ?? "").includes(",")) add("year", digits);
783
- else if (Number.isFinite(value))
807
+ else if (Number.isFinite(value)) {
808
+ const day = dayOfMonth(before, after, digits);
784
809
  add("number", digits, {
785
810
  approx: APPROXIMATE.test(unquoted.slice(Math.max(0, at - 24), at)),
786
- percent: /^\s*(?:%|percent\b)/i.test(unquoted.slice(at + m[0].length))
811
+ percent: /^\s*(?:%|percent\b)/i.test(unquoted.slice(at + m[0].length)),
812
+ ...day ? { day } : {}
787
813
  });
814
+ }
788
815
  }
789
- for (const m of unquoted.matchAll(
790
- /\b(January|February|March|April|May|June|July|August|September|October|November|December)\b/g
791
- )) {
816
+ for (const m of unquoted.matchAll(new RegExp(`\\b(${MONTH_NAME})\\b`, "g"))) {
792
817
  if (m.index !== 0 || m[1] !== "May") add("month", m[1] ?? "");
793
818
  }
794
819
  const raw = unquoted.split(/\s+/);
@@ -861,6 +886,11 @@ function claimFound(claim, evidence) {
861
886
  return new RegExp(`\\b\\d{4}-${month}\\b`).test(evidence);
862
887
  }
863
888
  if (kind !== "number") return false;
889
+ if (claim.day) {
890
+ const pad = (n) => String(n).padStart(2, "0");
891
+ const iso = `(?<!\\d)${claim.day.year ?? "\\d{4}"}-${pad(claim.day.month)}-${pad(Number(value))}(?!\\d)`;
892
+ if (new RegExp(iso).test(evidence)) return true;
893
+ }
864
894
  if (claim.clock) {
865
895
  const other = /^0\d:/.test(value) ? value.slice(1) : /^\d:/.test(value) ? `0${value}` : "";
866
896
  return other !== "" && claimPattern(kind, other).test(evidence);
@@ -963,6 +993,7 @@ function groundContext(evidence, options) {
963
993
  everything: [...normalized.values()].join("\n") + given,
964
994
  sources: [...normalized.values(), ...given ? [given] : []],
965
995
  given,
996
+ names: options.names ?? true,
966
997
  ...options.opaque ? { opaque: options.opaque } : {}
967
998
  };
968
999
  }
@@ -1006,7 +1037,7 @@ function groundWith(ctx, sentence) {
1006
1037
  if (sentence.cites.length === 0 && DISCLAIMS.test(sentence.text)) {
1007
1038
  return { ...sentence, status: "non-factual", checks: [], missing: [] };
1008
1039
  }
1009
- const claims = extractClaims(sentence.text);
1040
+ const claims = extractClaims(sentence.text).filter((c) => ctx.names || c.kind !== "name");
1010
1041
  const opaque = sentence.cites.filter((n) => !ctx.evidence.has(n) && ctx.opaque?.(n));
1011
1042
  const badCites = sentence.cites.filter((n) => !ctx.evidence.has(n) && !opaque.includes(n));
1012
1043
  if (badCites.length > 0) {
@@ -1083,6 +1114,185 @@ function describeGroundingProblems(problems, max = 8) {
1083
1114
  return lines.join("\n");
1084
1115
  }
1085
1116
 
1117
+ // ../core/src/checks/html-text.ts
1118
+ var HTML_FILE = /\.x?html?$/i;
1119
+ var HTML_START = /^\s*(?:<!doctype\s+html|<html[\s>])/i;
1120
+ function isHtmlDocument(path, content) {
1121
+ return HTML_FILE.test(path) || HTML_START.test(content);
1122
+ }
1123
+ var HIDDEN = /<(head|title|style|script|noscript|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi;
1124
+ var COMMENT = /<!--[\s\S]*?(?:-->|$)/g;
1125
+ var TOKEN = /<(\/?)([a-z][\w:-]*)((?:[^>"']|"[^"]*"|'[^']*')*)>|<[!?][^>]*>|[^<]+|</gi;
1126
+ var BLOCK = /* @__PURE__ */ new Set([
1127
+ "address",
1128
+ "article",
1129
+ "aside",
1130
+ "blockquote",
1131
+ "body",
1132
+ "br",
1133
+ "caption",
1134
+ "center",
1135
+ "dd",
1136
+ "details",
1137
+ "dialog",
1138
+ "div",
1139
+ "dl",
1140
+ "dt",
1141
+ "fieldset",
1142
+ "figcaption",
1143
+ "figure",
1144
+ "footer",
1145
+ "form",
1146
+ "header",
1147
+ "hgroup",
1148
+ "hr",
1149
+ "html",
1150
+ "main",
1151
+ "nav",
1152
+ "ol",
1153
+ "p",
1154
+ "section",
1155
+ "summary",
1156
+ "table",
1157
+ "tbody",
1158
+ "tfoot",
1159
+ "thead",
1160
+ "ul"
1161
+ ]);
1162
+ var NAMED_ENTITIES = {
1163
+ amp: "&",
1164
+ lt: "<",
1165
+ gt: ">",
1166
+ quot: '"',
1167
+ apos: "'",
1168
+ nbsp: " ",
1169
+ ndash: "\u2013",
1170
+ mdash: "\u2014",
1171
+ hellip: "\u2026",
1172
+ lsquo: "\u2018",
1173
+ rsquo: "\u2019",
1174
+ ldquo: "\u201C",
1175
+ rdquo: "\u201D",
1176
+ middot: "\xB7",
1177
+ bull: "\u2022",
1178
+ rarr: "\u2192",
1179
+ larr: "\u2190",
1180
+ times: "\xD7",
1181
+ minus: "\u2212",
1182
+ deg: "\xB0",
1183
+ percnt: "%",
1184
+ euro: "\u20AC",
1185
+ pound: "\xA3",
1186
+ cent: "\xA2",
1187
+ yen: "\xA5",
1188
+ copy: "\xA9",
1189
+ reg: "\xAE",
1190
+ trade: "\u2122"
1191
+ };
1192
+ function decodeEntities(text) {
1193
+ return text.replace(/&(?:#(\d+)|#x([0-9a-f]+)|([a-z]+));/gi, (whole, dec, hex, name) => {
1194
+ if (dec || hex) {
1195
+ const code = dec ? Number(dec) : Number.parseInt(hex, 16);
1196
+ return code > 0 && code <= 1114111 ? String.fromCodePoint(code === 160 ? 32 : code) : whole;
1197
+ }
1198
+ return NAMED_ENTITIES[String(name).toLowerCase()] ?? whole;
1199
+ });
1200
+ }
1201
+ function attribute(attrs, name) {
1202
+ const m = new RegExp(`\\b${name}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`, "i").exec(attrs);
1203
+ return m ? decodeEntities(m[1] ?? m[2] ?? m[3] ?? "") : null;
1204
+ }
1205
+ function htmlAsMarkdown(html) {
1206
+ const source = html.replace(COMMENT, "").replace(HIDDEN, "");
1207
+ const out = [];
1208
+ const lists = [];
1209
+ const links = [];
1210
+ let pre = 0;
1211
+ let cell = 0;
1212
+ let marker = -1;
1213
+ const newline = () => {
1214
+ if (cell > 0) {
1215
+ out.push(" ");
1216
+ return;
1217
+ }
1218
+ if (marker >= 0 && out.slice(marker).every((part) => !part.trim())) return;
1219
+ marker = -1;
1220
+ out.push("\n");
1221
+ };
1222
+ for (const m of source.matchAll(TOKEN)) {
1223
+ const [whole, slash, rawName, attrs = ""] = m;
1224
+ if (!rawName) {
1225
+ if (whole.startsWith("<") && whole.length > 1) continue;
1226
+ const text = decodeEntities(whole);
1227
+ out.push(pre > 0 ? text : text.replace(/\s+/g, " "));
1228
+ continue;
1229
+ }
1230
+ const name = rawName.toLowerCase();
1231
+ const closing = slash === "/";
1232
+ const heading = /^h([1-6])$/.exec(name);
1233
+ if (heading) {
1234
+ out.push(closing ? "\n" : `
1235
+ ${"#".repeat(Number(heading[1]))} `);
1236
+ } else if (name === "pre") {
1237
+ pre = Math.max(0, pre + (closing ? -1 : 1));
1238
+ out.push("\n```\n");
1239
+ } else if (name === "code") {
1240
+ if (pre === 0) out.push("`");
1241
+ } else if (name === "strong" || name === "b") {
1242
+ out.push("**");
1243
+ } else if (name === "ol" || name === "ul") {
1244
+ if (closing) lists.pop();
1245
+ else {
1246
+ const start = Number(attribute(attrs, "start"));
1247
+ lists.push({
1248
+ ordered: name === "ol",
1249
+ n: Number.isInteger(start) && start > 0 ? start - 1 : 0
1250
+ });
1251
+ }
1252
+ newline();
1253
+ } else if (name === "li") {
1254
+ if (!closing) {
1255
+ const list = lists.at(-1);
1256
+ out.push(list?.ordered ? `
1257
+ ${++list.n}. ` : "\n- ");
1258
+ marker = out.length;
1259
+ }
1260
+ } else if (name === "tr") {
1261
+ out.push(closing ? "\n" : "\n|");
1262
+ } else if (name === "td" || name === "th") {
1263
+ cell = Math.max(0, cell + (closing ? -1 : 1));
1264
+ out.push(closing ? " |" : " ");
1265
+ } else if (name === "a") {
1266
+ if (!closing) {
1267
+ links.push({ href: attribute(attrs, "href"), start: out.length });
1268
+ continue;
1269
+ }
1270
+ const link = links.pop();
1271
+ if (!link) continue;
1272
+ const text = out.splice(link.start).join("");
1273
+ if (link.href?.startsWith("#") && /^\s*\[?\d{1,3}\]?\s*$/.test(text)) {
1274
+ out.push(`[${text.replace(/[^\d]/g, "")}]`);
1275
+ } else if (link.href && !link.href.startsWith("#") && !/^javascript:/i.test(link.href)) {
1276
+ out.push(`[${text.trim()}](${link.href.replace(/\s/g, "%20")})`);
1277
+ } else out.push(text);
1278
+ } else if (BLOCK.has(name)) {
1279
+ newline();
1280
+ }
1281
+ }
1282
+ const lines = [];
1283
+ let fenced = false;
1284
+ for (const line of out.join("").split("\n")) {
1285
+ if (line === "```") fenced = !fenced;
1286
+ else if (fenced) {
1287
+ lines.push(line);
1288
+ continue;
1289
+ }
1290
+ const tidy = line.replace(/\s+/g, " ").trim();
1291
+ if (tidy) lines.push(tidy);
1292
+ }
1293
+ return lines.join("\n");
1294
+ }
1295
+
1086
1296
  // ../core/src/checks/workspace-exists.ts
1087
1297
  function createCitedPathChecker(ws) {
1088
1298
  let listing = null;
@@ -1120,9 +1330,19 @@ var INLINE_SOURCE = /\((?:source|sources|src)\s*:\s*([^)]+)\)/gi;
1120
1330
  var HAS_INLINE_SOURCE = /\((?:source|sources|src)\s*:/i;
1121
1331
  var BRACKETED_PATH = /\[((?:[\w.-]+\/)*[\w.-]+\.[a-z][a-z0-9]{0,5})\](?!\()/gi;
1122
1332
  var URL_LIKE = /^(?:[a-z][\w+.-]*:\/\/|mailto:)/i;
1333
+ var FILE_NAME = /\.(?:md|markdown|txt|csv|tsv|jsonl?|ya?ml|toml|ini|html?|xml|log|rst|pdf|docx?|pptx?|xlsx?|odt|odp|ods|rtf|epub|[cm]?[jt]sx?|py|rb|go|rs|java|kt|cs|cpp|c|h|sh|sql)$/i;
1123
1334
  var MAX_FOLDER_FILES = 50;
1124
1335
  var TEXT_FILE = /\.(?:md|markdown|txt|csv|tsv|json|ya?ml|html?|xml|log|rst)$/i;
1125
1336
  var BINARY_DOCUMENT = /\.(?:pdf|docx?|pptx?|xlsx?|odt|odp|ods|rtf|epub)$/i;
1337
+ var BARE_PARENTHETICAL = /(?<![\]\w])\(([^()\n]{1,240})\)/g;
1338
+ var FILE_TOKEN = /^(?:\.?\/)?(?:[\w.-]+\/)*[\w.-]+\.[a-z][a-z0-9]{0,5}(?::[\d:–-]+)?$/i;
1339
+ function bareFileNames(list) {
1340
+ const items = list.split(/[,;]|\band\b/).map((raw) => raw.trim().replace(/^`+|`+$/g, ""));
1341
+ const names = items.every(
1342
+ (item) => FILE_TOKEN.test(item) && FILE_NAME.test(item.replace(/:[\d:–-]+$/, "")) && !BINARY_DOCUMENT.test(item)
1343
+ );
1344
+ return names ? items : [];
1345
+ }
1126
1346
  function refFromLine(text) {
1127
1347
  const link = /\]\(([^)\s]+)\)/.exec(text)?.[1];
1128
1348
  if (link) return link;
@@ -1130,9 +1350,17 @@ function refFromLine(text) {
1130
1350
  if (ticked) return ticked;
1131
1351
  const url = /\b(?:https?:\/\/|knowledge:\/\/)[^\s)>\]]+/i.exec(text)?.[0];
1132
1352
  if (url) return url;
1133
- const path = /(?:^|\s)((?:[\w.-]+\/)*[\w.-]+\.[a-z][a-z0-9]{0,5})\b/i.exec(text)?.[1];
1353
+ const path = /(?:^|[\s(])((?:[\w.-]+\/)*[\w.-]+\.[a-z][a-z0-9]{0,5})\b/i.exec(text)?.[1];
1134
1354
  return path ?? null;
1135
1355
  }
1356
+ function tableReference(line) {
1357
+ if (!/^\s*\|/.test(line)) return null;
1358
+ const cells = line.trim().replace(/^\||\|$/g, "").split("|").map((cell) => cell.trim());
1359
+ const index = cells.findIndex((cell) => /^\[?\d{1,3}\]?\.?$/.test(cell));
1360
+ if (index === -1) return null;
1361
+ const ref = refFromLine(cells.slice(index + 1).join(" "));
1362
+ return ref ? { n: Number(/\d+/.exec(cells[index])[0]), ref } : null;
1363
+ }
1136
1364
  function splitReferences(markdown) {
1137
1365
  const lines = markdown.split("\n");
1138
1366
  const refs = /* @__PURE__ */ new Map();
@@ -1147,6 +1375,11 @@ function splitReferences(markdown) {
1147
1375
  continue;
1148
1376
  }
1149
1377
  if (level > 0) {
1378
+ const row = tableReference(line);
1379
+ if (row) {
1380
+ if (!refs.has(row.n)) refs.set(row.n, row.ref);
1381
+ continue;
1382
+ }
1150
1383
  const inline = [...line.matchAll(/\[(\d{1,3})\]\s*:?\s*/g)];
1151
1384
  if (inline.length > 1) {
1152
1385
  inline.forEach((m2, i) => {
@@ -1169,25 +1402,32 @@ function splitReferences(markdown) {
1169
1402
  }
1170
1403
  return { body: body.join("\n"), refs };
1171
1404
  }
1172
- function numberInlineSources(body, refs) {
1405
+ function sourceListReferences(markdown) {
1406
+ return splitReferences(markdown).refs;
1407
+ }
1408
+ function numberInlineSources(body, refs, citable) {
1173
1409
  const byRef = new Map([...refs].map(([n, ref]) => [ref.toLowerCase(), n]));
1174
1410
  let next = Math.max(0, ...refs.keys()) + 1;
1411
+ const numberFor = (ref) => {
1412
+ const key = ref.toLowerCase();
1413
+ let n = byRef.get(key);
1414
+ if (n === void 0) {
1415
+ n = next++;
1416
+ refs.set(n, ref);
1417
+ byRef.set(key, n);
1418
+ }
1419
+ return n;
1420
+ };
1175
1421
  const bracketed = body.replace(BRACKETED_PATH, (_whole, path) => `(source: ${path})`);
1176
- return bracketed.replace(INLINE_SOURCE, (_whole, list) => {
1177
- const numbers = [];
1178
- for (const raw of list.split(/[,;]/)) {
1179
- const ref = refFromLine(raw) ?? raw.trim().replace(/^`+|`+$/g, "");
1180
- if (!ref) continue;
1181
- const key = ref.toLowerCase();
1182
- let n = byRef.get(key);
1183
- if (n === void 0) {
1184
- n = next++;
1185
- refs.set(n, ref);
1186
- byRef.set(key, n);
1187
- }
1188
- numbers.push(n);
1189
- }
1190
- return numbers.length > 0 ? `[${numbers.join(", ")}]` : "";
1422
+ const noted = bracketed.replace(INLINE_SOURCE, (_whole, list) => {
1423
+ const items = list.split(/[,;]/).map((raw) => refFromLine(raw) ?? raw.trim().replace(/^`+|`+$/g, "")).filter((ref) => ref !== "");
1424
+ const isSource = (ref) => URL_LIKE.test(ref) || ref.includes("/") || FILE_NAME.test(ref);
1425
+ const named = items.some(isSource) ? items.filter(isSource) : items;
1426
+ return named.length > 0 ? `[${named.map(numberFor).join(", ")}]` : "";
1427
+ });
1428
+ return noted.replace(BARE_PARENTHETICAL, (whole, list) => {
1429
+ const cited = bareFileNames(list).filter((name) => citable.has(name));
1430
+ return cited.length > 0 ? `[${cited.map(numberFor).join(", ")}]` : whole;
1191
1431
  });
1192
1432
  }
1193
1433
  function declaredSources(body) {
@@ -1211,15 +1451,31 @@ function derivedFromNeighbors(sentences, i) {
1211
1451
  const sourced = sentences.slice(Math.max(0, i - DERIVATION_WINDOW), i + DERIVATION_WINDOW + 1).flatMap((s) => s.checks.filter((c) => c.kind === "number" && c.found)).map((c) => Number(c.value)).filter(Number.isFinite);
1212
1452
  return unfound.every((c) => isDerivedNumber(c.value, sourced));
1213
1453
  }
1214
- async function readSource(ws, ref) {
1454
+ var readable = (path, text) => isHtmlDocument(path, text) ? htmlAsMarkdown(text) : text;
1455
+ async function readSource(ws, ref, self) {
1215
1456
  const path = cleanCitedPath(ref);
1216
- if (!path) return null;
1457
+ const isSelf = (f) => cleanCitedPath(f).toLowerCase() === self;
1458
+ if (!path || isSelf(path)) return null;
1217
1459
  const text = await ws.read(path).catch(() => null);
1218
- if (text !== null) return text;
1460
+ if (text !== null) return readable(path, text);
1461
+ const listing = (await ws.list().catch(() => [])).filter((f) => !isSelf(f));
1462
+ if (!path.includes("/")) {
1463
+ const name = path.toLowerCase();
1464
+ const named = listing.filter((f) => cleanCitedPath(f).toLowerCase().split("/").at(-1) === name);
1465
+ if (named.length === 1) {
1466
+ const found = await ws.read(named[0]).catch(() => null);
1467
+ if (found !== null) return readable(named[0], found);
1468
+ }
1469
+ }
1219
1470
  const prefix = `${path.replace(/\/+$/, "")}/`;
1220
- const files = (await ws.list().catch(() => [])).filter((f) => cleanCitedPath(f).startsWith(prefix) && TEXT_FILE.test(f)).slice(0, MAX_FOLDER_FILES);
1471
+ const files = listing.filter((f) => cleanCitedPath(f).startsWith(prefix) && TEXT_FILE.test(f)).slice(0, MAX_FOLDER_FILES);
1221
1472
  if (files.length === 0) return null;
1222
- const parts = await Promise.all(files.map((f) => ws.read(f).catch(() => null)));
1473
+ const parts = await Promise.all(
1474
+ files.map(async (f) => {
1475
+ const part = await ws.read(f).catch(() => null);
1476
+ return part === null ? null : readable(f, part);
1477
+ })
1478
+ );
1223
1479
  const joined = parts.filter((p) => p !== null).join("\n\n");
1224
1480
  return joined.length > 0 ? joined : null;
1225
1481
  }
@@ -1236,12 +1492,28 @@ async function claimsGrounded(ws, file, opts = {}) {
1236
1492
  sources: { read: [], missing: [], unverifiable: [] },
1237
1493
  problems: []
1238
1494
  };
1239
- const content = await ws.read(file);
1240
- if (content === null) {
1495
+ const raw = await ws.read(file);
1496
+ if (raw === null) {
1241
1497
  return { ...empty, ok: false, detail: `${file} not found \u2014 write the deliverable first.` };
1242
1498
  }
1243
- const { body, refs } = splitReferences(content);
1244
- const text = numberInlineSources(body, refs);
1499
+ const self = cleanCitedPath(file).toLowerCase();
1500
+ const sourceTexts = /* @__PURE__ */ new Map();
1501
+ const source = (ref) => {
1502
+ let text2 = sourceTexts.get(ref);
1503
+ if (!text2) {
1504
+ text2 = readSource(ws, ref, self);
1505
+ sourceTexts.set(ref, text2);
1506
+ }
1507
+ return text2;
1508
+ };
1509
+ const { body, refs } = splitReferences(readable(file, raw));
1510
+ const citable = /* @__PURE__ */ new Set();
1511
+ for (const m of body.matchAll(BARE_PARENTHETICAL)) {
1512
+ for (const name of bareFileNames(m[1])) {
1513
+ if (!citable.has(name) && await source(name) !== null) citable.add(name);
1514
+ }
1515
+ }
1516
+ const text = numberInlineSources(body, refs, citable);
1245
1517
  const evidence = [];
1246
1518
  const opaque = /* @__PURE__ */ new Set();
1247
1519
  const read = [];
@@ -1253,12 +1525,12 @@ async function claimsGrounded(ws, file, opts = {}) {
1253
1525
  unverifiable.push(ref);
1254
1526
  continue;
1255
1527
  }
1256
- const source = await readSource(ws, ref);
1257
- if (source === null) {
1528
+ const sourceText = await source(ref);
1529
+ if (sourceText === null) {
1258
1530
  missing.push(ref);
1259
1531
  continue;
1260
1532
  }
1261
- evidence.push({ n, text: source, ref });
1533
+ evidence.push({ n, text: sourceText, ref });
1262
1534
  read.push(ref);
1263
1535
  }
1264
1536
  let extra = Math.max(0, ...refs.keys()) + 1;
@@ -1266,9 +1538,9 @@ async function claimsGrounded(ws, file, opts = {}) {
1266
1538
  if (refs.size > 0 && [...refs.values()].some((r) => r.toLowerCase() === ref.toLowerCase())) {
1267
1539
  continue;
1268
1540
  }
1269
- const source = await readSource(ws, ref);
1270
- if (source === null) continue;
1271
- evidence.push({ n: extra++, text: source, ref });
1541
+ const sourceText = await source(ref);
1542
+ if (sourceText === null) continue;
1543
+ evidence.push({ n: extra++, text: sourceText, ref });
1272
1544
  read.push(ref);
1273
1545
  }
1274
1546
  const grounding = groundText(text, evidence, {
@@ -1719,19 +1991,38 @@ var SLOT_WORDS = /* @__PURE__ */ new Set(["path", "url", "path/url", "file", "no
1719
1991
  function isTemplateSlot(cap) {
1720
1992
  return ANGLE_SLOT_RE.test(cap) || NO_NAME_RE.test(cap) || SLOT_WORDS.has(cleanCitation(cap).toLowerCase());
1721
1993
  }
1994
+ var FORMULA_RE = /^=/;
1722
1995
  function extractCitations(text, re) {
1723
1996
  const flags = re.flags.includes("g") ? re.flags : `${re.flags}g`;
1724
1997
  const global = new RegExp(re.source, flags);
1725
1998
  const out = [];
1726
1999
  for (const m of stripFencedBlocks(text).matchAll(global)) {
1727
2000
  const cap = m.slice(1).find((x) => x !== void 0) ?? m[0];
1728
- if (cap && !TASK_REF_RE.test(cap) && !isTemplateSlot(cap)) out.push(cap);
2001
+ if (cap && !TASK_REF_RE.test(cap) && !isTemplateSlot(cap) && !FORMULA_RE.test(cap)) {
2002
+ out.push(cap);
2003
+ }
1729
2004
  }
1730
2005
  return out;
1731
2006
  }
2007
+ var PACKAGE_SPECIFIER_RE = /^@[a-z0-9][\w.~-]*\/[a-z0-9][\w.~-]*(?:\/[\w.~/-]*)?(?:@[\w.^~<>=*-]+)?$/i;
2008
+ function citedFileKey(cite) {
2009
+ return normalizeForKnownMatch(cleanCitedPath(cite));
2010
+ }
1732
2011
  function cleanCitation(raw) {
1733
2012
  return raw.trim().replace(/^[<'"`(]+/, "").replace(/[>'"`).,;:]+$/, "");
1734
2013
  }
2014
+ var PROPOSED_MARKER = /\b(?:new|creates?|created|creating|to be (?:added|created)|will (?:be )?(?:add(?:ed)?|create[ds]?))\b/i;
2015
+ function proposedCitations(content, re) {
2016
+ const proposed = /* @__PURE__ */ new Set();
2017
+ for (const line of stripFencedBlocks(content).split("\n")) {
2018
+ if (!PROPOSED_MARKER.test(line)) continue;
2019
+ for (const cite of extractCitations(line, re)) {
2020
+ const clean = normalizeForKnownMatch(cleanCitation(cite));
2021
+ if (clean) proposed.add(clean);
2022
+ }
2023
+ }
2024
+ return proposed;
2025
+ }
1735
2026
  function normalizeForKnownMatch(p) {
1736
2027
  return p.trim().replace(/\\/g, "/").replace(/^\.\//, "").replace(/^\//, "").replace(/^workspace\//i, "").replace(/\/+$/, "").toLowerCase();
1737
2028
  }
@@ -1774,6 +2065,7 @@ async function citationsResolve(ws, file, opts = {}) {
1774
2065
  const citedPathExists = createCitedPathChecker(ws);
1775
2066
  const corpus = opts.corpus ? new Set(opts.corpus.map((c) => c.toLowerCase())) : null;
1776
2067
  const known = new Set((opts.knownPaths ?? []).map(normalizeForKnownMatch).filter(Boolean));
2068
+ const proposed = opts.proposed ? proposedCitations(content, re) : /* @__PURE__ */ new Set();
1777
2069
  const resolved = [];
1778
2070
  const unresolved = [];
1779
2071
  const urls = [];
@@ -1790,8 +2082,22 @@ async function citationsResolve(ws, file, opts = {}) {
1790
2082
  continue;
1791
2083
  }
1792
2084
  if (corpus?.has(c.toLowerCase()) || await citedPathExists(c)) resolved.push(c);
1793
- else if (known.has(normalizeForKnownMatch(c)) || globMatchesKnown(c, known)) forgiven.push(c);
1794
- else unresolved.push(c);
2085
+ else if (known.has(normalizeForKnownMatch(c)) || globMatchesKnown(c, known) || proposed.has(normalizeForKnownMatch(c)) || PACKAGE_SPECIFIER_RE.test(c)) {
2086
+ forgiven.push(c);
2087
+ } else unresolved.push(c);
2088
+ }
2089
+ if (!corpus && unresolved.length > 0 && resolved.length > 0) {
2090
+ const resolvedKeys = resolved.map(citedFileKey);
2091
+ for (let i = unresolved.length - 1; i >= 0; i--) {
2092
+ const cite = unresolved[i];
2093
+ if (/^[a-z][\w+.-]*:\/\//i.test(cite)) continue;
2094
+ const key = citedFileKey(cite);
2095
+ if (!key) continue;
2096
+ if (resolvedKeys.some((full) => full === key || full.endsWith(`/${key}`))) {
2097
+ unresolved.splice(i, 1);
2098
+ resolved.push(cite);
2099
+ }
2100
+ }
1795
2101
  }
1796
2102
  if (cites.length - forgiven.length < min) {
1797
2103
  return {
@@ -3470,6 +3776,7 @@ export {
3470
3776
  resolveRelative,
3471
3777
  runSniff,
3472
3778
  securityReport,
3779
+ sourceListReferences,
3473
3780
  standaloneJsParses,
3474
3781
  tableShape,
3475
3782
  totalMinBytes,
package/dist/page.d.ts CHANGED
@@ -357,28 +357,80 @@ interface GezelActionFormOptions {
357
357
  /** A declared page tool; ordinary validation and write policy still apply. */
358
358
  tool: string;
359
359
  fields: GezelActionField[];
360
+ /**
361
+ * `dialog` draws a key that opens the form in a modal; `inline` is an always-open
362
+ * form for a settings panel; `disclosure` (the default) is an expandable card.
363
+ * Fixed when the form is created. Hosts before component version 2 draw a disclosure.
364
+ */
365
+ presentation?: 'disclosure' | 'dialog' | 'inline';
366
+ /** Dialog only: the key's label when it should differ from the dialog title. */
367
+ buttonLabel?: string;
368
+ /** Dialog only: draw the key as the view's one filled primary action. */
369
+ primary?: boolean;
370
+ /** Dialog only: false hides the key, for a dialog the page opens with `open()` from its own row controls. */
371
+ trigger?: boolean;
360
372
  submitLabel?: string;
361
373
  successMessage?: string;
374
+ /** Disclosure only: start expanded. */
362
375
  open?: boolean;
363
376
  clearOnSave?: boolean;
364
377
  /** Map form fields into the tool's declared input, for example one card into a cards array. */
365
378
  mapInput?: (values: Record<string, string | number>) => Record<string, unknown>;
366
379
  onSaved?: (result: GezelPageToolResult) => void | Promise<void>;
367
380
  }
381
+ interface GezelActionFormHandle extends GezelPageComponent<GezelActionFormOptions> {
382
+ /**
383
+ * Open the dialog (or expand the disclosure) and focus its first field. Passing
384
+ * values first resets every field to its default, then fills the named ones, so a
385
+ * row's Edit control can open the form for that record. Version 2.
386
+ */
387
+ open?(values?: Record<string, string | number>): void;
388
+ /** Close the dialog or collapse the disclosure. Ignored while a save is pending. Version 2. */
389
+ close?(): void;
390
+ /** Reset every field to its default and then fill the named ones; a settings panel shows current values this way. Version 2. */
391
+ reset?(values?: Record<string, string | number>): void;
392
+ }
393
+ interface GezelTab {
394
+ id: string;
395
+ label: string;
396
+ /** The page-owned element this tab shows; the component hides the others. */
397
+ panel: string | HTMLElement;
398
+ /** A short count beside the label, such as open items. Empty and 0 are not drawn. */
399
+ badge?: string | number;
400
+ }
401
+ interface GezelTabsOptions {
402
+ tabs: GezelTab[];
403
+ /** Accessible name of the tab row. */
404
+ label?: string;
405
+ /** The first tab when neither this nor a remembered choice applies. */
406
+ selected?: string;
407
+ /** False stops recording the choice in the page URL's `#tab=` fragment. */
408
+ remember?: boolean;
409
+ onChange?: (id: string) => void;
410
+ }
411
+ interface GezelTabsHandle extends GezelPageComponent<GezelTabsOptions> {
412
+ select(id: string): void;
413
+ selected(): string | null;
414
+ }
368
415
  interface GezelCollectionFilterOptions {
369
416
  container: string | HTMLElement;
370
417
  selector: string;
371
418
  label?: string;
372
419
  placeholder?: string;
420
+ /** Hide the search box while the collection has fewer items than this and nothing is typed. Version 2. */
421
+ minItems?: number;
373
422
  }
374
423
  interface GezelPageComponents {
375
- version: 1;
424
+ /** 2 adds dialog and inline action forms and `tabs`. */
425
+ version: 1 | 2;
376
426
  /** Searches rendered items, retaining their controls and refreshing after data updates. */
377
427
  collectionFilter(target: string | HTMLElement, options: GezelCollectionFilterOptions): GezelPageComponent<GezelCollectionFilterOptions>;
378
428
  /** Wrap existing content, retaining its DOM, and add a responsive fullscreen companion. */
379
429
  appLayout(content: string | HTMLElement, options?: GezelAppLayoutOptions): GezelPageComponent<GezelAppLayoutOptions>;
380
430
  /** Accessible, validated form invoking one declared action, with busy/error/success states. */
381
- actionForm(target: string | HTMLElement, options: GezelActionFormOptions): GezelPageComponent<GezelActionFormOptions>;
431
+ actionForm(target: string | HTMLElement, options: GezelActionFormOptions): GezelActionFormHandle;
432
+ /** Underline tabs over page-owned panels: keyboard support, badges, and a remembered choice. Version 2. */
433
+ tabs?(target: string | HTMLElement, options: GezelTabsOptions): GezelTabsHandle;
382
434
  /** Native, project-bound chat. No transcript or send API is exposed to page scripts. */
383
435
  chat(target: string | HTMLElement, options?: GezelChatOptions): GezelPageComponent<GezelChatOptions> & {
384
436
  ready: Promise<void>;
@@ -482,4 +534,4 @@ declare global {
482
534
  }
483
535
  }
484
536
 
485
- export { GEZEL_PAGE_API_VERSION, type GezelActionField, type GezelActionFormOptions, type GezelAppLayoutOptions, type GezelChatOptions, type GezelCollectionFilterOptions, type GezelDemoConversation, type GezelDemoConversationContext, type GezelDemoOptions, type GezelDemoReply, type GezelFileAdderOptions, type GezelFileCardOptions, type GezelImportResult, type GezelImportTarget, type GezelPageApi, type GezelPageComponent, type GezelPageComponents, type GezelPageDataApi, type GezelPageDirEntry, type GezelPageError, type GezelPageErrorCode, type GezelPageFile, type GezelPageInfo, type GezelPageMode, type GezelPageReadOptions, type GezelPageReadSource, type GezelPageSourceOptions, type GezelPageTable, type GezelPageTableQuery, type GezelPageTableSchema, type GezelPageTablesApi, type GezelPageTheme, type GezelPageToolReaction, type GezelPageToolResult, type GezelPageToolsApi, type GezelPageUiApi, type GezelPageWatchEvent, type GezelPageWatchOptions };
537
+ export { GEZEL_PAGE_API_VERSION, type GezelActionField, type GezelActionFormHandle, type GezelActionFormOptions, type GezelAppLayoutOptions, type GezelChatOptions, type GezelCollectionFilterOptions, type GezelDemoConversation, type GezelDemoConversationContext, type GezelDemoOptions, type GezelDemoReply, type GezelFileAdderOptions, type GezelFileCardOptions, type GezelImportResult, type GezelImportTarget, type GezelPageApi, type GezelPageComponent, type GezelPageComponents, type GezelPageDataApi, type GezelPageDirEntry, type GezelPageError, type GezelPageErrorCode, type GezelPageFile, type GezelPageInfo, type GezelPageMode, type GezelPageReadOptions, type GezelPageReadSource, type GezelPageSourceOptions, type GezelPageTable, type GezelPageTableQuery, type GezelPageTableSchema, type GezelPageTablesApi, type GezelPageTheme, type GezelPageToolReaction, type GezelPageToolResult, type GezelPageToolsApi, type GezelPageUiApi, type GezelPageWatchEvent, type GezelPageWatchOptions, type GezelTab, type GezelTabsHandle, type GezelTabsOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/gezel-sdk",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "SDK for scripts that run in the Gezel sandbox: the gezel object and the defineScript helper.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -63,7 +63,7 @@
63
63
  "!dist/**/*.map"
64
64
  ],
65
65
  "devDependencies": {
66
- "@bendyline/gezel": "1.2.13",
66
+ "@bendyline/gezel": "1.3.0",
67
67
  "tsup": "^8.5.1",
68
68
  "typescript": "^6.0.3",
69
69
  "vitest": "^4.1.10"