@tomtom-org/maps-sdk-plugin-agent-toolkit 0.6.1 → 0.8.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/README.md CHANGED
@@ -79,7 +79,7 @@ function ChatPanel() {
79
79
  }
80
80
  ```
81
81
 
82
- See [`examples/map-chat-agent-react`](../../examples/map-chat-agent-react) for a full working example.
82
+ See [`examples/map-traffic-agent-react`](../../examples/map-traffic-agent-react) for a full working example.
83
83
 
84
84
  ## Tools reference
85
85
 
@@ -105,7 +105,7 @@ The plugin ships a `DEFAULT_TOOLS` registry covering search, routing, traffic, r
105
105
  | `removeWaypointsFromRoute` | Remove one or more waypoints by index from the current route |
106
106
  | `replaceWaypointInRoute` | Overwrite a single waypoint of the current route in place — origin, destination, or by index |
107
107
  | `getCurrentWaypoints` | Get the staged waypoint slots (origin, stops, destination) |
108
- | `findReachableAreas` | Calculate isochrone/isodistance polygons from one or more origins |
108
+ | `findReachableAreas` | Calculate isochrone/isodistance polygons from one or more origins (private preview: the API key needs Calculate Reachable Range access) |
109
109
 
110
110
  ### Traffic
111
111
 
@@ -119,8 +119,7 @@ The plugin ships a `DEFAULT_TOOLS` registry covering search, routing, traffic, r
119
119
  | `queryTrafficAnalytics` | Query cached analytics data or check what is currently displayed |
120
120
  | `toggleTilesTrafficFlow` | Toggle the real-time traffic-flow tile overlay |
121
121
  | `toggleTilesTrafficIncidents` | Toggle the real-time traffic-incidents tile overlay |
122
- | `describeMapStyling` | List the semantic base-map styling knobs (sizes, toggles, POI and traffic colours) with ranges and current values |
123
- | `setMapStyling` | Set or reset base-map styling knobs — label/icon/road sizes, exit numbers, shields, 3D buildings, congestion colours… |
122
+ | `setMapStyling` | Set or reset base-map styling knobs — label/icon/road sizes, exit numbers, shields, 3D buildings, congestion colours, map colours, presets, or a whole theme from a few colours or an image |
124
123
  | `getShownTileIncidents` | List real-time incidents visible in the current viewport |
125
124
 
126
125
  ### Bring-your-own-data (BYOD)
@@ -175,7 +174,6 @@ const agent = createMapAgent(map, {
175
174
  | `getStandardMapStyles` | List available standard map style presets |
176
175
  | `setMapStandardStyle` | Switch map style (light, dark, satellite, driving, etc.) |
177
176
  | `setLanguage` | Change the language for map labels and API responses |
178
- | `toggleTilesBaseMapLayerGroups` | Show/hide named layer groups (buildings3D, roadLabels, water, etc.) |
179
177
  | `toggleTilesPOIs` | Show/hide built-in map POI icons with optional category filtering |
180
178
 
181
179
  ### MapLibre direct access
@@ -511,7 +509,7 @@ const agent = createMapAgent(map, {
511
509
  setLanguage: false,
512
510
  setLayoutProperties: false,
513
511
  setPaintProperties: false,
514
- toggleTilesBaseMapLayerGroups: false,
512
+ toggleTilesPOIs: false,
515
513
  },
516
514
  });
517
515
  ```
@@ -557,4 +555,4 @@ For the complete, always-current list of exports — factories, tool-registry he
557
555
  - [Bring your own data](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/byod) — ingest customer GeoJSON layers
558
556
  - [AI SDK v6 documentation](https://ai-sdk.dev/)
559
557
  - [TomTom Maps SDK documentation](https://docs.tomtom.com/maps-sdk-js)
560
- - [Example application](../../examples/map-chat-agent-react) — full chat interface implementation
558
+ - [Example application](../../examples/map-traffic-agent-react) — full chat interface implementation
package/THIRD_PARTY.txt CHANGED
@@ -49,7 +49,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49
49
  ---
50
50
 
51
51
  Name: ai
52
- Version: 6.0.266
52
+ Version: 6.0.291
53
53
  License: Apache-2.0
54
54
  Bundled: false (peer dependency)
55
55
  Description: AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
@@ -334,7 +334,7 @@ limitations under the License.
334
334
  ---
335
335
 
336
336
  Name: maplibre-gl
337
- Version: 6.9.0
337
+ Version: 6.11.2
338
338
  License: BSD-3-Clause
339
339
  Bundled: false (peer dependency)
340
340
  Description: BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
@@ -464,7 +464,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
464
464
  ---
465
465
 
466
466
  Name: zod
467
- Version: 4.4.3
467
+ Version: 4.6.5
468
468
  License: MIT
469
469
  Bundled: false (peer dependency)
470
470
  Description: TypeScript-first schema declaration and validation library with static type inference
@@ -39,7 +39,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39
39
  ---
40
40
 
41
41
  Name: ai
42
- Version: 6.0.266
42
+ Version: 6.0.291
43
43
  License: Apache-2.0
44
44
  Bundled: false (peer dependency)
45
45
  Description: AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
@@ -324,7 +324,7 @@ limitations under the License.
324
324
  ---
325
325
 
326
326
  Name: maplibre-gl
327
- Version: 6.9.0
327
+ Version: 6.11.2
328
328
  License: BSD-3-Clause
329
329
  Bundled: false (peer dependency)
330
330
  Description: BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
@@ -454,7 +454,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
454
454
  ---
455
455
 
456
456
  Name: zod
457
- Version: 4.4.3
457
+ Version: 4.6.5
458
458
  License: MIT
459
459
  Bundled: false (peer dependency)
460
460
  Description: TypeScript-first schema declaration and validation library with static type inference
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryTheme, HillshadeModule, POIsModule, PlaceConnectionDisplay, PlacesModule, PlanningWaypoint, RoutingModule, StylingModule, TomTomMap, TrafficAreaAnalyticsConfig, TrafficAreaAnalyticsModule, TrafficFlowModule, TrafficIncidentOverlayModule, TrafficIncidentsModule } from "@tomtom-org/maps-sdk/map";
1
+ import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryTheme, POIsModule, PlaceConnectionDisplay, PlacesModule, PlanningWaypoint, RoutingModule, StylingModule, TomTomMap, TrafficAreaAnalyticsModule, TrafficAreaAnalyticsModuleConfig, TrafficFlowModule, TrafficIncidentOverlayModule, TrafficIncidentsModule } from "@tomtom-org/maps-sdk/map";
2
2
  import { BBox, CommonPlaceProps, GeographyType, POICategory, Place, Places, PolygonFeature, PolygonFeatures, Route, Routes, TrafficAreaAnalytics, TrafficIncident, WaypointLike } from "@tomtom-org/maps-sdk/core";
