1919// Also here: 'claude-code/testing', the kit a plugin's *.test.ts files
2020// import under `claude plugin test <dir>`: `test(name, async ($, on) =>
2121// { ... })`, where `$` is the engine's own and the hooks `on` registers
22- // sit beneath every plugin; with seat , describe, expect and clock.
22+ // sit beneath every plugin; with tier , describe, expect and clock.
2323//
2424// Typing a plugin against it:
2525// export const register: Register = (on, options) => { ... }
@@ -8300,22 +8300,15 @@ declare module 'claude-code/testing' {
83008300 */
83018301 export type TestBody = ( $ : Engine , on : import ( 'claude-code' ) . On ) => unknown
83028302
8303- /**
8304- * Where a plugin is seated: the organization's first (`prepend`), the
8305- * person's own (`user`), the organization's last (`append`), or built in
8306- * (`builtin`), in the engine's own chain order.
8307- */
8308- export type Seat = Exclude < import ( 'claude-code' ) . Tier , 'core' >
8309-
83108303 /**
83118304 * A plugin a test writes inline, loaded as a plugin folder is: its name,
8312- * where it is seated (`user` when not given), and its hooks module's
8305+ * the tier it loads in (`user` when not given), and its hooks module's
83138306 * `register`, written `register(on) { ... }`. `register` is
83148307 * self-contained, as a module's is: it closes over nothing of the test file.
83158308 */
83168309 export type Plugin = {
83178310 name : string
8318- tier ?: Seat
8311+ tier ?: Exclude < import ( 'claude-code' ) . Tier , 'core' >
83198312 register : import ( 'claude-code' ) . Register
83208313 }
83218314
@@ -8342,10 +8335,10 @@ declare module 'claude-code/testing' {
83428335 export function describe ( name : string , body : ( ) => void ) : void
83438336
83448337 /**
8345- * Where the plugin under test is seated , once for the file, at its top
8346- * level: the tier it ships in. Unsaid, it is the person's own (`user`) .
8338+ * The tier the plugin under test loads in , once for the file, at its top
8339+ * level: `prepend`, `user` (when unsaid), `append` or `builtin` .
83478340 */
8348- export function seat ( tier : Seat ) : void
8341+ export function tier ( tier : Exclude < import ( 'claude-code' ) . Tier , 'core' > ) : void
83498342
83508343 /**
83518344 * The time `$.clock` reads in a test, which moves only when the test says:
0 commit comments