sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
// @ts-check | |
/* eslint-disable @typescript-eslint/no-var-requires */ | |
const { declare: declarePlugin } = require("@babel/helper-plugin-utils"); | |
const { addNamed } = require("@babel/helper-module-imports"); | |
const crypto = require("node:crypto"); | |
const { pathToFileURL } = require("node:url"); | |
// TODO: handle inline actions calling each other...? sounds tricky... |
// bun --hot sse.ts | |
import { randomUUID } from "node:crypto"; | |
import { EventEmitter } from "node:events"; | |
const sseEvents = new EventEmitter(); | |
export const sse = (data) => { | |
sseEvents.emit( | |
"sse", | |
`id: ${randomUUID()}\ndata: ${JSON.stringify(data)}\n\n` |