3
3
  import { ChartConfiguration } from "chart.js";
4
4
  import { Map as Map$1 } from "maplibre-gl";
@@ -698,22 +698,20 @@ type BYODEntry = BaseEntry<FeatureCollection$1> & {
698
698
  //#endregion
699
699
  //#region src/state/base-map/state.d.ts
700
700
  /**
701
- * State for base map display: style, language, viewport, layers, and hillshade.
701
+ * State for base map display: style, language, viewport and layers.
702
702
  *
703
703
  * Provides direct access to the TomTomMap and MapLibre instances alongside
704
- * lazy-initialized BaseMapModule and HillshadeModule.
704
+ * lazy-initialized BaseMapModule and StylingModule.
705
705
  *
706
706
  * @group Agent Toolkit
707
707
  */
708
708
  declare class BaseMapState implements StateSlice {
709
709
  readonly ttMap: TomTomMap;
710
710
  private _baseMapModule?;
711
- private _hillshadeModule?;
712
711
  private _stylingModule?;
713
712
  constructor(ttMap: TomTomMap);
714
713
  get mapLibreMap(): Map$1;
715
714
  getBaseMapModule(): Promise<BaseMapModule>;
716
- getHillshadeModule(): Promise<HillshadeModule>;
717
715
  getStylingModule(): Promise<StylingModule>;
718
716
  reset(): void;
719
717
  }
@@ -736,9 +734,6 @@ export declare const AGENT_TOOLKIT_USER_AGENT: string;
736
734
  * `tomtom-user-agent` override (see `generateTomTomHeaders`, `core/src/util/headers.ts`) — reuses
737
735
  * an existing, already-allow-listed header rather than adding a new one.
738
736
  *
739
- * Not applicable to `searchOne`/`geocodeOne` (and the `searchOneFn`/`geocodeOneFn` dispatch in
740
- * `locate-places.ts`) — those take a bare query string with no params object to tag.
741
- *
742
737
  * @ignore
743
738
  */
744
739
  export declare const withAgentToolkitHeaders: <P extends object>(params: P) => P;
@@ -1993,7 +1988,7 @@ type TrafficAreaAnalyticsEntry = BaseEntry<TrafficAreaAnalytics> & {
1993
1988
  */
1994
1989
  _module?: TrafficAreaAnalyticsModule;
1995
1990
  /** Latest viz config reflected from the module (mode / metric / scaleMode / …). */
1996
- _config?: TrafficAreaAnalyticsConfig;
1991
+ _config?: TrafficAreaAnalyticsModuleConfig;
1997
1992
  /** Unsubscribe from this entry's module config-change wiring. Cleared on hide / remove. */
1998
1993
  _configChangeUnsub?: () => void;
1999
1994
  /** True while `_module` is rendering on the map. */
@@ -2022,7 +2017,7 @@ type TrafficAreaAnalyticsStateEvents = {
2022
2017
  /** Per-entry viz config changed (mode / metric / scaleMode / …). */
2023
2018
  'config-change': {
2024
2019
  entryId: string;
2025
- config: TrafficAreaAnalyticsConfig | undefined;
2020
+ config: TrafficAreaAnalyticsModuleConfig | undefined;
2026
2021
  };
2027
2022
  /** Display policy switched between `single` and `multiple`. */
2028
2023
  'mode-change': EntryMode;
@@ -3916,9 +3911,7 @@ export declare const DEFAULT_TOOLS: {
3916
3911
  getStandardMapStyles: ToolDefinition;
3917
3912
  setMapStandardStyle: ToolDefinition;
3918
3913
  setLanguage: ToolDefinition;
3919
- toggleTilesBaseMapLayerGroups: ToolDefinition;
3920
3914
  toggleTilesPOIs: ToolDefinition;
3921
- describeMapStyling: ToolDefinition;
3922
3915
  setMapStyling: ToolDefinition;
3923
3916
  toggleTilesTrafficFlow: ToolDefinition;
3924
3917
  toggleTilesTrafficIncidents: ToolDefinition;
@@ -4119,7 +4112,7 @@ export type ToolState = {
4119
4112
  mapPOIs: MapPOIsState;
4120
4113
  /** Route calculation, waypoint management, and planning parameter state. */
4121
4114
  routing: RoutingState;
4122
- /** Base map display: style, language, viewport, layers, and hillshade. */
4115
+ /** Base map display: style, language, viewport and layers. */
4123
4116
  baseMap: BaseMapState;
4124
4117
  /** Traffic tile overlays: flow tiles + incident overlay tiles. */
4125
4118
  trafficTiles: TrafficTilesState;