fix(poll): снять квоты журналов полного опроса
Docker images / prepare-release (push) Successful in 11s
Docker images / backend-test (push) Successful in 10m21s
Docker images / frontend-image (push) Successful in 2m8s
Docker images / updater-image (push) Successful in 38s
Docker images / netflow-agent-image (push) Successful in 32s
Docker images / backend-image (push) Successful in 1m59s
Docker images / publish-release (push) Successful in 12s
Docker images / notify-webhook (push) Successful in 2s

This commit is contained in:
Denozordec committed 2026-11-23 11:35:04 +07:00
1 parent e11e67b3a1
commit ef3d7b6779
40 files changed
+461 -364

No files matched your search

@@ -10,9 +10,8 @@ test("registration exposes one actual global write plan and fixed nondiagnostic
registerServerPollAction(((...args: Parameters<typeof add>) => { calls.push(args) }) as typeof add)
assert.equal(calls.length, 1)
const [id, tool, description, section, permission, effect, scope, schema, handlers] = calls[0]
assert.match(description, /8 на владельца, 128 на приложение/)
assert.match(description, /Архивирование сохраняет аудит/)
assert.match(description, /pollStorageCapacity/)
assert.doesNotMatch(description, /8 на владельца|128 на приложение/)
assert.match(description, /pollStorageUsage/)
assert.equal(mcpOperationDescriptorSchema.shape.title.safeParse(description).success, true)
assert.equal(id, "servers.poll"); assert.equal(tool, "mm_server_poll_plan"); assert.equal(section, "servers")
assert.equal(permission, "mm:servers:write"); assert.equal(effect, "write"); assert.equal(scope, "global"); assert.equal(handlers.version, 1)
@@ -3,12 +3,11 @@ import { SERVER_POLL_OPERATION } from "../../services/server-poll-authority.js"
import { SERVER_POLL_MCP_OPERATION_VERSION } from "./server-poll-actions.js"
import { createProductionServerPollMcpAdapter } from "./server-poll-production.js"
import { registerMcpService } from "./service-registry.js"
import { SERVER_POLL_STORAGE_POLICY } from "../../services/server-poll-storage-model.js"
/** Normal startup enrolls quota-bound storage before public tools are served. */
/** Normal startup enrolls durable storage before public tools are served. */
export function registerServerPollAction(register: typeof add) {
const adapter = createProductionServerPollMcpAdapter()
registerMcpService(SERVER_POLL_OPERATION, adapter.service)
register(SERVER_POLL_OPERATION, "mm_server_poll_plan", `Полный опрос и история. Резерв: ${SERVER_POLL_STORAGE_POLICY.ownerAttempts} на владельца, ${SERVER_POLL_STORAGE_POLICY.globalAttempts} на приложение. Архивирование сохраняет аудит; остаток зависит от объёма истории. Статус: pollStorageCapacity в MCP overview.`, "servers", "mm:servers:write", "write", "global", adapter.schema,
register(SERVER_POLL_OPERATION, "mm_server_poll_plan", "Полный опрос и история. Число журналов отображается в pollStorageUsage в MCP overview.", "servers", "mm:servers:write", "write", "global", adapter.schema,
{ version: SERVER_POLL_MCP_OPERATION_VERSION, target: adapter.target, prepare: adapter.prepare })
}