maplibre-gl-geoagent 0.5.1 → 0.5.3

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.
Files changed (33) hide show
  1. package/README.md +15 -27
  2. package/dist/{GeoAgentControl-J26MMwe5.cjs → GeoAgentControl-BrqW0nW3.cjs} +196 -247
  3. package/dist/{GeoAgentControl-J26MMwe5.cjs.map → GeoAgentControl-BrqW0nW3.cjs.map} +1 -1
  4. package/dist/{GeoAgentControl-BWSkl9b-.js → GeoAgentControl-DJ8Yw4b1.js} +196 -247
  5. package/dist/{GeoAgentControl-BWSkl9b-.js.map → GeoAgentControl-DJ8Yw4b1.js.map} +1 -1
  6. package/dist/{anthropic-D2xJ9IO4.cjs → anthropic-Det8kcL4.cjs} +2 -2
  7. package/dist/{anthropic-D2xJ9IO4.cjs.map → anthropic-Det8kcL4.cjs.map} +1 -1
  8. package/dist/{anthropic-DqtWmJMG.js → anthropic-oFfmzzbq.js} +2 -2
  9. package/dist/{anthropic-DqtWmJMG.js.map → anthropic-oFfmzzbq.js.map} +1 -1
  10. package/dist/{browser-DTYbc3Sp.js → browser-DKxcoOn_.js} +2 -2
  11. package/dist/{browser-DTYbc3Sp.js.map → browser-DKxcoOn_.js.map} +1 -1
  12. package/dist/{browser-ZyWGgIdV.cjs → browser-VzygwWeK.cjs} +2 -2
  13. package/dist/{browser-ZyWGgIdV.cjs.map → browser-VzygwWeK.cjs.map} +1 -1
  14. package/dist/{index-D7y77wpc.cjs → index-BDAtf431.cjs} +2 -2
  15. package/dist/{index-D7y77wpc.cjs.map → index-BDAtf431.cjs.map} +1 -1
  16. package/dist/{index-oSbeAq6a.js → index-B_sFbHLH.js} +2 -2
  17. package/dist/{index-oSbeAq6a.js.map → index-B_sFbHLH.js.map} +1 -1
  18. package/dist/{index-CRfykVWh.js → index-CPBFxRBO.js} +2 -2
  19. package/dist/{index-CRfykVWh.js.map → index-CPBFxRBO.js.map} +1 -1
  20. package/dist/{index-cO0gccGg.cjs → index-D2I5L_28.cjs} +2 -2
  21. package/dist/{index-cO0gccGg.cjs.map → index-D2I5L_28.cjs.map} +1 -1
  22. package/dist/{index-DnnohXIw.js → index-D5LWkU_h.js} +2 -2
  23. package/dist/{index-DnnohXIw.js.map → index-D5LWkU_h.js.map} +1 -1
  24. package/dist/{index-DHGV30Mr.cjs → index-V9Dk3O4j.cjs} +2 -2
  25. package/dist/{index-DHGV30Mr.cjs.map → index-V9Dk3O4j.cjs.map} +1 -1
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.mjs +1 -1
  28. package/dist/maplibre-gl-geoagent.css +36 -1
  29. package/dist/react.cjs +1 -1
  30. package/dist/react.mjs +1 -1
  31. package/dist/types/lib/core/GeoAgentControl.d.ts +19 -35
  32. package/dist/types/lib/core/GeoAgentControl.d.ts.map +1 -1
  33. package/package.json +1 -1
package/README.md CHANGED
@@ -13,8 +13,8 @@ inspect and operate on the live map through dedicated browser tools.
13
13
 
14
14
  - Collapsible MapLibre control with a floating chat panel
15
15
  - Browser provider UI for OpenAI Responses, OpenAI Chat, Anthropic, Google Gemini, Amazon Bedrock, and any OpenAI-compatible/custom endpoint
