nx 22.5.1 → 22.5.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.
Files changed (79) hide show
  1. package/LICENSE +1 -1
  2. package/bin/init-local.d.ts.map +1 -1
  3. package/bin/init-local.js +1 -0
  4. package/bin/nx.js +6 -0
  5. package/package.json +14 -14
  6. package/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts.map +1 -1
  7. package/src/ai/set-up-ai-agents/set-up-ai-agents.js +1 -0
  8. package/src/command-line/configure-ai-agents/configure-ai-agents.d.ts.map +1 -1
  9. package/src/command-line/configure-ai-agents/configure-ai-agents.js +22 -0
  10. package/src/command-line/list/command-object.d.ts.map +1 -1
  11. package/src/command-line/list/command-object.js +6 -1
  12. package/src/command-line/list/list.d.ts +2 -0
  13. package/src/command-line/list/list.d.ts.map +1 -1
  14. package/src/command-line/list/list.js +5 -1
  15. package/src/command-line/nx-cloud/apply-locally/apply-locally.d.ts +5 -0
  16. package/src/command-line/nx-cloud/apply-locally/apply-locally.d.ts.map +1 -0
  17. package/src/command-line/nx-cloud/apply-locally/apply-locally.js +13 -0
  18. package/src/command-line/nx-cloud/apply-locally/command-object.d.ts +3 -0
  19. package/src/command-line/nx-cloud/apply-locally/command-object.d.ts.map +1 -0
  20. package/src/command-line/nx-cloud/apply-locally/command-object.js +15 -0
  21. package/src/command-line/nx-commands.d.ts.map +1 -1
  22. package/src/command-line/nx-commands.js +9 -7
  23. package/src/command-line/release/config/config.d.ts.map +1 -1
  24. package/src/command-line/release/config/config.js +11 -2
  25. package/src/command-line/release/index.d.ts +1 -1
  26. package/src/command-line/release/index.d.ts.map +1 -1
  27. package/src/command-line/release/release.d.ts +1 -1
  28. package/src/command-line/release/release.d.ts.map +1 -1
  29. package/src/command-line/release/utils/shared.d.ts +1 -1
  30. package/src/command-line/release/utils/shared.d.ts.map +1 -1
  31. package/src/command-line/release/utils/shared.js +23 -15
  32. package/src/command-line/watch/watch.js +4 -4
  33. package/src/core/graph/main.js +1 -1
  34. package/src/daemon/client/client.d.ts.map +1 -1
  35. package/src/daemon/client/client.js +6 -1
  36. package/src/daemon/server/project-graph-incremental-recomputation.d.ts.map +1 -1
  37. package/src/daemon/server/project-graph-incremental-recomputation.js +38 -10
  38. package/src/executors/run-commands/running-tasks.d.ts +1 -1
  39. package/src/executors/run-commands/running-tasks.d.ts.map +1 -1
  40. package/src/executors/run-commands/running-tasks.js +23 -17
  41. package/src/native/nx.wasm32-wasi.wasm +0 -0
  42. package/src/plugins/js/lock-file/project-graph-pruning.d.ts.map +1 -1
  43. package/src/plugins/js/lock-file/project-graph-pruning.js +3 -1
  44. package/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts.map +1 -1
  45. package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +6 -3
  46. package/src/plugins/js/utils/register.d.ts.map +1 -1
  47. package/src/plugins/js/utils/register.js +14 -0
  48. package/src/project-graph/plugins/isolation/isolated-plugin.d.ts.map +1 -1
  49. package/src/project-graph/plugins/isolation/isolated-plugin.js +42 -35
  50. package/src/tasks-runner/forked-process-task-runner.d.ts.map +1 -1
  51. package/src/tasks-runner/forked-process-task-runner.js +1 -5
  52. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts.map +1 -1
  53. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +1 -0
  54. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts.map +1 -1
  55. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +1 -0
  56. package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
  57. package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +15 -5
  58. package/src/tasks-runner/pseudo-terminal.d.ts +2 -2
  59. package/src/tasks-runner/pseudo-terminal.d.ts.map +1 -1
  60. package/src/tasks-runner/pseudo-terminal.js +7 -5
  61. package/src/tasks-runner/run-command.d.ts.map +1 -1
  62. package/src/tasks-runner/run-command.js +3 -1
  63. package/src/tasks-runner/running-tasks/batch-process.d.ts +0 -2
  64. package/src/tasks-runner/running-tasks/batch-process.d.ts.map +1 -1
  65. package/src/tasks-runner/running-tasks/batch-process.js +0 -6
  66. package/src/tasks-runner/running-tasks/node-child-process.d.ts +2 -1
  67. package/src/tasks-runner/running-tasks/node-child-process.d.ts.map +1 -1
  68. package/src/tasks-runner/running-tasks/node-child-process.js +8 -5
  69. package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
  70. package/src/tasks-runner/task-orchestrator.js +5 -17
  71. package/src/utils/output.d.ts.map +1 -1
  72. package/src/utils/output.js +6 -1
  73. package/src/utils/plugins/output.d.ts +29 -1
  74. package/src/utils/plugins/output.d.ts.map +1 -1
  75. package/src/utils/plugins/output.js +90 -1
  76. package/src/utils/plugins/plugin-capabilities.d.ts +1 -0
  77. package/src/utils/plugins/plugin-capabilities.d.ts.map +1 -1
  78. package/src/utils/plugins/plugin-capabilities.js +2 -0
  79. package/src/native/index.d.ts +0 -553
