spur-board 0.82.0 → 0.83.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/dist/{chunk-DYe3fYra.mjs → chunk-B-1Dlzi3.mjs} +71 -43
- package/dist/{chunk-Crnz5mi7.mjs → chunk-BJFUtQhn.mjs} +4 -7
- package/dist/{chunk-DAMwWWmT.mjs → chunk-Bzb7aI8R.mjs} +1 -2
- package/dist/{chunk-BTeE1cn3.mjs → chunk-Bzr8W83d.mjs} +4 -6
- package/dist/cli.mjs +32 -30
- package/dist/client.mjs +1 -2
- package/dist/daemon.mjs +495 -337
- package/dist/mcp.mjs +9 -9
- package/dist/web/assets/index-DeRzYs4U.js +64 -0
- package/dist/web/index.html +1 -1
- package/package.json +2 -2
- package/skills/spur-board/references/commands.md +1 -1
- package/skills/spur-board/references/how-board-works.md +9 -0
- package/dist/web/assets/index-B7w1UQuL.js +0 -64
package/dist/mcp.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-
|
|
2
|
-
import { o as CliError, r as requestOperation } from "./chunk-
|
|
3
|
-
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-
|
|
1
|
+
import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-B-1Dlzi3.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-BJFUtQhn.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-Bzr8W83d.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { McpServer, fromJsonSchema } from "@modelcontextprotocol/server";
|
|
8
8
|
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
9
|
-
|
|
9
|
+
// src/mcp.ts
|
|
10
10
|
const handlerValidator = { getValidator() {
|
|
11
11
|
return (input) => ({
|
|
12
12
|
valid: true,
|
|
@@ -64,10 +64,11 @@ function parseArguments(op, argumentsValue, agent) {
|
|
|
64
64
|
if (!argumentsValue || typeof argumentsValue !== "object" || Array.isArray(argumentsValue)) throw new CliError("usage");
|
|
65
65
|
const { idempotencyKey, ...input } = argumentsValue;
|
|
66
66
|
let key;
|
|
67
|
-
if (op.kind === "mutation")
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
if (op.kind === "mutation") {
|
|
68
|
+
if (idempotencyKey === void 0 && !agent) key = randomUUID();
|
|
69
|
+
else if (typeof idempotencyKey === "string" && idempotencyKey.trim()) key = idempotencyKey;
|
|
70
|
+
else throw keyError(MISSING_KEY_HINT);
|
|
71
|
+
} else if (idempotencyKey !== void 0) throw keyError(QUERY_KEY_HINT);
|
|
71
72
|
const parsed = op.input.safeParse(input);
|
|
72
73
|
if (!parsed.success) throw new CliError("usage");
|
|
73
74
|
return {
|
|
@@ -172,5 +173,4 @@ function createMcpServer(env = process.env, loadConfig = loadClientConfig) {
|
|
|
172
173
|
function startMcp() {
|
|
173
174
|
serveStdio(() => createMcpServer());
|
|
174
175
|
}
|
|
175
|
-
//#endregion
|
|
176
176
|
export { createMcpServer, startMcp };
|