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 / setting-lower-case.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 13 days ago History
16 lines · 437 BRaw
1import type { Plugin } from 'claude-code/testing'
2
3/**
4 * A plugin the person installed that sets `corp_proxy`, `CORP_PROXY` in
5 * another case, when the session starts; a refusal is kept from the session.
6 */
7export const settingLowerCase: Plugin = {
8 name: 'lower',
9 register(on) {
10 on('session.start', async ($, e, next) => {
11 await $.env.set('corp_proxy', 'mine').catch(() => undefined)
12
13 return next(e)
14 })
15 },
16}