@ykurilov/agent-chat-web-tools 0.55.0 → 0.57.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/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @ykurilov/agent-chat-web-tools
2
2
 
3
+ ## 0.57.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ade99cc]
8
+ - Updated dependencies [86afa20]
9
+ - Updated dependencies [624c10c]
10
+ - @ykurilov/agent-chat-core@0.57.0
11
+
12
+ ## 0.56.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 24c313e: Новый пакет `@ykurilov/agent-chat-mcp`: серверы MCP, которые подключает админ приложения.
17
+
18
+ - `createMcpServers({ store, secretKey, isAdmin, proxy?, spending?, limits?, syncIntervalMs? })` → `mcp.tools(model, appTools?)`
19
+ для `agent.tools` (первым; при одинаковом имени побеждает инструмент приложения), `mcp.admin`, `mcp.reload()`, `mcp.sync()`, `mcp.close()`. «Только админы» — по `model.viewer.isAdmin`;
20
+ `isAdmin` (может быть асинхронной) — для экрана. Правка доходит до всех копий сервера по отметке версии в хранилище. Только удалённые серверы (Streamable HTTP, SSE). Инструменты — из
21
+ сохранённого снимка списка: запрос к модели стабилен, упавший сервер не ломает начало запроса. Соединение — на
22
+ проверенный адрес DNS; заголовки прокси — только на `proxy.origin`.
23
+ - `createMcpAdminHandler({ mcp, resolveUser, allowedOrigins })` — адреса `/api/mcp`, не админу 404.
24
+ - Хранилища: `createMemoryMcpStore`, `/sqlite` `createSqliteMcpStore`, `/postgres` `createPostgresMcpStore`; миграции сами.
25
+ - `/react`: `McpAdmin`, `useMcpAdmin`, договор скина `McpSkin` v1 (с формой правки `McpServerCardView.edit`), надписи ru/en. Скин Тандема: `./mcp` → `tandemMcpSkin`.
26
+ - Ядро: штатный вид расхода `mcp_tool`; `agent.viewer` — права человека раз в начале хода, полем `viewer` в
27
+ `contextBlocks` и `AgentToolsModel`. Песочница: права тестового чата — по владельцу чата. web-tools: наружу `dnsHostResolver`.
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [24c313e]
32
+ - @ykurilov/agent-chat-core@0.56.0
33
+
3
34
  ## 0.55.0
4
35
 
5
36
  ### Patch Changes
package/dist/index.js CHANGED
@@ -467,6 +467,7 @@ export {
467
467
  assertResolvesPublic,
468
468
  createPersonLinkTool,
469
469
  createWebTools,
470
+ dnsHostResolver,
470
471
  isHttpAddress,
471
472
  isPrivateAddress,
472
473
  webToolsInstructions
@@ -5,6 +5,7 @@ export type { PersonLinkModel, PersonLinkOptions, PersonLinkTools } from "./tool
5
5
  export { webToolsInstructions } from "./instructions.js";
6
6
  export { assertPublicWebAddress, assertResolvesPublic, isHttpAddress, isPrivateAddress } from "./page-address.js";
7
7
  export type { HostResolver } from "./page-address.js";
8
+ export { dnsHostResolver } from "./dns-host-resolver.js";
8
9
  export { WebToolError } from "./web-tool-error.js";
9
10
  export type { WebToolErrorKind } from "./web-tool-error.js";
10
11
  export type { PageContent, PageReaderService, PageScreenshotService, SearchHit, WebSearchService } from "./services.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ykurilov/agent-chat-web-tools",
3
- "version": "0.55.0",
3
+ "version": "0.57.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "ai": "7.0.122",
43
43
  "zod": "^4.6.5",
44
- "@ykurilov/agent-chat-core": "0.55.0"
44
+ "@ykurilov/agent-chat-core": "0.57.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "node ../../scripts/build-package.mjs",