Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions claude-code-channel/dist/bin.bundle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18261,16 +18261,7 @@ var Server = class extends Protocol {
if (!methodSchema) {
throw new Error("Schema is missing a method literal");
}
let methodValue;
if (isZ4Schema(methodSchema)) {
const v4Schema = methodSchema;
const v4Def = v4Schema._zod?.def;
methodValue = v4Def?.value ?? v4Schema.value;
} else {
const v3Schema = methodSchema;
const legacyDef = v3Schema._def;
methodValue = legacyDef?.value ?? v3Schema.value;
}
const methodValue = getLiteralValue(methodSchema);
if (typeof methodValue !== "string") {
throw new Error("Schema method literal must be a string");
}
Expand Down Expand Up @@ -18579,8 +18570,17 @@ var Server = class extends Protocol {
import process2 from "node:process";

// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
var ReadBuffer = class {
constructor(options) {
this._maxBufferSize = options?.maxBufferSize ?? STDIO_DEFAULT_MAX_BUFFER_SIZE;
}
append(chunk) {
const newSize = (this._buffer?.length ?? 0) + chunk.length;
if (newSize > this._maxBufferSize) {
this.clear();
throw new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);
}
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
}
readMessage() {
Expand Down Expand Up @@ -18608,18 +18608,24 @@ function serializeMessage(message) {

// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
var StdioServerTransport = class {
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
this._stdin = _stdin;
this._stdout = _stdout;
this._readBuffer = new ReadBuffer();
this._started = false;
this._ondata = (chunk) => {
this._readBuffer.append(chunk);
this.processReadBuffer();
try {
this._readBuffer.append(chunk);
this.processReadBuffer();
} catch (error2) {
this.onerror?.(error2);
this.close().catch(() => {
});
}
};
this._onerror = (error2) => {
this.onerror?.(error2);
};
this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
}
/**
* Starts listening for messages on stdin.
Expand Down
10 changes: 5 additions & 5 deletions claude-code-channel/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion claude-code-channel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prepublishOnly": "pnpm run clean && pnpm run build"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"@modelcontextprotocol/sdk": "^1.31.0",
"@world2agent/sdk": "^0.1.0-alpha.0"
},
"devDependencies": {
Expand Down
Loading