type-git 0.0.1 → 0.0.3
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.
- package/README.md +3 -6
- package/dist/adapters/bun/index.cjs +395 -0
- package/dist/adapters/bun/index.cjs.map +1 -0
- package/dist/adapters/bun/index.d.cts +44 -0
- package/dist/adapters/bun/index.d.ts +38 -5
- package/dist/adapters/bun/index.js +362 -13
- package/dist/adapters/bun/index.js.map +1 -1
- package/dist/adapters/deno/index.cjs +443 -0
- package/dist/adapters/deno/index.cjs.map +1 -0
- package/dist/adapters/deno/index.d.cts +46 -0
- package/dist/adapters/deno/index.d.ts +40 -5
- package/dist/adapters/deno/index.js +410 -13
- package/dist/adapters/deno/index.js.map +1 -1
- package/dist/adapters/node/index.cjs +5625 -0
- package/dist/adapters/node/index.cjs.map +1 -0
- package/dist/adapters/node/index.d.cts +2 -0
- package/dist/adapters/node/index.d.ts +2 -61
- package/dist/adapters/node/index.js +5577 -68
- package/dist/adapters/node/index.js.map +1 -1
- package/dist/{core/types.d.ts → adapters-w9tZ_Qbd.d.cts} +225 -29
- package/dist/adapters-w9tZ_Qbd.d.ts +572 -0
- package/dist/index-D9acU30I.d.ts +3649 -0
- package/dist/index-DRd85eN5.d.cts +3649 -0
- package/dist/index.cjs +5744 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +208 -0
- package/dist/index.d.ts +206 -7
- package/dist/index.js +5685 -13
- package/dist/index.js.map +1 -1
- package/package.json +19 -8
- package/dist/adapters/bun/exec.d.ts +0 -13
- package/dist/adapters/bun/exec.d.ts.map +0 -1
- package/dist/adapters/bun/exec.js +0 -242
- package/dist/adapters/bun/exec.js.map +0 -1
- package/dist/adapters/bun/fs.d.ts +0 -20
- package/dist/adapters/bun/fs.d.ts.map +0 -1
- package/dist/adapters/bun/fs.js +0 -148
- package/dist/adapters/bun/fs.js.map +0 -1
- package/dist/adapters/bun/index.d.ts.map +0 -1
- package/dist/adapters/deno/exec.d.ts +0 -14
- package/dist/adapters/deno/exec.d.ts.map +0 -1
- package/dist/adapters/deno/exec.js +0 -266
- package/dist/adapters/deno/exec.js.map +0 -1
- package/dist/adapters/deno/fs.d.ts +0 -21
- package/dist/adapters/deno/fs.d.ts.map +0 -1
- package/dist/adapters/deno/fs.js +0 -191
- package/dist/adapters/deno/fs.js.map +0 -1
- package/dist/adapters/deno/index.d.ts.map +0 -1
- package/dist/adapters/node/exec.d.ts +0 -11
- package/dist/adapters/node/exec.d.ts.map +0 -1
- package/dist/adapters/node/exec.js +0 -161
- package/dist/adapters/node/exec.js.map +0 -1
- package/dist/adapters/node/fs.d.ts +0 -18
- package/dist/adapters/node/fs.d.ts.map +0 -1
- package/dist/adapters/node/fs.js +0 -164
- package/dist/adapters/node/fs.js.map +0 -1
- package/dist/adapters/node/index.d.ts.map +0 -1
- package/dist/core/adapters.d.ts +0 -192
- package/dist/core/adapters.d.ts.map +0 -1
- package/dist/core/adapters.js +0 -10
- package/dist/core/adapters.js.map +0 -1
- package/dist/core/git.d.ts +0 -160
- package/dist/core/git.d.ts.map +0 -1
- package/dist/core/git.js +0 -5
- package/dist/core/git.js.map +0 -1
- package/dist/core/index.d.ts +0 -8
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -8
- package/dist/core/index.js.map +0 -1
- package/dist/core/repo.d.ts +0 -1275
- package/dist/core/repo.d.ts.map +0 -1
- package/dist/core/repo.js +0 -5
- package/dist/core/repo.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -100
- package/dist/core/types.js.map +0 -1
- package/dist/impl/bare-repo-impl.d.ts +0 -72
- package/dist/impl/bare-repo-impl.d.ts.map +0 -1
- package/dist/impl/bare-repo-impl.js +0 -328
- package/dist/impl/bare-repo-impl.js.map +0 -1
- package/dist/impl/git-impl.d.ts +0 -92
- package/dist/impl/git-impl.d.ts.map +0 -1
- package/dist/impl/git-impl.js +0 -350
- package/dist/impl/git-impl.js.map +0 -1
- package/dist/impl/index.d.ts +0 -7
- package/dist/impl/index.d.ts.map +0 -1
- package/dist/impl/index.js +0 -7
- package/dist/impl/index.js.map +0 -1
- package/dist/impl/worktree-repo-impl.d.ts +0 -180
- package/dist/impl/worktree-repo-impl.d.ts.map +0 -1
- package/dist/impl/worktree-repo-impl.js +0 -1931
- package/dist/impl/worktree-repo-impl.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/parsers/index.d.ts +0 -230
- package/dist/parsers/index.d.ts.map +0 -1
- package/dist/parsers/index.js +0 -529
- package/dist/parsers/index.js.map +0 -1
- package/dist/runner/cli-runner.d.ts +0 -94
- package/dist/runner/cli-runner.d.ts.map +0 -1
- package/dist/runner/cli-runner.js +0 -315
- package/dist/runner/cli-runner.js.map +0 -1
- package/dist/runner/index.d.ts +0 -5
- package/dist/runner/index.d.ts.map +0 -1
- package/dist/runner/index.js +0 -5
- package/dist/runner/index.js.map +0 -1
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Runner - Core execution engine for Git commands
|
|
3
|
-
*
|
|
4
|
-
* This module provides:
|
|
5
|
-
* - CliRunner: Executes Git commands with progress tracking and abort support
|
|
6
|
-
* - Progress collection from stderr (Git and LFS)
|
|
7
|
-
* - Error mapping from Git exit codes
|
|
8
|
-
*/
|
|
9
|
-
import process from 'node:process';
|
|
10
|
-
import { GitError } from '../core/types.js';
|
|
11
|
-
import { detectErrorCategory, parseGitProgress, parseLfsStderrProgress } from '../parsers/index.js';
|
|
12
|
-
/**
|
|
13
|
-
* Regex patterns for error message extraction
|
|
14
|
-
*/
|
|
15
|
-
const FATAL_ERROR_PATTERN = /fatal:\s*(.+)/i;
|
|
16
|
-
const ERROR_PATTERN = /error:\s*(.+)/i;
|
|
17
|
-
/**
|
|
18
|
-
* Regex pattern for splitting lines by carriage return or newline
|
|
19
|
-
*/
|
|
20
|
-
const LINE_SEPARATOR_PATTERN = /\r|\n/;
|
|
21
|
-
/**
|
|
22
|
-
* CLI Runner for executing Git commands
|
|
23
|
-
*
|
|
24
|
-
* Handles:
|
|
25
|
-
* - Command construction based on execution context
|
|
26
|
-
* - Progress tracking from stderr (Git and LFS)
|
|
27
|
-
* - Abort signal handling
|
|
28
|
-
* - Error mapping
|
|
29
|
-
*/
|
|
30
|
-
export class CliRunner {
|
|
31
|
-
exec;
|
|
32
|
-
gitBinary;
|
|
33
|
-
baseEnv;
|
|
34
|
-
pathPrefix;
|
|
35
|
-
home;
|
|
36
|
-
credential;
|
|
37
|
-
constructor(adapters, options) {
|
|
38
|
-
this.exec = adapters.exec;
|
|
39
|
-
this.gitBinary = options?.gitBinary ?? 'git';
|
|
40
|
-
this.baseEnv = options?.env ?? {};
|
|
41
|
-
this.pathPrefix = options?.pathPrefix ?? [];
|
|
42
|
-
this.home = options?.home;
|
|
43
|
-
this.credential = options?.credential;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Create a new CliRunner with additional options merged
|
|
47
|
-
*
|
|
48
|
-
* Used to create a runner for a specific repository with custom environment
|
|
49
|
-
*/
|
|
50
|
-
withOptions(options) {
|
|
51
|
-
const mergedEnv = { ...this.baseEnv, ...options.env };
|
|
52
|
-
const mergedPathPrefix = [...this.pathPrefix, ...(options.pathPrefix ?? [])];
|
|
53
|
-
const home = options.home ?? this.home;
|
|
54
|
-
const credential = options.credential ?? this.credential;
|
|
55
|
-
return new CliRunner({
|
|
56
|
-
exec: this.exec,
|
|
57
|
-
fs: {
|
|
58
|
-
createTempFile: async () => '',
|
|
59
|
-
deleteFile: async () => undefined,
|
|
60
|
-
deleteDirectory: async () => undefined,
|
|
61
|
-
tail: async () => undefined,
|
|
62
|
-
exists: async () => false,
|
|
63
|
-
},
|
|
64
|
-
}, {
|
|
65
|
-
gitBinary: options.gitBinary ?? this.gitBinary,
|
|
66
|
-
env: mergedEnv,
|
|
67
|
-
pathPrefix: mergedPathPrefix,
|
|
68
|
-
home,
|
|
69
|
-
credential,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Build command argv based on execution context
|
|
74
|
-
*/
|
|
75
|
-
buildArgv(context, args) {
|
|
76
|
-
const argv = [this.gitBinary];
|
|
77
|
-
// Add credential helper configuration before context flags
|
|
78
|
-
if (this.credential?.helper) {
|
|
79
|
-
argv.push('-c', `credential.helper=${this.credential.helper}`);
|
|
80
|
-
}
|
|
81
|
-
switch (context.type) {
|
|
82
|
-
case 'global':
|
|
83
|
-
// No additional flags
|
|
84
|
-
break;
|
|
85
|
-
case 'worktree':
|
|
86
|
-
argv.push('-C', context.workdir);
|
|
87
|
-
break;
|
|
88
|
-
case 'bare':
|
|
89
|
-
argv.push('--git-dir', context.gitDir);
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
argv.push(...args);
|
|
93
|
-
return argv;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Build the effective environment for command execution
|
|
97
|
-
*
|
|
98
|
-
* Applies home directory and PATH prefix overrides
|
|
99
|
-
*/
|
|
100
|
-
buildEnv() {
|
|
101
|
-
const env = { ...this.baseEnv };
|
|
102
|
-
// Apply home directory override
|
|
103
|
-
if (this.home) {
|
|
104
|
-
env.HOME = this.home;
|
|
105
|
-
// Also set USERPROFILE for Windows compatibility
|
|
106
|
-
env.USERPROFILE = this.home;
|
|
107
|
-
}
|
|
108
|
-
// Collect all PATH prefixes
|
|
109
|
-
const allPathPrefixes = [...this.pathPrefix];
|
|
110
|
-
// Add credential helper path directory if specified
|
|
111
|
-
if (this.credential?.helperPath) {
|
|
112
|
-
const helperDir = this.extractDirectory(this.credential.helperPath);
|
|
113
|
-
if (helperDir) {
|
|
114
|
-
allPathPrefixes.unshift(helperDir);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
// Apply PATH prefix
|
|
118
|
-
if (allPathPrefixes.length > 0) {
|
|
119
|
-
const separator = process.platform === 'win32' ? ';' : ':';
|
|
120
|
-
const currentPath = process.env.PATH ?? '';
|
|
121
|
-
env.PATH = [...allPathPrefixes, currentPath].join(separator);
|
|
122
|
-
}
|
|
123
|
-
return env;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Extract directory from a file path
|
|
127
|
-
*/
|
|
128
|
-
extractDirectory(filePath) {
|
|
129
|
-
const separator = filePath.includes('/') ? '/' : '\\';
|
|
130
|
-
const lastIndex = filePath.lastIndexOf(separator);
|
|
131
|
-
if (lastIndex > 0) {
|
|
132
|
-
return filePath.substring(0, lastIndex);
|
|
133
|
-
}
|
|
134
|
-
return undefined;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Run a Git command
|
|
138
|
-
*/
|
|
139
|
-
async run(context, args, opts) {
|
|
140
|
-
const argv = this.buildArgv(context, args);
|
|
141
|
-
const { signal, onProgress, onLfsProgress } = opts ?? {};
|
|
142
|
-
const env = this.buildEnv();
|
|
143
|
-
// Enable LFS progress output to stderr when LFS progress callback is provided
|
|
144
|
-
if (onLfsProgress) {
|
|
145
|
-
env.GIT_LFS_FORCE_PROGRESS = '1';
|
|
146
|
-
}
|
|
147
|
-
// Buffer for handling carriage return lines (LFS uses \r for in-place updates)
|
|
148
|
-
let stderrBuffer = '';
|
|
149
|
-
const result = await this.exec.spawn({
|
|
150
|
-
argv,
|
|
151
|
-
env,
|
|
152
|
-
cwd: context.type === 'worktree' ? context.workdir : undefined,
|
|
153
|
-
signal,
|
|
154
|
-
}, onProgress || onLfsProgress
|
|
155
|
-
? {
|
|
156
|
-
onStderr: (chunk) => {
|
|
157
|
-
// Accumulate chunk into buffer
|
|
158
|
-
stderrBuffer += chunk;
|
|
159
|
-
// Process complete lines (split by \r or \n)
|
|
160
|
-
// Keep incomplete line in buffer
|
|
161
|
-
const lines = stderrBuffer.split(LINE_SEPARATOR_PATTERN);
|
|
162
|
-
stderrBuffer = lines.pop() ?? '';
|
|
163
|
-
for (const line of lines) {
|
|
164
|
-
const trimmed = line.trim();
|
|
165
|
-
if (!trimmed) {
|
|
166
|
-
continue;
|
|
167
|
-
}
|
|
168
|
-
// Try to parse as LFS progress first (more specific patterns)
|
|
169
|
-
if (onLfsProgress) {
|
|
170
|
-
const lfsProgressInfo = parseLfsStderrProgress(trimmed);
|
|
171
|
-
if (lfsProgressInfo) {
|
|
172
|
-
const lfsProgress = {
|
|
173
|
-
direction: lfsProgressInfo.direction,
|
|
174
|
-
bytesSoFar: lfsProgressInfo.bytesSoFar,
|
|
175
|
-
bytesTotal: lfsProgressInfo.bytesTotal,
|
|
176
|
-
bitrate: lfsProgressInfo.bitrate ?? undefined,
|
|
177
|
-
filesCompleted: lfsProgressInfo.filesCompleted,
|
|
178
|
-
filesTotal: lfsProgressInfo.filesTotal,
|
|
179
|
-
percent: lfsProgressInfo.percent,
|
|
180
|
-
};
|
|
181
|
-
onLfsProgress(lfsProgress);
|
|
182
|
-
continue;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
// Try to parse as Git progress
|
|
186
|
-
if (onProgress) {
|
|
187
|
-
const gitProgressInfo = parseGitProgress(trimmed);
|
|
188
|
-
if (gitProgressInfo) {
|
|
189
|
-
const gitProgress = {
|
|
190
|
-
phase: gitProgressInfo.phase,
|
|
191
|
-
current: gitProgressInfo.current,
|
|
192
|
-
total: gitProgressInfo.total,
|
|
193
|
-
percent: gitProgressInfo.percent,
|
|
194
|
-
message: trimmed,
|
|
195
|
-
};
|
|
196
|
-
onProgress(gitProgress);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
}
|
|
202
|
-
: undefined);
|
|
203
|
-
// Process any remaining content in buffer
|
|
204
|
-
if (stderrBuffer.trim() && (onProgress || onLfsProgress)) {
|
|
205
|
-
const trimmed = stderrBuffer.trim();
|
|
206
|
-
if (onLfsProgress) {
|
|
207
|
-
const lfsProgressInfo = parseLfsStderrProgress(trimmed);
|
|
208
|
-
if (lfsProgressInfo) {
|
|
209
|
-
const lfsProgress = {
|
|
210
|
-
direction: lfsProgressInfo.direction,
|
|
211
|
-
bytesSoFar: lfsProgressInfo.bytesSoFar,
|
|
212
|
-
bytesTotal: lfsProgressInfo.bytesTotal,
|
|
213
|
-
bitrate: lfsProgressInfo.bitrate ?? undefined,
|
|
214
|
-
filesCompleted: lfsProgressInfo.filesCompleted,
|
|
215
|
-
filesTotal: lfsProgressInfo.filesTotal,
|
|
216
|
-
percent: lfsProgressInfo.percent,
|
|
217
|
-
};
|
|
218
|
-
onLfsProgress(lfsProgress);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
if (onProgress && !onLfsProgress) {
|
|
222
|
-
const gitProgressInfo = parseGitProgress(trimmed);
|
|
223
|
-
if (gitProgressInfo) {
|
|
224
|
-
const gitProgress = {
|
|
225
|
-
phase: gitProgressInfo.phase,
|
|
226
|
-
current: gitProgressInfo.current,
|
|
227
|
-
total: gitProgressInfo.total,
|
|
228
|
-
percent: gitProgressInfo.percent,
|
|
229
|
-
message: trimmed,
|
|
230
|
-
};
|
|
231
|
-
onProgress(gitProgress);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
return {
|
|
236
|
-
stdout: result.stdout,
|
|
237
|
-
stderr: result.stderr,
|
|
238
|
-
exitCode: result.exitCode,
|
|
239
|
-
aborted: result.aborted,
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Map Git result to GitError if needed
|
|
244
|
-
*/
|
|
245
|
-
mapError(result, context, argv) {
|
|
246
|
-
if (result.aborted) {
|
|
247
|
-
return new GitError('Aborted', 'Command was aborted', {
|
|
248
|
-
argv,
|
|
249
|
-
exitCode: result.exitCode,
|
|
250
|
-
stdout: result.stdout,
|
|
251
|
-
stderr: result.stderr,
|
|
252
|
-
...(context.type === 'worktree' && { workdir: context.workdir }),
|
|
253
|
-
...(context.type === 'bare' && { gitDir: context.gitDir }),
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
if (result.exitCode !== 0) {
|
|
257
|
-
const kind = this.classifyError(result);
|
|
258
|
-
const message = this.extractErrorMessage(result);
|
|
259
|
-
const category = detectErrorCategory(result.stderr);
|
|
260
|
-
return new GitError(kind, message, {
|
|
261
|
-
argv,
|
|
262
|
-
exitCode: result.exitCode,
|
|
263
|
-
stdout: result.stdout,
|
|
264
|
-
stderr: result.stderr,
|
|
265
|
-
...(context.type === 'worktree' && { workdir: context.workdir }),
|
|
266
|
-
...(context.type === 'bare' && { gitDir: context.gitDir }),
|
|
267
|
-
}, category);
|
|
268
|
-
}
|
|
269
|
-
return null;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Classify error type based on stderr content
|
|
273
|
-
*/
|
|
274
|
-
classifyError(result) {
|
|
275
|
-
const stderr = result.stderr.toLowerCase();
|
|
276
|
-
// Spawn failures (usually exit code -1 or specific patterns)
|
|
277
|
-
if (result.exitCode === -1 || stderr.includes('command not found')) {
|
|
278
|
-
return 'SpawnFailed';
|
|
279
|
-
}
|
|
280
|
-
// All other non-zero exits
|
|
281
|
-
return 'NonZeroExit';
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Extract user-friendly error message from stderr
|
|
285
|
-
*/
|
|
286
|
-
extractErrorMessage(result) {
|
|
287
|
-
const stderr = result.stderr.trim();
|
|
288
|
-
// Look for "fatal:" or "error:" prefixed messages
|
|
289
|
-
const fatalMatch = stderr.match(FATAL_ERROR_PATTERN);
|
|
290
|
-
const fatalMessage = fatalMatch?.[1];
|
|
291
|
-
if (fatalMessage) {
|
|
292
|
-
return fatalMessage;
|
|
293
|
-
}
|
|
294
|
-
const errorMatch = stderr.match(ERROR_PATTERN);
|
|
295
|
-
const errorMessage = errorMatch?.[1];
|
|
296
|
-
if (errorMessage) {
|
|
297
|
-
return errorMessage;
|
|
298
|
-
}
|
|
299
|
-
// Return first line or generic message
|
|
300
|
-
const firstLine = stderr.split('\n')[0];
|
|
301
|
-
return firstLine || `Git exited with code ${result.exitCode}`;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Run a command and throw on error
|
|
305
|
-
*/
|
|
306
|
-
async runOrThrow(context, args, opts) {
|
|
307
|
-
const result = await this.run(context, args, opts);
|
|
308
|
-
const error = this.mapError(result, context, this.buildArgv(context, args));
|
|
309
|
-
if (error) {
|
|
310
|
-
throw error;
|
|
311
|
-
}
|
|
312
|
-
return result;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
//# sourceMappingURL=cli-runner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-runner.js","sourceRoot":"","sources":["../../src/runner/cli-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,OAAO,MAAM,cAAc,CAAC;AAUnC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEpG;;GAEG;AACH,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAC7C,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAEvC;;GAEG;AACH,MAAM,sBAAsB,GAAG,OAAO,CAAC;AA4BvC;;;;;;;;GAQG;AACH,MAAM,OAAO,SAAS;IACH,IAAI,CAAc;IAClB,SAAS,CAAS;IAClB,OAAO,CAAyB;IAChC,UAAU,CAAgB;IAC1B,IAAI,CAAqB;IACzB,UAAU,CAAqC;IAEhE,YAAmB,QAAyB,EAAE,OAA0B;QACtE,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,OAAO,EAAE,SAAS,IAAI,KAAK,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,C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AC,CAAC,CAAC,CAAC,CAAC;QACxC,OAAO,SAAS,IAAI,wBAAwB,MAAM,CAAC,QAAQ,EAAE,CAAC;IAChE,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,UAAU,CACrB,OAAyB,EACzB,IAAmB,EACnB,IAAe;QAEf,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACnD,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;QAE5E,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,KAAK,CAAC;QACd,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
package/dist/runner/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runner/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/runner/index.js
DELETED
package/dist/runner/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runner/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,iBAAiB,CAAC"}
|