Skip to content

Commit 31aca74

Browse files
committed
fix(ff): move ff to go
1 parent 6330ff8 commit 31aca74

6 files changed

Lines changed: 0 additions & 73 deletions

File tree

apps/sim/.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ BETTER_AUTH_URL=http://localhost:3000
1717

1818
# NextJS (Required)
1919
NEXT_PUBLIC_APP_URL=http://localhost:3000
20-
# MOTHERSHIP_SUBAGENT_NARRATION=true # Optional: show free-form Workflow/Research/etc. agent narration; defaults to false.
2120
# INTERNAL_API_BASE_URL=http://sim-app.default.svc.cluster.local:3000 # Optional: internal URL for server-side /api self-calls; defaults to NEXT_PUBLIC_APP_URL
2221
# TRUSTED_ORIGINS=https://www.example.com,https://app.example.com # Optional: comma-separated additional public origins to trust for auth (apex+www, alias domains). Merged into Better Auth trustedOrigins.
2322

apps/sim/lib/copilot/entitlements.test.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

apps/sim/lib/copilot/entitlements.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { createLogger } from '@sim/logger'
22
import { getErrorMessage } from '@sim/utils/errors'
33
import { LRUCache } from 'lru-cache'
4-
import { isFeatureEnabled } from '@/lib/core/config/feature-flags'
54
import { isCustomBlocksEligible } from '@/lib/workflows/custom-blocks/operations'
65

76
const logger = createLogger('CopilotEntitlements')
@@ -11,11 +10,6 @@ const logger = createLogger('CopilotEntitlements')
1110
* its `core.Entitlement*` constants to gate agent surfaces.
1211
*/
1312
export const CUSTOM_BLOCKS_ENTITLEMENT = 'custom-blocks'
14-
export const SUBAGENT_NARRATION_ENTITLEMENT = 'mothership-subagent-narration'
15-
16-
function isSubagentNarrationEnabled(_workspaceId: string, userId?: string): Promise<boolean> {
17-
return isFeatureEnabled('mothership-subagent-narration', { userId })
18-
}
1913

2014
/**
2115
* Workspace entitlements — plan/flag-gated org capabilities sent to the
@@ -39,7 +33,6 @@ const ENTITLEMENT_EVALUATORS: Record<
3933
(workspaceId: string, userId?: string) => Promise<boolean>
4034
> = {
4135
[CUSTOM_BLOCKS_ENTITLEMENT]: isCustomBlocksEligible,
42-
[SUBAGENT_NARRATION_ENTITLEMENT]: isSubagentNarrationEnabled,
4336
}
4437

4538
const entitlementsCache = new LRUCache<string, Promise<string[]>>({

apps/sim/lib/core/config/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ export const env = createEnv({
451451
DISABLE_INVITATIONS: z.boolean().optional(), // Disable workspace invitations globally (for self-hosted deployments)
452452
DISABLE_PUBLIC_API: z.boolean().optional(), // Disable public API access globally (for self-hosted deployments)
453453
MOTHERSHIP_BETA_FEATURES: z.boolean().optional(), // Enable beta Mothership planning/changelog artifact surfaces
454-
MOTHERSHIP_SUBAGENT_NARRATION: z.boolean().optional(), // Show and stream subagent narration in Mothership chat (defaults to false)
455454

456455
// Development Tools
457456
REACT_GRAB_ENABLED: z.boolean().optional(), // Enable React Grab for UI element debugging in Cursor/AI agents (dev only)

apps/sim/lib/core/config/feature-flags.test.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const { mockFetch, mockIsPlatformAdmin, envRef, flagRef } = vi.hoisted(() => ({
1212
APPCONFIG_ENVIRONMENT: 'staging' as string | undefined,
1313
FORKING_ENABLED: undefined as boolean | undefined,
1414
DEPLOY_AS_BLOCK: undefined as boolean | undefined,
15-
MOTHERSHIP_SUBAGENT_NARRATION: undefined as boolean | undefined,
1615
},
1716
flagRef: { isAppConfigEnabled: false },
1817
}))
@@ -64,7 +63,6 @@ describe('getFeatureFlags', () => {
6463
const flags = await getFeatureFlags()
6564
// All registered flags should be present, disabled (env vars unset in test env)
6665
expect(flags['mothership-beta']).toEqual({ enabled: false })
67-
expect(flags['mothership-subagent-narration']).toEqual({ enabled: false })
6866
expect(flags['pii-redaction']).toEqual({ enabled: false })
6967
expect(flags['pii-granular-redaction']).toEqual({ enabled: false })
7068
expect(flags['trigger-eu-region']).toEqual({ enabled: false })
@@ -112,7 +110,6 @@ describe('isFeatureEnabled', () => {
112110
flagRef.isAppConfigEnabled = false
113111
envRef.FORKING_ENABLED = undefined
114112
envRef.DEPLOY_AS_BLOCK = undefined
115-
envRef.MOTHERSHIP_SUBAGENT_NARRATION = undefined
116113
})
117114

118115
describe('workspace-forking flag', () => {
@@ -151,21 +148,6 @@ describe('isFeatureEnabled', () => {
151148
})
152149
})
153150

154-
describe('mothership-subagent-narration flag', () => {
155-
it('defaults off and uses its fallback only when explicitly enabled', async () => {
156-
expect(await isFeatureEnabled('mothership-subagent-narration', { userId: 'u1' })).toBe(false)
157-
158-
envRef.MOTHERSHIP_SUBAGENT_NARRATION = true
159-
expect(await isFeatureEnabled('mothership-subagent-narration', { userId: 'u1' })).toBe(true)
160-
})
161-
162-
it('supports targeted rollout through AppConfig', async () => {
163-
withAppConfig({ 'mothership-subagent-narration': { userIds: ['u1'] } })
164-
expect(await isFeatureEnabled('mothership-subagent-narration', { userId: 'u1' })).toBe(true)
165-
expect(await isFeatureEnabled('mothership-subagent-narration', { userId: 'u2' })).toBe(false)
166-
})
167-
})
168-
169151
it('returns false for an unknown flag', async () => {
170152
withAppConfig({})
171153
expect(await enabled('missing', { userId: 'u1' })).toBe(false)

apps/sim/lib/core/config/feature-flags.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ const FEATURE_FLAGS = {
6464
'user context — use enabled:true for global rollout rather than per-user targeting.',
6565
fallback: 'MOTHERSHIP_BETA_FEATURES',
6666
},
67-
'mothership-subagent-narration': {
68-
description:
69-
'Stream and render free-form assistant narration from Mothership subagents such as ' +
70-
'Workflow Agent. Disabled by default so only subagent lifecycle and tool activity are shown.',
71-
fallback: 'MOTHERSHIP_SUBAGENT_NARRATION',
72-
},
7367
'table-snapshot-cache': {
7468
description:
7569
'Mount Sim tables into code sandboxes by reference via a version-keyed CSV snapshot in ' +

0 commit comments

Comments
 (0)