fix: verified-against-live Core v2.3.3 shapes

- login: {type: LoginLocalUser, params} + data.jwt extraction
- inspect: server-scoped objects use {server, container|image|network|volume}
- search_logs: terms array + per-type params (deployment/container/stack/swarm_service)

Verified via 15-test read-only pass against 10.10.2.114:9120
This commit is contained in:
2026-09-07 17:41:21 -04:00
parent 2402b3b7fa
commit c437808514
4 changed files with 76 additions and 9 deletions
+12 -1
View File
@@ -449,7 +449,18 @@ export const SUMMARY_REQUEST_MAP: Partial<Record<ResourceType, string>> = {
action: "GetActionsSummary",
};
// Maps inspect type to the inspect RPC request name
// Maps inspect type to the inspect RPC request name.
// Server-scoped Docker objects also need an object param key (see
// INSPECT_PARAM_KEY below): Core v2.3.3 shapes are {server, container},
// {server, image}, {server, network}, {server, volume} — sending
// {id, server} fails with "duplicate field `server`".
export const INSPECT_PARAM_KEY: Record<string, string> = {
container: "container",
image: "image",
network: "network",
volume: "volume",
};
export const INSPECT_REQUEST_MAP: Record<string, string> = {
container: "InspectContainer",
image: "InspectImage",