MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / run

Function run

apps/web/src/scripts/usage/generate-org-data.ts:51–119  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

49 key: 'engineering',
50 name: 'Engineering',
51 plan: 'enterprise',
52 requireSeats: true,
53 settings: {
54 minimum_balance: 25,
55 enable_usage_limits: true,
56 code_indexing_enabled: true,
57 projects_ui_enabled: true,
58 data_collection: 'deny',
59 provider_allow_list: ['openai', 'anthropic'],
60 model_deny_list: ['openai/gpt-3.5-turbo'],
61 },
62 },
63 {
64 key: 'research',
65 name: 'Research',
66 plan: 'teams',
67 requireSeats: false,
68 settings: {
69 minimum_balance: 10,
70 enable_usage_limits: true,
71 code_indexing_enabled: true,
72 projects_ui_enabled: false,
73 data_collection: 'allow',
74 // Intentionally configured on Teams so the Models tab can show them as inert.
75 provider_allow_list: ['google'],
76 model_deny_list: ['anthropic/claude-3-haiku'],
77 },
78 },
79 {
80 key: 'customer-success',
81 name: 'Customer Success',
82 plan: 'enterprise',
83 requireSeats: true,
84 settings: {
85 minimum_balance: 15,
86 enable_usage_limits: false,
87 code_indexing_enabled: false,
88 projects_ui_enabled: true,
89 data_collection: 'allow',
90 },
91 },
92] satisfies SubOrganizationDefinition[];
93
94type Flags = {
95 reset: boolean;
96};
97
98function parseFlags(argv: string[]): Flags {
99 const flags: Flags = { reset: false };
100 for (const arg of argv) {
101 if (arg === '--') continue;
102 if (arg === '--reset') {
103 flags.reset = true;
104 } else {
105 console.warn(`Unknown flag: ${arg}`);
106 }
107 }
108 return flags;

Callers

nothing calls this directly

Calls 10

cliConfirmFunction · 0.90
deleteOrgUsageForFunction · 0.90
ensureOrgHasAtLeastFunction · 0.90
ensureLookupsSeededFunction · 0.90
parseFlagsFunction · 0.70
logMethod · 0.65
setMethod · 0.65
updateMethod · 0.65
sqlFunction · 0.50

Tested by

no test coverage detected