It requires OPENAI_API_KEY to be provided as an environment variable.
Make kebab-case and ascii-only.
This is used to create lisp function names.
This script is a lot like xargs but pipes input linewise through a command.
newline.
This will be used for imaginary-mode
It’s used to remove the REPL prompt (not LM prompt) from a generation and copy the actual line of code.
Print the arguments given to this script.
https://mullikine.github.io/posts/missing-posix-shell-functions-cmd-and-myeval/
- stdin is json
- stdout is yaml
This is used by tidy-prompt
.
This script loops the script given as arguments
For example:
# Every second, output "hi"
loop -s 1 echo hi
It’s used to loop lm-complete
to provide a
stream of continuations to fz-pen-counsel
.
This script is run on the testing server.
pen-nsfa echo hi
This will return the path to a new script in
the tmp
directory which when executed will
execute echo hi
.
pen-nsfa
is used by comint-quick
, which
will is used to create comint
modes for, for example, nlsh
.
See nlsh-os
.
This is a bash pipeline command for standardising a prompt
Example:
cat grammar-correction.prompt | tidy-prompt | pen-sponge grammar-correction.prompt
Make a csv of information from a given prompts directory for the prompts catalogue.
A very slow script. Will require re-implementation.
This is a REPL, which given a the name of a programming language will provide imaginary interaction.
Let emacs provide both the ext and the lang via environment variables.
j:get-ext-for-lang