← Public packages
@kentcdodds/raycast
Raycast launcher: stored execute commands via webhooks (canonical; do not use raycast-shortcuts).
extension/src/set-up-webhooks.tsx
31 lines · 1.3 KB · TypeScriptimport { Action, ActionPanel, Detail, Icon, open, openExtensionPreferences } from "@raycast/api";
import { CONFIG_PATH } from "./kody-client";
const WEBHOOKS_UI = "https://kody.codes/account/webhooks";
const PACKAGE_URL = "https://kody.codes/@kentcdodds/raycast";
export default function Command() {
return (
<Detail
markdown={[
"# Set up Kody launcher",
"1. Open [Account → Webhooks](" + WEBHOOKS_UI + ") and mint/reveal the **`launcher`** webhook for `@kentcdodds/raycast`.",
"2. Put it in `" + CONFIG_PATH + "` as `webhookUrl` (mode `0600`). Legacy `listCommandsWebhookUrl` / `runWebhookUrl` still work during cutover.",
"3. Open **Kody Commands** (cached list uses SWR).",
"Agents never paste webhook URLs in chat.",
].join("\n\n")}
actions={
<ActionPanel>
<Action title="Open Account Webhooks" icon={Icon.Globe} onAction={() => void open(WEBHOOKS_UI)} />
<Action title="Open Raycast Package on Kody" icon={Icon.Box} onAction={() => void open(PACKAGE_URL)} />
<Action
title="Open Extension Preferences"
icon={Icon.Gear}
shortcut={{ modifiers: ["cmd"], key: "," }}
onAction={() => void openExtensionPreferences()}
/>
</ActionPanel>
}
/>
);
}