mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 21:07:40 +01:00
ci(runner): validate sealed CommonJS loader
This commit is contained in:
1 parent
785636e630
commit
0f70c1cd18
1 file changed
+3
@@ -380,9 +380,12 @@ jobs:
|
||||
"command": "initialize",
|
||||
"params": {"agent": "codex", "model": "gpt-5.6-sol"},
|
||||
}
|
||||
loader = r'''const fs=require("node:fs");const Module=require("node:module");const filename=process.argv[1];const source=fs.readFileSync(filename,"utf8").replace(/^#![^\r\n]*(?:\r?\n|$)/,"");const artifact=new Module(filename);artifact.filename=filename;artifact.paths=[];artifact._compile(source,filename);'''
|
||||
result = subprocess.run(
|
||||
[
|
||||
f"/proc/self/fd/{node_descriptor}",
|
||||
"--eval",
|
||||
loader,
|
||||
f"/proc/self/fd/{sidecar_descriptor}",
|
||||
],
|
||||
input=json.dumps(request) + "\n",
|
||||
|
||||
Reference in new issue
Block a user