@@ -1,553 +0,0 @@
1
- /* auto-generated by NAPI-RS */
2
- /* eslint-disable */
3
-
4
- export declare class ExternalObject<T> {
5
- readonly '': {
6
- readonly '': unique symbol
7
- [K: symbol]: T
8
- }
9
- }
10
- export declare class AppLifeCycle {
11
- constructor(tasks: Array<Task>, initiatingTasks: Array<string>, runMode: RunMode, pinnedTasks: Array<string>, tuiCliArgs: TuiCliArgs, tuiConfig: TuiConfig, titleText: string, workspaceRoot: string, taskGraph: TaskGraph)
12
- startCommand(threadCount?: number | undefined | null): void
13
- scheduleTask(task: Task): void
14
- startTasks(tasks: Array<Task>, metadata: object): void
15
- printTaskTerminalOutput(task: Task, status: string, output: string): void
16
- endTasks(taskResults: Array<TaskResult>, metadata: object): void
17
- endCommand(): void
18
- __init(doneCallback: () => any): void
19
- registerRunningTask(taskId: string, parserAndWriter: ExternalObject<[ParserArc, WriterArc]>): void
20
- registerRunningTaskWithEmptyParser(taskId: string): void
21
- appendTaskOutput(taskId: string, output: string, isPtyOutput: boolean): void
22
- setTaskStatus(taskId: string, status: TaskStatus): void
23
- registerForcedShutdownCallback(forcedShutdownCallback: () => any): void
24
- __setCloudMessage(message: string): Promise<void>
25
- setEstimatedTaskTimings(timings: Record<string, number>): void
26
- registerRunningBatch(batchId: string, batchInfo: BatchInfo): void
27
- appendBatchOutput(batchId: string, output: string): void
28
- setBatchStatus(batchId: string, status: BatchStatus): void
29
- }
30
-
31
- export declare class ChildProcess {
32
- getParserAndWriter(): ExternalObject<[ParserArc, WriterArc]>
33
- getPid(): number
34
- kill(signal?: NodeJS.Signals): void
35
- onExit(callback: (message: string) => void): void
36
- onOutput(callback: (message: string) => void): void
37
- cleanup(): void
38
- }
39
-
40
- export declare class FileLock {
41
- locked: boolean
42
- constructor(lockFilePath: string)
43
- unlock(): void
44
- check(): boolean
45
- wait(): Promise<void>
46
- lock(): void
47
- }
48
-
49
- export declare class HashPlanInspector {
50
- constructor(allWorkspaceFiles: ExternalObject<Array<FileData>>, projectGraph: ExternalObject<ProjectGraph>, projectFileMap: ExternalObject<Record<string, Array<FileData>>>)
51
- inspect(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>): Record<string, string[]>
52
- }
53
-
54
- export declare class HashPlanner {
55
- constructor(nxJson: NxJson, projectGraph: ExternalObject<ProjectGraph>)
56
- getPlans(taskIds: Array<string>, taskGraph: TaskGraph): Record<string, string[]>
57
- getPlansReference(taskIds: Array<string>, taskGraph: TaskGraph): ExternalObject<Record<string, Array<HashInstruction>>>
58
- }
59
-
60
- export declare class HttpRemoteCache {
61
- constructor()
62
- retrieve(hash: string, cacheDirectory: string): Promise<CachedResult | null>
63
- store(hash: string, cacheDirectory: string, terminalOutput: string, code: number): Promise<boolean>
64
- }
65
-
66
- export declare class ImportResult {
67
- file: string
68
- sourceProject: string
69
- dynamicImportExpressions: Array<string>
70
- staticImportExpressions: Array<string>
71
- }
72
-
73
- export declare class NxCache {
74
- cacheDirectory: string
75
- constructor(workspaceRoot: string, cachePath: string, dbConnection: ExternalObject<NxDbConnection>, linkTaskDetails?: boolean | undefined | null, maxCacheSize?: number | undefined | null)
76
- get(hash: string): CachedResult | null
77
- put(hash: string, terminalOutput: string, outputs: Array<string>, code: number): Array<string>
78
- applyRemoteCacheResults(hash: string, result: CachedResult, outputs?: Array<string> | undefined | null): void
79
- getTaskOutputsPath(hash: string): string
80
- getCacheSize(): number
81
- copyFilesFromCache(cachedResult: CachedResult, outputs: Array<string>): number
82
- removeOldCacheRecords(): void
83
- checkCacheFsInSync(): boolean
84
- }
85
-
86
- export declare class NxConsolePreferences {
87
- constructor(homeDir: string)
88
- getAutoInstallPreference(): boolean | null
89
- setAutoInstallPreference(autoInstall: boolean): void
90
- }
91
-
92
- export declare class NxTaskHistory {
93
- constructor(db: ExternalObject<NxDbConnection>)
94
- recordTaskRuns(taskRuns: Array<TaskRun>): void
95
- getFlakyTasks(hashes: Array<string>): Array<string>
96
- getEstimatedTaskTimings(targets: Array<TaskTarget>): Record<string, number>
97
- }
98
-
99
- /**
100
- * High-performance metrics collector for Nx tasks
101
- * Thread-safe and designed for minimal overhead
102
- */
103
- export declare class ProcessMetricsCollector {
104
- /** Create a new ProcessMetricsCollector with default configuration */
105
- constructor()
106
- /**
107
- * Start metrics collection
108
- * Idempotent - safe to call multiple times
109
- */
110
- startCollection(): void
111
- /**
112
- * Stop metrics collection
113
- * Returns true if collection was stopped, false if not running
114
- */
115
- stopCollection(): boolean
116
- /**
117
- * Get system information (CPU cores and total memory)
118
- * This is separate from the collection interval and meant to be called imperatively
119
- */
120
- getSystemInfo(): SystemInfo
121
- /** Register the main CLI process for metrics collection */
122
- registerMainCliProcess(pid: number): void
123
- /** Register a subprocess of the main CLI for metrics collection */
124
- registerMainCliSubprocess(pid: number, alias?: string | undefined | null): void
125
- /** Register the daemon process for metrics collection */
126
- registerDaemonProcess(pid: number): void
127
- /**
128
- * Register a process for a specific task
129
- * Automatically creates the task if it doesn't exist
130
- */
131
- registerTaskProcess(taskId: string, pid: number): void
132
- /** Register a batch with multiple tasks sharing a worker */
133
- registerBatch(batchId: string, taskIds: Array<string>, pid: number): void
134
- /** Subscribe to push-based metrics notifications from TypeScript */
135
- subscribe(callback: (err: Error | null, event: MetricsUpdate) => void): void
136
- }
137
-
138
- export declare class RunningTasksService {
139
- constructor(db: ExternalObject<NxDbConnection>)
140
- getRunningTasks(ids: Array<string>): Array<string>
141
- addRunningTask(taskId: string): void
142
- removeRunningTask(taskId: string): void
143
- }
144
-
145
- export declare class RustPseudoTerminal {
146
- constructor()
147
- runCommand(command: string, commandDir?: string | undefined | null, jsEnv?: Record<string, string> | undefined | null, execArgv?: Array<string> | undefined | null, quiet?: boolean | undefined | null, tty?: boolean | undefined | null, commandLabel?: string | undefined | null): ChildProcess
148
- /**
149
- * This allows us to run a pseudoterminal with a fake node ipc channel
150
- * this makes it possible to be backwards compatible with the old implementation
151
- */
152
- fork(id: string, forkScript: string, pseudoIpcPath: string, commandDir: string | undefined | null, jsEnv: Record<string, string> | undefined | null, execArgv: Array<string> | undefined | null, quiet: boolean, commandLabel?: string | undefined | null): ChildProcess
153
- }
154
-
155
- export declare class TaskDetails {
156
- constructor(db: ExternalObject<NxDbConnection>)
157
- recordTaskDetails(tasks: Array<HashedTask>): void
158
- }
159
-
160
- export declare class TaskHasher {
161
- constructor(workspaceRoot: string, projectGraph: ExternalObject<ProjectGraph>, projectFileMap: ExternalObject<ProjectFiles>, allWorkspaceFiles: ExternalObject<Array<FileData>>, tsConfig: Buffer, tsConfigPaths: Record<string, Array<string>>, rootTsconfigPath?: string | undefined | null, options?: HasherOptions | undefined | null)
162
- hashPlans(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>, jsEnv: Record<string, string>, cwd: string): NapiDashMap
163
- }
164
-
165
- export declare class Watcher {
166
- origin: string
167
- /**
168
- * Creates a new Watcher instance.
169
- * Will always ignore directories from HARDCODED_IGNORE_PATTERNS plus
170
- * watcher-specific patterns like vite/vitest timestamp files.
171
- */
172
- constructor(origin: string, additionalGlobs?: Array<string> | undefined | null, useIgnore?: boolean | undefined | null)
173
- watch(callback: (err: string | null, events: WatchEvent[]) => void): void
174
- stop(): Promise<void>
175
- }
176
-
177
- export declare class WorkspaceContext {
178
- workspaceRoot: string
179
- constructor(workspaceRoot: string, cacheDir: string)
180
- getWorkspaceFiles(projectRootMap: Record<string, string>): NxWorkspaceFiles
181
- glob(globs: Array<string>, exclude?: Array<string> | undefined | null): Array<string>
182
- /**
183
- * Performs multiple glob pattern matches against workspace files in parallel
184
- * @returns An array of arrays, where each inner array contains the file paths
185
- * that matched the corresponding glob pattern in the input. The outer array maintains the same order
186
- * as the input globs.
187
- */
188
- multiGlob(globs: Array<string>, exclude?: Array<string> | undefined | null): Array<Array<string>>
189
- hashFilesMatchingGlobs(globGroups: Array<Array<string>>): Array<string>
190
- hashFilesMatchingGlob(globs: Array<string>, exclude?: Array<string> | undefined | null): string
191
- incrementalUpdate(updatedFiles: Array<string>, deletedFiles: Array<string>): Record<string, string>
192
- updateProjectFiles(projectRootMappings: ProjectRootMappings, projectFiles: ExternalObject<ProjectFiles>, globalFiles: ExternalObject<Array<FileData>>, updatedFiles: Record<string, string>, deletedFiles: Array<string>): UpdatedWorkspaceFiles
193
- allFileData(): Array<FileData>
194
- getFilesInDirectory(directory: string): Array<string>
195
- }
196
-
197
- export interface BatchInfo {
198
- executorName: string
199
- taskIds: Array<string>
200
- }
201
-
202
- export declare const enum BatchStatus {
203
- Running = 'Running',
204
- Success = 'Success',
205
- Failure = 'Failure'
206
- }
207
-
208
- export interface CachedResult {
209
- code: number
210
- terminalOutput?: string
211
- outputsPath: string
212
- size?: number
213
- }
214
-
215
- export declare export declare function canInstallNxConsole(): boolean
216
-
217
- export declare export declare function canInstallNxConsoleForEditor(editor: SupportedEditor): boolean
218
-
219
- export declare export declare function closeDbConnection(connection: ExternalObject<NxDbConnection>): void
220
-
221
- export declare export declare function connectToNxDb(cacheDir: string, nxVersion: string, dbName?: string | undefined | null): ExternalObject<NxDbConnection>
222
-
223
- export declare export declare function copy(src: string, dest: string): number
224
-
225
- export interface DepsOutputsInput {
226
- dependentTasksOutputFiles: string
227
- transitive?: boolean
228
- }
229
-
230
- export interface EnvironmentInput {
231
- env: string
232
- }
233
-
234
- export declare const enum EventType {
235
- delete = 'delete',
236
- update = 'update',
237
- create = 'create'
238
- }
239
-
240
- export declare export declare function expandOutputs(directory: string, entries: Array<string>): Array<string>
241
-
242
- export interface ExternalDependenciesInput {
243
- externalDependencies: Array<string>
244
- }
245
-
246
- export interface ExternalNode {
247
- packageName?: string
248
- version: string
249
- hash?: string
250
- }
251
-
252
- export interface FileData {
253
- file: string
254
- hash: string
255
- }
256
-
257
- export interface FileMap {
258
- projectFileMap: ProjectFiles
259
- nonProjectFiles: Array<FileData>
260
- }
261
-
262
- export interface FileSetInput {
263
- fileset: string
264
- }
265
-
266
- export declare export declare function findImports(projectFileMap: Record<string, Array<string>>): Array<ImportResult>
267
-
268
- export declare export declare function getBinaryTarget(): string
269
-
270
- export declare export declare function getDefaultMaxCacheSize(cachePath: string): number
271
-
272
- /**
273
- * Expands the given outputs into a list of existing files.
274
- * This is used when hashing outputs
275
- */
276
- export declare export declare function getFilesForOutputs(directory: string, entries: Array<string>): Array<string>
277
-
278
- export declare export declare function getTransformableOutputs(outputs: Array<string>): Array<string>
279
-
280
- /**
281
- * Group information - union of different process group types
282
- * Use group_type to discriminate which optional fields are present
283
- */
284
- export interface GroupInfo {
285
- /** Type discriminator: MainCLI, Daemon, Task, or Batch */
286
- groupType: GroupType
287
- /** Display name for the group */
288
- displayName: string
289
- /** Unique ID for this group */
290
- id: string
291
- /** Task IDs in this batch (present for Batch groups) */
292
- taskIds?: Array<string>
293
- }
294
-
295
- /** Group type discriminator */
296
- export declare const enum GroupType {
297
- MainCLI = 'MainCLI',
298
- MainCliSubprocesses = 'MainCliSubprocesses',
299
- Daemon = 'Daemon',
300
- DaemonSubprocesses = 'DaemonSubprocesses',
301
- Task = 'Task',
302
- Batch = 'Batch'
303
- }
304
-
305
- export declare export declare function hashArray(input: Array<string | undefined | null>): string
306
-
307
- export interface HashDetails {
308
- value: string
309
- details: Record<string, string>
310
- /** Structured inputs used for hashing (file patterns, env vars, etc.) */
311
- inputs: HashInputs
312
- }
313
-
314
- export interface HashedTask {
315
- hash: string
316
- project: string
317
- target: string
318
- configuration?: string
319
- }
320
-
321
- export interface HasherOptions {
322
- selectivelyHashTsConfig: boolean
323
- }
324
-
325
- export declare export declare function hashFile(file: string): string | null
326
-
327
- /** NAPI-compatible struct for returning hash inputs to JavaScript */
328
- export interface HashInputs {
329
- /** Expanded file paths that were used as inputs */
330
- files: Array<string>
331
- /** Runtime commands */
332
- runtime: Array<string>
333
- /** Environment variable names */
334
- environment: Array<string>
335
- /** Dependent task outputs */
336
- depOutputs: Array<string>
337
- /** External dependencies */
338
- external: Array<string>
339
- }
340
-
341
- export interface InputsInput {
342
- input: string
343
- dependencies?: boolean
344
- projects?: string | Array<string>
345
- }
346
-
347
- export declare export declare function installNxConsole(): boolean
348
-
349
- export declare export declare function installNxConsoleForEditor(editor: SupportedEditor): boolean
350
-
351
- export const IS_WASM: boolean
352
-
353
- /** Detects if the current process is being run by an AI agent */
354
- export declare export declare function isAiAgent(): boolean
355
-
356
- export declare export declare function isEditorInstalled(editor: SupportedEditor): boolean
357
-
358
- export declare export declare function logDebug(message: string): void
359
-
360
- /** Combined metadata for groups and processes */
361
- export interface Metadata {
362
- /** Group-level metadata */
363
- groups: Record<string, GroupInfo>
364
- /** Process-level metadata (keyed by PID as string for NAPI compatibility) */
365
- processes: Record<string, ProcessMetadata>
366
- }
367
-
368
- /** Metrics update sent every collection cycle */
369
- export interface MetricsUpdate {
370
- timestamp: number
371
- processes: Array<ProcessMetrics>
372
- metadata: Metadata
373
- }
374
-
375
- /** Stripped version of the NxJson interface for use in rust */
376
- export interface NxJson {
377
- namedInputs?: Record<string, Array<JsInputs>>
378
- }
379
-
380
- export interface NxWorkspaceFiles {
381
- projectFileMap: ProjectFiles
382
- globalFiles: Array<FileData>
383
- externalReferences?: NxWorkspaceFilesExternals
384
- }
385
-
386
- export interface NxWorkspaceFilesExternals {
387
- projectFiles: ExternalObject<ProjectFiles>
388
- globalFiles: ExternalObject<Array<FileData>>
389
- allWorkspaceFiles: ExternalObject<Array<FileData>>
390
- }
391
-
392
- export declare export declare function parseTaskStatus(stringStatus: string): TaskStatus
393
-
394
- /** Process metadata (static, doesn't change during process lifetime) */
395
- export interface ProcessMetadata {
396
- ppid: number
397
- name: string
398
- command: string
399
- exePath: string
400
- cwd: string
401
- alias?: string
402
- groupId: string
403
- isRoot: boolean
404
- }
405
-
406
- /** Process metrics (dynamic, changes every collection) */
407
- export interface ProcessMetrics {
408
- pid: number
409
- cpu: number
410
- memory: number
411
- }
412
-
413
- export interface Project {
414
- root: string
415
- namedInputs?: Record<string, Array<JsInputs>>
416
- tags?: Array<string>
417
- targets: Record<string, Target>
418
- }
419
-
420
- export interface ProjectGraph {
421
- nodes: Record<string, Project>
422
- dependencies: Record<string, Array<string>>
423
- externalNodes: Record<string, ExternalNode>
424
- }
425
-
426
- export declare export declare function remove(src: string): void
427
-
428
- export declare export declare function restoreTerminal(): void
429
-
430
- export declare const enum RunMode {
431
- RunOne = 0,
432
- RunMany = 1
433
- }
434
-
435
- export interface RuntimeInput {
436
- runtime: string
437
- }
438
-
439
- export declare const enum SupportedEditor {
440
- VSCode = 0,
441
- VSCodeInsiders = 1,
442
- Cursor = 2,
443
- Windsurf = 3,
444
- JetBrains = 4,
445
- Unknown = 5
446
- }
447
-
448
- /** System information (static system-level data) */
449
- export interface SystemInfo {
450
- cpuCores: number
451
- totalMemory: number
452
- }
453
-
454
- export interface Target {
455
- executor?: string
456
- inputs?: Array<JsInputs>
457
- outputs?: Array<string>
458
- options?: string
459
- configurations?: string
460
- parallelism?: boolean
461
- }
462
-
463
- export interface Task {
464
- id: string
465
- target: TaskTarget
466
- outputs: Array<string>
467
- projectRoot?: string
468
- startTime?: number
469
- endTime?: number
470
- continuous?: boolean
471
- }
472
-
473
- export interface TaskGraph {
474
- roots: Array<string>
475
- tasks: Record<string, Task>
476
- dependencies: Record<string, Array<string>>
477
- continuousDependencies: Record<string, Array<string>>
478
- }
479
-
480
- export interface TaskResult {
481
- task: Task
482
- status: string
483
- code: number
484
- terminalOutput?: string
485
- }
486
-
487
- export interface TaskRun {
488
- hash: string
489
- status: string
490
- code: number
491
- start: number
492
- end: number
493
- }
494
-
495
- export declare const enum TaskStatus {
496
- Success = 0,
497
- Failure = 1,
498
- Skipped = 2,
499
- LocalCacheKeptExisting = 3,
500
- LocalCache = 4,
501
- RemoteCache = 5,
502
- NotStarted = 6,
503
- InProgress = 7,
504
- Shared = 8,
505
- Stopped = 9
506
- }
507
-
508
- export interface TaskTarget {
509
- project: string
510
- target: string
511
- configuration?: string
512
- }
513
-
514
- export declare export declare function testOnlyTransferFileMap(projectFiles: Record<string, Array<FileData>>, nonProjectFiles: Array<FileData>): NxWorkspaceFilesExternals
515
-
516
- /**
517
- * Transfer the project graph from the JS world to the Rust world, so that we can pass the project graph via memory quicker
518
- * This wont be needed once the project graph is created in Rust
519
- */
520
- export declare export declare function transferProjectGraph(projectGraph: ProjectGraph): ExternalObject<ProjectGraph>
521
-
522
- export interface TuiCliArgs {
523
- targets?: string[] | undefined
524
- tuiAutoExit?: boolean | number | undefined
525
- }
526
-
527
- export interface TuiConfig {
528
- autoExit?: boolean | number | undefined
529
- suppressHints?: boolean
530
- }
531
-
532
- export interface UpdatedWorkspaceFiles {
533
- fileMap: FileMap
534
- externalReferences: NxWorkspaceFilesExternals
535
- }
536
-
537
- export declare export declare function validateOutputs(outputs: Array<string>): void
538
-
539
- export interface WatchEvent {
540
- path: string
541
- type: EventType
542
- }
543
-
544
- export interface WorkingDirectoryInput {
545
- workingDirectory: string
546
- }
547
-
548
- /** Public NAPI error codes that are for Node */
549
- export declare const enum WorkspaceErrors {
550
- ParseError = 'ParseError',
551
- Generic = 'Generic'
552
- }
553
-