Skip to content

Commit aa6ab49

Browse files
committed
Ads default on for new users, no beta
1 parent f421eeb commit aa6ab49

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

cli/src/data/slash-commands.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ export const SLASH_COMMANDS: SlashCommand[] = [
2121
description: 'Connect your Claude Pro/Max subscription',
2222
aliases: ['claude'],
2323
},
24+
{
25+
id: 'ads:enable',
26+
label: 'ads:enable',
27+
description: 'Enable contextual ads and earn credits',
28+
},
29+
{
30+
id: 'ads:disable',
31+
label: 'ads:disable',
32+
description: 'Disable contextual ads and stop earning credits',
33+
},
2434
{
2535
id: 'init',
2636
label: 'init',
@@ -83,16 +93,6 @@ export const SLASH_COMMANDS: SlashCommand[] = [
8393
aliases: ['h', '?'],
8494
},
8595
...MODE_COMMANDS,
86-
{
87-
id: 'ads:enable',
88-
label: 'ads:enable (beta)',
89-
description: 'Enable contextual ads and earn credits',
90-
},
91-
{
92-
id: 'ads:disable',
93-
label: 'ads:disable (beta)',
94-
description: 'Disable contextual ads',
95-
},
9696
{
9797
id: 'referral',
9898
label: 'referral',

cli/src/utils/settings.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import { logger } from './logger'
77

88
import type { AgentMode } from './constants'
99

10+
const DEFAULT_SETTINGS: Settings = {
11+
mode: 'DEFAULT' as const,
12+
adsEnabled: true,
13+
}
14+
1015
/**
1116
* Settings schema - add new settings here as the product evolves
1217
*/
@@ -30,7 +35,9 @@ export const loadSettings = (): Settings => {
3035
const settingsPath = getSettingsPath()
3136

3237
if (!fs.existsSync(settingsPath)) {
33-
return {}
38+
// Create default settings file
39+
fs.writeFileSync(settingsPath, JSON.stringify(DEFAULT_SETTINGS, null, 2))
40+
return DEFAULT_SETTINGS
3441
}
3542

3643
try {

0 commit comments

Comments
 (0)