UNPKG

@code-yeongyu/senpi

Version:

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

3 lines (2 loc) • 843 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 = () => {}; } } var MISSING_RESPONSES_SCOPE=/\bMissing scopes?:[^\n]*?\bapi\.responses\.write\b/i,SIWC_MISSING_RESPONSES_SCOPE_GUIDANCE="This ChatGPT account or plan does not have access to the Responses API through Sign in with ChatGPT (missing scope api.responses.write). Signing in again will not change that: check that plan usage is enabled for this account or workspace, or use an OpenAI API key.";function isSiwcMissingResponsesScope(text){return MISSING_RESPONSES_SCOPE.test(text)}export{SIWC_MISSING_RESPONSES_SCOPE_GUIDANCE,isSiwcMissingResponsesScope};