@paretools/docker 0.2.0 → 0.5.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 +87 -0
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/docker-runner.d.ts.map +1 -1
- package/dist/lib/docker-runner.js +4 -1
- package/dist/lib/docker-runner.js.map +1 -1
- package/dist/lib/formatters.d.ts +15 -1
- package/dist/lib/formatters.d.ts.map +1 -1
- package/dist/lib/formatters.js +41 -0
- package/dist/lib/formatters.js.map +1 -1
- package/dist/lib/parsers.d.ts +15 -1
- package/dist/lib/parsers.d.ts.map +1 -1
- package/dist/lib/parsers.js +93 -0
- package/dist/lib/parsers.js.map +1 -1
- package/dist/schemas/index.d.ts +82 -176
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +39 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/tools/build.js +1 -1
- package/dist/tools/build.js.map +1 -1
- package/dist/tools/compose-down.d.ts +3 -0
- package/dist/tools/compose-down.d.ts.map +1 -0
- package/dist/tools/compose-down.js +44 -0
- package/dist/tools/compose-down.js.map +1 -0
- package/dist/tools/compose-up.d.ts +3 -0
- package/dist/tools/compose-up.d.ts.map +1 -0
- package/dist/tools/compose-up.js +48 -0
- package/dist/tools/compose-up.js.map +1 -0
- package/dist/tools/exec.d.ts +3 -0
- package/dist/tools/exec.d.ts.map +1 -0
- package/dist/tools/exec.js +37 -0
- package/dist/tools/exec.js.map +1 -0
- package/dist/tools/images.d.ts.map +1 -1
- package/dist/tools/images.js +1 -1
- package/dist/tools/images.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +10 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/logs.d.ts.map +1 -1
- package/dist/tools/logs.js +1 -1
- package/dist/tools/logs.js.map +1 -1
- package/dist/tools/ps.d.ts.map +1 -1
- package/dist/tools/ps.js +1 -1
- package/dist/tools/ps.js.map +1 -1
- package/dist/tools/pull.d.ts +3 -0
- package/dist/tools/pull.d.ts.map +1 -0
- package/dist/tools/pull.js +35 -0
- package/dist/tools/pull.js.map +1 -0
- package/dist/tools/run.d.ts +3 -0
- package/dist/tools/run.d.ts.map +1 -0
- package/dist/tools/run.js +78 -0
- package/dist/tools/run.js.map +1 -0
- package/package.json +28 -5
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# @paretools/docker
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@paretools/docker)
|
|
4
|
+
[](https://github.com/Dave-London/pare/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
**Structured, token-efficient Docker output for AI agents.** Up to 95% fewer tokens than raw `docker` CLI output.
|
|
7
|
+
|
|
8
|
+
Part of the [Pare](https://github.com/Dave-London/pare) suite of MCP servers.
|
|
9
|
+
|
|
10
|
+
## Tools (9)
|
|
11
|
+
|
|
12
|
+
| Tool | Description |
|
|
13
|
+
| -------------- | ---------------------------------------------------- |
|
|
14
|
+
| `ps` | List containers with status, ports, and state |
|
|
15
|
+
| `build` | Build image, returns image ID, duration, and errors |
|
|
16
|
+
| `logs` | Retrieve container logs as structured line arrays |
|
|
17
|
+
| `images` | List images with repository, tag, and size info |
|
|
18
|
+
| `run` | Run a container from an image with structured result |
|
|
19
|
+
| `exec` | Execute a command in a running container |
|
|
20
|
+
| `compose-up` | Start Docker Compose services with structured status |
|
|
21
|
+
| `compose-down` | Stop Docker Compose services with structured status |
|
|
22
|
+
| `pull` | Pull an image from a registry with digest info |
|
|
23
|
+
|
|
24
|
+
## Quick Start
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx -y @paretools/docker
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Add to your MCP client config:
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"mcpServers": {
|
|
35
|
+
"pare-docker": {
|
|
36
|
+
"command": "npx",
|
|
37
|
+
"args": ["-y", "@paretools/docker"]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Example
|
|
44
|
+
|
|
45
|
+
**`ps` output:**
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"containers": [
|
|
50
|
+
{
|
|
51
|
+
"id": "abc123",
|
|
52
|
+
"name": "my-app",
|
|
53
|
+
"image": "node:22-alpine",
|
|
54
|
+
"state": "running",
|
|
55
|
+
"status": "Up 2 hours",
|
|
56
|
+
"ports": ["0.0.0.0:3000->3000/tcp"]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## All Pare Servers (62 tools)
|
|
63
|
+
|
|
64
|
+
| Package | Tools | Wraps |
|
|
65
|
+
| -------------------------------------------------------------------- | --------------------------------------------------------------------------- | ---------------------------------- |
|
|
66
|
+
| [@paretools/git](https://www.npmjs.com/package/@paretools/git) | status, log, diff, branch, show, add, commit, push, pull, checkout | git |
|
|
67
|
+
| [@paretools/test](https://www.npmjs.com/package/@paretools/test) | run, coverage | pytest, jest, vitest, mocha |
|
|
68
|
+
| [@paretools/npm](https://www.npmjs.com/package/@paretools/npm) | install, audit, outdated, list, run, test, init | npm |
|
|
69
|
+
| [@paretools/build](https://www.npmjs.com/package/@paretools/build) | tsc, build, esbuild, vite-build, webpack | tsc, esbuild, vite, webpack |
|
|
70
|
+
| [@paretools/lint](https://www.npmjs.com/package/@paretools/lint) | lint, format-check, prettier-format, biome-check, biome-format | eslint, prettier, biome |
|
|
71
|
+
| [@paretools/python](https://www.npmjs.com/package/@paretools/python) | pip-install, mypy, ruff-check, pip-audit, pytest, uv-install, uv-run, black | pip, mypy, ruff, pytest, uv, black |
|
|
72
|
+
| **@paretools/docker** | ps, build, logs, images, run, exec, compose-up, compose-down, pull | docker, docker compose |
|
|
73
|
+
| [@paretools/cargo](https://www.npmjs.com/package/@paretools/cargo) | build, test, clippy, run, add, remove, fmt, doc, check | cargo |
|
|
74
|
+
| [@paretools/go](https://www.npmjs.com/package/@paretools/go) | build, test, vet, run, mod-tidy, fmt, generate | go, gofmt |
|
|
75
|
+
|
|
76
|
+
## Compatible Clients
|
|
77
|
+
|
|
78
|
+
Works with any MCP-compatible client: [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Claude Desktop](https://claude.ai/download), [Cursor](https://cursor.com), [Windsurf](https://codeium.com/windsurf), [VS Code / GitHub Copilot](https://code.visualstudio.com), [Cline](https://github.com/cline/cline), [Roo Code](https://roocode.com), [Zed](https://zed.dev), [Continue.dev](https://continue.dev), [Gemini CLI](https://github.com/google-gemini/gemini-cli), [OpenAI Codex](https://openai.com/index/codex/)
|
|
79
|
+
|
|
80
|
+
## Links
|
|
81
|
+
|
|
82
|
+
- [Pare monorepo](https://github.com/Dave-London/pare)
|
|
83
|
+
- [MCP protocol](https://modelcontextprotocol.io)
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
[MIT](https://github.com/Dave-London/pare/blob/main/LICENSE)
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { registerAllTools } from "./tools/index.js";
|
|
5
|
-
const server = new McpServer({
|
|
6
|
-
|
|
7
|
-
version: "0.1.0",
|
|
5
|
+
const server = new McpServer({ name: "@paretools/docker", version: "0.2.0" }, {
|
|
6
|
+
instructions: "Structured Docker operations (ps, build, logs, images, run, exec, compose-up, compose-down, pull). Use instead of running docker commands via bash. Returns typed JSON with structured container, image, and build data.",
|
|
8
7
|
});
|
|
9
8
|
registerAllTools(server);
|
|
10
9
|
const transport = new StdioServerTransport();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,GAAG,IAAI,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,MAAM,GAAG,IAAI,SAAS,CAC1B,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,EAC/C;IACE,YAAY,EACV,0NAA0N;CAC7N,CACF,CAAC;AAEF,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEzB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker-runner.d.ts","sourceRoot":"","sources":["../../src/lib/docker-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAExD,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"docker-runner.d.ts","sourceRoot":"","sources":["../../src/lib/docker-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAExD,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAK7E"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { run } from "@paretools/shared";
|
|
2
2
|
export async function docker(args, cwd) {
|
|
3
|
-
|
|
3
|
+
// Docker build/pull/run/compose operations can take minutes; use 5-minute timeout
|
|
4
|
+
const longOps = new Set(["build", "pull", "run", "compose"]);
|
|
5
|
+
const isLong = longOps.has(args[0]);
|
|
6
|
+
return run("docker", args, { cwd, timeout: isLong ? 300_000 : 30_000 });
|
|
4
7
|
}
|
|
5
8
|
//# sourceMappingURL=docker-runner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker-runner.js","sourceRoot":"","sources":["../../src/lib/docker-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAkB,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,IAAc,EAAE,GAAY;IACvD,OAAO,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"docker-runner.js","sourceRoot":"","sources":["../../src/lib/docker-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAkB,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,IAAc,EAAE,GAAY;IACvD,kFAAkF;IAClF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,OAAO,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAC1E,CAAC"}
|
package/dist/lib/formatters.d.ts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import type { DockerPs, DockerBuild, DockerLogs, DockerImages } from "../schemas/index.js";
|
|
1
|
+
import type { DockerPs, DockerBuild, DockerLogs, DockerImages, DockerRun, DockerExec, DockerComposeUp, DockerComposeDown, DockerPull } from "../schemas/index.js";
|
|
2
|
+
/** Formats structured Docker container data into a human-readable listing with state and ports. */
|
|
2
3
|
export declare function formatPs(data: DockerPs): string;
|
|
4
|
+
/** Formats structured Docker build results into a human-readable success/failure summary. */
|
|
3
5
|
export declare function formatBuild(data: DockerBuild): string;
|
|
6
|
+
/** Formats structured Docker logs data into a human-readable output with container name and line count. */
|
|
4
7
|
export declare function formatLogs(data: DockerLogs): string;
|
|
8
|
+
/** Formats structured Docker image data into a human-readable listing with repository, tag, and size. */
|
|
5
9
|
export declare function formatImages(data: DockerImages): string;
|
|
10
|
+
/** Formats structured Docker run output into a human-readable summary. */
|
|
11
|
+
export declare function formatRun(data: DockerRun): string;
|
|
12
|
+
/** Formats structured Docker exec output into a human-readable summary. */
|
|
13
|
+
export declare function formatExec(data: DockerExec): string;
|
|
14
|
+
/** Formats structured Docker Compose up output into a human-readable summary. */
|
|
15
|
+
export declare function formatComposeUp(data: DockerComposeUp): string;
|
|
16
|
+
/** Formats structured Docker Compose down output into a human-readable summary. */
|
|
17
|
+
export declare function formatComposeDown(data: DockerComposeDown): string;
|
|
18
|
+
/** Formats structured Docker pull output into a human-readable summary. */
|
|
19
|
+
export declare function formatPull(data: DockerPull): string;
|
|
6
20
|
//# sourceMappingURL=formatters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/lib/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/lib/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,UAAU,EACX,MAAM,qBAAqB,CAAC;AAE7B,mGAAmG;AACnG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAS/C;AAED,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAarD;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAEnD;AAED,yGAAyG;AACzG,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CASvD;AAED,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAIjD;AAED,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAMnD;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAI7D;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAGjE;AAED,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAInD"}
|
package/dist/lib/formatters.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Formats structured Docker container data into a human-readable listing with state and ports. */
|
|
1
2
|
export function formatPs(data) {
|
|
2
3
|
const lines = [`${data.total} containers (${data.running} running, ${data.stopped} stopped)`];
|
|
3
4
|
for (const c of data.containers) {
|
|
@@ -8,6 +9,7 @@ export function formatPs(data) {
|
|
|
8
9
|
}
|
|
9
10
|
return lines.join("\n");
|
|
10
11
|
}
|
|
12
|
+
/** Formats structured Docker build results into a human-readable success/failure summary. */
|
|
11
13
|
export function formatBuild(data) {
|
|
12
14
|
if (data.success) {
|
|
13
15
|
const parts = [`Build succeeded in ${data.duration}s`];
|
|
@@ -23,9 +25,11 @@ export function formatBuild(data) {
|
|
|
23
25
|
}
|
|
24
26
|
return lines.join("\n");
|
|
25
27
|
}
|
|
28
|
+
/** Formats structured Docker logs data into a human-readable output with container name and line count. */
|
|
26
29
|
export function formatLogs(data) {
|
|
27
30
|
return `${data.container} (${data.total} lines)\n${data.lines.join("\n")}`;
|
|
28
31
|
}
|
|
32
|
+
/** Formats structured Docker image data into a human-readable listing with repository, tag, and size. */
|
|
29
33
|
export function formatImages(data) {
|
|
30
34
|
if (data.total === 0)
|
|
31
35
|
return "No images found.";
|
|
@@ -36,4 +40,41 @@ export function formatImages(data) {
|
|
|
36
40
|
}
|
|
37
41
|
return lines.join("\n");
|
|
38
42
|
}
|
|
43
|
+
/** Formats structured Docker run output into a human-readable summary. */
|
|
44
|
+
export function formatRun(data) {
|
|
45
|
+
const name = data.name ? ` (${data.name})` : "";
|
|
46
|
+
const mode = data.detached ? "detached" : "attached";
|
|
47
|
+
return `Container ${data.containerId}${name} started from ${data.image} [${mode}]`;
|
|
48
|
+
}
|
|
49
|
+
/** Formats structured Docker exec output into a human-readable summary. */
|
|
50
|
+
export function formatExec(data) {
|
|
51
|
+
const status = data.success ? "succeeded" : `failed (exit code ${data.exitCode})`;
|
|
52
|
+
const lines = [`Exec ${status}`];
|
|
53
|
+
if (data.stdout)
|
|
54
|
+
lines.push(data.stdout);
|
|
55
|
+
if (data.stderr)
|
|
56
|
+
lines.push(`stderr: ${data.stderr}`);
|
|
57
|
+
return lines.join("\n");
|
|
58
|
+
}
|
|
59
|
+
/** Formats structured Docker Compose up output into a human-readable summary. */
|
|
60
|
+
export function formatComposeUp(data) {
|
|
61
|
+
if (!data.success)
|
|
62
|
+
return "Compose up failed";
|
|
63
|
+
if (data.started === 0)
|
|
64
|
+
return "Compose up succeeded (no new services started)";
|
|
65
|
+
return `Compose up: ${data.started} services started (${data.services.join(", ")})`;
|
|
66
|
+
}
|
|
67
|
+
/** Formats structured Docker Compose down output into a human-readable summary. */
|
|
68
|
+
export function formatComposeDown(data) {
|
|
69
|
+
if (!data.success)
|
|
70
|
+
return "Compose down failed";
|
|
71
|
+
return `Compose down: ${data.stopped} stopped, ${data.removed} removed`;
|
|
72
|
+
}
|
|
73
|
+
/** Formats structured Docker pull output into a human-readable summary. */
|
|
74
|
+
export function formatPull(data) {
|
|
75
|
+
if (!data.success)
|
|
76
|
+
return `Pull failed for ${data.image}:${data.tag}`;
|
|
77
|
+
const digest = data.digest ? ` (${data.digest.slice(0, 19)}...)` : "";
|
|
78
|
+
return `Pulled ${data.image}:${data.tag}${digest}`;
|
|
79
|
+
}
|
|
39
80
|
//# sourceMappingURL=formatters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../src/lib/formatters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../src/lib/formatters.ts"],"names":[],"mappings":"AAYA,mGAAmG;AACnG,MAAM,UAAU,QAAQ,CAAC,IAAc;IACrC,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,gBAAgB,IAAI,CAAC,OAAO,aAAa,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;IAC9F,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM;YAC1B,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC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20 @@
|
|
|
1
|
-
import type { DockerPs, DockerBuild, DockerLogs, DockerImages } from "../schemas/index.js";
|
|
1
|
+
import type { DockerPs, DockerBuild, DockerLogs, DockerImages, DockerRun, DockerExec, DockerComposeUp, DockerComposeDown, DockerPull } from "../schemas/index.js";
|
|
2
|
+
/** Parses `docker ps --format json` output into structured container data with ports and state. */
|
|
2
3
|
export declare function parsePsJson(stdout: string): DockerPs;
|
|
4
|
+
/** Parses `docker build` output into structured results with success status, image ID, and errors. */
|
|
3
5
|
export declare function parseBuildOutput(stdout: string, stderr: string, exitCode: number, duration: number): DockerBuild;
|
|
6
|
+
/** Parses `docker logs` output into structured data with container name and log lines. */
|
|
4
7
|
export declare function parseLogsOutput(stdout: string, container: string): DockerLogs;
|
|
8
|
+
/** Parses `docker images --format json` output into structured image data with repository, tag, and size. */
|
|
5
9
|
export declare function parseImagesJson(stdout: string): DockerImages;
|
|
10
|
+
/** Parses `docker run` output into structured data with container ID and image info. */
|
|
11
|
+
export declare function parseRunOutput(stdout: string, image: string, detached: boolean, name?: string): DockerRun;
|
|
12
|
+
/** Parses `docker exec` output into structured data with exit code, stdout, stderr, and success. */
|
|
13
|
+
export declare function parseExecOutput(stdout: string, stderr: string, exitCode: number): DockerExec;
|
|
14
|
+
/** Parses `docker compose up` output into structured data with service names and started count. */
|
|
15
|
+
export declare function parseComposeUpOutput(stdout: string, stderr: string, exitCode: number): DockerComposeUp;
|
|
16
|
+
/** Parses `docker compose down` output into structured data with stopped and removed counts. */
|
|
17
|
+
export declare function parseComposeDownOutput(stdout: string, stderr: string, exitCode: number): DockerComposeDown;
|
|
18
|
+
/** Parses `docker pull` output into structured data with image, tag, digest, and success flag. */
|
|
19
|
+
export declare function parsePullOutput(stdout: string, stderr: string, exitCode: number, image: string): DockerPull;
|
|
6
20
|
//# sourceMappingURL=parsers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../src/lib/parsers.ts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,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,GACZ,UAAU,CAkBZ"}
|
package/dist/lib/parsers.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Parses `docker ps --format json` output into structured container data with ports and state. */
|
|
1
2
|
export function parsePsJson(stdout) {
|
|
2
3
|
// docker ps --format json returns one JSON object per line
|
|
3
4
|
const lines = stdout.trim().split("\n").filter(Boolean);
|
|
@@ -46,6 +47,7 @@ function parsePorts(portsStr) {
|
|
|
46
47
|
return { container: port, protocol };
|
|
47
48
|
});
|
|
48
49
|
}
|
|
50
|
+
/** Parses `docker build` output into structured results with success status, image ID, and errors. */
|
|
49
51
|
export function parseBuildOutput(stdout, stderr, exitCode, duration) {
|
|
50
52
|
const errors = [];
|
|
51
53
|
const imageIdMatch = stdout.match(/writing image sha256:([a-f0-9]+)/i) ||
|
|
@@ -67,6 +69,7 @@ export function parseBuildOutput(stdout, stderr, exitCode, duration) {
|
|
|
67
69
|
errors,
|
|
68
70
|
};
|
|
69
71
|
}
|
|
72
|
+
/** Parses `docker logs` output into structured data with container name and log lines. */
|
|
70
73
|
export function parseLogsOutput(stdout, container) {
|
|
71
74
|
const lines = stdout.split("\n").filter(Boolean);
|
|
72
75
|
return {
|
|
@@ -75,6 +78,7 @@ export function parseLogsOutput(stdout, container) {
|
|
|
75
78
|
total: lines.length,
|
|
76
79
|
};
|
|
77
80
|
}
|
|
81
|
+
/** Parses `docker images --format json` output into structured image data with repository, tag, and size. */
|
|
78
82
|
export function parseImagesJson(stdout) {
|
|
79
83
|
const lines = stdout.trim().split("\n").filter(Boolean);
|
|
80
84
|
const images = lines.map((line) => {
|
|
@@ -89,4 +93,93 @@ export function parseImagesJson(stdout) {
|
|
|
89
93
|
});
|
|
90
94
|
return { images, total: images.length };
|
|
91
95
|
}
|
|
96
|
+
/** Parses `docker run` output into structured data with container ID and image info. */
|
|
97
|
+
export function parseRunOutput(stdout, image, detached, name) {
|
|
98
|
+
// When detached, docker run outputs the full container ID
|
|
99
|
+
const containerId = stdout.trim().split("\n").pop()?.trim() ?? "";
|
|
100
|
+
return {
|
|
101
|
+
containerId: containerId.slice(0, 12),
|
|
102
|
+
image,
|
|
103
|
+
detached,
|
|
104
|
+
...(name ? { name } : {}),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
/** Parses `docker exec` output into structured data with exit code, stdout, stderr, and success. */
|
|
108
|
+
export function parseExecOutput(stdout, stderr, exitCode) {
|
|
109
|
+
return {
|
|
110
|
+
exitCode,
|
|
111
|
+
stdout,
|
|
112
|
+
stderr,
|
|
113
|
+
success: exitCode === 0,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/** Parses `docker compose up` output into structured data with service names and started count. */
|
|
117
|
+
export function parseComposeUpOutput(stdout, stderr, exitCode) {
|
|
118
|
+
// Compose v2 outputs to stderr; service names appear in lines like:
|
|
119
|
+
// ✔ Container myapp-web-1 Started
|
|
120
|
+
// ✔ Container myapp-db-1 Started
|
|
121
|
+
// Or: Container myapp-web-1 Creating / Created / Starting / Started
|
|
122
|
+
const combined = stdout + "\n" + stderr;
|
|
123
|
+
const serviceSet = new Set();
|
|
124
|
+
// Match "Container <name> Started" or "Container <name> Running"
|
|
125
|
+
const startedPattern = /Container\s+(\S+)\s+(?:Started|Running|Created)/g;
|
|
126
|
+
let match;
|
|
127
|
+
while ((match = startedPattern.exec(combined)) !== null) {
|
|
128
|
+
serviceSet.add(match[1]);
|
|
129
|
+
}
|
|
130
|
+
// Also match "service "<name>" started" pattern (older compose output)
|
|
131
|
+
const servicePattern = /[Ss]ervice\s+"?(\S+?)"?\s+(?:started|created)/g;
|
|
132
|
+
while ((match = servicePattern.exec(combined)) !== null) {
|
|
133
|
+
serviceSet.add(match[1]);
|
|
134
|
+
}
|
|
135
|
+
const services = [...serviceSet];
|
|
136
|
+
return {
|
|
137
|
+
success: exitCode === 0,
|
|
138
|
+
services,
|
|
139
|
+
started: services.length,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/** Parses `docker compose down` output into structured data with stopped and removed counts. */
|
|
143
|
+
export function parseComposeDownOutput(stdout, stderr, exitCode) {
|
|
144
|
+
const combined = stdout + "\n" + stderr;
|
|
145
|
+
let stopped = 0;
|
|
146
|
+
let removed = 0;
|
|
147
|
+
// Match "Container <name> Stopped"
|
|
148
|
+
const stoppedPattern = /Container\s+\S+\s+Stopped/g;
|
|
149
|
+
while (stoppedPattern.exec(combined) !== null) {
|
|
150
|
+
stopped++;
|
|
151
|
+
}
|
|
152
|
+
// Match "Container <name> Removed"
|
|
153
|
+
const removedPattern = /Container\s+\S+\s+Removed/g;
|
|
154
|
+
while (removedPattern.exec(combined) !== null) {
|
|
155
|
+
removed++;
|
|
156
|
+
}
|
|
157
|
+
// Also count network/volume removals as part of removed
|
|
158
|
+
const networkPattern = /Network\s+\S+\s+Removed/g;
|
|
159
|
+
while (networkPattern.exec(combined) !== null) {
|
|
160
|
+
removed++;
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
success: exitCode === 0,
|
|
164
|
+
stopped,
|
|
165
|
+
removed,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/** Parses `docker pull` output into structured data with image, tag, digest, and success flag. */
|
|
169
|
+
export function parsePullOutput(stdout, stderr, exitCode, image) {
|
|
170
|
+
const combined = stdout + "\n" + stderr;
|
|
171
|
+
// Extract tag from image string (e.g., "nginx:latest" -> "latest", "nginx" -> "latest")
|
|
172
|
+
const parts = image.split(":");
|
|
173
|
+
const tag = parts.length > 1 ? parts[parts.length - 1] : "latest";
|
|
174
|
+
const imageName = parts.length > 1 ? parts.slice(0, -1).join(":") : image;
|
|
175
|
+
// Extract digest from "Digest: sha256:abc123..."
|
|
176
|
+
const digestMatch = combined.match(/Digest:\s*(sha256:[a-f0-9]+)/);
|
|
177
|
+
const digest = digestMatch?.[1];
|
|
178
|
+
return {
|
|
179
|
+
image: imageName,
|
|
180
|
+
tag,
|
|
181
|
+
...(digest ? { digest } : {}),
|
|
182
|
+
success: exitCode === 0,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
92
185
|
//# sourceMappingURL=parsers.js.map
|
package/dist/lib/parsers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/lib/parsers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/lib/parsers.ts"],"names":[],"mappings":"AAYA,mGAAmG;AACnG,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,2DAA2D;IAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACpC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO;YACL,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE;YACtB,IAAI,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE;YAC7B,KAAK,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE;YACpB,MAAM,EAAE,CAAC,CAAC,MAAM,IAAI,EAAE;YACtB,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,WAAW,EAAE;YAC3C,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YAChC,OAAO,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,UAAU,IAAI,EAAE;SAC3C,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,UAAU,C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