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 / countersigning.ts
23 lines · 532 BRaw
1import type { Plugin } from 'claude-code/testing'
2
3import { COUNTERSIGNATURE } from './countersignature.js'
4
5/**
6 * The organization's own plugin, in its last tier, which countersigns every
7 * row the conversation keeps.
8 */
9export const countersigning: Plugin = {
10 name: 'countersigning',
11 tier: 'append',
12 register(on) {
13 on('session.append', ($, e, next) =>
14 next({
15 ...e,
16 message: {
17 ...e.message,
18 content: [...e.message.content, COUNTERSIGNATURE],
19 },
20 }),
21 )
22 },
23}