Script Kit v1.51.2 - Welcoming our AI Overlords! 👑 #1148
johnlindquist
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Script Kit v1.51.2 - March 2023 Release
Download from https://www.scriptkit.com/
Join our Discord: https://discord.gg/qnUX4XqJQd
❤️ Sponsor Script Kit development https://github.com/sponsors/johnlindquist ❤️
Features
Build AI Conversations with the New
chat
PromptYou can use the new
chat
prompt to create a chat interface for your scripts. Thechat
prompt returns amessages
array that you can inspect to see the messages that were sent and received.It supports keyboard navigation so you can press the up/down arrow keys to navigate through the messages and copy/paste them. You can also use
shortcuts
the same way you would with other prompts.Open chat-hello-world in Script Kit
The
kit-examples
repo (bundled with new installs) has an example of using the latest ChatGPT model:https://github.com/johnlindquist/kit-examples/blob/main/scripts/chatgpt.js
✨ Want more AI example scripts? Check out this post 👀: #1143 ✨
The
eyeDropper
Color PickerYou can now use the
eyeDropper
function to pick a color from anywhere on your screen. It returns an object withsRGBHex
to align with Chrome's Eyedropper tool.Open testing-get-color in Script Kit
Node 18.12.1
Script Kit now bundles Node 18.12.1. (Previous scripts ran on Node 16.17.2).
New Settings in
~/.kit/db/app.json
FeaturesThe defaults are as follows:
Fixes
theme
was reset to the default when waking from sleepOpen in Script Kit
urls for Windows usersawait npm("package-name")
will now mark a package as an "external" dependency in TypeScript so you can use import statements for packages that aren't installed yet and your script will still compileExperimental
toast()
You can try out the experimental
toast("Copied")
feature. I'm still working out the API, so there's no "onClick" or anything, but you should be able to pass the other toast properties (this usesreact-toastify
) explained hereBeta Was this translation helpful? Give feedback.
All reactions