@anuma/sdk 6.28.0 → 6.29.0

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
@@ -2261,20 +2261,51 @@ var BUILT_IN_TOOL_SETS = [
2261
2261
  },
2262
2262
  {
2263
2263
  // Server tools, so this set does its work through
2264
- // withActiveToolSetServerTools: once a restaurant tool has run, terse
2265
- // follow-ups ("okay", "same as before") keep the booking chain. Each tool
2266
- // still reaches a fresh booking request on its own description.
2264
+ // withActiveToolSetServerTools: once any restaurant tool has run, terse
2265
+ // follow-ups ("okay", "same as before", "cancel it") keep every restaurant
2266
+ // tool — discovery, booking and cancelling. Each tool still reaches a fresh
2267
+ // request on its own description.
2267
2268
  // Anchors are deliberately empty (like the client's Nearby set): the set
2268
2269
  // is only for stickiness, not a new way to activate on a prompt.
2269
2270
  // prompt_user_confirm is left out of members: autoFilterClientTools always
2270
2271
  // sends it, and as a member any unrelated confirmation would pin this set.
2271
2272
  name: "restaurant-booking",
2273
+ members: [
2274
+ "AnumaPaymentsMCP-anuma_find_restaurant",
2275
+ "AnumaPaymentsMCP-anuma_check_restaurant_availability",
2276
+ "AnumaPaymentsMCP-anuma_book_restaurant",
2277
+ "AnumaPaymentsMCP-anuma_list_reservations",
2278
+ "AnumaPaymentsMCP-anuma_cancel_reservation",
2279
+ "AnumaPaymentsMCP-anuma_discover_restaurants"
2280
+ ],
2281
+ anchors: []
2282
+ },
2283
+ {
2284
+ // What a confirmed booking card narrows the rest of the turn to (see
2285
+ // CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
2286
+ // discovery and cancel tools that restaurant-booking keeps sticky.
2287
+ // Anchors are empty for the same reason as restaurant-cancel below.
2288
+ name: "restaurant-book",
2272
2289
  members: [
2273
2290
  "AnumaPaymentsMCP-anuma_find_restaurant",
2274
2291
  "AnumaPaymentsMCP-anuma_check_restaurant_availability",
2275
2292
  "AnumaPaymentsMCP-anuma_book_restaurant"
2276
2293
  ],
2277
2294
  anchors: []
2295
+ },
2296
+ {
2297
+ // What a confirmed cancel card narrows the rest of the turn to (see
2298
+ // CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
2299
+ // restaurant-booking: anchors here are scored against client tools only,
2300
+ // so a server-tool anchor could never fire. The "cancel brings list"
2301
+ // edge on a fresh prompt is restaurant-cancel-lookup in
2302
+ // SERVER_TOOL_DEPENDENCY_SETS.
2303
+ name: "restaurant-cancel",
2304
+ members: [
2305
+ "AnumaPaymentsMCP-anuma_list_reservations",
2306
+ "AnumaPaymentsMCP-anuma_cancel_reservation"
2307
+ ],
2308
+ anchors: []
2278
2309
  }
2279
2310
  ];
2280
2311
  function applyToolSets(matchedNames, availableNames, scores, toolSets = BUILT_IN_TOOL_SETS, independentThreshold = 0.65) {
@@ -2434,6 +2465,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
2434
2465
  "OpenMeteoMCP-elevation"
2435
2466
  ],
2436
2467
  anchorMinSimilarity: 0.5
2468
+ },
2469
+ {
2470
+ // The cancel tool takes its resy_token and the other values only from a
2471
+ // live anuma_list_reservations result in the same turn, never from
2472
+ // memory, so the list tool must ride in whenever cancel is offered.
2473
+ // Members hold only the dependency, like openmeteo-geocode.
2474
+ name: "restaurant-cancel-lookup",
2475
+ members: ["AnumaPaymentsMCP-anuma_list_reservations"],
2476
+ anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
2477
+ anchorMinSimilarity: 0.5
2437
2478
  }
2438
2479
  ];
