cueloop 0.1.0-alpha.95 → 0.1.0-alpha.97

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cueloop",
3
- "version": "0.1.0-alpha.95",
3
+ "version": "0.1.0-alpha.97",
4
4
  "description": "Terminal review surface for coding agents: annotate plans and diffs, return a message, send structured feedback back",
5
5
  "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
6
  "bugs": {
@@ -30,13 +30,13 @@
30
30
  "build:binary": "bun build --compile --minify --external cpu-features ./src/main.ts --outfile dist/cueloop"
31
31
  },
32
32
  "dependencies": {
33
- "@cueloop/adapters": "0.1.0-alpha.95",
34
- "@cueloop/client": "0.1.0-alpha.95",
35
- "@cueloop/daemon": "0.1.0-alpha.95",
36
- "@cueloop/extension-api": "0.1.0-alpha.95",
37
- "@cueloop/schema": "0.1.0-alpha.95",
33
+ "@cueloop/adapters": "0.1.0-alpha.97",
34
+ "@cueloop/client": "0.1.0-alpha.97",
35
+ "@cueloop/daemon": "0.1.0-alpha.97",
36
+ "@cueloop/extension-api": "0.1.0-alpha.97",
37
+ "@cueloop/schema": "0.1.0-alpha.97",
38
38
  "@modelcontextprotocol/server": "2.0.0",
39
- "@valibot/to-json-schema": "1.4.0",
39
+ "@valibot/to-json-schema": "1.8.0",
40
40
  "valibot": "^1.5.0"
41
41
  },
42
42
  "engines": {
@@ -1,6 +1,6 @@
1
1
  import { McpServer } from "@modelcontextprotocol/server";
2
2
  import { serveStdio } from "@modelcontextprotocol/server/stdio";
3
- import { toJsonSchema } from "@valibot/to-json-schema";
3
+ import { toStandardJsonSchema } from "@valibot/to-json-schema";
4
4
  import * as v from "valibot";
5
5
  import { createCodexDeliveryService } from "@cueloop/adapters/codex/delivery-service";
6
6
  import { createCodexSessionRegistry } from "@cueloop/adapters/codex/session-registry";
@@ -22,20 +22,6 @@ const OpenThreadInputSchema = v.object({
22
22
  });
23
23
  const RefineCorpusInputSchema = v.object({});
24
24
 
25
- function mcpInputSchema<TSchema extends v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>>(
26
- schema: TSchema,
27
- ) {
28
- const convert = () => toJsonSchema(schema);
29
-
30
- return {
31
- ...schema,
32
- "~standard": {
33
- ...schema["~standard"],
34
- jsonSchema: { input: convert, output: convert },
35
- },
36
- };
37
- }
38
-
39
25
  /** Expose the shared Thread workflows to a standard Codex session. */
40
26
  export function createCodexMcpServer(home = cueloopHome()): McpServer {
41
27
  const server = new McpServer({ name: "cueloop", version: CLI_VERSION });
@@ -46,7 +32,7 @@ export function createCodexMcpServer(home = cueloopHome()): McpServer {
46
32
  {
47
33
  description:
48
34
  "Submit or revise a cueloop Thread for plan, reply, prototype, diff, review, or refine.",
49
- inputSchema: mcpInputSchema(OpenThreadInputSchema),
35
+ inputSchema: toStandardJsonSchema(OpenThreadInputSchema),
50
36
  },
51
37
  async (input) => {
52
38
  try {
@@ -73,7 +59,7 @@ export function createCodexMcpServer(home = cueloopHome()): McpServer {
73
59
  "refine_corpus",
74
60
  {
75
61
  description: "Analyze past cueloop Threads before proposing a refine writeback.",
76
- inputSchema: mcpInputSchema(RefineCorpusInputSchema),
62
+ inputSchema: toStandardJsonSchema(RefineCorpusInputSchema),
77
63
  },
78
64
  async () => {
79
65
  try {