@tomtom-org/maps-sdk-plugin-agent-toolkit 0.11.0 → 0.13.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
@@ -120,7 +120,7 @@ The plugin ships a `DEFAULT_TOOLS` registry covering search, routing, traffic, r
120
120
  | `getTrafficAreaAnalytics` | Fetch historical traffic analytics (speed, congestion, travel time) for an area |
121
121
  | `toggleTilesTrafficFlow` | Toggle the real-time traffic-flow tile overlay |
122
122
  | `toggleTilesTrafficIncidents` | Toggle the real-time traffic-incidents tile overlay |
123
- | `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 |
123
+ | `setMapStyling` | Set or reset how the map looks — label/icon/road sizes, exit numbers and road arrows, POI and hillshade looks, congestion colours, map colours, map presets, or a whole theme from a few colours or an image |
124
124
 
125
125
  ### Trackers
126
126
 
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.291
52
+ Version: 6.0.300
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.
@@ -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.291
42
+ Version: 6.0.300
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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryFillStyle, POIsModule, PlaceConnectionDisplay, PlacesModule, PlanningWaypoint, ReachableRangesModule, RoutingModule, StylingModule, TomTomMap, TrafficAreaAnalyticsModule, TrafficAreaAnalyticsModuleConfig, TrafficFlowModule, TrafficIncidentDetailsModule, TrafficIncidentsModule } from "@tomtom-org/maps-sdk/map";
1
+ import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryFillStyle, POIsModule, PlaceConnectionDisplay, PlacesModule, PlanningWaypoint, ReachableRangesModule, RoutingModule, StylingFoundationsModule, TerrainModule, TomTomMap, TrafficAreaAnalyticsModule, TrafficAreaAnalyticsModuleConfig, TrafficFlowModule, TrafficIncidentDetailsModule, TrafficIncidentsModule } from "@tomtom-org/maps-sdk/map";
2
2
  import { BBox, CommonPlaceProps, GeographyType, Place, Places, PolygonFeature, PolygonFeatures, ReachableRangeBudget, 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";
@@ -701,18 +701,21 @@ type BYODEntry = BaseEntry<FeatureCollection$1> & {
701
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 StylingModule.
704
+ * lazy-initialized BaseMapModule, StylingFoundationsModule and TerrainModule.
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 _stylingModule?;
711
+ private _stylingFoundationsModule?;
712
+ private _terrainModule?;
712
713
  constructor(ttMap: TomTomMap);
713
714
  get mapLibreMap(): Map$1;
714
715
  getBaseMapModule(): Promise<BaseMapModule>;
715
- getStylingModule(): Promise<StylingModule>;
716
+ getStylingFoundationsModule(): Promise<StylingFoundationsModule>;
717
+ getTerrainModule(): Promise<TerrainModule>;
718
+ get terrainModule(): TerrainModule | undefined;
716
719
  reset(): void;
717
720
  }
718
721
  //#endregion
@@ -3959,6 +3962,7 @@ export declare const DEFAULT_TOOLS: {
3959
3962
  setMapStandardStyle: ToolDefinition;
3960
3963
  setLanguage: ToolDefinition;
3961
3964
  toggleTilesPOIs: ToolDefinition;
3965
+ toggleTilesBaseMapLayerGroups: ToolDefinition;
3962
3966
  setMapStyling: ToolDefinition;
3963
3967
  toggleTilesTrafficFlow: ToolDefinition;
3964
3968
  toggleTilesTrafficIncidents: ToolDefinition;
@@ -4144,7 +4148,7 @@ export type EntryDataKind = 'places' | 'routes' | 'incidents' | 'customGeometrie
4144
4148
  * function createMyTool(state: ToolState) {
4145
4149
  * return tool({
4146
4150
  * execute: async () => {
4147
- * const pins = await state.places.getPinPlacesModule();
4151
+ * const places = await state.places.getEntryPlacesModule('places-0', 'pin');
4148
4152
  * state.routing.currentRoutes; // most recent routes
4149
4153
  * state.baseMap.mapLibreMap; // MapLibre instance
4150
4154
  * }
@@ -4210,7 +4214,7 @@ export type ToolState = {
4210
4214
  * @group Agent Toolkit
4211
4215
  */
4212
4216
  export type CodeExecutionConfig = {
4213
- /** Wall-clock budget per isolated (browser) run, in ms. Default: 5000. */
4217
+ /** Wall-clock budget per isolated (browser) run, in ms. Default: 10000. */
4214
4218
  timeoutMs?: number;
4215
4219
  /**
4216
4220
  * Optional override of the worker's library source. By default the SDK loads its own
@@ -4512,7 +4516,8 @@ export type MapAgentOptions<CS extends ToolState = ToolState> = {
4512
4516
  includeDefaultTools?: boolean;
4513
4517
  /**
4514
4518
  * Tool overrides merged with default tools.
4515
- * - `ToolEntry` values add a new tool or replace a default.
4519
+ * - {@link ToolDefinition} values (a `ToolEntry`, a builder, or a `DEFAULT_TOOLS` value) add a new
4520
+ * tool or replace a default.
4516
4521
  * - `false` values exclude a default tool.
4517
4522
  *
4518
4523
  * When omitted, all default tools are used as-is.
@@ -4532,7 +4537,7 @@ export type MapAgentOptions<CS extends ToolState = ToolState> = {
4532
4537
  * });
4533
4538
  * ```
