UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

5 lines (4 loc) • 966 B
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url); { const __piWorkerThreads = require("node:worker_threads"); if (typeof __piWorkerThreads.markAsUncloneable !== "function") { __piWorkerThreads.markAsUncloneable = () => {}; } } import{TOOL_CHILD_ROLE_ENV,channelEnvPresent}from"./chunk-REXE2FGU.js";import{ensureWindowsPowerThrottlingOptOut}from"./chunk-FQXWKEVK.js";ensureWindowsPowerThrottlingOptOut();var role=process.env[TOOL_CHILD_ROLE_ENV];if(role!==void 0&&role!==""){if(role==="launch-shim"){let{runLaunchShimRole}=await import("./launch-shim-role-CUCE7EFI.js");runLaunchShimRole()}role!=="tool-child"&&(process.stderr.write(`senpi: unknown internal role ${JSON.stringify(role)} `),process.exit(70)),channelEnvPresent(process.env)||(process.stderr.write(`tool-child: channel unavailable `),process.exit(70));let{runToolChildRole}=await import("./role-6XGBBK3H.js");await runToolChildRole()}