@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.cjs CHANGED
@@ -139,6 +139,7 @@ __export(index_exports, {
139
139
  ServerActionNodeSchema: () => ServerActionNodeSchema,
140
140
  ServiceNodeSchema: () => ServiceNodeSchema,
141
141
  SingleProjectResponseSchema: () => SingleProjectResponseSchema,
142
+ SourceBaselineSchema: () => SourceBaselineSchema,
142
143
  SpanAttributesSchema: () => SpanAttributesSchema,
143
144
  StaleEventSchema: () => StaleEventSchema,
144
145
  StaleEventsResponseSchema: () => StaleEventsResponseSchema,
@@ -707,8 +708,15 @@ var WebSocketChannelNodeSchema = import_zod3.z.object({
707
708
  var SymbolKindSchema = import_zod3.z.enum(["function", "method", "constructor", "class"]);
708
709
  var SymbolSpanSchema = import_zod3.z.object({
709
710
  startLine: import_zod3.z.number().int().nonnegative(),
710
- endLine: import_zod3.z.number().int().nonnegative()
711
- });
711
+ endLine: import_zod3.z.number().int().nonnegative(),
712
+ // Optional for runtime-only symbols and graphs produced by older daemons.
713
+ // Zero-based UTF-8 byte offsets in the exact source file, end exclusive.
714
+ startByte: import_zod3.z.number().int().nonnegative().optional(),
715
+ endByte: import_zod3.z.number().int().nonnegative().optional()
716
+ }).refine(
717
+ ({ startByte, endByte }) => startByte === void 0 && endByte === void 0 || startByte !== void 0 && endByte !== void 0 && endByte > startByte,
718
+ { message: "symbol byte offsets must be a nonempty pair" }
719
+ );
712
720
  var SymbolNodeSchema = import_zod3.z.object({
713
721
  id: import_zod3.z.string(),
714
722
  type: import_zod3.z.literal(NodeType.SymbolNode),
@@ -1862,9 +1870,16 @@ var SearchResponseSchema = import_zod10.z.object({
1862
1870
  provider: import_zod10.z.string(),
1863
1871
  matches: import_zod10.z.array(SearchMatchSchema)
1864
1872
  });
1873
+ var Repository = import_zod10.z.string().regex(/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/);
1874
+ var SourceBaselineSchema = import_zod10.z.discriminatedUnion("status", [
1875
+ import_zod10.z.object({ status: import_zod10.z.literal("ready"), repository: Repository, sha: import_zod10.z.string().regex(/^[0-9a-f]{40}$/) }),
1876
+ import_zod10.z.object({ status: import_zod10.z.literal("syncing"), repository: Repository }),
1877
+ import_zod10.z.object({ status: import_zod10.z.literal("unavailable"), repository: Repository })
1878
+ ]);
1865
1879
  var SerializedGraphSchema = import_zod10.z.object({
1866
1880
  nodes: import_zod10.z.array(GraphNodeSchema),
1867
- edges: import_zod10.z.array(GraphEdgeSchema)
1881
+ edges: import_zod10.z.array(GraphEdgeSchema),
1882
+ sourceBaselines: import_zod10.z.array(SourceBaselineSchema).optional()
1868
1883
  });
1869
1884
  var GraphDiffResultSchema = import_zod10.z.object({
1870
1885
  base: import_zod10.z.object({ exportedAt: import_zod10.z.string().optional() }),
@@ -2102,6 +2117,7 @@ var PrVerdictBodySchema = import_zod11.z.object({
2102
2117
  ServerActionNodeSchema,
2103
2118
  ServiceNodeSchema,
2104
2119
  SingleProjectResponseSchema,
2120
+ SourceBaselineSchema,
2105
2121
  SpanAttributesSchema,
2106
2122
  StaleEventSchema,
2107
2123
  StaleEventsResponseSchema,