@neat.is/types 0.6.3-dev.20260727 → 0.6.4
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 +28 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +136 -1
- package/dist/index.d.ts +136 -1
- package/dist/index.js +25 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -53,6 +53,7 @@ __export(index_exports, {
|
|
|
53
53
|
EdgeType: () => EdgeType,
|
|
54
54
|
EdgeTypeSchema: () => EdgeTypeSchema,
|
|
55
55
|
ErrorEventSchema: () => ErrorEventSchema,
|
|
56
|
+
ExtractionCoverageSchema: () => ExtractionCoverageSchema,
|
|
56
57
|
FileNodeSchema: () => FileNodeSchema,
|
|
57
58
|
FrontierNodeSchema: () => FrontierNodeSchema,
|
|
58
59
|
GraphDiffResultSchema: () => GraphDiffResultSchema,
|
|
@@ -86,6 +87,8 @@ __export(index_exports, {
|
|
|
86
87
|
PolicySchema: () => PolicySchema,
|
|
87
88
|
PolicySeveritySchema: () => PolicySeveritySchema,
|
|
88
89
|
PolicyViolationSchema: () => PolicyViolationSchema,
|
|
90
|
+
ProjectListEntrySchema: () => ProjectListEntrySchema,
|
|
91
|
+
ProjectServedBySchema: () => ProjectServedBySchema,
|
|
89
92
|
Provenance: () => Provenance,
|
|
90
93
|
ProvenanceRuleSchema: () => ProvenanceRuleSchema,
|
|
91
94
|
ProvenanceSchema: () => ProvenanceSchema,
|
|
@@ -1078,10 +1081,19 @@ var GraphEdgesResponseSchema = import_zod9.z.object({
|
|
|
1078
1081
|
inbound: import_zod9.z.array(GraphEdgeSchema),
|
|
1079
1082
|
outbound: import_zod9.z.array(GraphEdgeSchema)
|
|
1080
1083
|
});
|
|
1084
|
+
var ExtractionCoverageSchema = import_zod9.z.object({
|
|
1085
|
+
skippedFiles: import_zod9.z.number().int().nonnegative(),
|
|
1086
|
+
byProducer: import_zod9.z.record(import_zod9.z.number().int().nonnegative()),
|
|
1087
|
+
// Up to a bounded sample of the files that failed to parse this pass.
|
|
1088
|
+
files: import_zod9.z.array(import_zod9.z.string()),
|
|
1089
|
+
updatedAt: import_zod9.z.string()
|
|
1090
|
+
});
|
|
1081
1091
|
var HealthResponseSchema = import_zod9.z.object({
|
|
1082
1092
|
ok: import_zod9.z.boolean(),
|
|
1083
1093
|
project: import_zod9.z.string(),
|
|
1084
|
-
uptimeMs: import_zod9.z.number().int().nonnegative()
|
|
1094
|
+
uptimeMs: import_zod9.z.number().int().nonnegative(),
|
|
1095
|
+
// Present when the most recent extraction pass recorded its coverage (#883).
|
|
1096
|
+
coverage: ExtractionCoverageSchema.optional()
|
|
1085
1097
|
}).passthrough();
|
|
1086
1098
|
var DaemonHealthResponseSchema = import_zod9.z.object({
|
|
1087
1099
|
ok: import_zod9.z.boolean(),
|
|
@@ -1094,8 +1106,19 @@ var DaemonHealthResponseSchema = import_zod9.z.object({
|
|
|
1094
1106
|
}).passthrough()
|
|
1095
1107
|
)
|
|
1096
1108
|
}).passthrough();
|
|
1109
|
+
var ProjectListEntrySchema = RegistryEntrySchema.extend({
|
|
1110
|
+
hostedHere: import_zod9.z.boolean()
|
|
1111
|
+
});
|
|
1112
|
+
var ProjectServedBySchema = import_zod9.z.object({
|
|
1113
|
+
path: import_zod9.z.string(),
|
|
1114
|
+
restPort: import_zod9.z.number().int(),
|
|
1115
|
+
live: import_zod9.z.boolean()
|
|
1116
|
+
});
|
|
1097
1117
|
var SingleProjectResponseSchema = import_zod9.z.object({
|
|
1098
|
-
project:
|
|
1118
|
+
project: ProjectListEntrySchema,
|
|
1119
|
+
// Present only when this daemon does not host the project but another daemon
|
|
1120
|
+
// on the machine does — names where it actually lives (#884).
|
|
1121
|
+
servedBy: ProjectServedBySchema.optional()
|
|
1099
1122
|
});
|
|
1100
1123
|
var ConnectorPollStateSchema = import_zod9.z.enum(["idle", "healthy", "error", "stale"]);
|
|
1101
1124
|
var ConnectorStatusSchema = import_zod9.z.object({
|
|
@@ -1243,6 +1266,7 @@ function passesExtractedFloor(confidence) {
|
|
|
1243
1266
|
EdgeType,
|
|
1244
1267
|
EdgeTypeSchema,
|
|
1245
1268
|
ErrorEventSchema,
|
|
1269
|
+
ExtractionCoverageSchema,
|
|
1246
1270
|
FileNodeSchema,
|
|
1247
1271
|
FrontierNodeSchema,
|
|
1248
1272
|
GraphDiffResultSchema,
|
|
@@ -1276,6 +1300,8 @@ function passesExtractedFloor(confidence) {
|
|
|
1276
1300
|
PolicySchema,
|
|
1277
1301
|
PolicySeveritySchema,
|
|
1278
1302
|
PolicyViolationSchema,
|
|
1303
|
+
ProjectListEntrySchema,
|
|
1304
|
+
ProjectServedBySchema,
|
|
1279
1305
|
Provenance,
|
|
1280
1306
|
ProvenanceRuleSchema,
|
|
1281
1307
|
ProvenanceSchema,
|