MCPcopy Create free account
hub / github.com/freecodexyz/free-code / txtRequire

Function txtRequire

src/utils/permissions/yoloClassifier.ts:50–52  ·  view source on GitHub ↗
(mod: string | { default: string })

Source from the content-addressed store, hash-verified

48// time, require() returns {default: string} — txtRequire normalizes both.
49/* eslint-disable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
50function txtRequire(mod: string | { default: string }): string {
51 return typeof mod === 'string' ? mod : mod.default
52}
53
54const BASE_PROMPT: string = feature('TRANSCRIPT_CLASSIFIER')
55 ? txtRequire(require('./yolo-classifier-prompts/auto_mode_system_prompt.txt'))

Callers 1

yoloClassifier.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected