@quiltdata/benchling-webhook 0.7.2-20251106T010445Z → 0.7.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 (78) hide show
  1. package/README.md +33 -159
  2. package/dist/bin/benchling-webhook.d.ts.map +1 -1
  3. package/dist/bin/benchling-webhook.js +2 -4
  4. package/dist/bin/benchling-webhook.js.map +1 -1
  5. package/dist/bin/commands/config-profiles.d.ts.map +1 -1
  6. package/dist/bin/commands/config-profiles.js +1 -2
  7. package/dist/bin/commands/config-profiles.js.map +1 -1
  8. package/dist/bin/commands/deploy.d.ts +1 -1
  9. package/dist/bin/commands/deploy.d.ts.map +1 -1
  10. package/dist/bin/commands/deploy.js +67 -9
  11. package/dist/bin/commands/deploy.js.map +1 -1
  12. package/dist/bin/commands/infer-quilt-config.d.ts +6 -15
  13. package/dist/bin/commands/infer-quilt-config.d.ts.map +1 -1
  14. package/dist/bin/commands/infer-quilt-config.js +35 -64
  15. package/dist/bin/commands/infer-quilt-config.js.map +1 -1
  16. package/dist/bin/commands/manifest.d.ts +0 -11
  17. package/dist/bin/commands/manifest.d.ts.map +1 -1
  18. package/dist/bin/commands/manifest.js +8 -22
  19. package/dist/bin/commands/manifest.js.map +1 -1
  20. package/dist/bin/commands/setup-profile.d.ts.map +1 -1
  21. package/dist/bin/commands/setup-profile.js +15 -17
  22. package/dist/bin/commands/setup-profile.js.map +1 -1
  23. package/dist/bin/commands/setup-wizard.d.ts +0 -2
  24. package/dist/bin/commands/setup-wizard.d.ts.map +1 -1
  25. package/dist/bin/commands/setup-wizard.js +172 -414
  26. package/dist/bin/commands/setup-wizard.js.map +1 -1
  27. package/dist/bin/commands/sync-secrets.js +2 -2
  28. package/dist/lib/benchling-webhook-stack.d.ts.map +1 -1
  29. package/dist/lib/benchling-webhook-stack.js +15 -1
  30. package/dist/lib/benchling-webhook-stack.js.map +1 -1
  31. package/dist/lib/configuration-saver.d.ts +0 -8
  32. package/dist/lib/configuration-saver.d.ts.map +1 -1
  33. package/dist/lib/configuration-saver.js +1 -18
  34. package/dist/lib/configuration-saver.js.map +1 -1
  35. package/dist/lib/fargate-service.d.ts +4 -2
  36. package/dist/lib/fargate-service.d.ts.map +1 -1
  37. package/dist/lib/fargate-service.js +25 -12
  38. package/dist/lib/fargate-service.js.map +1 -1
  39. package/dist/lib/types/config.d.ts +9 -70
  40. package/dist/lib/types/config.d.ts.map +1 -1
  41. package/dist/lib/types/config.js +2 -3
  42. package/dist/lib/types/config.js.map +1 -1
  43. package/dist/lib/utils/config-loader.d.ts.map +1 -1
  44. package/dist/lib/utils/config-loader.js +3 -2
  45. package/dist/lib/utils/config-loader.js.map +1 -1
  46. package/dist/lib/utils/config-resolver.d.ts +2 -2
  47. package/dist/lib/utils/config-resolver.d.ts.map +1 -1
  48. package/dist/lib/utils/config-resolver.js +14 -7
  49. package/dist/lib/utils/config-resolver.js.map +1 -1
  50. package/dist/lib/utils/config.d.ts +1 -1
  51. package/dist/lib/utils/config.d.ts.map +1 -1
  52. package/dist/lib/utils/config.js +7 -3
  53. package/dist/lib/utils/config.js.map +1 -1
  54. package/dist/lib/utils/sqs.d.ts +13 -0
  55. package/dist/lib/utils/sqs.d.ts.map +1 -0
  56. package/dist/lib/utils/sqs.js +22 -0
  57. package/dist/lib/utils/sqs.js.map +1 -0
  58. package/dist/lib/utils/stack-inference.d.ts.map +1 -1
  59. package/dist/lib/utils/stack-inference.js +8 -6
  60. package/dist/lib/utils/stack-inference.js.map +1 -1
  61. package/dist/lib/xdg-config.d.ts +3 -1
  62. package/dist/lib/xdg-config.d.ts.map +1 -1
  63. package/dist/lib/xdg-config.js +7 -1
  64. package/dist/lib/xdg-config.js.map +1 -1
  65. package/dist/package.json +4 -2
  66. package/dist/scripts/get-dev-version.d.ts +16 -0
  67. package/dist/scripts/get-dev-version.d.ts.map +1 -0
  68. package/dist/scripts/get-dev-version.js +57 -0
  69. package/dist/scripts/get-dev-version.js.map +1 -0
  70. package/package.json +4 -2
  71. package/dist/lib/xdg-cli-wrapper.d.ts +0 -113
  72. package/dist/lib/xdg-cli-wrapper.d.ts.map +0 -1
  73. package/dist/lib/xdg-cli-wrapper.js +0 -289
  74. package/dist/lib/xdg-cli-wrapper.js.map +0 -1
  75. package/dist/scripts/infer-quilt-config.d.ts +0 -47
  76. package/dist/scripts/infer-quilt-config.d.ts.map +0 -1
  77. package/dist/scripts/infer-quilt-config.js +0 -315
  78. package/dist/scripts/infer-quilt-config.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltdata/benchling-webhook",
