A TypeScript implementation of the DexScript DSL for FCDex.
PitchScript preserves DexScript's command-oriented syntax while providing integration with a TypeScript and Prisma-based codebase.
PitchScript is under development. The parser, command handlers, and FCDex adapter must pass the build and compatibility tests before the package is considered ready for production.
CREATE > MODEL > IDENTIFIER
DELETE > MODEL > IDENTIFIER
UPDATE > MODEL > IDENTIFIER > ATTRIBUTE > VALUE(?)
VIEW > MODEL > IDENTIFIER > ATTRIBUTE(?)
ATTRIBUTES > MODEL > FILTER(?)
FILTER > UPDATE > MODEL > ATTRIBUTE > OLD_VALUE > NEW_VALUE > TORTOISE_OPERATOR(?)
FILTER > DELETE > MODEL > ATTRIBUTE > VALUE > TORTOISE_OPERATOR(?)
FILTER > VIEW > MODEL > ATTRIBUTE > VALUE > TORTOISE_OPERATOR(?)
EVAL > SAVE > NAME
EVAL > REMOVE > NAME
EVAL > LIST
EVAL > RUN > NAME
Saved evals contain PitchScript source and are executed by the PitchScript interpreter.
FILE > READ > FILE_PATH
FILE > WRITE > FILE_PATH
FILE > CLEAR > FILE_PATH
FILE > LISTDIR > FILE_PATH(?)
FILE > DELETE > FILE_PATH
TEMPLATE > CREATE > MODEL > ARGUMENT(?)
PitchScript exposes a parser, dispatcher, command handlers, and an FCDex adapter through its package entry point.
The database adapter must be configured against the target application's actual Prisma schema.
Install dependencies:
npm installBuild the package:
npm run buildRun tests:
npm testMIT. See LICENSE.