burnless 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,611 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from 'node:module';
3
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
4
+ import { dirname as __pathDirname } from 'node:path';
5
+ const require = __createRequire(import.meta.url);
6
+ const __filename = __fileURLToPath(import.meta.url);
7
+ const __dirname = __pathDirname(__filename);
8
+ import {
9
+ BurnlessDbConfigError,
10
+ LOCAL_OWNER_COMPANY_ID,
11
+ LOCAL_OWNER_EMAIL,
12
+ LOCAL_OWNER_ID,
13
+ SCENARIO_ENTITY_TYPES,
14
+ __resetSecretsKeyCache,
15
+ accountCategoryEnum,
16
+ accountTypeEnum,
17
+ accounts,
18
+ addAiProviderModel,
19
+ aiApiKeyModeEnum,
20
+ aiConversations,
21
+ aiConversationsRelations,
22
+ aiDataModeEnum,
23
+ aiFeatureFlags,
24
+ aiFeatureFlagsRelations,
25
+ aiInsightCache,
26
+ aiInsightCacheRelations,
27
+ aiInsightCacheTypeEnum,
28
+ aiMessageRoleEnum,
29
+ aiMessages,
30
+ aiMessagesRelations,
31
+ aiPendingActionKindEnum,
32
+ aiPendingActions,
33
+ aiPermissionDefaults,
34
+ aiPermissionModeEnum,
35
+ aiProviderKindEnum,
36
+ aiProviderModelSourceEnum,
37
+ aiProviderModels,
38
+ aiProviderModelsRelations,
39
+ aiProviders,
40
+ aiProvidersRelations,
41
+ aiToolAuditLogStatusEnum,
42
+ aiToolAuditLogs,
43
+ aiToolAuditLogsRelations,
44
+ aiToolPermissionDecisionEnum,
45
+ aiUsageLogs,
46
+ aiWriteModeEnum,
47
+ apiTokens,
48
+ applyMigrations,
49
+ auditActionEnum,
50
+ auditEntityTypeEnum,
51
+ bonusTypeEnum,
52
+ bonuses,
53
+ bonusesRelations,
54
+ businessModelEnum,
55
+ closeDatabase,
56
+ commitScenarioPlan,
57
+ companies,
58
+ companiesRelations,
59
+ companyMembers,
60
+ companyMembersRelations,
61
+ companyStageEnum,
62
+ consentPurposeEnum,
63
+ consumeAuthCode,
64
+ countOptionPools,
65
+ countScheduledJobs,
66
+ countUnreadNotifications,
67
+ createAiProvider,
68
+ createAuthCode,
69
+ createBonus,
70
+ createClient,
71
+ createEquityGrant,
72
+ createMcpConnection,
73
+ createNotification,
74
+ createOauthClient,
75
+ createOptionPool,
76
+ createOwnerCompanyIfNone,
77
+ createOwnerUserIfNone,
78
+ createPendingAction,
79
+ createSalaryChange,
80
+ createScheduledJob,
81
+ createShareClass,
82
+ createUser,
83
+ dashboardModeEnum,
84
+ dashboardPreferences,
85
+ dashboardPreferencesRelations,
86
+ dataRegionEnum,
87
+ db,
88
+ decryptJson,
89
+ decryptSecret,
90
+ deleteAiProvider,
91
+ deleteForCompany,
92
+ deleteMcpConnection,
93
+ deleteOverride,
94
+ deleteOverrideByEntity,
95
+ departments,
96
+ departmentsRelations,
97
+ encryptJson,
98
+ encryptSecret,
99
+ equityGrantTypeEnum,
100
+ equityGrants,
101
+ equityGrantsRelations,
102
+ execRows,
103
+ expenseFrequencyEnum,
104
+ exportLogs,
105
+ financialAccounts,
106
+ financialAccountsRelations,
107
+ financialAuditLogs,
108
+ financialAuditLogsRelations,
109
+ findApiTokenByHash,
110
+ findByIdForCompany,
111
+ findOauthTokenByAccessHash,
112
+ finishScheduledJobRun,
113
+ forecastLines,
114
+ forecastLinesRelations,
115
+ forecastMethodEnum,
116
+ forecastValues,
117
+ forecastValuesRelations,
118
+ fundingRoundInvestors,
119
+ fundingRoundInvestorsRelations,
120
+ fundingRoundTypeEnum,
121
+ fundingRounds,
122
+ fundingRoundsRelations,
123
+ generateSecretToken,
124
+ getActivePendingAction,
125
+ getAiProvider,
126
+ getCompanyById,
127
+ getCompanyForUser,
128
+ getDecryptedMcpSecret,
129
+ getDecryptedProviderKey,
130
+ getDefaultAiProvider,
131
+ getDefaultScenario,
132
+ getDisabledBuiltinTools,
133
+ getDisabledMcpConnectionIds,
134
+ getMcpCredentialsRow,
135
+ getOauthClientById,
136
+ getOverrideBreakdown,
137
+ getOverrideCount,
138
+ getOverrideCounts,
139
+ getOverridesForScenario,
140
+ getOwnerUser,
141
+ getPermissionDefaults,
142
+ getResolvedData,
143
+ getResolvedDefaultModelId,
144
+ getScenarioData,
145
+ getScenarioDataWithValues,
146
+ getScenarioForCompany,
147
+ getScheduledJob,
148
+ getScheduledJobById,
149
+ getSessionDisabledTools,
150
+ getSessionGrants,
151
+ getUserWithCompany,
152
+ getVisibleConnection,
153
+ grantSessionPermission,
154
+ hasFinancialData,
155
+ headcountEmployeeTypeEnum,
156
+ headcountPlans,
157
+ headcountPlansRelations,
158
+ importBatchStatusEnum,
159
+ importBatches,
160
+ importBatchesRelations,
161
+ initDatabase,
162
+ insightInvalidations,
163
+ integrationStatusEnum,
164
+ integrationTypeEnum,
165
+ integrations,
166
+ integrationsRelations,
167
+ inviteCodeRedemptions,
168
+ inviteCodeRedemptionsRelations,
169
+ inviteCodeTypeEnum,
170
+ inviteCodes,
171
+ inviteCodesRelations,
172
+ isDatabaseBooted,
173
+ isOwnerClaimed,
174
+ issueOauthTokens,
175
+ listAiProviderModels,
176
+ listAiProviders,
177
+ listApiTokensForUser,
178
+ listBonuses,
179
+ listCompaniesForUser,
180
+ listDueScheduledJobs,
181
+ listEquityGrants,
182
+ listForCompany,
183
+ listInvestorsForRound,
184
+ listMcpToolPrefs,
185
+ listNotificationsForUser,
186
+ listOauthGrantsForUser,
187
+ listOptionPools,
188
+ listResolvedBonuses,
189
+ listResolvedEquityGrants,
190
+ listResolvedSalaryChanges,
191
+ listSalaryChanges,
192
+ listScheduledJobRuns,
193
+ listScheduledJobs,
194
+ listShareClasses,
195
+ listUsers,
196
+ listVisibleConnections,
197
+ markNotificationsRead,
198
+ mcpAuthTypeEnum,
199
+ mcpConnectionStatusEnum,
200
+ mcpConnections,
201
+ mcpConnectionsRelations,
202
+ mcpCredentials,
203
+ mcpCredentialsRelations,
204
+ mcpOwnerScopeEnum,
205
+ mcpToolPermEnum,
206
+ mcpToolPrefs,
207
+ mcpToolPrefsRelations,
208
+ mcpTransportEnum,
209
+ memberRoleEnum,
210
+ merchantCategoryMappings,
211
+ merchantCategoryMappingsRelations,
212
+ metricCategoryEnum,
213
+ metrics,
214
+ metricsRelations,
215
+ mintApiToken,
216
+ notificationSeverityEnum,
217
+ notifications,
218
+ oauthAuthCodes,
219
+ oauthClients,
220
+ oauthTokens,
221
+ optionPools,
222
+ optionPoolsRelations,
223
+ planScenarioDelete,
224
+ planScenarioInsert,
225
+ planScenarioUpdate,
226
+ privacyConsents,
227
+ privacyConsentsRelations,
228
+ promoteScenario,
229
+ quickActionModeEnum,
230
+ recordMissedRun,
231
+ removeBonus,
232
+ removeEquityGrant,
233
+ removeSalaryChange,
234
+ resetSessionDisabledTools,
235
+ resetSessionGrants,
236
+ resolveDriver,
237
+ resolveEntities,
238
+ resolvePendingAction,
239
+ revenueStreamTypeEnum,
240
+ revenueStreams,
241
+ revenueStreamsRelations,
242
+ revokeApiToken,
243
+ revokeOauthGrant,
244
+ roleScopeCap,
245
+ rotateRefreshToken,
246
+ salaryChanges,
247
+ salaryChangesRelations,
248
+ saveMcpCredentials,
249
+ scenarioDelete,
250
+ scenarioInsert,
251
+ scenarioOverrideActionEnum,
252
+ scenarioOverrides,
253
+ scenarioOverridesRelations,
254
+ scenarioSourceEnum,
255
+ scenarioStatusEnum,
256
+ scenarioUpdate,
257
+ scenarios,
258
+ scenariosRelations,
259
+ scheduledJobActionKindEnum,
260
+ scheduledJobNotifyPolicyEnum,
261
+ scheduledJobRunStatusEnum,
262
+ scheduledJobRunTriggerEnum,
263
+ scheduledJobRuns,
264
+ scheduledJobStatusEnum,
265
+ scheduledJobs,
266
+ schema_exports,
267
+ sessions,
268
+ setDefaultAiProvider,
269
+ setDefaultAiProviderModel,
270
+ setSessionDisabledTool,
271
+ setUserPassword,
272
+ sha256hex,
273
+ shareClassTypeEnum,
274
+ shareClasses,
275
+ shareClassesRelations,
276
+ shouldAutoMigrate,
277
+ slugifyConnectionName,
278
+ softDeleteOptionPool,
279
+ softDeleteScheduledJob,
280
+ softDeleteShareClass,
281
+ startScheduledJobRun,
282
+ touchApiTokenLastUsed,
283
+ transactionSourceEnum,
284
+ transactions,
285
+ transactionsRelations,
286
+ updateAiProvider,
287
+ updateBonus,
288
+ updateEquityGrant,
289
+ updateForCompany,
290
+ updateMcpConnection,
291
+ updateOptionPool,
292
+ updatePendingActionTimeline,
293
+ updateSalaryChange,
294
+ updateScheduledJob,
295
+ updateShareClass,
296
+ upsertMcpToolPref,
297
+ upsertOverride,
298
+ upsertPermissionDefaults,
299
+ upsertUserPreferences,
300
+ userPreferences,
301
+ userPreferencesRelations,
302
+ users,
303
+ usersRelations,
304
+ verificationTokens,
305
+ weeklyDigests,
306
+ weeklyDigestsRelations
307
+ } from "./chunk-KSP7MJZ3.js";
308
+ import "./chunk-IBT7EFKB.js";
309
+ import "./chunk-MHVBJUPX.js";
310
+ import "./chunk-RDP4RLLI.js";
311
+ import "./chunk-BMDIVUSL.js";
312
+ export {
313
+ BurnlessDbConfigError,
314
+ LOCAL_OWNER_COMPANY_ID,
315
+ LOCAL_OWNER_EMAIL,
316
+ LOCAL_OWNER_ID,
317
+ SCENARIO_ENTITY_TYPES,
318
+ __resetSecretsKeyCache,
319
+ accountCategoryEnum,
320
+ accountTypeEnum,
321
+ accounts,
322
+ addAiProviderModel,
323
+ aiApiKeyModeEnum,
324
+ aiConversations,
325
+ aiConversationsRelations,
326
+ aiDataModeEnum,
327
+ aiFeatureFlags,
328
+ aiFeatureFlagsRelations,
329
+ aiInsightCache,
330
+ aiInsightCacheRelations,
331
+ aiInsightCacheTypeEnum,
332
+ aiMessageRoleEnum,
333
+ aiMessages,
334
+ aiMessagesRelations,
335
+ aiPendingActionKindEnum,
336
+ aiPendingActions,
337
+ aiPermissionDefaults,
338
+ aiPermissionModeEnum,
339
+ aiProviderKindEnum,
340
+ aiProviderModelSourceEnum,
341
+ aiProviderModels,
342
+ aiProviderModelsRelations,
343
+ aiProviders,
344
+ aiProvidersRelations,
345
+ aiToolAuditLogStatusEnum,
346
+ aiToolAuditLogs,
347
+ aiToolAuditLogsRelations,
348
+ aiToolPermissionDecisionEnum,
349
+ aiUsageLogs,
350
+ aiWriteModeEnum,
351
+ apiTokens,
352
+ applyMigrations,
353
+ auditActionEnum,
354
+ auditEntityTypeEnum,
355
+ bonusTypeEnum,
356
+ bonuses,
357
+ bonusesRelations,
358
+ businessModelEnum,
359
+ closeDatabase,
360
+ commitScenarioPlan,
361
+ companies,
362
+ companiesRelations,
363
+ companyMembers,
364
+ companyMembersRelations,
365
+ companyStageEnum,
366
+ consentPurposeEnum,
367
+ consumeAuthCode,
368
+ countOptionPools,
369
+ countScheduledJobs,
370
+ countUnreadNotifications,
371
+ createAiProvider,
372
+ createAuthCode,
373
+ createBonus,
374
+ createClient,
375
+ createEquityGrant,
376
+ createMcpConnection,
377
+ createNotification,
378
+ createOauthClient,
379
+ createOptionPool,
380
+ createOwnerCompanyIfNone,
381
+ createOwnerUserIfNone,
382
+ createPendingAction,
383
+ createSalaryChange,
384
+ createScheduledJob,
385
+ createShareClass,
386
+ createUser,
387
+ dashboardModeEnum,
388
+ dashboardPreferences,
389
+ dashboardPreferencesRelations,
390
+ dataRegionEnum,
391
+ db,
392
+ decryptJson,
393
+ decryptSecret,
394
+ deleteAiProvider,
395
+ deleteForCompany,
396
+ deleteMcpConnection,
397
+ deleteOverride,
398
+ deleteOverrideByEntity,
399
+ departments,
400
+ departmentsRelations,
401
+ encryptJson,
402
+ encryptSecret,
403
+ equityGrantTypeEnum,
404
+ equityGrants,
405
+ equityGrantsRelations,
406
+ execRows,
407
+ expenseFrequencyEnum,
408
+ exportLogs,
409
+ financialAccounts,
410
+ financialAccountsRelations,
411
+ financialAuditLogs,
412
+ financialAuditLogsRelations,
413
+ findApiTokenByHash,
414
+ findByIdForCompany,
415
+ findOauthTokenByAccessHash,
416
+ finishScheduledJobRun,
417
+ forecastLines,
418
+ forecastLinesRelations,
419
+ forecastMethodEnum,
420
+ forecastValues,
421
+ forecastValuesRelations,
422
+ fundingRoundInvestors,
423
+ fundingRoundInvestorsRelations,
424
+ fundingRoundTypeEnum,
425
+ fundingRounds,
426
+ fundingRoundsRelations,
427
+ generateSecretToken,
428
+ getActivePendingAction,
429
+ getAiProvider,
430
+ getCompanyById,
431
+ getCompanyForUser,
432
+ getDecryptedMcpSecret,
433
+ getDecryptedProviderKey,
434
+ getDefaultAiProvider,
435
+ getDefaultScenario,
436
+ getDisabledBuiltinTools,
437
+ getDisabledMcpConnectionIds,
438
+ getMcpCredentialsRow,
439
+ getOauthClientById,
440
+ getOverrideBreakdown,
441
+ getOverrideCount,
442
+ getOverrideCounts,
443
+ getOverridesForScenario,
444
+ getOwnerUser,
445
+ getPermissionDefaults,
446
+ getResolvedData,
447
+ getResolvedDefaultModelId,
448
+ getScenarioData,
449
+ getScenarioDataWithValues,
450
+ getScenarioForCompany,
451
+ getScheduledJob,
452
+ getScheduledJobById,
453
+ getSessionDisabledTools,
454
+ getSessionGrants,
455
+ getUserWithCompany,
456
+ getVisibleConnection,
457
+ grantSessionPermission,
458
+ hasFinancialData,
459
+ headcountEmployeeTypeEnum,
460
+ headcountPlans,
461
+ headcountPlansRelations,
462
+ importBatchStatusEnum,
463
+ importBatches,
464
+ importBatchesRelations,
465
+ initDatabase,
466
+ insightInvalidations,
467
+ integrationStatusEnum,
468
+ integrationTypeEnum,
469
+ integrations,
470
+ integrationsRelations,
471
+ inviteCodeRedemptions,
472
+ inviteCodeRedemptionsRelations,
473
+ inviteCodeTypeEnum,
474
+ inviteCodes,
475
+ inviteCodesRelations,
476
+ isDatabaseBooted,
477
+ isOwnerClaimed,
478
+ issueOauthTokens,
479
+ listAiProviderModels,
480
+ listAiProviders,
481
+ listApiTokensForUser,
482
+ listBonuses,
483
+ listCompaniesForUser,
484
+ listDueScheduledJobs,
485
+ listEquityGrants,
486
+ listForCompany,
487
+ listInvestorsForRound,
488
+ listMcpToolPrefs,
489
+ listNotificationsForUser,
490
+ listOauthGrantsForUser,
491
+ listOptionPools,
492
+ listResolvedBonuses,
493
+ listResolvedEquityGrants,
494
+ listResolvedSalaryChanges,
495
+ listSalaryChanges,
496
+ listScheduledJobRuns,
497
+ listScheduledJobs,
498
+ listShareClasses,
499
+ listUsers,
500
+ listVisibleConnections,
501
+ markNotificationsRead,
502
+ mcpAuthTypeEnum,
503
+ mcpConnectionStatusEnum,
504
+ mcpConnections,
505
+ mcpConnectionsRelations,
506
+ mcpCredentials,
507
+ mcpCredentialsRelations,
508
+ mcpOwnerScopeEnum,
509
+ mcpToolPermEnum,
510
+ mcpToolPrefs,
511
+ mcpToolPrefsRelations,
512
+ mcpTransportEnum,
513
+ memberRoleEnum,
514
+ merchantCategoryMappings,
515
+ merchantCategoryMappingsRelations,
516
+ metricCategoryEnum,
517
+ metrics,
518
+ metricsRelations,
519
+ mintApiToken,
520
+ notificationSeverityEnum,
521
+ notifications,
522
+ oauthAuthCodes,
523
+ oauthClients,
524
+ oauthTokens,
525
+ optionPools,
526
+ optionPoolsRelations,
527
+ planScenarioDelete,
528
+ planScenarioInsert,
529
+ planScenarioUpdate,
530
+ privacyConsents,
531
+ privacyConsentsRelations,
532
+ promoteScenario,
533
+ quickActionModeEnum,
534
+ recordMissedRun,
535
+ removeBonus,
536
+ removeEquityGrant,
537
+ removeSalaryChange,
538
+ resetSessionDisabledTools,
539
+ resetSessionGrants,
540
+ resolveDriver,
541
+ resolveEntities,
542
+ resolvePendingAction,
543
+ revenueStreamTypeEnum,
544
+ revenueStreams,
545
+ revenueStreamsRelations,
546
+ revokeApiToken,
547
+ revokeOauthGrant,
548
+ roleScopeCap,
549
+ rotateRefreshToken,
550
+ salaryChanges,
551
+ salaryChangesRelations,
552
+ saveMcpCredentials,
553
+ scenarioDelete,
554
+ scenarioInsert,
555
+ scenarioOverrideActionEnum,
556
+ scenarioOverrides,
557
+ scenarioOverridesRelations,
558
+ scenarioSourceEnum,
559
+ scenarioStatusEnum,
560
+ scenarioUpdate,
561
+ scenarios,
562
+ scenariosRelations,
563
+ scheduledJobActionKindEnum,
564
+ scheduledJobNotifyPolicyEnum,
565
+ scheduledJobRunStatusEnum,
566
+ scheduledJobRunTriggerEnum,
567
+ scheduledJobRuns,
568
+ scheduledJobStatusEnum,
569
+ scheduledJobs,
570
+ schema_exports as schema,
571
+ sessions,
572
+ setDefaultAiProvider,
573
+ setDefaultAiProviderModel,
574
+ setSessionDisabledTool,
575
+ setUserPassword,
576
+ sha256hex,
577
+ shareClassTypeEnum,
578
+ shareClasses,
579
+ shareClassesRelations,
580
+ shouldAutoMigrate,
581
+ slugifyConnectionName,
582
+ softDeleteOptionPool,
583
+ softDeleteScheduledJob,
584
+ softDeleteShareClass,
585
+ startScheduledJobRun,
586
+ touchApiTokenLastUsed,
587
+ transactionSourceEnum,
588
+ transactions,
589
+ transactionsRelations,
590
+ updateAiProvider,
591
+ updateBonus,
592
+ updateEquityGrant,
593
+ updateForCompany,
594
+ updateMcpConnection,
595
+ updateOptionPool,
596
+ updatePendingActionTimeline,
597
+ updateSalaryChange,
598
+ updateScheduledJob,
599
+ updateShareClass,
600
+ upsertMcpToolPref,
601
+ upsertOverride,
602
+ upsertPermissionDefaults,
603
+ upsertUserPreferences,
604
+ userPreferences,
605
+ userPreferencesRelations,
606
+ users,
607
+ usersRelations,
608
+ verificationTokens,
609
+ weeklyDigests,
610
+ weeklyDigestsRelations
611
+ };
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from 'node:module';
3
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
4
+ import { dirname as __pathDirname } from 'node:path';
5
+ const require = __createRequire(import.meta.url);
6
+ const __filename = __fileURLToPath(import.meta.url);
7
+ const __dirname = __pathDirname(__filename);
8
+ import {
9
+ src_default
10
+ } from "./chunk-MHVBJUPX.js";
11
+ import "./chunk-BMDIVUSL.js";
12
+ export {
13
+ src_default as default
14
+ };
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "burnless",
3
+ "version": "0.1.0",
4
+ "description": "The Burnless CLI — drive your Burnless instance from the terminal over MCP",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "bin": {
8
+ "burnless": "./dist/index.thin.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "engines": {
17
+ "node": ">=20"
18
+ },
19
+ "scripts": {
20
+ "build": "tsup",
21
+ "test": "vitest run",
22
+ "test:watch": "vitest",
23
+ "type-check": "tsc --noEmit"
24
+ },
25
+ "dependencies": {
26
+ "@burnless/db": "workspace:*",
27
+ "@burnless/types": "workspace:*",
28
+ "@modelcontextprotocol/sdk": "^1.29.0",
29
+ "drizzle-orm": "^0.38.0",
30
+ "commander": "^14.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@burnless/ai": "workspace:*",
34
+ "@types/node": "^22.19.15",
35
+ "tsup": "^8.5.0",
36
+ "typescript": "^5.7.0",
37
+ "vitest": "^3.0.0",
38
+ "zod": "^3.25.76"
39
+ }
40
+ }