@burdenoff/be-sdk 2026.1107.1 → 2026.1107.2

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.
Files changed (108) hide show
  1. package/configs/eslint/index.js +28 -48
  2. package/configs/tsconfig/tsconfig.json +22 -37
  3. package/dist/EventQueueFactory-PP534MBQ.js +8 -0
  4. package/dist/{EventQueueFactory-PEYWB2RY.js.map → EventQueueFactory-PP534MBQ.js.map} +1 -1
  5. package/dist/ai-credits/index.js +1 -1
  6. package/dist/cache/index.js +2 -2
  7. package/dist/{chunk-PAQK3YF2.js → chunk-2HJC3ZL6.js} +3 -3
  8. package/dist/chunk-2HJC3ZL6.js.map +1 -0
  9. package/dist/{chunk-6SDWH4OM.js → chunk-2WBJFTQ6.js} +2 -2
  10. package/dist/{chunk-6SDWH4OM.js.map → chunk-2WBJFTQ6.js.map} +1 -1
  11. package/dist/{chunk-DS3YMJ4X.js → chunk-554Z4C2K.js} +2 -2
  12. package/dist/chunk-554Z4C2K.js.map +1 -0
  13. package/dist/{chunk-23WAZL7I.js → chunk-5CS3ZITV.js} +2 -2
  14. package/dist/chunk-5CS3ZITV.js.map +1 -0
  15. package/dist/{chunk-5ENWB2S6.js → chunk-5EVD6HOD.js} +5 -5
  16. package/dist/chunk-5EVD6HOD.js.map +1 -0
  17. package/dist/{chunk-MZCBEJ67.js → chunk-63ZXJ42X.js} +3 -3
  18. package/dist/{chunk-MZCBEJ67.js.map → chunk-63ZXJ42X.js.map} +1 -1
  19. package/dist/{chunk-7QCJE6IQ.js → chunk-7EISSMFP.js} +3 -3
  20. package/dist/{chunk-7QCJE6IQ.js.map → chunk-7EISSMFP.js.map} +1 -1
  21. package/dist/{chunk-Q5H45UXV.js → chunk-AP7PXEC7.js} +5 -5
  22. package/dist/{chunk-Q5H45UXV.js.map → chunk-AP7PXEC7.js.map} +1 -1
  23. package/dist/{chunk-64QUSPYG.js → chunk-BD3SMWUU.js} +3 -3
  24. package/dist/chunk-BD3SMWUU.js.map +1 -0
  25. package/dist/{chunk-EHUFQHMV.js → chunk-DIOS6L7M.js} +4 -4
  26. package/dist/{chunk-EHUFQHMV.js.map → chunk-DIOS6L7M.js.map} +1 -1
  27. package/dist/{chunk-42PJSEQK.js → chunk-DJNHR37J.js} +3 -3
  28. package/dist/{chunk-42PJSEQK.js.map → chunk-DJNHR37J.js.map} +1 -1
  29. package/dist/{chunk-7SWIUDYM.js → chunk-E6OAFS7A.js} +4 -4
  30. package/dist/chunk-E6OAFS7A.js.map +1 -0
  31. package/dist/{chunk-AWPNRV3L.js → chunk-GCIB76AJ.js} +2 -2
  32. package/dist/chunk-GCIB76AJ.js.map +1 -0
  33. package/dist/{chunk-XXNT4VCM.js → chunk-HC6MPUIH.js} +2 -2
  34. package/dist/{chunk-XXNT4VCM.js.map → chunk-HC6MPUIH.js.map} +1 -1
  35. package/dist/{chunk-TANAOLAV.js → chunk-JVMAQOA3.js} +2 -2
  36. package/dist/chunk-JVMAQOA3.js.map +1 -0
  37. package/dist/{chunk-DXCWPTKC.js → chunk-K56L7NUR.js} +3 -3
  38. package/dist/chunk-K56L7NUR.js.map +1 -0
  39. package/dist/{chunk-UWQ2OKA6.js → chunk-LQYHWC7F.js} +4 -4
  40. package/dist/{chunk-UWQ2OKA6.js.map → chunk-LQYHWC7F.js.map} +1 -1
  41. package/dist/{chunk-JSEG3G5L.js → chunk-MESLAC5W.js} +3 -3
  42. package/dist/{chunk-JSEG3G5L.js.map → chunk-MESLAC5W.js.map} +1 -1
  43. package/dist/{chunk-IGWTT2YA.js → chunk-OBZQ4AJC.js} +6 -6
  44. package/dist/{chunk-IGWTT2YA.js.map → chunk-OBZQ4AJC.js.map} +1 -1
  45. package/dist/{chunk-LCDECFJJ.js → chunk-OXNCBE7P.js} +4 -4
  46. package/dist/{chunk-LCDECFJJ.js.map → chunk-OXNCBE7P.js.map} +1 -1
  47. package/dist/{chunk-OHUBPOZ6.js → chunk-PBZFAAOM.js} +3 -3
  48. package/dist/{chunk-OHUBPOZ6.js.map → chunk-PBZFAAOM.js.map} +1 -1
  49. package/dist/{chunk-2Q6RH3GE.js → chunk-PYD44IHJ.js} +2 -2
  50. package/dist/chunk-PYD44IHJ.js.map +1 -0
  51. package/dist/{chunk-4KK6YJ46.js → chunk-QWNNFE4P.js} +2 -2
  52. package/dist/chunk-QWNNFE4P.js.map +1 -0
  53. package/dist/{chunk-E5DTAGCA.js → chunk-RYTSVGGA.js} +3 -3
  54. package/dist/chunk-RYTSVGGA.js.map +1 -0
  55. package/dist/{chunk-ZWKJKL6Y.js → chunk-SPRG6G6G.js} +3 -3
  56. package/dist/{chunk-ZWKJKL6Y.js.map → chunk-SPRG6G6G.js.map} +1 -1
  57. package/dist/{chunk-WTEHAVBX.js → chunk-VGAHZKNJ.js} +3 -3
  58. package/dist/{chunk-WTEHAVBX.js.map → chunk-VGAHZKNJ.js.map} +1 -1
  59. package/dist/{chunk-3YG5JRS5.js → chunk-VTJTAAXC.js} +3 -3
  60. package/dist/{chunk-3YG5JRS5.js.map → chunk-VTJTAAXC.js.map} +1 -1
  61. package/dist/{chunk-YK7C5DU6.js → chunk-WWUU5ETI.js} +2 -2
  62. package/dist/chunk-WWUU5ETI.js.map +1 -0
  63. package/dist/{client-FUR7I6DB.js → client-JU6T3UPB.js} +4 -4
  64. package/dist/{client-FUR7I6DB.js.map → client-JU6T3UPB.js.map} +1 -1
  65. package/dist/{esm-M2M7HGV4.js → dist-2X4Q7PJA.js} +628 -493
  66. package/dist/dist-2X4Q7PJA.js.map +1 -0
  67. package/dist/event-queue/index.js +3 -3
  68. package/dist/export/index.js +5 -5
  69. package/dist/files/index.js +2 -2
  70. package/dist/gateway/index.js +4 -4
  71. package/dist/gateway/security/index.js +1 -1
  72. package/dist/graph/index.js +5 -5
  73. package/dist/index.js +37 -37
  74. package/dist/index.js.map +1 -1
  75. package/dist/init/index.js +7 -7
  76. package/dist/instrumentation/index.js +2 -2
  77. package/dist/metrics/index.js +2 -2
  78. package/dist/notifications/index.js +1 -1
  79. package/dist/pino-logger-H4HPW5P6.js +5 -0
  80. package/dist/{pino-logger-GJ2CYLD5.js.map → pino-logger-H4HPW5P6.js.map} +1 -1
  81. package/dist/platform/index.js +1 -1
  82. package/dist/prisma/index.js +4 -4
  83. package/dist/resource-caps/index.js +2 -2
  84. package/dist/server/index.js +4 -4
  85. package/dist/server/index.js.map +1 -1
  86. package/dist/sharing/index.js +1 -1
  87. package/dist/tags/index.js +1 -1
  88. package/dist/telemetry/index.js +5 -5
  89. package/dist/tracker/index.js +8 -8
  90. package/dist/usage/index.js +5 -5
  91. package/dist/validation/index.js +1 -1
  92. package/package.json +66 -44
  93. package/dist/EventQueueFactory-PEYWB2RY.js +0 -8
  94. package/dist/chunk-23WAZL7I.js.map +0 -1
  95. package/dist/chunk-2Q6RH3GE.js.map +0 -1
  96. package/dist/chunk-4KK6YJ46.js.map +0 -1
  97. package/dist/chunk-5ENWB2S6.js.map +0 -1
  98. package/dist/chunk-64QUSPYG.js.map +0 -1
  99. package/dist/chunk-7SWIUDYM.js.map +0 -1
  100. package/dist/chunk-AWPNRV3L.js.map +0 -1
  101. package/dist/chunk-DS3YMJ4X.js.map +0 -1
  102. package/dist/chunk-DXCWPTKC.js.map +0 -1
  103. package/dist/chunk-E5DTAGCA.js.map +0 -1
  104. package/dist/chunk-PAQK3YF2.js.map +0 -1
  105. package/dist/chunk-TANAOLAV.js.map +0 -1
  106. package/dist/chunk-YK7C5DU6.js.map +0 -1
  107. package/dist/esm-M2M7HGV4.js.map +0 -1
  108. package/dist/pino-logger-GJ2CYLD5.js +0 -5