3
- "version": "0.7.2-20251106T010445Z",
3
+ "version": "0.7.2",
4
4
  "description": "AWS CDK deployment for Benchling webhook processing using Fargate - Deploy directly with npx",
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.ts",
@@ -28,18 +28,20 @@
28
28
  "prepublishOnly": "npm run build",
29
29
  "setup": "ts-node bin/cli.ts",
30
30
  "setup:dev": "ts-node bin/cli.ts --profile dev",
31
+ "setup:prod": "ts-node bin/cli.ts --profile prod",
31
32
  "setup:health": "ts-node bin/cli.ts health-check",
32
33
  "setup:infer": "ts-node bin/commands/infer-quilt-config.ts",
33
34
  "setup:profile": "ts-node bin/cli.ts setup-profile",
34
35
  "setup:sync-secrets": "ts-node bin/commands/sync-secrets.ts",
35
36
  "test": "npm run build:typecheck && npm run test:ts && npm run test:python",
36
37
  "test:ci": "npm run build:typecheck && npm run test:ts",
37
- "test:dev": "make -C docker test-deployed-dev",
38
+ "test:dev": "make -C docker test-deployed-dev PROFILE=dev",
38
39
  "test:local": "make -C docker build && make -C docker test-local",
39
40
  "test:prod": "make -C docker test-deployed-prod",
40
41
  "test:python": "make -C docker test-unit",
41
42
  "test:ts": "cross-env NODE_ENV=test jest --maxWorkers=50%",
42
43
  "version": "ts-node scripts/version.ts",
44
+ "version:dev": "ts-node scripts/get-dev-version.ts",
43
45
  "version:tag": "ts-node scripts/version.ts tag",
44
46
  "version:tag:dev": "ts-node scripts/version.ts tag dev"
45
47
  },
