intellitester 0.1.12

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 (89) hide show
  1. package/README.md +200 -0
  2. package/dist/chunk-35WJGNDA.cjs +136 -0
  3. package/dist/chunk-35WJGNDA.cjs.map +1 -0
  4. package/dist/chunk-4B54JUOP.js +234 -0
  5. package/dist/chunk-4B54JUOP.js.map +1 -0
  6. package/dist/chunk-5LFSLMQ7.js +2517 -0
  7. package/dist/chunk-5LFSLMQ7.js.map +1 -0
  8. package/dist/chunk-6PYKWWH5.js +63 -0
  9. package/dist/chunk-6PYKWWH5.js.map +1 -0
  10. package/dist/chunk-ARJYJVRM.cjs +302 -0
  11. package/dist/chunk-ARJYJVRM.cjs.map +1 -0
  12. package/dist/chunk-CN6HSJJX.js +133 -0
  13. package/dist/chunk-CN6HSJJX.js.map +1 -0
  14. package/dist/chunk-DE5UFTTG.js +31 -0
  15. package/dist/chunk-DE5UFTTG.js.map +1 -0
  16. package/dist/chunk-ECBA4GJ3.js +287 -0
  17. package/dist/chunk-ECBA4GJ3.js.map +1 -0
  18. package/dist/chunk-OFXNJXMV.cjs +237 -0
  19. package/dist/chunk-OFXNJXMV.cjs.map +1 -0
  20. package/dist/chunk-PAKODOH4.cjs +66 -0
  21. package/dist/chunk-PAKODOH4.cjs.map +1 -0
  22. package/dist/chunk-QMYM2TCH.cjs +36 -0
  23. package/dist/chunk-QMYM2TCH.cjs.map +1 -0
  24. package/dist/chunk-SAVY6D3X.js +125 -0
  25. package/dist/chunk-SAVY6D3X.js.map +1 -0
  26. package/dist/chunk-UUJXCHVT.cjs +128 -0
  27. package/dist/chunk-UUJXCHVT.cjs.map +1 -0
  28. package/dist/chunk-XWGUA67E.cjs +2552 -0
  29. package/dist/chunk-XWGUA67E.cjs.map +1 -0
  30. package/dist/cli/index.cjs +1985 -0
  31. package/dist/cli/index.cjs.map +1 -0
  32. package/dist/cli/index.d.cts +1 -0
  33. package/dist/cli/index.d.ts +1 -0
  34. package/dist/cli/index.js +1957 -0
  35. package/dist/cli/index.js.map +1 -0
  36. package/dist/core/cleanup/index.cjs +45 -0
  37. package/dist/core/cleanup/index.cjs.map +1 -0
  38. package/dist/core/cleanup/index.d.cts +117 -0
  39. package/dist/core/cleanup/index.d.ts +117 -0
  40. package/dist/core/cleanup/index.js +8 -0
  41. package/dist/core/cleanup/index.js.map +1 -0
  42. package/dist/index.cjs +110 -0
  43. package/dist/index.cjs.map +1 -0
  44. package/dist/index.d.cts +852 -0
  45. package/dist/index.d.ts +852 -0
  46. package/dist/index.js +9 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/integration/index.cjs +22 -0
  49. package/dist/integration/index.cjs.map +1 -0
  50. package/dist/integration/index.d.cts +42 -0
  51. package/dist/integration/index.d.ts +42 -0
  52. package/dist/integration/index.js +20 -0
  53. package/dist/integration/index.js.map +1 -0
  54. package/dist/providers/appwrite/index.cjs +16 -0
  55. package/dist/providers/appwrite/index.cjs.map +1 -0
  56. package/dist/providers/appwrite/index.d.cts +12 -0
  57. package/dist/providers/appwrite/index.d.ts +12 -0
  58. package/dist/providers/appwrite/index.js +3 -0
  59. package/dist/providers/appwrite/index.js.map +1 -0
  60. package/dist/providers/index.cjs +60 -0
  61. package/dist/providers/index.cjs.map +1 -0
  62. package/dist/providers/index.d.cts +13 -0
  63. package/dist/providers/index.d.ts +13 -0
  64. package/dist/providers/index.js +7 -0
  65. package/dist/providers/index.js.map +1 -0
  66. package/dist/providers/mysql/index.cjs +16 -0
  67. package/dist/providers/mysql/index.cjs.map +1 -0
  68. package/dist/providers/mysql/index.d.cts +14 -0
  69. package/dist/providers/mysql/index.d.ts +14 -0
  70. package/dist/providers/mysql/index.js +3 -0
  71. package/dist/providers/mysql/index.js.map +1 -0
  72. package/dist/providers/postgres/index.cjs +16 -0
  73. package/dist/providers/postgres/index.cjs.map +1 -0
  74. package/dist/providers/postgres/index.d.cts +10 -0
  75. package/dist/providers/postgres/index.d.ts +10 -0
  76. package/dist/providers/postgres/index.js +3 -0
  77. package/dist/providers/postgres/index.js.map +1 -0
  78. package/dist/providers/sqlite/index.cjs +16 -0
  79. package/dist/providers/sqlite/index.cjs.map +1 -0
  80. package/dist/providers/sqlite/index.d.cts +11 -0
  81. package/dist/providers/sqlite/index.d.ts +11 -0
  82. package/dist/providers/sqlite/index.js +3 -0
  83. package/dist/providers/sqlite/index.js.map +1 -0
  84. package/dist/types-LONNVTIF.d.cts +56 -0
  85. package/dist/types-l-ZaFKC-.d.ts +56 -0
  86. package/package.json +114 -0
  87. package/schemas/intellitester.config.schema.json +384 -0
  88. package/schemas/test.schema.json +517 -0
  89. package/schemas/workflow.schema.json +227 -0
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ export { ActionSchema, IntellitesterConfigSchema, LocatorSchema, TestConfigSchema, TestDefinitionSchema, cleanupConfigSchema, cleanupDiscoverSchema, collectMissingEnvVars, isPipelineFile, isWorkflowFile, killServer, loadIntellitesterConfig, loadPipelineDefinition, loadTestDefinition, loadWorkflowDefinition, parseIntellitesterConfig, parsePipelineDefinition, parseTestDefinition, parseWorkflowDefinition, runWebTest, runWorkflow, runWorkflowWithContext, setupAppwriteTracking, startWebServer } from './chunk-5LFSLMQ7.js';
2
+ import './chunk-ECBA4GJ3.js';
3
+ import './chunk-DE5UFTTG.js';
4
+ import './chunk-6PYKWWH5.js';
5
+ import './chunk-4B54JUOP.js';
6
+ import './chunk-SAVY6D3X.js';
7
+ import './chunk-CN6HSJJX.js';
8
+ //# sourceMappingURL=index.js.map
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ // src/integration/index.ts
4
+ async function track(resource) {
5
+ if (typeof window !== "undefined") return;
6
+ if (typeof process === "undefined") return;
7
+ const sessionId = process.env.INTELLITESTER_SESSION_ID;
8
+ const trackUrl = process.env.INTELLITESTER_TRACK_URL;
9
+ if (!sessionId || !trackUrl) return;
10
+ try {
11
+ await fetch(`${trackUrl}/track`, {
12
+ method: "POST",
13
+ headers: { "Content-Type": "application/json" },
14
+ body: JSON.stringify({ sessionId, ...resource })
15
+ });
16
+ } catch {
17
+ }
18
+ }
19
+
20
+ exports.track = track;
21
+ //# sourceMappingURL=index.cjs.map
22
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/integration/index.ts"],"names":[],"mappings":";;;AAyCA,eAAsB,MAAM,QAAA,EAA0C;AAEpE,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAA,IAAI,OAAO,YAAY,WAAA,EAAa;AAEpC,EAAA,MAAM,SAAA,GAAY,QAAQ,GAAA,CAAI,wBAAA;AAC9B,EAAA,MAAM,QAAA,GAAW,QAAQ,GAAA,CAAI,uBAAA;AAE7B,EAAA,IAAI,CAAC,SAAA,IAAa,CAAC,QAAA,EAAU;AAE7B,EAAA,IAAI;AACF,IAAA,MAAM,KAAA,CAAM,CAAA,EAAG,QAAQ,CAAA,MAAA,CAAA,EAAU;AAAA,MAC/B,MAAA,EAAQ,MAAA;AAAA,MACR,OAAA,EAAS,EAAE,cAAA,EAAgB,kBAAA,EAAmB;AAAA,MAC9C,MAAM,IAAA,CAAK,SAAA,CAAU,EAAE,SAAA,EAAW,GAAG,UAAU;AAAA,KAChD,CAAA;AAAA,EACH,CAAA,CAAA,MAAQ;AAAA,EAER;AACF","file":"index.cjs","sourcesContent":["/**\n * IntelliTester Integration - Track server-side resources for test cleanup\n *\n * Usage in app SSR code:\n * import { track } from 'intellitester/integration';\n *\n * // Track a database row\n * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });\n *\n * // Track a team\n * await track({ type: 'team', id: team.$id });\n *\n * // Track anything - it's just metadata for your cleanup handler\n * await track({ type: 'stripe_customer', id: customerId });\n */\n\n/**\n * Track a resource for cleanup after tests.\n * Provider-agnostic - just tracks type, id, and metadata.\n * Cleanup logic is handled by the configured provider.\n */\nexport interface TrackedResource {\n type: string; // 'row', 'team', 'file', 'user', or any custom type\n id: string; // Resource ID\n [key: string]: unknown; // Any additional metadata needed for cleanup\n}\n\n/**\n * Track a resource created in server-side code.\n * No-op if not in test mode.\n *\n * @example\n * // Track a database row\n * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });\n *\n * // Track a team\n * await track({ type: 'team', id: team.$id });\n *\n * // Track anything - it's just metadata for your cleanup handler\n * await track({ type: 'stripe_customer', id: customerId });\n */\nexport async function track(resource: TrackedResource): Promise<void> {\n // Only run on server (SSR), not in browser\n if (typeof window !== 'undefined') return;\n if (typeof process === 'undefined') return;\n\n const sessionId = process.env.INTELLITESTER_SESSION_ID;\n const trackUrl = process.env.INTELLITESTER_TRACK_URL;\n\n if (!sessionId || !trackUrl) return;\n\n try {\n await fetch(`${trackUrl}/track`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ sessionId, ...resource }),\n });\n } catch {\n // Silent fail - don't break app\n }\n}\n"]}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * IntelliTester Integration - Track server-side resources for test cleanup
3
+ *
4
+ * Usage in app SSR code:
5
+ * import { track } from 'intellitester/integration';
6
+ *
7
+ * // Track a database row
8
+ * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });
9
+ *
10
+ * // Track a team
11
+ * await track({ type: 'team', id: team.$id });
12
+ *
13
+ * // Track anything - it's just metadata for your cleanup handler
14
+ * await track({ type: 'stripe_customer', id: customerId });
15
+ */
16
+ /**
17
+ * Track a resource for cleanup after tests.
18
+ * Provider-agnostic - just tracks type, id, and metadata.
19
+ * Cleanup logic is handled by the configured provider.
20
+ */
21
+ interface TrackedResource {
22
+ type: string;
23
+ id: string;
24
+ [key: string]: unknown;
25
+ }
26
+ /**
27
+ * Track a resource created in server-side code.
28
+ * No-op if not in test mode.
29
+ *
30
+ * @example
31
+ * // Track a database row
32
+ * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });
33
+ *
34
+ * // Track a team
35
+ * await track({ type: 'team', id: team.$id });
36
+ *
37
+ * // Track anything - it's just metadata for your cleanup handler
38
+ * await track({ type: 'stripe_customer', id: customerId });
39
+ */
40
+ declare function track(resource: TrackedResource): Promise<void>;
41
+
42
+ export { type TrackedResource, track };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * IntelliTester Integration - Track server-side resources for test cleanup
3
+ *
4
+ * Usage in app SSR code:
5
+ * import { track } from 'intellitester/integration';
6
+ *
7
+ * // Track a database row
8
+ * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });
9
+ *
10
+ * // Track a team
11
+ * await track({ type: 'team', id: team.$id });
12
+ *
13
+ * // Track anything - it's just metadata for your cleanup handler
14
+ * await track({ type: 'stripe_customer', id: customerId });
15
+ */
16
+ /**
17
+ * Track a resource for cleanup after tests.
18
+ * Provider-agnostic - just tracks type, id, and metadata.
19
+ * Cleanup logic is handled by the configured provider.
20
+ */
21
+ interface TrackedResource {
22
+ type: string;
23
+ id: string;
24
+ [key: string]: unknown;
25
+ }
26
+ /**
27
+ * Track a resource created in server-side code.
28
+ * No-op if not in test mode.
29
+ *
30
+ * @example
31
+ * // Track a database row
32
+ * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });
33
+ *
34
+ * // Track a team
35
+ * await track({ type: 'team', id: team.$id });
36
+ *
37
+ * // Track anything - it's just metadata for your cleanup handler
38
+ * await track({ type: 'stripe_customer', id: customerId });
39
+ */
40
+ declare function track(resource: TrackedResource): Promise<void>;
41
+
42
+ export { type TrackedResource, track };
@@ -0,0 +1,20 @@
1
+ // src/integration/index.ts
2
+ async function track(resource) {
3
+ if (typeof window !== "undefined") return;
4
+ if (typeof process === "undefined") return;
5
+ const sessionId = process.env.INTELLITESTER_SESSION_ID;
6
+ const trackUrl = process.env.INTELLITESTER_TRACK_URL;
7
+ if (!sessionId || !trackUrl) return;
8
+ try {
9
+ await fetch(`${trackUrl}/track`, {
10
+ method: "POST",
11
+ headers: { "Content-Type": "application/json" },
12
+ body: JSON.stringify({ sessionId, ...resource })
13
+ });
14
+ } catch {
15
+ }
16
+ }
17
+
18
+ export { track };
19
+ //# sourceMappingURL=index.js.map
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/integration/index.ts"],"names":[],"mappings":";AAyCA,eAAsB,MAAM,QAAA,EAA0C;AAEpE,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AACnC,EAAA,IAAI,OAAO,YAAY,WAAA,EAAa;AAEpC,EAAA,MAAM,SAAA,GAAY,QAAQ,GAAA,CAAI,wBAAA;AAC9B,EAAA,MAAM,QAAA,GAAW,QAAQ,GAAA,CAAI,uBAAA;AAE7B,EAAA,IAAI,CAAC,SAAA,IAAa,CAAC,QAAA,EAAU;AAE7B,EAAA,IAAI;AACF,IAAA,MAAM,KAAA,CAAM,CAAA,EAAG,QAAQ,CAAA,MAAA,CAAA,EAAU;AAAA,MAC/B,MAAA,EAAQ,MAAA;AAAA,MACR,OAAA,EAAS,EAAE,cAAA,EAAgB,kBAAA,EAAmB;AAAA,MAC9C,MAAM,IAAA,CAAK,SAAA,CAAU,EAAE,SAAA,EAAW,GAAG,UAAU;AAAA,KAChD,CAAA;AAAA,EACH,CAAA,CAAA,MAAQ;AAAA,EAER;AACF","file":"index.js","sourcesContent":["/**\n * IntelliTester Integration - Track server-side resources for test cleanup\n *\n * Usage in app SSR code:\n * import { track } from 'intellitester/integration';\n *\n * // Track a database row\n * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });\n *\n * // Track a team\n * await track({ type: 'team', id: team.$id });\n *\n * // Track anything - it's just metadata for your cleanup handler\n * await track({ type: 'stripe_customer', id: customerId });\n */\n\n/**\n * Track a resource for cleanup after tests.\n * Provider-agnostic - just tracks type, id, and metadata.\n * Cleanup logic is handled by the configured provider.\n */\nexport interface TrackedResource {\n type: string; // 'row', 'team', 'file', 'user', or any custom type\n id: string; // Resource ID\n [key: string]: unknown; // Any additional metadata needed for cleanup\n}\n\n/**\n * Track a resource created in server-side code.\n * No-op if not in test mode.\n *\n * @example\n * // Track a database row\n * await track({ type: 'row', id: row.$id, database: 'main', table: 'users' });\n *\n * // Track a team\n * await track({ type: 'team', id: team.$id });\n *\n * // Track anything - it's just metadata for your cleanup handler\n * await track({ type: 'stripe_customer', id: customerId });\n */\nexport async function track(resource: TrackedResource): Promise<void> {\n // Only run on server (SSR), not in browser\n if (typeof window !== 'undefined') return;\n if (typeof process === 'undefined') return;\n\n const sessionId = process.env.INTELLITESTER_SESSION_ID;\n const trackUrl = process.env.INTELLITESTER_TRACK_URL;\n\n if (!sessionId || !trackUrl) return;\n\n try {\n await fetch(`${trackUrl}/track`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ sessionId, ...resource }),\n });\n } catch {\n // Silent fail - don't break app\n }\n}\n"]}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkOFXNJXMV_cjs = require('../../chunk-OFXNJXMV.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "appwriteTypeMappings", {
8
+ enumerable: true,
9
+ get: function () { return chunkOFXNJXMV_cjs.appwriteTypeMappings; }
10
+ });
11
+ Object.defineProperty(exports, "createAppwriteProvider", {
12
+ enumerable: true,
13
+ get: function () { return chunkOFXNJXMV_cjs.createAppwriteProvider; }
14
+ });
15
+ //# sourceMappingURL=index.cjs.map
16
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,12 @@
1
+ import { C as CleanupProvider } from '../../types-LONNVTIF.cjs';
2
+ import '../../integration/index.cjs';
3
+
4
+ interface AppwriteConfig {
5
+ endpoint: string;
6
+ projectId: string;
7
+ apiKey: string;
8
+ }
9
+ declare function createAppwriteProvider(config: AppwriteConfig): CleanupProvider;
10
+ declare const appwriteTypeMappings: Record<string, string>;
11
+
12
+ export { appwriteTypeMappings, createAppwriteProvider };
@@ -0,0 +1,12 @@
1
+ import { C as CleanupProvider } from '../../types-l-ZaFKC-.js';
2
+ import '../../integration/index.js';
3
+
4
+ interface AppwriteConfig {
5
+ endpoint: string;
6
+ projectId: string;
7
+ apiKey: string;
8
+ }
9
+ declare function createAppwriteProvider(config: AppwriteConfig): CleanupProvider;
10
+ declare const appwriteTypeMappings: Record<string, string>;
11
+
12
+ export { appwriteTypeMappings, createAppwriteProvider };
@@ -0,0 +1,3 @@
1
+ export { appwriteTypeMappings, createAppwriteProvider } from '../../chunk-4B54JUOP.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ var chunkQMYM2TCH_cjs = require('../chunk-QMYM2TCH.cjs');
4
+ var chunkPAKODOH4_cjs = require('../chunk-PAKODOH4.cjs');
5
+ var chunkOFXNJXMV_cjs = require('../chunk-OFXNJXMV.cjs');
6
+ var chunkUUJXCHVT_cjs = require('../chunk-UUJXCHVT.cjs');
7
+ var chunk35WJGNDA_cjs = require('../chunk-35WJGNDA.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "getDefaultTypeMappings", {
12
+ enumerable: true,
13
+ get: function () { return chunkQMYM2TCH_cjs.getDefaultTypeMappings; }
14
+ });
15
+ Object.defineProperty(exports, "isProviderAvailable", {
16
+ enumerable: true,
17
+ get: function () { return chunkQMYM2TCH_cjs.isProviderAvailable; }
18
+ });
19
+ Object.defineProperty(exports, "listAvailableProviders", {
20
+ enumerable: true,
21
+ get: function () { return chunkQMYM2TCH_cjs.listAvailableProviders; }
22
+ });
23
+ Object.defineProperty(exports, "providerFactories", {
24
+ enumerable: true,
25
+ get: function () { return chunkQMYM2TCH_cjs.providerFactories; }
26
+ });
27
+ Object.defineProperty(exports, "createSqliteProvider", {
28
+ enumerable: true,
29
+ get: function () { return chunkPAKODOH4_cjs.createSqliteProvider; }
30
+ });
31
+ Object.defineProperty(exports, "sqliteTypeMappings", {
32
+ enumerable: true,
33
+ get: function () { return chunkPAKODOH4_cjs.sqliteTypeMappings; }
34
+ });
35
+ Object.defineProperty(exports, "appwriteTypeMappings", {
36
+ enumerable: true,
37
+ get: function () { return chunkOFXNJXMV_cjs.appwriteTypeMappings; }
38
+ });
39
+ Object.defineProperty(exports, "createAppwriteProvider", {
40
+ enumerable: true,
41
+ get: function () { return chunkOFXNJXMV_cjs.createAppwriteProvider; }
42
+ });
43
+ Object.defineProperty(exports, "createPostgresProvider", {
44
+ enumerable: true,
45
+ get: function () { return chunkUUJXCHVT_cjs.createPostgresProvider; }
46
+ });
47
+ Object.defineProperty(exports, "postgresTypeMappings", {
48
+ enumerable: true,
49
+ get: function () { return chunkUUJXCHVT_cjs.postgresTypeMappings; }
50
+ });
51
+ Object.defineProperty(exports, "createMysqlProvider", {
52
+ enumerable: true,
53
+ get: function () { return chunk35WJGNDA_cjs.createMysqlProvider; }
54
+ });
55
+ Object.defineProperty(exports, "mysqlTypeMappings", {
56
+ enumerable: true,
57
+ get: function () { return chunk35WJGNDA_cjs.mysqlTypeMappings; }
58
+ });
59
+ //# sourceMappingURL=index.cjs.map
60
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,13 @@
1
+ import { C as CleanupProvider } from '../types-LONNVTIF.cjs';
2
+ export { appwriteTypeMappings, createAppwriteProvider } from './appwrite/index.cjs';
3
+ export { createPostgresProvider, postgresTypeMappings } from './postgres/index.cjs';
4
+ export { createMysqlProvider, mysqlTypeMappings } from './mysql/index.cjs';
5
+ export { createSqliteProvider, sqliteTypeMappings } from './sqlite/index.cjs';
6
+ import '../integration/index.cjs';
7
+
8
+ declare const providerFactories: Record<string, (config: any) => CleanupProvider>;
9
+ declare function getDefaultTypeMappings(provider: string): Record<string, string>;
10
+ declare function isProviderAvailable(provider: string): boolean;
11
+ declare function listAvailableProviders(): string[];
12
+
13
+ export { getDefaultTypeMappings, isProviderAvailable, listAvailableProviders, providerFactories };
@@ -0,0 +1,13 @@
1
+ import { C as CleanupProvider } from '../types-l-ZaFKC-.js';
2
+ export { appwriteTypeMappings, createAppwriteProvider } from './appwrite/index.js';
3
+ export { createPostgresProvider, postgresTypeMappings } from './postgres/index.js';
4
+ export { createMysqlProvider, mysqlTypeMappings } from './mysql/index.js';
5
+ export { createSqliteProvider, sqliteTypeMappings } from './sqlite/index.js';
6
+ import '../integration/index.js';
7
+
8
+ declare const providerFactories: Record<string, (config: any) => CleanupProvider>;
9
+ declare function getDefaultTypeMappings(provider: string): Record<string, string>;
10
+ declare function isProviderAvailable(provider: string): boolean;
11
+ declare function listAvailableProviders(): string[];
12
+
13
+ export { getDefaultTypeMappings, isProviderAvailable, listAvailableProviders, providerFactories };
@@ -0,0 +1,7 @@
1
+ export { getDefaultTypeMappings, isProviderAvailable, listAvailableProviders, providerFactories } from '../chunk-DE5UFTTG.js';
2
+ export { createSqliteProvider, sqliteTypeMappings } from '../chunk-6PYKWWH5.js';
3
+ export { appwriteTypeMappings, createAppwriteProvider } from '../chunk-4B54JUOP.js';
4
+ export { createPostgresProvider, postgresTypeMappings } from '../chunk-SAVY6D3X.js';
5
+ export { createMysqlProvider, mysqlTypeMappings } from '../chunk-CN6HSJJX.js';
6
+ //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunk35WJGNDA_cjs = require('../../chunk-35WJGNDA.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "createMysqlProvider", {
8
+ enumerable: true,
9
+ get: function () { return chunk35WJGNDA_cjs.createMysqlProvider; }
10
+ });
11
+ Object.defineProperty(exports, "mysqlTypeMappings", {
12
+ enumerable: true,
13
+ get: function () { return chunk35WJGNDA_cjs.mysqlTypeMappings; }
14
+ });
15
+ //# sourceMappingURL=index.cjs.map
16
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,14 @@
1
+ import { C as CleanupProvider } from '../../types-LONNVTIF.cjs';
2
+ import '../../integration/index.cjs';
3
+
4
+ interface MysqlConfig {
5
+ host: string;
6
+ port?: number;
7
+ user: string;
8
+ password: string;
9
+ database: string;
10
+ }
11
+ declare function createMysqlProvider(config: MysqlConfig): CleanupProvider;
12
+ declare const mysqlTypeMappings: Record<string, string>;
13
+
14
+ export { createMysqlProvider, mysqlTypeMappings };
@@ -0,0 +1,14 @@
1
+ import { C as CleanupProvider } from '../../types-l-ZaFKC-.js';
2
+ import '../../integration/index.js';
3
+
4
+ interface MysqlConfig {
5
+ host: string;
6
+ port?: number;
7
+ user: string;
8
+ password: string;
9
+ database: string;
10
+ }
11
+ declare function createMysqlProvider(config: MysqlConfig): CleanupProvider;
12
+ declare const mysqlTypeMappings: Record<string, string>;
13
+
14
+ export { createMysqlProvider, mysqlTypeMappings };
@@ -0,0 +1,3 @@
1
+ export { createMysqlProvider, mysqlTypeMappings } from '../../chunk-CN6HSJJX.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkUUJXCHVT_cjs = require('../../chunk-UUJXCHVT.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "createPostgresProvider", {
8
+ enumerable: true,
9
+ get: function () { return chunkUUJXCHVT_cjs.createPostgresProvider; }
10
+ });
11
+ Object.defineProperty(exports, "postgresTypeMappings", {
12
+ enumerable: true,
13
+ get: function () { return chunkUUJXCHVT_cjs.postgresTypeMappings; }
14
+ });
15
+ //# sourceMappingURL=index.cjs.map
16
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,10 @@
1
+ import { C as CleanupProvider } from '../../types-LONNVTIF.cjs';
2
+ import '../../integration/index.cjs';
3
+
4
+ interface PostgresConfig {
5
+ connectionString: string;
6
+ }
7
+ declare function createPostgresProvider(config: PostgresConfig): CleanupProvider;
8
+ declare const postgresTypeMappings: Record<string, string>;
9
+
10
+ export { createPostgresProvider, postgresTypeMappings };
@@ -0,0 +1,10 @@
1
+ import { C as CleanupProvider } from '../../types-l-ZaFKC-.js';
2
+ import '../../integration/index.js';
3
+
4
+ interface PostgresConfig {
5
+ connectionString: string;
6
+ }
7
+ declare function createPostgresProvider(config: PostgresConfig): CleanupProvider;
8
+ declare const postgresTypeMappings: Record<string, string>;
9
+
10
+ export { createPostgresProvider, postgresTypeMappings };
@@ -0,0 +1,3 @@
1
+ export { createPostgresProvider, postgresTypeMappings } from '../../chunk-SAVY6D3X.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkPAKODOH4_cjs = require('../../chunk-PAKODOH4.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "createSqliteProvider", {
8
+ enumerable: true,
9
+ get: function () { return chunkPAKODOH4_cjs.createSqliteProvider; }
10
+ });
11
+ Object.defineProperty(exports, "sqliteTypeMappings", {
12
+ enumerable: true,
13
+ get: function () { return chunkPAKODOH4_cjs.sqliteTypeMappings; }
14
+ });
15
+ //# sourceMappingURL=index.cjs.map
16
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,11 @@
1
+ import { C as CleanupProvider } from '../../types-LONNVTIF.cjs';
2
+ import '../../integration/index.cjs';
3
+
4
+ interface SqliteConfig {
5
+ database: string;
6
+ readonly?: boolean;
7
+ }
8
+ declare function createSqliteProvider(config: SqliteConfig): CleanupProvider;
9
+ declare const sqliteTypeMappings: Record<string, string>;
10
+
11
+ export { createSqliteProvider, sqliteTypeMappings };
@@ -0,0 +1,11 @@
1
+ import { C as CleanupProvider } from '../../types-l-ZaFKC-.js';
2
+ import '../../integration/index.js';
3
+
4
+ interface SqliteConfig {
5
+ database: string;
6
+ readonly?: boolean;
7
+ }
8
+ declare function createSqliteProvider(config: SqliteConfig): CleanupProvider;
9
+ declare const sqliteTypeMappings: Record<string, string>;
10
+
11
+ export { createSqliteProvider, sqliteTypeMappings };
@@ -0,0 +1,3 @@
1
+ export { createSqliteProvider, sqliteTypeMappings } from '../../chunk-6PYKWWH5.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,56 @@
1
+ import { TrackedResource } from './integration/index.cjs';
2
+
3
+ interface CleanupHandler {
4
+ (resource: TrackedResource): Promise<void>;
5
+ }
6
+ interface CleanupUntrackedOptions {
7
+ testStartTime: string;
8
+ userId?: string;
9
+ sessionId?: string;
10
+ }
11
+ interface CleanupUntrackedResult {
12
+ success: boolean;
13
+ scanned: number;
14
+ deleted: string[];
15
+ failed: string[];
16
+ }
17
+ interface CleanupProvider {
18
+ name: string;
19
+ configure(config: Record<string, unknown>): Promise<void>;
20
+ methods: Record<string, CleanupHandler>;
21
+ cleanupUntracked?(options: CleanupUntrackedOptions): Promise<CleanupUntrackedResult>;
22
+ }
23
+ interface CleanupDiscoverConfig {
24
+ enabled?: boolean;
25
+ paths?: string[];
26
+ pattern?: string;
27
+ }
28
+ interface CleanupConfig {
29
+ provider?: string;
30
+ parallel?: boolean;
31
+ retries?: number;
32
+ types?: Record<string, string>;
33
+ handlers?: string[];
34
+ discover?: CleanupDiscoverConfig;
35
+ scanUntracked?: boolean;
36
+ [providerName: string]: unknown;
37
+ }
38
+ interface CleanupResult {
39
+ success: boolean;
40
+ deleted: string[];
41
+ failed: string[];
42
+ }
43
+ interface ExecutorOptions {
44
+ parallel?: boolean;
45
+ retries?: number;
46
+ sessionId?: string;
47
+ testStartTime?: string;
48
+ userId?: string;
49
+ providerConfig?: {
50
+ provider: string;
51
+ [key: string]: unknown;
52
+ };
53
+ cwd?: string;
54
+ }
55
+
56
+ export type { CleanupProvider as C, ExecutorOptions as E, CleanupHandler as a, CleanupConfig as b, CleanupResult as c, CleanupUntrackedOptions as d, CleanupUntrackedResult as e, CleanupDiscoverConfig as f };
@@ -0,0 +1,56 @@
1
+ import { TrackedResource } from './integration/index.js';
2
+
3
+ interface CleanupHandler {
4
+ (resource: TrackedResource): Promise<void>;
5
+ }
6
+ interface CleanupUntrackedOptions {
7
+ testStartTime: string;
8
+ userId?: string;
9
+ sessionId?: string;
10
+ }
11
+ interface CleanupUntrackedResult {
12
+ success: boolean;
13
+ scanned: number;
14
+ deleted: string[];
15
+ failed: string[];
16
+ }
17
+ interface CleanupProvider {
18
+ name: string;
19
+ configure(config: Record<string, unknown>): Promise<void>;
20
+ methods: Record<string, CleanupHandler>;
21
+ cleanupUntracked?(options: CleanupUntrackedOptions): Promise<CleanupUntrackedResult>;
22
+ }
23
+ interface CleanupDiscoverConfig {
24
+ enabled?: boolean;
25
+ paths?: string[];
26
+ pattern?: string;
27
+ }
28
+ interface CleanupConfig {
29
+ provider?: string;
30
+ parallel?: boolean;
31
+ retries?: number;
32
+ types?: Record<string, string>;
33
+ handlers?: string[];
34
+ discover?: CleanupDiscoverConfig;
35
+ scanUntracked?: boolean;
36
+ [providerName: string]: unknown;
37
+ }
38
+ interface CleanupResult {
39
+ success: boolean;
40
+ deleted: string[];
41
+ failed: string[];
42
+ }
43
+ interface ExecutorOptions {
44
+ parallel?: boolean;
45
+ retries?: number;
46
+ sessionId?: string;
47
+ testStartTime?: string;
48
+ userId?: string;
49
+ providerConfig?: {
50
+ provider: string;
51
+ [key: string]: unknown;
52
+ };
53
+ cwd?: string;
54
+ }
55
+
56
+ export type { CleanupProvider as C, ExecutorOptions as E, CleanupHandler as a, CleanupConfig as b, CleanupResult as c, CleanupUntrackedOptions as d, CleanupUntrackedResult as e, CleanupDiscoverConfig as f };