spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / fixtures / heading.ts
22 lines · 517 BRaw
1import type { Plugin } from 'claude-code/testing'
2
3/**
4 * The organization's own plugin, in its last tier, which puts its section
5 * at the head of the list beneath it.
6 */
7export const heading: Plugin = {
8 name: 'heading',
9 tier: 'append',
10 register(on) {
11 on('prompt.compose', async ($, e, next) => {
12 const { sections } = await next(e)
13
14 return {
15 sections: [
16 { id: 'heading:org', text: 'the org says hi', scope: 'shared' },
17 ...sections,
18 ],
19 }
20 })
21 },
22}