4534
4539
  */
4535
- tools?: { [K in ToolNameHint]?: ToolEntry<CS> | false | undefined; };
4540
+ tools?: { [K in ToolNameHint]?: ToolDefinition<CS> | false | undefined; };
4536
4541
  /**
4537
4542
  * Custom state slices merged alongside built-in state.
4538
4543
  * Only custom slices need to be provided — built-in slices are created automatically.
@@ -4543,9 +4548,9 @@ export type MapAgentOptions<CS extends ToolState = ToolState> = {
4543
4548
  * Per-kind data-entry configuration. Each {@link DataEntryKind} accepts
4544
4549
  * `{ enabled?, entryMode? }`. Setting `enabled: false` removes the kind from the
4545
4550
  * agent's tool surface entirely — it disappears from `analyseData` / `processData`
4546
- * scope and input fields, and the slice-specific recall / display / fetch tools
4547
- * are dropped from the registry. `entryMode` is applied to the underlying slice
4548
- * right after the agent state is built — before any tool runs.
4551
+ * scope and input fields, and its slice-specific display / fetch tools
4552
+ * ({@link TOOLS_BY_DATA_ENTRY_KIND}) are dropped from the registry; `recallState` stays.
4553
+ * `entryMode` is applied to the underlying slice right after the agent state is built — before any tool runs.
4549
4554
  *
4550
4555
  * Keys are LLM-facing kind names (`routes`, `incidents`) — not slice names
4551
4556
  * (`routing`, `trafficIncidents`). The slice mapping is internal.
@@ -4557,8 +4562,8 @@ export type MapAgentOptions<CS extends ToolState = ToolState> = {
4557
4562
  * dataEntries: {
4558
4563
  * routes: { entryMode: 'single' },
4559
4564
  * incidents: { entryMode: 'single' },
4560
- * byod: { enabled: false }, // disables recallState, addByodSource, setByodLayers, updateByodDisplay + byod scope on analyse/process
4561
- * ranges: { enabled: false }, // disables findReachableAreas + recallState
4565
+ * byod: { enabled: false }, // drops addByodSource, setByodLayers, updateByodDisplay + byod scope on analyse/process
4566
+ * ranges: { enabled: false }, // drops findReachableAreas
4562
4567
  * },
4563
4568
  * });
4564
4569
  * ```
@@ -4746,7 +4751,7 @@ export declare const createMapAgent: <CS extends ToolState = ToolState>(map: Tom
4746
4751
  *
4747
4752
  * @group Agent Toolkit
4748
4753
  */
4749
- export declare const resolveTools: <S extends ToolState>(defaults: Record<string, ToolDefinition<S>>, overrides?: { [K in ToolNameHint]?: ToolEntry<S> | false | undefined; }) => Record<string, ToolDefinition<S>>;
4754
+ export declare const resolveTools: <S extends ToolState>(defaults: Record<string, ToolDefinition<S>>, overrides?: MapAgentOptions<S>["tools"]) => Record<string, ToolDefinition<S>>;
4750
4755
  //#endregion
4751
4756
  //#region src/tools/utilities/clarify-user-intent.d.ts
4752
4757
  /** A single clarification question shown to the user. Exported so a host can type its form state. */