@@ -1,113 +0,0 @@
1
- /**
2
- * TypeScript Wrapper for Python XDG CLI
3
- *
4
- * Provides type-safe access to the Python XDG configuration CLI from TypeScript.
5
- * This ensures consistency by delegating all XDG operations to the Python implementation.
6
- *
7
- * @module lib/xdg-cli-wrapper
8
- */
9
- import type { CompleteConfig, DerivedConfig, UserConfig, DeploymentConfig, ProfileName, ConfigType } from "./types/config";
10
- /**
11
- * CLI execution options
12
- */
13
- interface CLIOptions {
14
- profile?: ProfileName;
15
- type?: ConfigType;
16
- validate?: boolean;
17
- backup?: boolean;
18
- pretty?: boolean;
19
- verbose?: boolean;
20
- }
21
- /**
22
- * Base class for XDG CLI errors
23
- */
24
- export declare class XDGCLIError extends Error {
25
- readonly command: string;
26
- readonly exitCode: number;
27
- readonly stderr: string;
28
- constructor(message: string, command: string, exitCode: number, stderr: string);
29
- }
30
- /**
31
- * XDG CLI Wrapper Class
32
- *
33
- * Provides TypeScript interface to Python XDG CLI operations.
34
- */
35
- export declare class XDGCLIWrapper {
36
- /**
37
- * Read configuration from XDG storage
38
- *
39
- * @param options - Read options
40
- * @returns Configuration data
41
- */
42
- static read<T = UserConfig>(options?: CLIOptions): T;
43
- /**
44
- * Write configuration to XDG storage
45
- *
46
- * @param data - Configuration data to write
47
- * @param options - Write options
48
- */
49
- static write(data: Record<string, unknown>, options?: CLIOptions): void;
50
- /**
51
- * Merge data into existing configuration
52
- *
53
- * @param data - Data to merge
54
- * @param options - Merge options
55
- */
56
- static merge(data: Record<string, unknown>, options?: CLIOptions): void;
57
- /**
58
- * Validate configuration against schema
59
- *
60
- * @param options - Validation options
61
- * @returns True if valid, false otherwise
62
- */
63
- static validate(options?: CLIOptions): boolean;
64
- /**
65
- * List all available profiles
66
- *
67
- * @returns Array of profile names
68
- */
69
- static listProfiles(): ProfileName[];
70
- /**
71
- * Export configuration as JSON
72
- *
73
- * @param options - Export options
74
- * @returns Configuration data
75
- */
76
- static export<T = CompleteConfig>(options?: CLIOptions): T;
77
- /**
78
- * Get a specific configuration field value
79
- *
80
- * @param key - Field key (supports dot notation)
81
- * @param options - Get options
82
- * @returns Field value
83
- */
84
- static get(key: string, options?: CLIOptions & {
85
- default?: string;
86
- }): unknown;
87
- /**
88
- * Set a specific configuration field value
89
- *
90
- * @param key - Field key (supports dot notation)
91
- * @param value - Value to set
92
- * @param options - Set options
93
- */
94
- static set(key: string, value: unknown, options?: CLIOptions): void;
95
- /**
96
- * Read user configuration
97
- */
98
- static readUser(profile?: ProfileName): UserConfig;
99
- /**
100
- * Read derived configuration
101
- */
102
- static readDerived(profile?: ProfileName): DerivedConfig;
103
- /**
104
- * Read deployment configuration
105
- */
106
- static readDeploy(profile?: ProfileName): DeploymentConfig;
107
- /**
108
- * Read complete merged configuration
109
- */
110
- static readComplete(profile?: ProfileName): CompleteConfig;
111
- }
112
- export {};
113
- //# sourceMappingURL=xdg-cli-wrapper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xdg-cli-wrapper.d.ts","sourceRoot":"","sources":["../../lib/xdg-cli-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3H;;GAEG;AACH,UAAU,UAAU;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;aAGd,OAAO,EAAE,MAAM;aACf,QAAQ,EAAE,MAAM;aAChB,MAAM,EAAE,MAAM;gBAH9B,OAAO,E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;IAIrE;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,OAAO,GAAE,WAAuB,GAAG,cAAc;CAGxE"}
@@ -1,289 +0,0 @@
1
- "use strict";
2
- /**
3
- * TypeScript Wrapper for Python XDG CLI
4
- *
5
- * Provides type-safe access to the Python XDG configuration CLI from TypeScript.
6
- * This ensures consistency by delegating all XDG operations to the Python implementation.
7
- *
8
- * @module lib/xdg-cli-wrapper
9
- */
10
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- var desc = Object.getOwnPropertyDescriptor(m, k);
13
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
- desc = { enumerable: true, get: function() { return m[k]; } };
15
- }
16
- Object.defineProperty(o, k2, desc);
17
- }) : (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- }));
21
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
- Object.defineProperty(o, "default", { enumerable: true, value: v });
23
- }) : function(o, v) {
24
- o["default"] = v;
25
- });
26
- var __importStar = (this && this.__importStar) || (function () {
27
- var ownKeys = function(o) {
28
- ownKeys = Object.getOwnPropertyNames || function (o) {
29
- var ar = [];
30
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
31
- return ar;
32
- };
33
- return ownKeys(o);
34
- };
35
- return function (mod) {
36
- if (mod && mod.__esModule) return mod;
37
- var result = {};
38
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
39
- __setModuleDefault(result, mod);
40
- return result;
41
- };
42
- })();
43
- Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.XDGCLIWrapper = exports.XDGCLIError = void 0;
45
- const child_process_1 = require("child_process");
46
- const path = __importStar(require("path"));
47
- /**
48
- * Base class for XDG CLI errors
49
- */
50
- class XDGCLIError extends Error {
51
- constructor(message, command, exitCode, stderr) {
52
- super(message);
53
- this.command = command;
54
- this.exitCode = exitCode;
55
- this.stderr = stderr;
56
- this.name = "XDGCLIError";
57
- }
58
- }
59
- exports.XDGCLIError = XDGCLIError;
60
- /**
61
- * Get the path to the Python CLI script
62
- */
63
- function getCLIPath() {
64
- return path.join(__dirname, "..", "docker", "scripts", "benchling-webhook-config");
65
- }
66
- /**
67
- * Execute Python CLI command
68
- */
69
- function executeCLI(args, options = {}) {
70
- const cliPath = getCLIPath();
71
- const command = `python3 ${cliPath} ${args.join(" ")}`;
72
- try {
73
- const result = (0, child_process_1.execSync)(command, {
74
- encoding: "utf-8",
75
- stdio: options.captureStdout ? "pipe" : ["pipe", "pipe", "inherit"],
76
- maxBuffer: 10 * 1024 * 1024, // 10MB buffer
77
- });
78
- return result;
79
- }
80
- catch (error) {
81
- const err = error;
82
- const stderr = err.stderr?.toString() || err.message || "Unknown error";
83
- const exitCode = err.status || 1;
84
- throw new XDGCLIError(`XDG CLI command failed: ${command}`, command, exitCode, stderr);
85
- }
86
- }
87
- /**
88
- * XDG CLI Wrapper Class
89
- *
90
- * Provides TypeScript interface to Python XDG CLI operations.
91
- */
92
- class XDGCLIWrapper {
93
- /**
94
- * Read configuration from XDG storage
95
- *
96
- * @param options - Read options
97
- * @returns Configuration data
98
- */
99
- static read(options = {}) {
100
- const args = ["read"];
101
- if (options.profile) {
102
- args.push("--profile", options.profile);
103
- }
104
- if (options.type) {
105
- args.push("--type", options.type);
106
- }
107
- if (options.validate) {
108
- args.push("--validate");
109
- }
110
- args.push("--compact"); // Always use compact for parsing
111
- const output = executeCLI(args, { captureStdout: true, verbose: options.verbose });
112
- return JSON.parse(output);
113
- }
114
- /**
115
- * Write configuration to XDG storage
116
- *
117
- * @param data - Configuration data to write
118
- * @param options - Write options
119
- */
120
- static write(data, options = {}) {
121
- const args = ["write", JSON.stringify(data)];
122
- if (options.profile) {
123
- args.push("--profile", options.profile);
124
- }
125
- if (options.type) {
126
- args.push("--type", options.type);
127
- }
128
- if (options.validate !== false) {
129
- args.push("--validate");
130
- }
131
- if (options.backup !== false) {
132
- args.push("--backup");
133
- }
134
- executeCLI(args, { verbose: options.verbose });
135
- }
136
- /**
137
- * Merge data into existing configuration
138
- *
139
- * @param data - Data to merge
140
- * @param options - Merge options
141
- */
142
- static merge(data, options = {}) {
143
- const args = ["merge", JSON.stringify(data)];
144
- if (options.profile) {
145
- args.push("--profile", options.profile);
146
- }
147
- if (options.type) {
148
- args.push("--type", options.type);
149
- }
150
- if (options.validate !== false) {
151
- args.push("--validate");
152
- }
153
- if (options.backup !== false) {
154
- args.push("--backup");
155
- }
156
- executeCLI(args, { verbose: options.verbose });
157
- }
158
- /**
159
- * Validate configuration against schema
160
- *
161
- * @param options - Validation options
162
- * @returns True if valid, false otherwise
163
- */
164
- static validate(options = {}) {
165
- const args = ["validate"];
166
- if (options.profile) {
167
- args.push("--profile", options.profile);
168
- }
169
- if (options.type) {
170
- args.push("--type", options.type);
171
- }
172
- try {
173
- executeCLI(args, { verbose: options.verbose });
174
- return true;
175
- }
176
- catch (error) {
177
- if (error instanceof XDGCLIError) {
178
- return false;
179
- }
180
- throw error;
181
- }
182
- }
183
- /**
184
- * List all available profiles
185
- *
186
- * @returns Array of profile names
187
- */
188
- static listProfiles() {
189
- const output = executeCLI(["list"], { captureStdout: true });
190
- // Parse output: "Available profiles:\n default\n dev\n..."
191
- const lines = output.split("\n").filter((line) => line.trim() && !line.includes("Available profiles"));
192
- return lines.map((line) => line.trim().split(/\s+/)[0]);
193
- }
194
- /**
195
- * Export configuration as JSON
196
- *
197
- * @param options - Export options
198
- * @returns Configuration data
199
- */
200
- static export(options = {}) {
201
- const args = ["export"];
202
- if (options.profile) {
203
- args.push("--profile", options.profile);
204
- }
205
- if (options.type) {
206
- args.push("--type", options.type);
207
- }
208
- args.push("--compact");
209
- const output = executeCLI(args, { captureStdout: true, verbose: options.verbose });
210
- return JSON.parse(output);
211
- }
212
- /**
213
- * Get a specific configuration field value
214
- *
215
- * @param key - Field key (supports dot notation)
216
- * @param options - Get options
217
- * @returns Field value
218
- */
219
- static get(key, options = {}) {
220
- const args = ["get", key];
221
- if (options.profile) {
222
- args.push("--profile", options.profile);
223
- }
224
- if (options.type) {
225
- args.push("--type", options.type);
226
- }
227
- if (options.default) {
228
- args.push("--default", options.default);
229
- }
230
- const output = executeCLI(args, { captureStdout: true, verbose: options.verbose });
231
- // Try to parse as JSON, otherwise return as string
232
- try {
233
- return JSON.parse(output.trim());
234
- }
235
- catch {
236
- return output.trim();
237
- }
238
- }
239
- /**
240
- * Set a specific configuration field value
241
- *
242
- * @param key - Field key (supports dot notation)
243
- * @param value - Value to set
244
- * @param options - Set options
245
- */
246
- static set(key, value, options = {}) {
247
- const isObject = typeof value === "object";
248
- const args = ["set", key, isObject ? JSON.stringify(value) : String(value)];
249
- if (options.profile) {
250
- args.push("--profile", options.profile);
251
- }
252
- if (options.type) {
253
- args.push("--type", options.type);
254
- }
255
- if (isObject) {
256
- args.push("--json");
257
- }
258
- if (options.backup !== false) {
259
- args.push("--backup");
260
- }
261
- executeCLI(args, { verbose: options.verbose });
262
- }
263
- /**
264
- * Read user configuration
265
- */
266
- static readUser(profile = "default") {
267
- return this.read({ profile, type: "user" });
268
- }
269
- /**
270
- * Read derived configuration
271
- */
272
- static readDerived(profile = "default") {
273
- return this.read({ profile, type: "derived" });
274
- }
275
- /**
276
- * Read deployment configuration
277
- */
278
- static readDeploy(profile = "default") {
279
- return this.read({ profile, type: "deploy" });
280
- }
281
- /**
282
- * Read complete merged configuration
283
- */
284
- static readComplete(profile = "default") {
285
- return this.export({ profile, type: "complete" });
286
- }
287
- }
288
- exports.XDGCLIWrapper = XDGCLIWrapper;
289
- //# sourceMappingURL=xdg-cli-wrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xdg-cli-wrapper.js","sourceRoot":"","sources":["../../lib/xdg-cli-wrapper.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;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E,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,UAAuB,SAAS;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAmB,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAuB,SAAS;QAChD,OAAO,IAAI,CAAC,MAAM,CAAiB,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IACtE,CAAC;CACJ;AA3ND,sCA2NC"}
@@ -1,47 +0,0 @@
1
- #!/usr/bin/env ts-node
2
- /**
3
- * Quilt Catalog Auto-Inference (v0.7.0)
4
- *
5
- * Automatically infers Quilt catalog configuration from:
6
- * 1. quilt3 CLI command (`quilt3 config`)
7
- * 2. AWS CloudFormation stack inspection
8
- * 3. Interactive catalog selection (if multiple catalogs available)
9
- *
10
- * Returns configuration in v0.7.0 ProfileConfig format.
11
- *
12
- * @module scripts/infer-quilt-config
13
- */
14
- import { QuiltConfig } from "../lib/types/config";
15
- /**
16
- * Inference options
17
- */
18
- export interface InferenceOptions {
19
- region?: string;
20
- profile?: string;
21
- interactive?: boolean;
22
- }
23
- /**
24
- * Infers Quilt configuration from multiple sources
25
- *
26
- * Priority order:
27
- * 1. quilt3 CLI command (`quilt3 config`)
28
- * 2. CloudFormation stack inspection
29
- * 3. Interactive selection if multiple options
30
- *
31
- * Returns configuration in v0.7.0 ProfileConfig.quilt format.
32
- *
33
- * @param options - Inference options
34
- * @returns Quilt configuration object
35
- *
36
- * @example
37
- * ```typescript
38
- * const quiltConfig = await inferQuiltConfig({
39
- * region: "us-east-1",
40
- * profile: "default",
41
- * interactive: true
42
- * });
43
- * console.log(quiltConfig.stackArn);
44
- * ```
45
- */
46
- export declare function inferQuiltConfig(options?: InferenceOptions): Promise<Partial<QuiltConfig>>;
47
- //# sourceMappingURL=infer-quilt-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infer-quilt-config.d.ts","sourceRoot":"","sources":["../../scripts/infer-quilt-config.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;GAWG;AAMH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAsBlD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AA8ID;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAkFpG"}