Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | 5x | import type { ChatCommandSpec } from "@/objects/ChatCommand";
/** svc-core's catalogue, as `GET /app/agents/{id}/commands` serves it: one
* skill with a form (its run schema) and one that runs on free text. */
export const COMMANDS: ChatCommandSpec[] = [
{
action: "execute",
kind: "skill",
label: "Run a skill",
description: "Run one skill on your request.",
request_hint: "What should the skill work on?",
request_required: true,
usage: "/execute skill <skill> <request>",
targets: [
{
id: "s1",
slug: "research-brief",
name: "Research brief",
description: "Researches a topic on the web.",
built_in: true,
form: {
fields: [
{
name: "topic",
type: "string",
required: true,
description: "What to research.",
source: "interface",
consumers: [],
},
{
name: "audience",
type: "string",
source: "interface",
consumers: [],
},
{
name: "depth",
type: "enum",
values: ["brief", "full"],
source: "interface",
consumers: [],
},
],
request: "optional",
complete: true,
},
},
{
id: "s2",
slug: "weekly-digest",
name: "Weekly digest",
description: "",
built_in: false,
form: { fields: [], request: "required", complete: true },
},
],
},
];
|