16
- - API keys are saved on commit (Enter or blur) with an inline confirmation, then checked against the provider: an invalid key keeps the chat locked, while a verified key (or one that could not be reached for verification) unlocks it
17
- - Provider, key, and model settings live in one collapsible section that folds away once configured; the model field is a combobox that accepts a typed value or a one-click "Load models" list of the provider's available models
16
+ - API keys are saved on commit (Enter or blur) with an inline confirmation; provider errors are shown when a prompt is sent
17
+ - Provider, key, and model settings live in one collapsible section that folds away once configured; built-in providers default to their latest configured model, and the model can still be edited manually
18
18
  - Map tools for camera movement, projection, basemaps, markers, GeoJSON, XYZ tiles, layer visibility, opacity, feature queries, screenshots, and layer cleanup
19
19
  - Optional Google Earth Engine tools for catalog search, OAuth initialization, dataset tile layers, normalized difference indexes, visualization updates, snippets, and bounded statistics
20
20
  - Optional MapLibre JavaScript execution tool, disabled by default
@@ -118,38 +118,26 @@ Supported providers:
118
118
 
119
119
  For Bedrock, select `Amazon Bedrock`, enter a Bedrock API key, choose a Bedrock
120
120
  Converse model ID, and set the AWS region. The default Bedrock model is
121
- `global.anthropic.claude-sonnet-4-6`, and the default region is `us-west-2`.
121
+ `anthropic.claude-opus-4-8`, and the default region is `us-west-2`.
122
122
 
123
123
  For a custom or self-hosted model, select `OpenAI-Compatible (Custom)`, enter the
124
124
  API base URL of an OpenAI-compatible endpoint (for example a local LLM server or
125
- a private deployment), supply the API key, and enter or load a model ID. The
126
- endpoint is called with the OpenAI Chat Completions API shape.
125
+ a private deployment), supply the API key, and enter a model ID. The endpoint is
126
+ called with the OpenAI Chat Completions API shape.
127
127
 
128
- ### Saving and verifying keys
128
+ ### Saving keys and models
129
129
 
130
130
  The API key is written to `sessionStorage` only when you commit it (press Enter
131
131
  or move focus out of the field), so a half-typed key never flips the status
132
- badge to "Ready". After a key is committed the control calls the provider's
133
- model-list endpoint to verify it: a success marks the connection ready and
134
- fills the model field's suggestion list, an authentication error marks the key
135
- invalid and keeps the prompt locked, and a network/CORS failure leaves the key
136
- usable but
137
- unverified so a provider that does not allow browser model listing never blocks
138
- you. Use the "Load models" button to re-run this check at any time.
139
-
140
- Auto-verification on commit only runs once the control has everything it needs
141
- to call the endpoint. For `OpenAI-Compatible (Custom)` that means the API base
142
- URL must already be a valid `http(s)` URL when you commit the key; otherwise
143
- finish entering the base URL first, then press "Load models" to verify and load
144
- the model list.
145
-
146
- The loaded list is filtered to text chat models: embeddings, speech/audio,
147
- image, moderation, and (for first-party OpenAI) legacy completion models such as
148
- `davinci` and `*-instruct` are removed. These `/models` endpoints expose no
149
- "deprecated" flag, so deprecated chat snapshots cannot be detected and are left
150
- in. Aggregator endpoints such as OpenRouter legitimately list hundreds of chat
151
- models from many providers; the model field is a combobox, so type to narrow the
152
- suggestions.
132
+ badge to "Ready" or get written to storage.
133
+
134
+ Built-in providers use the latest model configured by the package:
135
+ `gpt-5.5` for OpenAI Responses and OpenAI Chat, `claude-opus-4-8` for Anthropic,
136
+ `gemini-3.5-flash` for Google Gemini, and `anthropic.claude-opus-4-8` for Amazon
137
+ Bedrock. The "Use latest" button resets the model field to that configured
138
+ default without calling a provider model-list endpoint. For
139
+ `OpenAI-Compatible (Custom)`, there is no universal latest model, so enter the
140
+ model ID exposed by that endpoint.
153
141
 
154
142
  ## Options
155
143