
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@polymath-ai/cli
Advanced tools
A Polymath CLI for interacting with all things Polymath.
It wraps the Polymath JS client, and will always be a lean CLI shim on top of that.
Download and install the polymath
cli globally:
npm install -g @polymath-ai/cli
Commands will look for options in the following order of precedence:
--config filename
. The CLI will search for the first config file
in the following order:
. --config configpath
: try to load the file
. --config configname
: try to load ~/.polymath/config/$configname.json
~/.polymath/config/default.json
: default config locationOPENAI_API_KEY
There are some global options for all commands:
polymath -d
: turn on debug mode (more output)polymath -c config
: load up the configpolymath -v
: show the versionpolymath -h
: show the helpWe have certain standard arguments that various command reuse:
--input-file
: single file to use as an input--input-directory
: single directory to use an input--output-file
: when outputting a single file (e.g. a library.json)--input
: a type of input (e.g. medium)--output
: a type of output (e.g. pinecone)When arguments aren't given, we will prompt the user for them.
Commands that we do ✅, and will ❌, support:
polymath [-c configfileorname] ask "how long is a piece of string?"
If no query is given, we will ask for one.
It will also takes arguments: ✅
--openai-api-key="the openapi key"
: defaults to $OPENAI_API_KEY
in env / .env--server https://glazkov.com
: pass as many of these as you want--libraries path/to/libraryOrDirectory
: pass in more of these too--pinecone --pinecone-api-key="The Key" --pinecone-base-url="The URL" --pinecone-namespace=namespace
: use pinecone with all of it's sub settings. If not found, will also look in env / .env (e.g. PINECONE_API_KEY, PINECONE_BASE_URL, PINECONE_NAMESPACE)polymath [-c configfileorname] complete "how long is a piece of string?"
It takes the same arguments as ask
but also uses OpenAI config options and other arguments to overrule them (e.g. max_tokens
, stop
, etc)
polymath import --input=medium --input-directory=path/to/export-backup/ --output-file=./libraries/medium-2023.json
polymath export --input-library=... --output=pinecone --pinecone-api-key="The Key" --pinecone-base-url="The URL" --pinecone-namespace=namespace
Go ahead and great a Polymath Endpoint to get information on what is supported, and do a lil validation check to boot.
polymath info --server https://glazkov.com`
To hack on the CLI, once you git clone, you will probably want to npm link
in the root directory and then you will have access to running the polymath
shell command.
Setup at least a ~/.polymath/config/default.json
and you are off to the races.
0.0.6
FAQs
A CLI for Polymath
We found that @polymath-ai/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.