1import { execFile } from 'child_process'
L2: import { rmSync } from 'fs'
HighChild Process
Package source references child process execution.
src/reply/post.tsView on unpkg · L1 36}
L37: return { externalId, url: externalId ? `https://www.moltbook.com/comment/${externalId}` : undefined }
L38: }
...
L42: return new Promise((resolve, reject) => {
L43: execFile('npx', ['-y', '@clawstr/cli@latest', 'reply', noteExternalId, content], { timeout: 60_000, env: { ...process.env, HOME: tmpHome } }, (error, stdout, stderr) => {
L44: try { rmSync(tmpHome, { recursive: true, force: true }) } catch { /* ignore */ }
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
src/reply/post.tsView on unpkg · L36 27headers: { 'Authorization': `Bearer ${apiKey}`, 'Content-Type': 'application/json' },
L28: body: JSON.stringify({ content, parent_id: commentExternalId }),
L29: })
...
L36: }
L37: return { externalId, url: externalId ? `https://www.moltbook.com/comment/${externalId}` : undefined }
L38: }
...
L42: return new Promise((resolve, reject) => {
L43: execFile('npx', ['-y', '@clawstr/cli@latest', 'reply', noteExternalId, content], { timeout: 60_000, env: { ...process.env, HOME: tmpHome } }, (error, stdout, stderr) => {
L44: try { rmSync(tmpHome, { recursive: true, force: true }) } catch { /* ignore */ }
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
src/reply/post.tsView on unpkg · L27 42return new Promise((resolve, reject) => {
L43: execFile('npx', ['-y', '@clawstr/cli@latest', 'reply', noteExternalId, content], { timeout: 60_000, env: { ...process.env, HOME: tmpHome } }, (error, stdout, stderr) => {
L44: try { rmSync(tmpHome, { recursive: true, force: true }) } catch { /* ignore */ }
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
src/reply/post.tsView on unpkg · L42