@lalalic/markcut 3.2.46 → 3.2.47
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/README.md +10 -0
- package/bin/markcut +18 -9
- package/package.json +1 -1
- package/src/mcp/bridge.mjs +0 -4
- package/src/mcp/compile-operation.mjs +2 -2
- package/src/mcp/compile-worker.mjs +6 -22
- package/src/mcp/mobile-review-cli.mjs +7 -12
- package/tests/mobile-preview-cli.test.ts +2 -37
- package/src/mcp/phone-notification.mjs +0 -52
package/README.md
CHANGED
|
@@ -390,3 +390,13 @@ then supply `--itt`, `--vtt` and `--agent` (or `MARKCUT_ITT_CLI`,
|
|
|
390
390
|
`MARKCUT_VTT_CLI` and `MARKCUT_AGENT_CLI`). See `markcut vision --help`
|
|
391
391
|
and `markcut --show-clis` for the supported placeholders. Markcut does not
|
|
392
392
|
choose or manage a browser/model provider.
|
|
393
|
+
|
|
394
|
+
### Independent preview and mobile delivery
|
|
395
|
+
|
|
396
|
+
`markcut.preview` and the standalone `markcut preview` CLI compile immutable
|
|
397
|
+
video revisions and expose the review player. The provider does **not** send
|
|
398
|
+
APNs notifications, manage Relay Invocations, or change Task state. When called
|
|
399
|
+
through Neo MCP, Neo's `markcut.preview` federation wrapper optionally binds
|
|
400
|
+
a Relay execution, watches compilation, persists the mobile review request,
|
|
401
|
+
and sends the iPhone notification. Standalone Markcut usage does not require
|
|
402
|
+
Neo Mobile or Agents Relay.
|
package/bin/markcut
CHANGED
|
@@ -6,16 +6,25 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
7
|
const __dirname = dirname(__filename);
|
|
8
8
|
const root = resolve(__dirname, "..");
|
|
9
|
-
if (process.argv[2] === "preview"
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
if (process.argv[2] === "preview") {
|
|
10
|
+
const argv=process.argv.slice(2);
|
|
11
|
+
const optionIndex=argv.indexOf("--delivery");
|
|
12
|
+
const explicit=optionIndex>=0;
|
|
13
|
+
const delivery=explicit ? argv[optionIndex+1] : "text";
|
|
14
|
+
if(explicit && delivery!=="text" && delivery!=="event"){
|
|
15
|
+
console.error("Preview delivery must be text or event.");process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
// Markdown previews compile independently; Neo owns optional mobile review delivery.
|
|
18
|
+
// JSON previews retain their existing local-only renderer.
|
|
19
|
+
const markdown=argv[1]?.toLowerCase().endsWith('.md');
|
|
20
|
+
if(explicit || markdown){
|
|
21
|
+
const eventArgs=explicit ? argv : ['preview',argv[1],'--delivery','text'];
|
|
22
|
+
const entry=resolve(root,'src','mcp','mobile-review-cli.mjs');
|
|
23
|
+
const deliveryResult=spawnSync(process.execPath,[entry,...eventArgs],{stdio:'inherit'});
|
|
24
|
+
if(deliveryResult.error)console.error(deliveryResult.error.message);
|
|
25
|
+
if(deliveryResult.status!==0)process.exit(deliveryResult.status??1);
|
|
26
|
+
if(explicit)process.exit(0);
|
|
14
27
|
}
|
|
15
|
-
const entry=resolve(root,"src","mcp","mobile-review-cli.mjs");
|
|
16
|
-
const result=spawnSync(process.execPath,[entry,...process.argv.slice(2)],{stdio:"inherit"});
|
|
17
|
-
if(result.error)console.error(result.error.message);
|
|
18
|
-
process.exit(result.status??1);
|
|
19
28
|
}
|
|
20
29
|
if (process.argv[2] === "queue") {
|
|
21
30
|
const result = spawnSync(process.execPath, [resolve(root, "src", "queue-worker.mjs"), ...process.argv.slice(3)], { stdio: "inherit" });
|
package/package.json
CHANGED
package/src/mcp/bridge.mjs
CHANGED
|
@@ -183,10 +183,6 @@ async function trackOperation(data){
|
|
|
183
183
|
if(progress.state==='ready'&&progress.result){
|
|
184
184
|
await renderRevision({...progress.result,requestedPath:data.requestedPath||data.path,
|
|
185
185
|
requestId:progress.result.requestId||data.requestId,review:progress.result.review||data.review,relay:data.relay});
|
|
186
|
-
if(progress.mobileDelivery?.stored===false)
|
|
187
|
-
status.textContent='iPhone Preview delivery failed: '+(progress.mobileDelivery.error||'unknown error');
|
|
188
|
-
else if(progress.mobileDelivery?.stored===true&&progress.mobileDelivery.accepted===false)
|
|
189
|
-
status.textContent='Preview saved on Neo Master; APNs notification not confirmed. Open Neo on iPhone to sync.';
|
|
190
186
|
return;
|
|
191
187
|
}
|
|
192
188
|
if(progress.state==='failed'){reviewReadonly(true,'Compilation failed: '+progress.error);return;}
|
|
@@ -27,7 +27,7 @@ export function writeOperation(id,data){
|
|
|
27
27
|
writeFileSync(temp,JSON.stringify(data),{mode:0o644});
|
|
28
28
|
renameSync(temp,join(folder,id+".json"));
|
|
29
29
|
}
|
|
30
|
-
export function startCompileOperation(path,relay,review={delivery:"text"}
|
|
30
|
+
export function startCompileOperation(path,relay,review={delivery:"text"}){
|
|
31
31
|
const valid=validateMarkdownPath(resolvePreviewPath(path));
|
|
32
32
|
if(!statSync(valid).isFile())throw new Error("Preview source must be a Markdown file");
|
|
33
33
|
const input=fingerprintInputs(valid);
|
|
@@ -36,7 +36,7 @@ export function startCompileOperation(path,relay,review={delivery:"text"},mobile
|
|
|
36
36
|
const id=randomUUID(),startedAt=Date.now();
|
|
37
37
|
writeOperation(id,{id,state:"compiling",stage:"queued",startedAt,requestedPath:path});
|
|
38
38
|
const worker=fileURLToPath(new URL("./compile-worker.mjs",import.meta.url));
|
|
39
|
-
const child=spawn(process.execPath,[worker,id,valid,path,JSON.stringify(relay||null),sourceHash,JSON.stringify(review)
|
|
39
|
+
const child=spawn(process.execPath,[worker,id,valid,path,JSON.stringify(relay||null),sourceHash,JSON.stringify(review)],{detached:true,stdio:"ignore"});
|
|
40
40
|
child.on("error",e=>{
|
|
41
41
|
writeOperation(id,{id,state:"failed",stage:"failed",startedAt,requestedPath:path,error:e.message});
|
|
42
42
|
});
|
|
@@ -3,11 +3,9 @@ import {ensureVideoPreview} from "./preview.mjs";
|
|
|
3
3
|
import {publishPreviewRevision} from "./remote-assets.mjs";
|
|
4
4
|
import {writeOperation} from "./compile-operation.mjs";
|
|
5
5
|
import {fingerprintInputs} from "./source-fingerprint.mjs";
|
|
6
|
-
|
|
7
|
-
const [id,path,requestedPath,relayText,sourceHash,reviewText,mobileOptionsText]=process.argv.slice(2);
|
|
6
|
+
const [id,path,requestedPath,relayText,sourceHash,reviewText]=process.argv.slice(2);
|
|
8
7
|
const startedAt=Date.now();
|
|
9
8
|
const review=JSON.parse(reviewText||'{"delivery":"text"}');
|
|
10
|
-
const mobileOptions=JSON.parse(mobileOptionsText||"{}");
|
|
11
9
|
function update(stage){writeOperation(id,{id,state:"compiling",stage,startedAt,updatedAt:Date.now(),requestedPath});}
|
|
12
10
|
try{
|
|
13
11
|
update("resolving-and-compiling");
|
|
@@ -17,25 +15,11 @@ try{
|
|
|
17
15
|
const result=await ensureVideoPreview(path,{onProgress:update});
|
|
18
16
|
update("publishing");
|
|
19
17
|
publishPreviewRevision(requestedPath,{...result,requestedPath});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
mobileDelivery=await sendMasterReviewRequest(request);
|
|
25
|
-
}catch(error){
|
|
26
|
-
mobileDelivery={stored:false,error:String(error?.message||error)};
|
|
27
|
-
}
|
|
28
|
-
// A compiled video is not a delivered Preview. Never silently claim success
|
|
29
|
-
// if the canonical Master inbox could not persist the mobile request.
|
|
30
|
-
if(mobileDelivery.stored!==true){
|
|
31
|
-
writeOperation(id,{id,state:"failed",stage:"mobile-delivery",startedAt,updatedAt:Date.now(),
|
|
32
|
-
requestedPath,error:mobileDelivery.error||"Neo Master could not persist review request"});
|
|
33
|
-
process.exitCode=1;
|
|
34
|
-
}else{
|
|
35
|
-
writeOperation(id,{id,state:"ready",stage:"complete",startedAt,updatedAt:Date.now(),requestedPath,
|
|
36
|
-
mobileDelivery,result:{...result,requestedPath,requestId:id,review,relay:JSON.parse(relayText)}});
|
|
37
|
-
}
|
|
18
|
+
// Markcut is a pure preview provider. The Neo MCP wrapper owns mobile delivery.
|
|
19
|
+
writeOperation(id,{id,state:"ready",stage:"complete",startedAt,updatedAt:Date.now(),requestedPath,
|
|
20
|
+
result:{...result,requestedPath,requestId:id,review,relay:JSON.parse(relayText)}});
|
|
21
|
+
|
|
38
22
|
}catch(e){
|
|
39
|
-
writeOperation(id,{id,state:"failed",stage:"failed",startedAt,updatedAt:Date.now(),requestedPath,error:e?.message||String(e)});
|
|
23
|
+
writeOperation(id,{id,state:"failed",stage:"failed",startedAt,updatedAt:Date.now(),requestedPath,review,relay:JSON.parse(relayText||"null"),error:e?.message||String(e)});
|
|
40
24
|
process.exitCode=1;
|
|
41
25
|
}
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
2
|
+
/** Standalone terminal preview compiler. Notification is owned by the Neo MCP wrapper. */
|
|
3
3
|
import {readFileSync} from 'node:fs';
|
|
4
4
|
import {join,resolve} from 'node:path';
|
|
5
5
|
import {pathToFileURL} from 'node:url';
|
|
6
6
|
import {normalizeReviewConfig} from './review-delivery.mjs';
|
|
7
7
|
|
|
8
8
|
const delay = ms => new Promise(done => setTimeout(done,ms));
|
|
9
|
-
const UUID = /^[a-f0-9-]{36}$/i;
|
|
10
9
|
|
|
11
10
|
export function parseEventPreviewOptions(argv) {
|
|
12
11
|
if (argv[0] !== 'preview' || !argv[1] || argv[1].startsWith('--')) throw new Error('Usage: markcut preview <file.md> --delivery event --event-template <file.json>');
|
|
13
|
-
const allowed=new Set(['--delivery','--event-template','--
|
|
12
|
+
const allowed=new Set(['--delivery','--event-template','--timeout-ms']);
|
|
14
13
|
const options={file:resolve(argv[1])};
|
|
15
14
|
for(let i=2;i<argv.length;i+=2){
|
|
16
15
|
const flag=argv[i],value=argv[i+1];
|
|
17
16
|
if(!allowed.has(flag) || !value || value.startsWith('--'))throw new Error('Missing or unsupported preview event flag: '+flag);
|
|
18
|
-
const key={'--delivery':'delivery','--event-template':'eventTemplatePath','--
|
|
17
|
+
const key={'--delivery':'delivery','--event-template':'eventTemplatePath','--timeout-ms':'timeoutMs'}[flag];
|
|
19
18
|
if(Object.hasOwn(options,key))throw new Error('Duplicate flag: '+flag);
|
|
20
19
|
options[key]=value;
|
|
21
20
|
}
|
|
22
21
|
if(!['text','event'].includes(options.delivery) || (options.delivery==='event')!==Boolean(options.eventTemplatePath))
|
|
23
22
|
throw new Error('Event delivery requires --event-template; Text delivery must omit it');
|
|
24
|
-
if(options.requestId && !UUID.test(options.requestId))throw new Error('--request-id must be a UUID');
|
|
25
23
|
const limit=options.timeoutMs===undefined ? 300000 : Number(options.timeoutMs);
|
|
26
24
|
if(!Number.isSafeInteger(limit) || limit<1000 || limit>1800000)throw new Error('--timeout-ms must be 1000..1800000');
|
|
27
25
|
options.timeoutMs=limit;
|
|
@@ -35,7 +33,7 @@ export async function runMobilePreview(argv){
|
|
|
35
33
|
const [{startCompileOperation},{EXPORT_ROOT}]=await Promise.all([
|
|
36
34
|
import('./compile-operation.mjs'),import('./remote-assets.mjs'),
|
|
37
35
|
]);
|
|
38
|
-
const operation=startCompileOperation(opts.file,undefined,config
|
|
36
|
+
const operation=startCompileOperation(opts.file,undefined,config);
|
|
39
37
|
const stateFile=join(EXPORT_ROOT,'operations',operation.operationId+'.json');
|
|
40
38
|
let state;
|
|
41
39
|
const until=Date.now()+opts.timeoutMs;
|
|
@@ -46,18 +44,15 @@ export async function runMobilePreview(argv){
|
|
|
46
44
|
await delay(300);
|
|
47
45
|
}
|
|
48
46
|
if(state?.state!=='ready')throw new Error('Preview compile timed out; operation '+operation.operationId);
|
|
49
|
-
|
|
50
|
-
if(receipt?.stored!==true)throw new Error('Master review delivery failed: '+(receipt?.error||'no durable receipt'));
|
|
51
|
-
return {stored:true,apnsAccepted:receipt.accepted===true,duplicate:receipt.duplicate===true,
|
|
52
|
-
status:'review_requested',operationId:operation.operationId,requestId:receipt.requestId,
|
|
47
|
+
return {status:'preview_ready',operationId:operation.operationId,requestId:state.result.requestId,
|
|
53
48
|
contentHash:state.result.contentHash,revisionId:state.result.revisionId,
|
|
54
49
|
...(config.delivery==='event' ? {jobId:config.eventTemplate.data.interactive.jobId} : {}),
|
|
55
|
-
delivery:config.delivery,
|
|
50
|
+
delivery:config.delivery,notification:'not_requested'};
|
|
56
51
|
}
|
|
57
52
|
|
|
58
53
|
if(process.argv[1] && import.meta.url===pathToFileURL(resolve(process.argv[1])).href){
|
|
59
54
|
runMobilePreview(process.argv.slice(2)).then(result=>console.log(JSON.stringify(result))).catch(error=>{
|
|
60
|
-
console.error('Markcut
|
|
55
|
+
console.error('Markcut preview compilation failed: '+(error?.message||error));
|
|
61
56
|
process.exitCode=1;
|
|
62
57
|
});
|
|
63
58
|
}
|
|
@@ -1,47 +1,12 @@
|
|
|
1
1
|
import {describe,it,expect} from 'vitest';
|
|
2
|
-
import {randomUUID} from 'node:crypto';
|
|
3
|
-
import {mkdtempSync,writeFileSync,rmSync} from 'node:fs';
|
|
4
|
-
import {tmpdir} from 'node:os';
|
|
5
|
-
import {join} from 'node:path';
|
|
6
2
|
import {parseEventPreviewOptions} from '../src/mcp/mobile-review-cli.mjs';
|
|
7
|
-
import {buildPhoneReviewRequest,sendMasterReviewRequest} from '../src/mcp/phone-notification.mjs';
|
|
8
|
-
const hash='a'.repeat(64);
|
|
9
|
-
const operationId=randomUUID();
|
|
10
|
-
const template={type:'task.interactive_decision',source:'job/j1/task/producer/execution/e1',
|
|
11
|
-
data:{interactive:{jobId:'j1',taskId:'producer',executionId:'e1',invocationId:'review1'}}};
|
|
12
|
-
const result={id:hash,contentHash:hash,revisionId:hash,requestedPath:'/tmp/preview.md'};
|
|
13
3
|
|
|
14
|
-
describe('
|
|
15
|
-
it('
|
|
4
|
+
describe('Standalone Markcut CLI preview (notification belongs to Neo)',()=>{
|
|
5
|
+
it('accepts externally supplied event templates without a phone or APNs URL',()=>{
|
|
16
6
|
expect(parseEventPreviewOptions(['preview','video.md','--delivery','event','--event-template','template.json']).delivery).toBe('event');
|
|
17
7
|
expect(()=>parseEventPreviewOptions(['preview','video.md','--delivery','event'])).toThrow();
|
|
18
8
|
expect(()=>parseEventPreviewOptions(['preview','video.md','--delivery','event','--event-template','a','--phone-url','http://phone'])).toThrow();
|
|
19
9
|
expect(parseEventPreviewOptions(['preview','video.md','--delivery','text']).delivery).toBe('text');
|
|
20
10
|
expect(()=>parseEventPreviewOptions(['preview','video.md','--delivery','text','--event-template','a'])).toThrow();
|
|
21
11
|
});
|
|
22
|
-
it('event request freezes caller template and immutable revision identity',()=>{
|
|
23
|
-
const request=buildPhoneReviewRequest(operationId,result,{delivery:'event',eventTemplate:template});
|
|
24
|
-
expect(request).toMatchObject({id:operationId,contentHash:hash,revisionId:hash,previewId:hash,
|
|
25
|
-
title:'preview',delivery:'event',jobId:'j1',groupId:'job/j1/task/producer',eventTemplate:template});
|
|
26
|
-
expect(request.eventTemplate.data.interactive).not.toHaveProperty('decision');
|
|
27
|
-
expect(()=>buildPhoneReviewRequest(operationId,result,{delivery:'event',eventTemplate:{...template,type:'markcut.review.submitted'}})).toThrow();
|
|
28
|
-
expect(()=>buildPhoneReviewRequest(operationId,{...result,contentHash:'bad'},{delivery:'event',eventTemplate:template})).toThrow();
|
|
29
|
-
});
|
|
30
|
-
it('default ChatGPT text Preview is still mirrored to phone as view-only',()=>{
|
|
31
|
-
const request=buildPhoneReviewRequest(operationId,result,{delivery:'text'});
|
|
32
|
-
expect(request).toMatchObject({id:operationId,delivery:'text',contentHash:hash,groupId:'/tmp/preview.md'});
|
|
33
|
-
expect(request).not.toHaveProperty('eventTemplate');
|
|
34
|
-
expect(request).not.toHaveProperty('ownerCallbackTool');
|
|
35
|
-
});
|
|
36
|
-
it('uses the local Master APNs bridge, requires durable storage acknowledgment',async()=>{
|
|
37
|
-
const tmp=mkdtempSync(join(tmpdir(),'markcut-master-bridge-'));
|
|
38
|
-
const script=join(tmp,'bridge.mjs');
|
|
39
|
-
const request=buildPhoneReviewRequest(operationId,result,{delivery:'event',eventTemplate:template});
|
|
40
|
-
try{
|
|
41
|
-
writeFileSync(script,`import fs from 'node:fs';const data=JSON.parse(fs.readFileSync(0,'utf8'));process.stdout.write(JSON.stringify({stored:true,accepted:false,requestId:data.id}));`);
|
|
42
|
-
expect(await sendMasterReviewRequest(request,{bridge:script})).toMatchObject({stored:true,accepted:false,requestId:operationId});
|
|
43
|
-
writeFileSync(script,`process.stdout.write(JSON.stringify({stored:false,requestId:'${operationId}'}));`);
|
|
44
|
-
await expect(sendMasterReviewRequest(request,{bridge:script})).rejects.toThrow(/persist/);
|
|
45
|
-
}finally{rmSync(tmp,{recursive:true,force:true});}
|
|
46
|
-
});
|
|
47
12
|
});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/** Shared mobile-review delivery for both hosted MCP and Codex CLI previews. */
|
|
2
|
-
import {spawn} from 'node:child_process';
|
|
3
|
-
import {existsSync} from 'node:fs';
|
|
4
|
-
import {join,basename} from 'node:path';
|
|
5
|
-
import {homedir} from 'node:os';
|
|
6
|
-
import {normalizeReviewConfig} from './review-delivery.mjs';
|
|
7
|
-
const UUID=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
8
|
-
const SHA=/^[0-9a-f]{64}$/;
|
|
9
|
-
|
|
10
|
-
export function buildPhoneReviewRequest(operationId,result,review,options={}){
|
|
11
|
-
const config=normalizeReviewConfig(review);
|
|
12
|
-
if(!UUID.test(operationId) || !result || !SHA.test(result.contentHash||'') ||
|
|
13
|
-
!result.revisionId || !result.id)throw new Error('Immutable Preview is not ready');
|
|
14
|
-
const id=options.requestId||operationId;
|
|
15
|
-
if(!UUID.test(id))throw new Error('Invalid phone request UUID');
|
|
16
|
-
const title=options.title || basename(result.requestedPath||'video.md','.md');
|
|
17
|
-
const request={id,contentHash:result.contentHash,revisionId:result.revisionId,
|
|
18
|
-
previewId:result.id,title,delivery:config.delivery};
|
|
19
|
-
if(config.delivery==='event'){
|
|
20
|
-
const fixed=config.eventTemplate.data.interactive;
|
|
21
|
-
request.eventTemplate=config.eventTemplate;
|
|
22
|
-
request.jobId=fixed.jobId;
|
|
23
|
-
request.groupId=options.groupId||`job/${fixed.jobId}/task/${fixed.taskId}`;
|
|
24
|
-
}else{
|
|
25
|
-
// A ChatGPT text-only preview has no Relay event identity or owning thread.
|
|
26
|
-
// Mirror the video to iPhone as view-only; ChatGPT still owns its text review.
|
|
27
|
-
request.groupId=options.groupId||result.requestedPath;
|
|
28
|
-
}
|
|
29
|
-
if(options.groupTitle)request.groupTitle=options.groupTitle;
|
|
30
|
-
return request;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export async function sendMasterReviewRequest(request,{bridge=process.env.NEOX_APNS_BRIDGE,timeoutMs=20000}={}){
|
|
34
|
-
const binary=bridge || join(homedir(),'Workspace/neox/NeoxAPNs/review-cli.mjs');
|
|
35
|
-
if(!existsSync(binary))throw new Error('Neo Master APNs review bridge unavailable: '+binary);
|
|
36
|
-
return await new Promise((resolve,reject)=>{
|
|
37
|
-
const child=spawn(process.execPath,[binary,'notify'],{stdio:['pipe','pipe','pipe']});
|
|
38
|
-
let out='',err='',done=false;
|
|
39
|
-
const finish=(error,result)=>{if(done)return;done=true;clearTimeout(timer);if(error)reject(error);else resolve(result);};
|
|
40
|
-
const timer=setTimeout(()=>{child.kill('SIGTERM');finish(new Error('Master review push timed out'));},timeoutMs);
|
|
41
|
-
child.stdout.on('data',d=>{out+=d; if(out.length>256000)child.kill('SIGTERM');});
|
|
42
|
-
child.stderr.on('data',d=>{if(err.length<1000)err+=d;});
|
|
43
|
-
child.on('error',e=>finish(e));
|
|
44
|
-
child.on('exit',code=>{
|
|
45
|
-
if(code!==0)return finish(new Error('Master review delivery failed: '+err.slice(0,250)));
|
|
46
|
-
let parsed;try{parsed=JSON.parse(out);}catch{return finish(new Error('Invalid Master review receipt'));}
|
|
47
|
-
if(parsed.stored!==true || parsed.requestId!==request.id)return finish(new Error('Master did not persist review request'));
|
|
48
|
-
finish(null,parsed);
|
|
49
|
-
});
|
|
50
|
-
child.stdin.end(JSON.stringify(request));
|
|
51
|
-
});
|
|
52
|
-
}
|