Skip to content

Commit 67e9625

Browse files
authored
Remove ENABLE_AGENT_SUITE feature flag to enable agent suite for all users (#2927)
- Remove `enableAgentSuite` from the `FeatureFlags` type and `FEATURE_FLAGS` definition - Release Studio Agents Suite
1 parent cd1cd1a commit 67e9625

File tree

8 files changed

+11
-30
lines changed

8 files changed

+11
-30
lines changed

apps/cli/globals.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
declare const __ENABLE_AGENT_SUITE__: boolean;
21
declare const __ENABLE_CLI_TELEMETRY__: boolean;
32
declare const __ENABLE_STUDIO_AI__: boolean;
43
declare const __IS_PACKAGED_FOR_NPM__: boolean;

apps/cli/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,8 @@ async function main() {
202202
aiYargs.version( false );
203203
} );
204204
}
205-
if ( __ENABLE_AGENT_SUITE__ ) {
206-
const { registerCommand: registerMcpCommand } = await import( 'cli/commands/mcp' );
207-
registerMcpCommand( studioArgv );
208-
}
205+
const { registerCommand: registerMcpCommand } = await import( 'cli/commands/mcp' );
206+
registerMcpCommand( studioArgv );
209207

210208
await studioArgv.argv;
211209
}

apps/cli/vite.config.base.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export const baseConfig = defineConfig( {
7676
},
7777
define: {
7878
__ENABLE_STUDIO_AI__: true,
79-
__ENABLE_AGENT_SUITE__: true,
8079
__STUDIO_CLI_VERSION__: JSON.stringify( packageJson.version ),
8180
},
8281
} );

apps/cli/vite.config.npm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default mergeConfig(
1414
},
1515
},
1616
define: {
17-
__ENABLE_AGENT_SUITE__: false,
1817
__ENABLE_CLI_TELEMETRY__: true,
1918
__ENABLE_STUDIO_AI__: false,
2019
__IS_PACKAGED_FOR_NPM__: true,

apps/studio/src/ipc-types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ type IpcApi = {
8888

8989
interface FeatureFlags {
9090
enableBlueprints: boolean;
91-
enableAgentSuite: boolean;
9291
}
9392

9493
// eslint-disable-next-line @typescript-eslint/no-empty-object-type

apps/studio/src/lib/feature-flags.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ export const FEATURE_FLAGS: Record< keyof FeatureFlags, FeatureFlagDefinition >
1212
flag: 'enableBlueprints',
1313
default: true,
1414
},
15-
enableAgentSuite: {
16-
label: 'Enable Agent Suite',
17-
env: 'ENABLE_AGENT_SUITE',
18-
flag: 'enableAgentSuite',
19-
default: false,
20-
},
2115
} as const;
2216

2317
export function getFeatureFlagFromEnv( flag: keyof FeatureFlags ): boolean {

apps/studio/src/modules/user-settings/components/tests/user-settings.test.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ vi.mock( 'src/lib/app-globals', () => ( {
1717
isWindows: vi.fn( () => false ),
1818
isWindowsStore: vi.fn( () => false ),
1919
} ) );
20-
vi.mock( 'src/hooks/use-feature-flags', () => ( {
21-
useFeatureFlags: vi.fn( () => ( { enableAgentSuite: false } ) ),
22-
} ) );
2320
vi.mock( 'src/hooks/use-auth' );
2421
vi.mock( 'src/hooks/use-ipc-listener' );
2522
vi.mock( 'src/hooks/use-offline' );

apps/studio/src/modules/user-settings/components/user-settings.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { useI18n } from '@wordpress/react-i18n';
33
import { useCallback, useMemo, useState } from 'react';
44
import Modal from 'src/components/modal';
55
import { useAuth } from 'src/hooks/use-auth';
6-
import { useFeatureFlags } from 'src/hooks/use-feature-flags';
76
import { useIpcListener } from 'src/hooks/use-ipc-listener';
87
import { useOffline } from 'src/hooks/use-offline';
98
import { cx } from 'src/lib/cx';
@@ -19,7 +18,6 @@ import { useDeleteAllSnapshots, useGetSnapshotUsage } from 'src/stores/wpcom-api
1918

2019
export default function UserSettings() {
2120
const { __ } = useI18n();
22-
const { enableAgentSuite } = useFeatureFlags();
2321
const { user } = useAuth();
2422
const snapshotsByUser = useRootSelector( ( state ) =>
2523
snapshotSelectors.selectSnapshotsByUser( state, user?.id ?? 0 )
@@ -86,20 +84,18 @@ export default function UserSettings() {
8684
title: __( 'Account' ),
8785
} );
8886

89-
if ( enableAgentSuite ) {
90-
result.push( {
91-
name: 'skills',
92-
title: __( 'Skills' ),
93-
} );
87+
result.push( {
88+
name: 'skills',
89+
title: __( 'Skills' ),
90+
} );
9491

95-
result.push( {
96-
name: 'mcp',
97-
title: __( 'MCP' ),
98-
} );
99-
}
92+
result.push( {
93+
name: 'mcp',
94+
title: __( 'MCP' ),
95+
} );
10096

10197
return result;
102-
}, [ __, enableAgentSuite ] );
98+
}, [ __ ] );
10399

104100
return (
105101
<>

0 commit comments

Comments
 (0)