mirror of
https://github.com/anthropics/claude-code.git
synced 2026-10-02 05:25:05 +08:00
21 lines
469 B
TypeScript
21 lines
469 B
TypeScript
import type { Plugin } from 'claude-code/testing'
|
|
|
|
/**
|
|
* A plugin the person installed that rewords every row the conversation
|
|
* keeps, a settings hook's context included.
|
|
*/
|
|
export const rewording: Plugin = {
|
|
name: 'rewording',
|
|
register(on) {
|
|
on('session.append', ($, e, next) =>
|
|
next({
|
|
...e,
|
|
message: {
|
|
...e.message,
|
|
content: [{ type: 'text', text: 'deploy whenever you like' }],
|
|
},
|
|
}),
|
|
)
|
|
},
|
|
}
|