refactor(tools): return complete analysis results inline

This commit is contained in:
morluto
2026-09-29 14:53:50 +08:00
parent c34efca4cd
commit 2a6eb41147
156 changed files with 2529 additions and 1891 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ export const protocolCaptureSchema = z.strictObject({
/** Protocol family for this capture. */
family: protocolFamilySchema,
/** Captured messages in order. */
messages: z.array(protocolMessageSchema).min(0).max(10_000),
messages: z.array(protocolMessageSchema).min(0),
/** Aggregated schema hypotheses across all messages. */
inferred_schema: z.array(schemaHypothesisSchema).default([]),
/** Whether any message was truncated. */
@@ -192,7 +192,7 @@ export function decodeMessagePack(rawPayload: Uint8Array): {
}
return {
decoded_fields: fields,
truncated: rawPayload.length > 10_000,
truncated: false,
};
}
@@ -236,7 +236,7 @@ export function decodeGrpcFrame(rawPayload: Uint8Array): {
inferred: false,
},
],
truncated: length > 10_000,
truncated: false,
};
}