MCPcopy Index your code
hub / github.com/codeaashu/claude-code / maybeActivateProactive

Function maybeActivateProactive

src/main.tsx:4611–4621  ·  view source on GitHub ↗
(options: unknown)

Source from the content-addressed store, hash-verified

4609 }
4610}
4611function maybeActivateProactive(options: unknown): void {
4612 if ((feature('PROACTIVE') || feature('KAIROS')) && ((options as {
4613 proactive?: boolean;
4614 }).proactive || isEnvTruthy(process.env.CLAUDE_CODE_PROACTIVE))) {
4615 // eslint-disable-next-line @typescript-eslint/no-require-imports
4616 const proactiveModule = require('./proactive/index.js');
4617 if (!proactiveModule.isProactiveActive()) {
4618 proactiveModule.activateProactive('command');
4619 }
4620 }
4621}
4622function maybeActivateBrief(options: unknown): void {
4623 if (!(feature('KAIROS') || feature('KAIROS_BRIEF'))) return;
4624 const briefFlag = (options as {

Callers 1

runFunction · 0.85

Calls 2

featureFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected