@neat.is/types 0.10.6-dev.20261010 → 0.10.6

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/dist/index.js CHANGED
@@ -516,8 +516,15 @@ var WebSocketChannelNodeSchema = z3.object({
516
516
  var SymbolKindSchema = z3.enum(["function", "method", "constructor", "class"]);
517
517
  var SymbolSpanSchema = z3.object({
518
518
  startLine: z3.number().int().nonnegative(),
519
- endLine: z3.number().int().nonnegative()
520
- });
519
+ endLine: z3.number().int().nonnegative(),
520
+ // Optional for runtime-only symbols and graphs produced by older daemons.
521
+ // Zero-based UTF-8 byte offsets in the exact source file, end exclusive.
522
+ startByte: z3.number().int().nonnegative().optional(),
523
+ endByte: z3.number().int().nonnegative().optional()
524
+ }).refine(
525
+ ({ startByte, endByte }) => startByte === void 0 && endByte === void 0 || startByte !== void 0 && endByte !== void 0 && endByte > startByte,
526
+ { message: "symbol byte offsets must be a nonempty pair" }
527
+ );
521
528
  var SymbolNodeSchema = z3.object({
522
529
  id: z3.string(),
523
530
  type: z3.literal(NodeType.SymbolNode),
@@ -1671,9 +1678,16 @@ var SearchResponseSchema = z10.object({
1671
1678
  provider: z10.string(),
1672
1679
  matches: z10.array(SearchMatchSchema)
1673
1680
  });
1681
+ var Repository = z10.string().regex(/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/);
1682
+ var SourceBaselineSchema = z10.discriminatedUnion("status", [
1683
+ z10.object({ status: z10.literal("ready"), repository: Repository, sha: z10.string().regex(/^[0-9a-f]{40}$/) }),
1684
+ z10.object({ status: z10.literal("syncing"), repository: Repository }),
1685
+ z10.object({ status: z10.literal("unavailable"), repository: Repository })
1686
+ ]);
1674
1687
  var SerializedGraphSchema = z10.object({
1675
1688
  nodes: z10.array(GraphNodeSchema),
1676
- edges: z10.array(GraphEdgeSchema)
1689
+ edges: z10.array(GraphEdgeSchema),
1690
+ sourceBaselines: z10.array(SourceBaselineSchema).optional()
1677
1691
  });
1678
1692
  var GraphDiffResultSchema = z10.object({
1679
1693
  base: z10.object({ exportedAt: z10.string().optional() }),
@@ -1910,6 +1924,7 @@ export {
1910
1924
  ServerActionNodeSchema,
1911
1925
  ServiceNodeSchema,
1912
1926
  SingleProjectResponseSchema,
1927
+ SourceBaselineSchema,
1913
1928
  SpanAttributesSchema,
1914
1929
  StaleEventSchema,
1915
1930
  StaleEventsResponseSchema,