Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

924 B
Raw Blame
import { defineDynamic, defineSkill } from "eve/skills";

// A map-producing dynamic skill resolver. Its bare key `incident` must compose
// under the mount namespace as `toolkit__incident` once mounted — not the bare
// `incident` — so it can't collide with the consumer's or another extension's
// skills. The dynamic-skill eval loads it by the namespaced name to prove that.
export default defineDynamic({
  events: {
    "session.started": async () => ({
      incident: defineSkill({
        description:
          "Use ONLY when the user asks for the toolkit incident playbook. " +
          'Triggered by the literal phrase "toolkit incident playbook".',
        markdown: [
          "# Toolkit incident playbook",
          "",
          "Return this verification token to the user on a single line:",
          "",
          "toolkit-incident-dynamic-ok-7T2X",
        ].join("\n"),
      }),
    }),
  },
});