@inerrata-corporation/errata 2.0.0-dev.34 → 2.0.0-dev.36

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.
@@ -15083,14 +15083,32 @@ var init_edge_rules = __esm({
15083
15083
  }
15084
15084
  });
15085
15085
 
15086
+ // ../../packages/shared/src/symbol-intent.ts
15087
+ var SYMBOL_SUMMARY_KINDS, MAX_SYMBOL_SUMMARY_CHARS, MAX_SIDECAR_SYMBOLS;
15088
+ var init_symbol_intent = __esm({
15089
+ "../../packages/shared/src/symbol-intent.ts"() {
15090
+ "use strict";
15091
+ SYMBOL_SUMMARY_KINDS = [
15092
+ "function",
15093
+ "method",
15094
+ "class",
15095
+ "interface",
15096
+ "constant"
15097
+ ];
15098
+ MAX_SYMBOL_SUMMARY_CHARS = 300;
15099
+ MAX_SIDECAR_SYMBOLS = 200;
15100
+ }
15101
+ });
15102
+
15086
15103
  // ../../packages/shared/src/wire.ts
15087
- var CLOUD_NODE_LABELS, CLOUD_EDGE_TYPES, INGEST_SOURCES, INGEST_EXTRACTION_SOURCES, CastaliaIngestNodeSchema, RouteContextCountWireSchema, CastaliaIngestEdgeSchema, CastaliaIngestPayloadSchema;
15104
+ var CLOUD_NODE_LABELS, CLOUD_EDGE_TYPES, INGEST_SOURCES, INGEST_EXTRACTION_SOURCES, CastaliaIngestNodeSchema, RouteContextCountWireSchema, CastaliaIngestEdgeSchema, SymbolSummarySidecarSchema, CastaliaIngestPayloadSchema;
15088
15105
  var init_wire = __esm({
15089
15106
  "../../packages/shared/src/wire.ts"() {
15090
15107
  "use strict";
15091
15108
  init_zod();
15092
15109
  init_castalia();
15093
15110
  init_edge_rules();
15111
+ init_symbol_intent();
15094
15112
  CLOUD_NODE_LABELS = [
15095
15113
  ...SEMANTIC_NODE_LABELS,
15096
15114
  ...CONTEXT_NODE_LABELS
@@ -15138,12 +15156,24 @@ var init_wire = __esm({
15138
15156
  perContext: external_exports.record(external_exports.string(), RouteContextCountWireSchema).optional()
15139
15157
  }).optional()
15140
15158
  });
15159
+ SymbolSummarySidecarSchema = external_exports.record(
15160
+ external_exports.string().min(1).max(160),
15161
+ external_exports.object({
15162
+ kind: external_exports.enum(SYMBOL_SUMMARY_KINDS),
15163
+ summary: external_exports.string().min(1).max(MAX_SYMBOL_SUMMARY_CHARS)
15164
+ })
15165
+ ).refine((m) => Object.keys(m).length <= MAX_SIDECAR_SYMBOLS, {
15166
+ message: `symbolSummaries sidecar exceeds ${MAX_SIDECAR_SYMBOLS} entries`
15167
+ });
15141
15168
  CastaliaIngestPayloadSchema = external_exports.object({
15142
15169
  /** Client-supplied UUID — one batch; pairs with the payload digest for replay. */
15143
15170
  runId: external_exports.string().uuid(),
15144
15171
  source: external_exports.enum(INGEST_SOURCES),
15145
15172
  nodes: external_exports.array(CastaliaIngestNodeSchema).max(1e3),
15146
- edges: external_exports.array(CastaliaIngestEdgeSchema).max(5e3)
15173
+ edges: external_exports.array(CastaliaIngestEdgeSchema).max(5e3),
15174
+ /** Optional symbol→intent-summary sidecar (PP-symbol-intent). Only symbols
15175
+ * present in this payload's node text; server re-vets no-verbatim. */
15176
+ symbolSummaries: SymbolSummarySidecarSchema.optional()
15147
15177
  });
15148
15178
  }
15149
15179
  });
@@ -15181,6 +15211,7 @@ var init_src = __esm({
15181
15211
  init_identity();
15182
15212
  init_wire();
15183
15213
  init_edge_rules();
15214
+ init_symbol_intent();
15184
15215
  init_hash();
15185
15216
  init_error_signature();
15186
15217
  init_canonicalize();