@@ -1,3 +1,7 @@
1
+ // Generated from @burdenoff/toolchain@2026.1107.3 eslint/backend.js by
2
+ // scripts/sync-toolchain-configs.ts. Do not edit: change the toolchain, bump
3
+ // its pin and re-run the script. Consumers can import the toolchain directly:
4
+ // import backend from '@burdenoff/toolchain/eslint/backend';
1
5
  import pluginJs from '@eslint/js';
2
6
  import eslintComments from 'eslint-plugin-eslint-comments';
3
7
  import importPlugin from 'eslint-plugin-import';
@@ -7,39 +11,31 @@ import globals from 'globals';
7
11
  import tseslint from 'typescript-eslint';
8
12
 
9
13
  /**
10
- * Burdenoff TypeScript Backend ESLint Configuration v1.2.0
14
+ * Burdenoff backend ESLint profile (@burdenoff/toolchain/eslint/backend).
11
15
  *
12
- * Factory function that creates a complete ESLint configuration with TypeScript
13
- * type-aware rules, eliminating the need for consuming projects to provide
14
- * parserOptions manually.
16
+ * A faithful port of @burdenoff/be-sdk/eslint (configs/eslint/index.js, v1.2.0):
17
+ * same plugins, same rules, same per-path overrides, same factory signature.
18
+ * The plugins are dependencies of @burdenoff/toolchain, so a consuming repo
19
+ * keeps only `eslint` itself as a devDependency.
15
20
  *
16
- * CHANGELOG v1.2.0:
17
- * - **BREAKING CHANGE**: Now exports a factory function instead of array
18
- * - Automatically configures TypeScript parser options with provided dirname
19
- * - Eliminates need for manual languageOptions configuration in consuming projects
20
- * - Backwards compatible: see migration guide below
21
- *
22
- * MIGRATION FROM v1.1.0 to v1.2.0:
23
- * Before:
24
- * import burdenoffConfig from '@burdenoff/be-ts-lint';
25
- * export default [...burdenoffConfig, { languageOptions: { ... } }];
26
- *
27
- * After:
28
- * import createConfig from '@burdenoff/be-ts-lint';
29
- * export default createConfig(import.meta.dirname);
21
+ * // eslint.config.js
22
+ * import backend from '@burdenoff/toolchain/eslint/backend';
23
+ * export default backend(import.meta.dirname, { project: './tsconfig.json' });
30
24
  *
31
25
  * @param {string} dirname - The directory of the consuming project (use import.meta.dirname)
32
- * @param {object} options - Optional configuration
33
- * @param {string} options.project - Path to tsconfig file (default: './tsconfig.eslint.json')
34
- * @returns {import('eslint').Linter.FlatConfig[]}
26
+ * @param {object} [options] - Optional configuration
27
+ * @param {string} [options.project] - Path to the tsconfig used for type-aware rules (default: './tsconfig.eslint.json')
28
+ * @param {string[]} [options.ignores] - Extra ignore globs appended to the defaults
29
+ * @returns {import('eslint').Linter.Config[]}
35
30
  */
