@talonic/mcp 0.1.28 → 0.1.30

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.
@@ -333,7 +333,7 @@ function registerExtract(server, getTalonic) {
333
333
  );
334
334
  }
335
335
  var DESCRIPTION2 = [
336
- "STATUS: stable. Field-name resolution is server-side. The `is_not_empty` operator is intentionally not exposed in v0.1; see workaround below.",
336
+ "STATUS: stable. Field-name resolution is server-side.",
337
337
  "",
338
338
  "Filter the user's Talonic documents by extracted field values using composable conditions.",
339
339
  "Conditions accept either a canonical field name (e.g. 'vendor.name', 'policy.0_coverage_type')",
@@ -356,12 +356,10 @@ var DESCRIPTION2 = [
356
356
  "- between: requires both `value` and `value_to`.",
357
357
  "- contains: substring match on string fields.",
358
358
  "- is_empty: presence check, no value needed. Returns documents where the field is null or missing.",
359
+ "- is_not_empty: presence check, no value needed. Returns documents where the field has a materialized value. Results reflect data within seconds of extraction completing.",
359
360
  "",
360
361
  "SCHEMA TYPING:",
361
- "- Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only resolve correctly when the schema field is typed as `number`. A field typed as `string` that holds numeric content (e.g. '\u20AC1,500.00') will silently return zero matches even after extraction. Pick the right type at schema design time.",
362
- "",
363
- "NOT SUPPORTED IN v0.1:",
364
- "- is_not_empty: underreports against fields known to be populated. Removed from the supported operator list to keep filter results trustworthy. Workaround: filter with `eq`/`gt`/`contains` against a known value, or use `is_empty` then invert the result client-side. Tracked for a later release.",
362
+ "- Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only resolve correctly when the schema field is typed as `number`. A field typed as `string` that holds numeric content (e.g. '\u20AC1,500.00') will silently return zero matches even after extraction. Pick the right type at schema design time. The API returns a `warnings` array when a numeric operator is applied to a string-typed field.",
365
363
  "",
366
364
  "TIPS:",
367
365
  "- To discover available field names, call talonic_search first with a related query.",
@@ -380,9 +378,8 @@ var operatorEnum = z.enum([
380
378
  "lte",
381
379
  "between",
382
380
  "contains",
383
- "is_empty"
384
- // is_not_empty intentionally omitted in v0.1: it underreports against
385
- // fields known to be populated. See description for the workaround.
381
+ "is_empty",
382
+ "is_not_empty"
386
383
  ]);
387
384
  var conditionSchema = z.object({
388
385
  field: z.string().optional().describe(
@@ -811,7 +808,7 @@ var outputSchema7 = {
811
808
  resolvedFieldId: z.string().nullable(),
812
809
  displayName: z.string().optional(),
813
810
  matchedValue: z.string().optional(),
814
- documentCount: z.number().optional(),
811
+ documentCount: z.number().nullable().optional(),
815
812
  filterable: z.boolean().describe("Only filterable: true entries can be used with talonic_filter.")
816
813
  })
817
814
  ).describe(
@@ -826,7 +823,7 @@ var outputSchema7 = {
826
823
  ),
827
824
  canonicalName: z.string().optional(),
828
825
  displayName: z.string().optional(),
829
- documentCount: z.number().optional(),
826
+ documentCount: z.number().nullable().optional(),
830
827
  filterable: z.boolean().optional()
831
828
  })
832
829
  ).describe(
@@ -985,7 +982,7 @@ function registerToMarkdown(server, getTalonic) {
985
982
 
986
983
  // package.json
987
984
  var package_default = {
988
- version: "0.1.28"};
985
+ version: "0.1.30"};
989
986
 
990
987
  // src/version.ts
991
988
  var VERSION = package_default.version;