2439
2480
  var defaultServerToolsFilter = createServerToolsFilter({
package/dist/index.mjs CHANGED
@@ -2055,20 +2055,51 @@ var BUILT_IN_TOOL_SETS = [
2055
2055
  },
2056
2056
  {
2057
2057
  // Server tools, so this set does its work through
2058
- // withActiveToolSetServerTools: once a restaurant tool has run, terse
2059
- // follow-ups ("okay", "same as before") keep the booking chain. Each tool
2060
- // still reaches a fresh booking request on its own description.
2058
+ // withActiveToolSetServerTools: once any restaurant tool has run, terse
2059
+ // follow-ups ("okay", "same as before", "cancel it") keep every restaurant
2060
+ // tool — discovery, booking and cancelling. Each tool still reaches a fresh
2061
+ // request on its own description.
2061
2062
  // Anchors are deliberately empty (like the client's Nearby set): the set
2062
2063
  // is only for stickiness, not a new way to activate on a prompt.
2063
2064
  // prompt_user_confirm is left out of members: autoFilterClientTools always
2064
2065
  // sends it, and as a member any unrelated confirmation would pin this set.
2065
2066
  name: "restaurant-booking",
2067
+ members: [
2068
+ "AnumaPaymentsMCP-anuma_find_restaurant",
2069
+ "AnumaPaymentsMCP-anuma_check_restaurant_availability",
2070
+ "AnumaPaymentsMCP-anuma_book_restaurant",
2071
+ "AnumaPaymentsMCP-anuma_list_reservations",
2072
+ "AnumaPaymentsMCP-anuma_cancel_reservation",
2073
+ "AnumaPaymentsMCP-anuma_discover_restaurants"
2074
+ ],
2075
+ anchors: []
2076
+ },
2077
+ {
2078
+ // What a confirmed booking card narrows the rest of the turn to (see
2079
+ // CONFIRMED_ACTION_TOOL_SETS): the booking chain only, without the
2080
+ // discovery and cancel tools that restaurant-booking keeps sticky.
2081
+ // Anchors are empty for the same reason as restaurant-cancel below.
2082
+ name: "restaurant-book",
2066
2083
  members: [
2067
2084
  "AnumaPaymentsMCP-anuma_find_restaurant",
2068
2085
  "AnumaPaymentsMCP-anuma_check_restaurant_availability",
2069
2086
  "AnumaPaymentsMCP-anuma_book_restaurant"
2070
2087
  ],
2071
2088
  anchors: []
2089
+ },
2090
+ {
2091
+ // What a confirmed cancel card narrows the rest of the turn to (see
2092
+ // CONFIRMED_ACTION_TOOL_SETS). Anchors are empty for the same reason as
2093
+ // restaurant-booking: anchors here are scored against client tools only,
2094
+ // so a server-tool anchor could never fire. The "cancel brings list"
2095
+ // edge on a fresh prompt is restaurant-cancel-lookup in
2096
+ // SERVER_TOOL_DEPENDENCY_SETS.
2097
+ name: "restaurant-cancel",
2098
+ members: [
2099
+ "AnumaPaymentsMCP-anuma_list_reservations",
2100
+ "AnumaPaymentsMCP-anuma_cancel_reservation"
2101
+ ],
2102
+ anchors: []
2072
2103
  }
2073
2104
  ];
2074
2105
  function applyToolSets(matchedNames, availableNames, scores, toolSets = BUILT_IN_TOOL_SETS, independentThreshold = 0.65) {
@@ -2228,6 +2259,16 @@ var SERVER_TOOL_DEPENDENCY_SETS = [
2228
2259
  "OpenMeteoMCP-elevation"
2229
2260
  ],
2230
2261
  anchorMinSimilarity: 0.5
2262
+ },
2263
+ {
2264
+ // The cancel tool takes its resy_token and the other values only from a
2265
+ // live anuma_list_reservations result in the same turn, never from
2266
+ // memory, so the list tool must ride in whenever cancel is offered.
2267
+ // Members hold only the dependency, like openmeteo-geocode.
2268
+ name: "restaurant-cancel-lookup",
2269
+ members: ["AnumaPaymentsMCP-anuma_list_reservations"],
2270
+ anchors: ["AnumaPaymentsMCP-anuma_cancel_reservation"],
2271
+ anchorMinSimilarity: 0.5
2231
2272
  }
2232
2273
  ];
2233
2274
  var defaultServerToolsFilter = createServerToolsFilter({