@proagentstore/cli 0.2.7 → 0.2.9

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.
@@ -39,7 +39,7 @@ export async function startRunnerServer(config) {
39
39
  async function route(runner, req, res) {
40
40
  const url = new URL(req.url || "/", `http://${req.headers.host || "127.0.0.1"}`);
41
41
  const path = url.pathname.replace(/\/$/, "") || "/";
42
- if (req.method === "GET" && path === "/health") {
42
+ if ((req.method === "GET" || req.method === "POST") && path === "/health") {
43
43
  return json(res, 200, {
44
44
  ok: true,
45
45
  service: "freeagentstore-browser-runtime",
@@ -49,7 +49,7 @@ async function route(runner, req, res) {
49
49
  instanceId: runner.config.instanceId,
50
50
  });
51
51
  }
52
- if (req.method === "GET" && path === "/capabilities") {
52
+ if ((req.method === "GET" || req.method === "POST") && path === "/capabilities") {
53
53
  return json(res, 200, runner.capabilities());
54
54
  }
55
55
  if (req.method === "GET" && path === "/sessions") {
@@ -161,7 +161,7 @@ async function route(runner, req, res) {
161
161
  if (req.method === "GET" && path === "/coding/sessions") {
162
162
  return json(res, 200, { sessions: runner.coding.list() });
163
163
  }
164
- if (req.method === "GET" && path === "/coding/diagnostics") {
164
+ if ((req.method === "GET" || req.method === "POST") && path === "/coding/diagnostics") {
165
165
  const { listSessions: tmuxList } = await import("./coding/tmux.js");
166
166
  const allTmux = tmuxList();
167
167
  const pagsTmux = allTmux.filter((n) => n.startsWith("pags-"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proagentstore/cli",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "CLI for creating, publishing, and running ProAgentStore agents",
5
5
  "license": "MIT",
6
6
  "type": "module",