36
31
  export default function createBurdenoffConfig(dirname, options = {}) {
37
- const { project = './tsconfig.eslint.json' } = options;
32
+ const { project = './tsconfig.eslint.json', ignores = [] } = options;
38
33
 
39
34
  if (!dirname) {
40
- throw new Error(
41
- '@burdenoff/be-ts-lint: dirname is required. Use createConfig(import.meta.dirname)',
42
- );
35
+ throw new Error('@burdenoff/toolchain/eslint/backend: dirname is required. Use backend(import.meta.dirname)');
36
+ }
37
+ if (!Array.isArray(ignores) || ignores.some((g) => typeof g !== 'string')) {
38
+ throw new Error('@burdenoff/toolchain/eslint/backend: options.ignores must be an array of strings');
43
39
  }
44
40
 
45
41
  return [
@@ -57,6 +53,7 @@ export default function createBurdenoffConfig(dirname, options = {}) {
57
53
  '*.d.ts',
58
54
  '*.config.js',
59
55
  '*.config.mjs',
56
+ ...ignores,
60
57
  ],
61
58
  },
62
59
  {
@@ -207,8 +204,8 @@ export default function createBurdenoffConfig(dirname, options = {}) {
207
204
  selector:
208
205
  "CallExpression[callee.property.name='findMany'] > ObjectExpression:not(:has(Property[key.name='take']))",
209
206
  message:
210
- "findMany() must include a `take` arg to prevent full-table scans. " +
211
- "Use Platform.normalizeOffsetPagination() → toPrismaPage() or clampGraphqlLimit().",
207
+ 'findMany() must include a `take` arg to prevent full-table scans. ' +
208
+ 'Use Platform.normalizeOffsetPagination() → toPrismaPage() or clampGraphqlLimit().',
212
209
  },
213
210
  ],
214
211
 
@@ -270,12 +267,7 @@ export default function createBurdenoffConfig(dirname, options = {}) {
270
267
  // Override Rules for Test Files
271
268
  // ============================================================================
272
269
  {
273
- files: [
274
- '**/__tests__/**/*.ts',
275
- '**/*.test.ts',
276
- '**/*.spec.ts',
277
- '**/*.integration.test.ts',
278
- ],
270
+ files: ['**/__tests__/**/*.ts', '**/*.test.ts', '**/*.spec.ts', '**/*.integration.test.ts'],
279
271
  rules: {
280
272
  'sonarjs/no-hardcoded-ip': 'off', // Test files can have hardcoded IPs
281
273
  'sonarjs/no-hardcoded-passwords': 'off', // Test files can have test passwords
@@ -295,12 +287,7 @@ export default function createBurdenoffConfig(dirname, options = {}) {
295
287
  // Override Rules for Cache/Storage Services
296
288
  // ============================================================================
297
289
  {
298
- files: [
299
- '**/cache/**/*.ts',
300
- '**/storage/**/*.ts',
301
- '**/services/cache/**/*.ts',
302
- '**/services/storage/**/*.ts',
303
- ],
290
+ files: ['**/cache/**/*.ts', '**/storage/**/*.ts', '**/services/cache/**/*.ts', '**/services/storage/**/*.ts'],
304
291
  rules: {
305
292
  'sonarjs/hashing': 'off', // MD5 for checksums/ETags is acceptable
306
293
  'sonarjs/publicly-writable-directories': 'off', // Temp directories are acceptable
@@ -372,10 +359,7 @@ export default function createBurdenoffConfig(dirname, options = {}) {
372
359
  // Validated export paths with security checks
373
360
  // ============================================================================
374
361
  {
375
- files: [
376
- '**/export/**/ExportFormatService.ts',
377
- '**/modules/export/services/ExportFormatService.ts',
378
- ],
362
+ files: ['**/export/**/ExportFormatService.ts', '**/modules/export/services/ExportFormatService.ts'],
379
363
  rules: {
380
364
  'security/detect-non-literal-fs-filename': 'off', // Export paths validated before fs operations
381
365
  'eslint-comments/no-use': 'off', // Allow eslint-disable for documented safe export operations
@@ -387,11 +371,7 @@ export default function createBurdenoffConfig(dirname, options = {}) {
387
371
  // RegExp patterns from validated application config, not user input
388
372
  // ============================================================================
389
373
  {
390
- files: [
391
- '**/TemplateService.ts',
392
- '**/numberGenerator.ts',
393
- '**/tags/services/validation.ts',
394
- ],
374
+ files: ['**/TemplateService.ts', '**/numberGenerator.ts', '**/tags/services/validation.ts'],
395
375
  rules: {
396
376
  'security/detect-non-literal-regexp': 'off', // RegExp from validated config with error handling
397
377
  'eslint-comments/no-use': 'off', // Allow eslint-disable for documented safe regex usage
@@ -1,53 +1,38 @@
1
+ // Generated from @burdenoff/toolchain@2026.1107.3 tsconfig/backend-library.json
2
+ // (flattened over tsconfig/base.json) by scripts/sync-toolchain-configs.ts.
3
+ // Omitted for compatibility with existing consumers: types, moduleDetection.
4
+ // Do not edit. New code can extend the toolchain directly:
5
+ // "extends": "@burdenoff/toolchain/tsconfig/backend-library.json"
1
6
  {
2
- "compileOnSave": true,
3
7
  "compilerOptions": {
4
- /* Language and Environment */
5
8
  "target": "ES2022",
6
- "lib": ["ES2022"],
7
- "experimentalDecorators": true,
8
- "emitDecoratorMetadata": true,
9
- "useUnknownInCatchVariables": true,
10
-
11
- /* Modules */
9
+ "lib": [
10
+ "ES2022"
11
+ ],
12
12
  "module": "ESNext",
13
13
  "moduleResolution": "bundler",
14
+ "strict": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "noImplicitOverride": true,
17
+ "useUnknownInCatchVariables": true,
18
+ "skipLibCheck": true,
14
19
  "resolveJsonModule": true,
15
- "allowJs": true,
16
-
17
- /* Emit */
18
- "declaration": true,
19
- "declarationMap": true,
20
- "sourceMap": true,
21
- "removeComments": true,
22
- "composite": true,
23
- "noEmitOnError": false,
24
-
25
- /* Interop Constraints */
26
20
  "esModuleInterop": true,
27
21
  "allowSyntheticDefaultImports": true,
28
22
  "forceConsistentCasingInFileNames": true,
29
-
30
- /* Type Checking - Strict Mode */
31
- "strict": true,
32
- "alwaysStrict": true,
33
- "noImplicitAny": true,
34
- "strictFunctionTypes": true,
35
-
36
- /* Type Checking - Enhanced */
23
+ "noEmit": false,
24
+ "experimentalDecorators": true,
25
+ "emitDecoratorMetadata": true,
26
+ "allowJs": true,
37
27
  "noUncheckedIndexedAccess": true,
38
28
  "noImplicitReturns": true,
39
- "noFallthroughCasesInSwitch": true,
40
- "noImplicitOverride": true,
41
- // noUnusedLocals disabled - ESLint handles this with proper ignores for generated files
42
- // TypeScript doesn't support per-file overrides, so we use ESLint for unused var checking
43
29
  "noUnusedLocals": false,
44
30
  "noUnusedParameters": false,
45
-
46
- /* Performance Optimizations */
47
- "skipLibCheck": true,
48
- "skipDefaultLibCheck": true,
49
-
50
- /* Constants */
31
+ "composite": true,
32
+ "declaration": true,
33
+ "declarationMap": true,
34
+ "sourceMap": true,
35
+ "removeComments": true,
51
36
  "preserveConstEnums": true
52
37
  }
53
38
  }
@@ -0,0 +1,8 @@
1
+ export { EventQueueFactory, resolveQueueType } from './chunk-K56L7NUR.js';
2
+ import './chunk-KS2HQCJR.js';
3
+ import './chunk-6XEXJATV.js';
4
+ import './chunk-KO2ZXZ7W.js';
5
+ import './chunk-RU266375.js';
6
+ import './chunk-XE4OXN2W.js';
7
+ //# sourceMappingURL=EventQueueFactory-PP534MBQ.js.map
8
+ //# sourceMappingURL=EventQueueFactory-PP534MBQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"EventQueueFactory-PEYWB2RY.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"EventQueueFactory-PP534MBQ.js"}
@@ -1,4 +1,4 @@
1
- export { AI_CREDIT_MAX_TOKENS_PER_REPORT, AiCreditInputError, AiCreditMeter, aiCreditIdempotencyHash, aiCreditQuotaName, defaultAiCreditHashPrefix, encodeAiCreditHashComponent, isAiCreditInputError, validateAiTokenUsage } from '../chunk-JSEG3G5L.js';
1
+ export { AI_CREDIT_MAX_TOKENS_PER_REPORT, AiCreditInputError, AiCreditMeter, aiCreditIdempotencyHash, aiCreditQuotaName, defaultAiCreditHashPrefix, encodeAiCreditHashComponent, isAiCreditInputError, validateAiTokenUsage } from '../chunk-MESLAC5W.js';
2
2
  import '../chunk-RU266375.js';
3
3
  import '../chunk-XE4OXN2W.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- export { CacheFactory, CacheProviderType, MemoryCacheProvider, ValkeyGlideProvider, assertCacheEndpointConfigured, closeAllCaches, createCache, getCache, getValkeyClient, warnOnLayerDefaultEndpoint } from '../chunk-PAQK3YF2.js';
2
- import '../chunk-A5F6Z5UE.js';
1
+ export { CacheFactory, CacheProviderType, MemoryCacheProvider, ValkeyGlideProvider, assertCacheEndpointConfigured, closeAllCaches, createCache, getCache, getValkeyClient, warnOnLayerDefaultEndpoint } from '../chunk-2HJC3ZL6.js';
3
2
  import '../chunk-KO2ZXZ7W.js';
3
+ import '../chunk-A5F6Z5UE.js';
4
4
  import '../chunk-5CAFHK2Z.js';
5
5
  import '../chunk-RU266375.js';
6
6
  import '../chunk-XE4OXN2W.js';
@@ -1,5 +1,5 @@
1
- import { currentEnvironment, DEPLOYED_ENVIRONMENTS } from './chunk-A5F6Z5UE.js';
2
1
  import { registerDisposable, unregisterDisposable } from './chunk-KO2ZXZ7W.js';
2
+ import { currentEnvironment, DEPLOYED_ENVIRONMENTS } from './chunk-A5F6Z5UE.js';
3
3
  import { DEFAULT_LAYER_RESOURCES } from './chunk-5CAFHK2Z.js';
4
4
  import { logger } from './chunk-RU266375.js';
5
5
  import { __export, __name } from './chunk-XE4OXN2W.js';
@@ -1849,5 +1849,5 @@ async function closeAllCaches() {
1849
1849
  __name(closeAllCaches, "closeAllCaches");
1850
1850
 
1851
1851
  export { CacheFactory, CacheProviderType, MemoryCacheProvider, ValkeyGlideProvider, assertCacheEndpointConfigured, cache_exports, closeAllCaches, createCache, getCache, getValkeyClient, warnOnLayerDefaultEndpoint };
1852
- //# sourceMappingURL=chunk-PAQK3YF2.js.map
1853
- //# sourceMappingURL=chunk-PAQK3YF2.js.map
1852
+ //# sourceMappingURL=chunk-2HJC3ZL6.js.map
1853
+ //# sourceMappingURL=chunk-2HJC3ZL6.js.map