@plutojl/cli 0.5.1 → 0.5.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/cli.cjs +7 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -39,7 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
"package.json"(exports2, module2) {
|
|
40
40
|
module2.exports = {
|
|
41
41
|
name: "@plutojl/cli",
|
|
42
|
-
version: "0.5.
|
|
42
|
+
version: "0.5.2",
|
|
43
43
|
description: "Standalone MCP server for Pluto.jl notebooks \u2014 run with npx @plutojl/cli",
|
|
44
44
|
license: "MIT",
|
|
45
45
|
repository: {
|
|
@@ -67555,6 +67555,7 @@ end
|
|
|
67555
67555
|
|
|
67556
67556
|
// ../../src/plutoManager.ts
|
|
67557
67557
|
var import_events = require("events");
|
|
67558
|
+
var import_promises = require("fs/promises");
|
|
67558
67559
|
var PlutoManager = class {
|
|
67559
67560
|
constructor(port = 1234, logger, serverManager, fileReader, serverUrl) {
|
|
67560
67561
|
this.port = port;
|
|
@@ -67743,6 +67744,7 @@ var PlutoManager = class {
|
|
|
67743
67744
|
worker2 = await this.host.createWorker(notebookContent.trim());
|
|
67744
67745
|
await worker2.connect();
|
|
67745
67746
|
if (this.isLocalServer()) {
|
|
67747
|
+
await (0, import_promises.unlink)(notebookPath);
|
|
67746
67748
|
await worker2.moveTo(notebookPath);
|
|
67747
67749
|
}
|
|
67748
67750
|
this.workers.set(notebookPath, worker2);
|
|
@@ -67930,7 +67932,7 @@ var PlutoManager = class {
|
|
|
67930
67932
|
|
|
67931
67933
|
// ../../src/mcp-server-http.ts
|
|
67932
67934
|
var import_express = __toESM(require_express2(), 1);
|
|
67933
|
-
var
|
|
67935
|
+
var import_promises2 = require("fs/promises");
|
|
67934
67936
|
|
|
67935
67937
|
// ../../node_modules/zod/v3/external.js
|
|
67936
67938
|
var external_exports = {};
|
|
@@ -82814,7 +82816,7 @@ ${syncNote}`
|
|
|
82814
82816
|
}
|
|
82815
82817
|
const content = this.plutoManager.getNotebookContent(worker2);
|
|
82816
82818
|
const savePath = output_path ?? path4;
|
|
82817
|
-
await (0,
|
|
82819
|
+
await (0, import_promises2.writeFile)(savePath, content, "utf-8");
|
|
82818
82820
|
return {
|
|
82819
82821
|
content: [
|
|
82820
82822
|
{
|
|
@@ -83373,10 +83375,10 @@ var NodeServerManager = class {
|
|
|
83373
83375
|
};
|
|
83374
83376
|
|
|
83375
83377
|
// ../../src/cli/nodeFileReader.ts
|
|
83376
|
-
var
|
|
83378
|
+
var import_promises3 = require("fs/promises");
|
|
83377
83379
|
var NodeFileReader = class {
|
|
83378
83380
|
async readFile(path4) {
|
|
83379
|
-
return await (0,
|
|
83381
|
+
return await (0, import_promises3.readFile)(path4, "utf-8");
|
|
83380
83382
|
}
|
|
83381
83383
|
};
|
|
83382
83384
|
|