In a single terminal:
node server.js
In another terminal. sk-xxx is your OpenAI key
brew install jq
node client.js "$(jq -Rs . example.md)" sk-xxx
Edit example.md to change.
This package is intended to be used to get around Windows session isolation. Windows Session Isolation prevents GUI apps from being spawned by a service.
See these issues:
npm install cliipc -g
This is a special command that starts a IPC server. It will execute arbitrary commands via spawn. This process should be run as a normal user.
cliipc start-server
Once the server is running, prepend any cli command with cliipc to run it within the user context.
cliipc ls
Returns to stdout:
client.js
main.js
node_modules
package-lock.json
package.json
server.js