@brutalsystems/muster 0.7.0 → 0.7.1

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 (2) hide show
  1. package/dist/muster.js +8 -1
  2. package/package.json +1 -1
package/dist/muster.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
2
3
  import { parseArgs } from "node:util";
3
4
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
4
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -12,12 +13,14 @@ const listSchema = z
12
13
  .object({ kind: z.enum(["session", "task"]).optional() })
13
14
  .strict();
14
15
  const idSchema = z.object({ id: z.string().min(1) }).strict();
16
+ const { version } = createRequire(import.meta.url)("../package.json");
15
17
  const help = `Usage:
16
18
  muster run <codex|claude|opencode> --prompt TEXT [--cwd DIR] [--kind session|task] [--host ID] [--open] [--terminal APP] [-- RUNTIME_OPTIONS]
17
19
  muster list [--kind session|task] [--format json|human]
18
20
  muster stop <id> [--format json|human]
19
21
  muster output <id>
20
22
  muster mcp
23
+ muster --version
21
24
 
22
25
  run also accepts --format json|human, --permissions auto|deny|bypass,
23
26
  and --sandbox read-only|workspace-write|full-access before -- RUNTIME_OPTIONS.
@@ -40,6 +43,10 @@ async function main() {
40
43
  process.stdout.write(help);
41
44
  return;
42
45
  }
46
+ if (argv[0] === "--version" || argv[0] === "-v") {
47
+ process.stdout.write(`${version}\n`);
48
+ return;
49
+ }
43
50
  const mcp = argv.length === 0 || argv[0] === "mcp";
44
51
  if (mcp && argv.length > 1)
45
52
  throw new Error("mcp takes no arguments");
@@ -56,7 +63,7 @@ async function main() {
56
63
  });
57
64
  });
58
65
  if (mcp) {
59
- const server = new Server({ name: "muster", version: "0.6.0" }, { capabilities: { tools: {} } });
66
+ const server = new Server({ name: "muster", version }, { capabilities: { tools: {} } });
60
67
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
61
68
  tools: [
62
69
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brutalsystems/muster",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Launch instructed, reachable local agent sessions",
5
5
  "type": "module",
6
6
  "engines": {