hotsheet 0.9.0 → 0.10.1-rc.4
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/channel.js +5 -5
- package/dist/cli.js +1180 -1020
- package/dist/client/app.global.js +48 -48
- package/dist/client/styles.css +1 -1
- package/package.json +9 -4
package/dist/channel.js
CHANGED
|
@@ -33472,8 +33472,8 @@ var StdioServerTransport = class {
|
|
|
33472
33472
|
};
|
|
33473
33473
|
|
|
33474
33474
|
// src/channel.ts
|
|
33475
|
+
import { unlinkSync, writeFileSync } from "fs";
|
|
33475
33476
|
import { createServer } from "http";
|
|
33476
|
-
import { writeFileSync, unlinkSync } from "fs";
|
|
33477
33477
|
import { join } from "path";
|
|
33478
33478
|
var dataDir = ".hotsheet";
|
|
33479
33479
|
var args = process.argv.slice(2);
|
|
@@ -33513,7 +33513,7 @@ var PermissionRequestSchema = external_exports3.object({
|
|
|
33513
33513
|
input_preview: external_exports3.string()
|
|
33514
33514
|
})
|
|
33515
33515
|
});
|
|
33516
|
-
mcp.setNotificationHandler(PermissionRequestSchema,
|
|
33516
|
+
mcp.setNotificationHandler(PermissionRequestSchema, ({ params }) => {
|
|
33517
33517
|
pendingPermission = {
|
|
33518
33518
|
request_id: params.request_id,
|
|
33519
33519
|
tool_name: params.tool_name,
|
|
@@ -33548,7 +33548,7 @@ var httpServer = createServer(async (req, res) => {
|
|
|
33548
33548
|
}
|
|
33549
33549
|
if (req.method === "POST" && req.url === "/permission/respond") {
|
|
33550
33550
|
let body = "";
|
|
33551
|
-
for await (const chunk of req) body += chunk;
|
|
33551
|
+
for await (const chunk of req) body += String(chunk);
|
|
33552
33552
|
try {
|
|
33553
33553
|
const { request_id, behavior } = JSON.parse(body);
|
|
33554
33554
|
await mcp.notification({
|
|
@@ -33574,7 +33574,7 @@ var httpServer = createServer(async (req, res) => {
|
|
|
33574
33574
|
}
|
|
33575
33575
|
if (req.method === "POST" && req.url === "/trigger") {
|
|
33576
33576
|
let body = "";
|
|
33577
|
-
for await (const chunk of req) body += chunk;
|
|
33577
|
+
for await (const chunk of req) body += String(chunk);
|
|
33578
33578
|
try {
|
|
33579
33579
|
await mcp.notification({
|
|
33580
33580
|
method: "notifications/claude/channel",
|
|
@@ -33596,7 +33596,7 @@ var httpServer = createServer(async (req, res) => {
|
|
|
33596
33596
|
});
|
|
33597
33597
|
httpServer.listen(0, "127.0.0.1", () => {
|
|
33598
33598
|
const addr = httpServer.address();
|
|
33599
|
-
if (addr && typeof addr !== "string") {
|
|
33599
|
+
if (addr !== null && typeof addr !== "string") {
|
|
33600
33600
|
const port = addr.port;
|
|
33601
33601
|
try {
|
|
33602
33602
|
writeFileSync(portFile, String(port), "utf-8");
|