@ohos-ports/nx 23.3.0-beta.3 → 24.0.2-beta.0
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/bin/nx.js +2 -2
- package/dist/bin/post-install.js +5 -3
- package/dist/nx-cloud-internals.d.ts +1 -0
- package/dist/nx-cloud-internals.js +7 -1
- package/dist/src/adapter/ngcli-adapter.js +2 -2
- package/dist/src/ai/clone-ai-config-repo.js +49 -12
- package/dist/src/command-line/add/add.d.ts +2 -0
- package/dist/src/command-line/add/add.js +24 -6
- package/dist/src/command-line/affected/affected.js +2 -2
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.js +1 -13
- package/dist/src/command-line/graph/graph.js +38 -10
- package/dist/src/command-line/init/command-object.js +0 -12
- package/dist/src/command-line/init/implementation/add-nx-to-nest.js +21 -62
- package/dist/src/command-line/init/init-v2.js +1 -3
- package/dist/src/command-line/migrate/agentic/close-agent-session.d.ts +1 -1
- package/dist/src/command-line/migrate/agentic/close-agent-session.js +4 -3
- package/dist/src/command-line/migrate/agentic/definitions.d.ts +1 -3
- package/dist/src/command-line/migrate/agentic/definitions.js +5 -97
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.d.ts +7 -45
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.js +9 -51
- package/dist/src/command-line/migrate/agentic/handoff.d.ts +1 -43
- package/dist/src/command-line/migrate/agentic/handoff.js +3 -119
- package/dist/src/command-line/migrate/agentic/instruction-files.d.ts +0 -21
- package/dist/src/command-line/migrate/agentic/instruction-files.js +6 -27
- package/dist/src/command-line/migrate/agentic/master/run-master-session.d.ts +19 -1
- package/dist/src/command-line/migrate/agentic/master/run-master-session.js +88 -49
- package/dist/src/command-line/migrate/agentic/master/spawn-master.d.ts +1 -0
- package/dist/src/command-line/migrate/agentic/master/spawn-master.js +86 -24
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.d.ts +2 -2
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.js +2 -2
- package/dist/src/command-line/migrate/agentic/prompts/fragments.d.ts +1 -12
- package/dist/src/command-line/migrate/agentic/prompts/fragments.js +8 -17
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.d.ts +0 -15
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.js +3 -100
- package/dist/src/command-line/migrate/agentic/select.d.ts +12 -6
- package/dist/src/command-line/migrate/agentic/select.js +38 -8
- package/dist/src/command-line/migrate/agentic/types.d.ts +9 -68
- package/dist/src/command-line/migrate/agentic/types.js +6 -8
- package/dist/src/command-line/migrate/command-object.js +6 -10
- package/dist/src/command-line/migrate/execute-migration.d.ts +6 -6
- package/dist/src/command-line/migrate/execute-migration.js +25 -15
- package/dist/src/command-line/migrate/migrate-analytics.d.ts +18 -1
- package/dist/src/command-line/migrate/migrate-analytics.js +38 -0
- package/dist/src/command-line/migrate/migrate-commits.d.ts +29 -17
- package/dist/src/command-line/migrate/migrate-commits.js +86 -32
- package/dist/src/command-line/migrate/migrate-config.d.ts +6 -6
- package/dist/src/command-line/migrate/migrate-config.js +12 -6
- package/dist/src/command-line/migrate/migrate-output.d.ts +1 -6
- package/dist/src/command-line/migrate/migrate-output.js +1 -10
- package/dist/src/command-line/migrate/migrate.d.ts +6 -30
- package/dist/src/command-line/migrate/migrate.js +257 -255
- package/dist/src/command-line/migrate/resolve-package-version.d.ts +2 -4
- package/dist/src/command-line/migrate/resolve-package-version.js +2 -35
- package/dist/src/command-line/migrate/run/agent-output.d.ts +2 -0
- package/dist/src/command-line/migrate/run/agent-output.js +9 -0
- package/dist/src/command-line/migrate/run/broker.d.ts +14 -5
- package/dist/src/command-line/migrate/run/broker.js +69 -21
- package/dist/src/command-line/migrate/run/clean-retry.js +4 -2
- package/dist/src/command-line/migrate/run/existing-run-report.d.ts +1 -1
- package/dist/src/command-line/migrate/run/existing-run-report.js +7 -5
- package/dist/src/command-line/migrate/run/give-up.d.ts +4 -3
- package/dist/src/command-line/migrate/run/give-up.js +8 -5
- package/dist/src/command-line/migrate/run/index.d.ts +7 -5
- package/dist/src/command-line/migrate/run/index.js +16 -1
- package/dist/src/command-line/migrate/run/issues.js +7 -2
- package/dist/src/command-line/migrate/run/orchestrator.d.ts +61 -4
- package/dist/src/command-line/migrate/run/orchestrator.js +397 -133
- package/dist/src/command-line/migrate/run/run-state.d.ts +17 -1
- package/dist/src/command-line/migrate/run/run-state.js +41 -2
- package/dist/src/command-line/migrate/run/runbook.d.ts +1 -0
- package/dist/src/command-line/migrate/run/runbook.js +115 -18
- package/dist/src/command-line/migrate/run/state-lock.d.ts +29 -4
- package/dist/src/command-line/migrate/run/state-lock.js +102 -10
- package/dist/src/command-line/migrate/run/state-machine.js +4 -1
- package/dist/src/command-line/migrate/run/util.d.ts +7 -2
- package/dist/src/command-line/migrate/run/util.js +30 -3
- package/dist/src/command-line/migrate/run/worker.d.ts +1 -1
- package/dist/src/command-line/migrate/run/worker.js +252 -250
- package/dist/src/command-line/migrate/sort-migrations.d.ts +1 -7
- package/dist/src/command-line/migrate/sort-migrations.js +1 -12
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +17 -12
- package/dist/src/command-line/release/changelog.js +9 -6
- package/dist/src/command-line/release/config/config.d.ts +1 -0
- package/dist/src/command-line/release/config/config.js +48 -9
- package/dist/src/command-line/release/release.js +2 -2
- package/dist/src/command-line/release/utils/git.js +8 -7
- package/dist/src/command-line/release/utils/interpolate-release-config.d.ts +6 -0
- package/dist/src/command-line/release/utils/interpolate-release-config.js +39 -0
- package/dist/src/command-line/release/utils/release-graph.d.ts +5 -0
- package/dist/src/command-line/release/utils/release-graph.js +1 -0
- package/dist/src/command-line/release/utils/remote-release-clients/github.js +5 -6
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.js +5 -6
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.js +2 -2
- package/dist/src/command-line/release/utils/shared.js +10 -10
- package/dist/src/command-line/release/utils/version-plan-utils.d.ts +3 -12
- package/dist/src/command-line/release/utils/version-plan-utils.js +33 -55
- package/dist/src/command-line/release/version/version-actions.js +2 -1
- package/dist/src/command-line/release/version.js +5 -2
- package/dist/src/command-line/repair/repair.js +1 -1
- package/dist/src/command-line/report/report.js +1 -1
- package/dist/src/command-line/reset/reset.js +58 -62
- package/dist/src/command-line/run/executor-utils.js +1 -0
- package/dist/src/command-line/run/run-one.d.ts +20 -1
- package/dist/src/command-line/run/run-one.js +153 -5
- package/dist/src/command-line/run/run.js +2 -1
- package/dist/src/command-line/show/projects.js +5 -3
- package/dist/src/command-line/show/show-target/info.d.ts +10 -1
- package/dist/src/command-line/show/show-target/info.js +100 -15
- package/dist/src/command-line/show/show-target/inputs.js +10 -2
- package/dist/src/command-line/show/show-target/utils.js +1 -0
- package/dist/src/command-line/watch/command-object.js +3 -22
- package/dist/src/command-line/watch/watch.d.ts +0 -7
- package/dist/src/command-line/watch/watch.js +1 -1
- package/dist/src/command-line/yargs-utils/shared-options.js +1 -1
- package/dist/src/config/misc-interfaces.d.ts +18 -0
- package/dist/src/config/nx-json.d.ts +22 -11
- package/dist/src/config/task-graph.d.ts +1 -1
- package/dist/src/config/workspace-json-project-json.d.ts +88 -0
- package/dist/src/core/graph/main.js +1 -1
- package/dist/src/core/graph/runtime.js +1 -1
- package/dist/src/core/graph/styles.css +1 -1
- package/dist/src/core/graph/styles.js +1 -1
- package/dist/src/daemon/client/client.d.ts +15 -0
- package/dist/src/daemon/client/client.js +181 -71
- package/dist/src/daemon/client/daemon-socket-messenger.d.ts +1 -1
- package/dist/src/daemon/client/daemon-socket-messenger.js +2 -2
- package/dist/src/daemon/server/client-socket-context.js +1 -1
- package/dist/src/daemon/server/handle-configure-ai-agents.js +2 -2
- package/dist/src/daemon/server/handle-process-in-background.js +21 -9
- package/dist/src/daemon/server/handle-select-affected-tasks.d.ts +2 -1
- package/dist/src/daemon/server/handle-select-affected-tasks.js +21 -13
- package/dist/src/daemon/server/native-js-loader.d.ts +1 -0
- package/dist/src/daemon/server/native-js-loader.js +21 -0
- package/dist/src/daemon/server/nx-console-operations.js +2 -2
- package/dist/src/daemon/server/project-graph-incremental-recomputation.js +4 -8
- package/dist/src/daemon/server/server.d.ts +2 -1
- package/dist/src/daemon/server/server.js +17 -4
- package/dist/src/daemon/server/shutdown-utils.js +1 -4
- package/dist/src/daemon/server/start.d.ts +1 -0
- package/dist/src/daemon/server/start.js +2 -0
- package/dist/src/daemon/socket-utils.d.ts +11 -9
- package/dist/src/daemon/socket-utils.js +31 -61
- package/dist/src/daemon/tmp-dir.d.ts +19 -14
- package/dist/src/daemon/tmp-dir.js +142 -354
- package/dist/src/devkit-exports.d.ts +9 -1
- package/dist/src/devkit-exports.js +12 -1
- package/dist/src/devkit-internals.d.ts +6 -5
- package/dist/src/devkit-internals.js +13 -4
- package/dist/src/executors/run-commands/run-commands.impl.d.ts +4 -2
- package/dist/src/executors/run-commands/run-commands.impl.js +53 -27
- package/dist/src/executors/run-commands/running-tasks.d.ts +13 -4
- package/dist/src/executors/run-commands/running-tasks.js +148 -95
- package/dist/src/executors/run-commands/schema.json +1 -1
- package/dist/src/hasher/check-task-files.js +5 -8
- package/dist/src/hasher/file-hasher.js +9 -7
- package/dist/src/hasher/hash-task.js +4 -0
- package/dist/src/hasher/native-task-hasher-impl.js +3 -1
- package/dist/src/hasher/task-hasher.d.ts +2 -0
- package/dist/src/hasher/task-hasher.js +4 -1
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.d.ts +1 -2
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.js +6 -11
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.md +2 -2
- package/dist/src/migrations/update-24-0-0/enable-legacy-affected.d.ts +4 -0
- package/dist/src/migrations/update-24-0-0/enable-legacy-affected.js +15 -0
- package/dist/src/migrations/update-24-0-0/enable-legacy-affected.md +30 -0
- package/dist/src/migrations/update-24-0-0/find-custom-hashers.d.ts +3 -0
- package/dist/src/migrations/update-24-0-0/find-custom-hashers.js +100 -0
- package/dist/src/migrations/update-24-0-0/find-custom-hashers.md +63 -0
- package/dist/src/migrations/update-24-0-0/move-custom-hashers-to-inputs.md +146 -0
- package/dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options.d.ts +3 -0
- package/dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options.js +130 -0
- package/dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options.md +62 -0
- package/dist/src/native/assert-supported-platform.js +1 -1
- package/dist/src/native/index.d.ts +238 -18
- package/dist/src/native/index.js +6 -1
- package/dist/src/native/native-bindings.js +15 -6
- package/dist/src/native/nx.openharmony-arm64.node +0 -0
- package/dist/src/native/nx.wasi-browser.js +1 -0
- package/dist/src/native/nx.wasi.cjs +1 -0
- package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
- package/dist/src/nx-cloud/update-manager.d.ts +14 -0
- package/dist/src/nx-cloud/update-manager.js +237 -50
- package/dist/src/plugins/js/lock-file/pnpm-parser.js +3 -4
- package/dist/src/plugins/js/lock-file/pruned-output.d.ts +2 -2
- package/dist/src/plugins/js/lock-file/pruned-output.js +4 -4
- package/dist/src/plugins/js/utils/register.js +9 -4
- package/dist/src/project-graph/affected/affected-tasks.d.ts +9 -6
- package/dist/src/project-graph/affected/affected-tasks.js +31 -7
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.js +7 -0
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +49 -6
- package/dist/src/project-graph/utils/project-configuration/target-merging.js +1 -1
- package/dist/src/project-graph/utils/project-configuration/target-normalization.js +12 -133
- package/dist/src/project-graph/utils/project-configuration-utils.js +2 -2
- package/dist/src/project-graph/utils/retrieve-workspace-files.js +27 -6
- package/dist/src/tasks-runner/create-task-graph.d.ts +8 -7
- package/dist/src/tasks-runner/create-task-graph.js +50 -27
- package/dist/src/tasks-runner/default-tasks-runner.js +1 -1
- package/dist/src/tasks-runner/init-tasks-runner.js +116 -59
- package/dist/src/tasks-runner/life-cycle.d.ts +4 -1
- package/dist/src/tasks-runner/life-cycle.js +7 -0
- package/dist/src/tasks-runner/life-cycles/performance-analysis.d.ts +5 -2
- package/dist/src/tasks-runner/life-cycles/performance-analysis.js +13 -7
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.d.ts +4 -3
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.js +9 -2
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +5 -2
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +4 -1
- package/dist/src/tasks-runner/life-cycles/summary-terminal-output-life-cycle.js +5 -1
- package/dist/src/tasks-runner/pseudo-ipc.d.ts +1 -0
- package/dist/src/tasks-runner/pseudo-ipc.js +4 -0
- package/dist/src/tasks-runner/pseudo-terminal.d.ts +1 -1
- package/dist/src/tasks-runner/pseudo-terminal.js +2 -2
- package/dist/src/tasks-runner/readiness/executor-ready-signal.d.ts +7 -0
- package/dist/src/tasks-runner/readiness/executor-ready-signal.js +43 -0
- package/dist/src/tasks-runner/readiness/probes.d.ts +14 -0
- package/dist/src/tasks-runner/readiness/probes.js +101 -0
- package/dist/src/tasks-runner/readiness/ready-signal-server.d.ts +18 -0
- package/dist/src/tasks-runner/readiness/ready-signal-server.js +72 -0
- package/dist/src/tasks-runner/readiness/ready-signal.d.ts +33 -0
- package/dist/src/tasks-runner/readiness/ready-signal.js +92 -0
- package/dist/src/tasks-runner/readiness/ready-when.d.ts +84 -0
- package/dist/src/tasks-runner/readiness/ready-when.js +371 -0
- package/dist/src/tasks-runner/readiness/startup-host.d.ts +1 -0
- package/dist/src/tasks-runner/readiness/startup-host.js +32 -0
- package/dist/src/tasks-runner/run-command.d.ts +6 -2
- package/dist/src/tasks-runner/run-command.js +21 -31
- package/dist/src/tasks-runner/run-outcome.d.ts +16 -0
- package/dist/src/tasks-runner/run-outcome.js +39 -0
- package/dist/src/tasks-runner/running-tasks/batch-process.js +6 -0
- package/dist/src/tasks-runner/running-tasks/node-child-process.js +5 -4
- package/dist/src/tasks-runner/running-tasks/running-task.d.ts +1 -1
- package/dist/src/tasks-runner/task-env.d.ts +10 -0
- package/dist/src/tasks-runner/task-env.js +37 -5
- package/dist/src/tasks-runner/task-graph-utils.d.ts +9 -6
- package/dist/src/tasks-runner/task-graph-utils.js +17 -12
- package/dist/src/tasks-runner/task-orchestrator.d.ts +62 -18
- package/dist/src/tasks-runner/task-orchestrator.js +750 -150
- package/dist/src/tasks-runner/tasks-runner.d.ts +1 -1
- package/dist/src/tasks-runner/tasks-schedule.d.ts +18 -1
- package/dist/src/tasks-runner/tasks-schedule.js +63 -6
- package/dist/src/tasks-runner/tokens.d.ts +54 -0
- package/dist/src/tasks-runner/tokens.js +161 -0
- package/dist/src/tasks-runner/utils.d.ts +35 -6
- package/dist/src/tasks-runner/utils.js +149 -68
- package/dist/src/ultracache/ci-status.d.ts +24 -0
- package/dist/src/ultracache/ci-status.js +87 -0
- package/dist/src/ultracache/config.d.ts +3 -3
- package/dist/src/ultracache/config.js +4 -4
- package/dist/src/ultracache/fetch.d.ts +2 -0
- package/dist/src/ultracache/fetch.js +1 -0
- package/dist/src/ultracache/overrides.js +4 -0
- package/dist/src/utils/acknowledge-build-scripts.d.ts +34 -1
- package/dist/src/utils/acknowledge-build-scripts.js +171 -32
- package/dist/src/utils/child-process.js +2 -1
- package/dist/src/utils/find-matching-projects.js +9 -6
- package/dist/src/utils/git-utils.d.ts +12 -5
- package/dist/src/utils/git-utils.js +69 -11
- package/dist/src/utils/long-running-target.d.ts +1 -3
- package/dist/src/utils/long-running-target.js +1 -3
- package/dist/src/utils/nx-package-group.js +1 -1
- package/dist/src/utils/output.d.ts +4 -3
- package/dist/src/utils/output.js +4 -3
- package/dist/src/utils/owned-private-dir.d.ts +1 -17
- package/dist/src/utils/owned-private-dir.js +10 -62
- package/dist/src/utils/package-json.js +1 -1
- package/dist/src/utils/package-manager.d.ts +8 -0
- package/dist/src/utils/package-manager.js +65 -8
- package/dist/src/utils/perf-hooks.d.ts +1 -0
- package/dist/src/utils/plugins/core-plugins.js +5 -1
- package/dist/src/utils/progress-topics.d.ts +1 -0
- package/dist/src/utils/progress-topics.js +1 -0
- package/dist/src/utils/safe-spawn.js +1 -5
- package/dist/src/utils/shell-quoting.d.ts +8 -1
- package/dist/src/utils/shell-quoting.js +12 -1
- package/dist/src/utils/spawn-without-terminal.d.ts +27 -0
- package/dist/src/utils/spawn-without-terminal.js +110 -0
- package/dist/src/utils/string-similarity.d.ts +38 -0
- package/dist/src/utils/string-similarity.js +108 -0
- package/dist/src/utils/versions.js +1 -1
- package/migrations.json +20 -6
- package/package.json +15 -24
- package/schemas/migrations-schema.json +11 -0
- package/schemas/nx-schema.json +133 -11
- package/schemas/project-schema.json +114 -4
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.d.ts +0 -56
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.js +0 -67
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.d.ts +0 -49
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.js +0 -53
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.d.ts +0 -26
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.js +0 -27
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.d.ts +0 -70
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.js +0 -113
- package/dist/src/command-line/migrate/agentic/run-step.d.ts +0 -68
- package/dist/src/command-line/migrate/agentic/run-step.js +0 -148
- package/dist/src/command-line/migrate/agentic/runner.d.ts +0 -21
- package/dist/src/command-line/migrate/agentic/runner.js +0 -262
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.d.ts +0 -9
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.js +0 -18
- package/dist/src/tasks-runner/legacy-depends-on-warning.d.ts +0 -18
- package/dist/src/tasks-runner/legacy-depends-on-warning.js +0 -109
|
@@ -32,7 +32,7 @@ export declare class ExternalObject<T> {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
export declare class AppLifeCycle {
|
|
35
|
-
constructor(tasks: Array<Task>, initiatingTasks: Array<string>, runMode: RunMode, pinnedTasks: Array<string>, tuiCliArgs: TuiCliArgs, tuiConfig: TuiConfig, titleText: string, workspaceRoot: string, taskGraph: TaskGraph, isCloudEnabled?: boolean | undefined | null)
|
|
35
|
+
constructor(tasks: Array<Task>, initiatingTasks: Array<string>, runMode: RunMode, pinnedTasks: Array<string>, tuiCliArgs: TuiCliArgs, tuiConfig: TuiConfig, titleText: string, workspaceRoot: string, taskGraph: TaskGraph, readyDependencies: Record<string, Array<string>>, isCloudEnabled?: boolean | undefined | null)
|
|
36
36
|
startCommand(threadCount?: number | undefined | null): void
|
|
37
37
|
scheduleTask(task: Task): void
|
|
38
38
|
startTasks(tasks: Array<Task>, metadata: object): void
|
|
@@ -44,6 +44,7 @@ export declare class AppLifeCycle {
|
|
|
44
44
|
registerRunningTaskWithEmptyParser(taskId: string): void
|
|
45
45
|
appendTaskOutput(taskId: string, output: string, isPtyOutput: boolean): void
|
|
46
46
|
setTaskStatus(taskId: string, status: TaskStatus): void
|
|
47
|
+
setTaskReadiness(taskId: string, readiness: TaskReadiness): void
|
|
47
48
|
setTaskTiming(taskId: string, startTime: number, endTime: number): void
|
|
48
49
|
registerForcedShutdownCallback(forcedShutdownCallback: (() => unknown)): void
|
|
49
50
|
__setCloudMessage(message: string): Promise<void>
|
|
@@ -64,7 +65,7 @@ export declare class ChildProcess {
|
|
|
64
65
|
getPid(): number
|
|
65
66
|
kill(signal?: NodeJS.Signals | number): void
|
|
66
67
|
onExit(callback: (message: string) => void): void
|
|
67
|
-
onOutput(callback: (message: string) => void): void
|
|
68
|
+
onOutput(callback: (message: string, isCommandHeader: boolean) => void): void
|
|
68
69
|
cleanup(): void
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -98,7 +99,8 @@ export declare class HashPlanner {
|
|
|
98
99
|
constructor(nxJson: NxJson, projectGraph: ExternalObject<ProjectGraph>)
|
|
99
100
|
/**
|
|
100
101
|
* `configurations` is this run's Ultracache configurations; a task with an
|
|
101
|
-
* eligible entry hashes its observed reads instead of its declared
|
|
102
|
+
* eligible entry hashes its observed reads instead of its declared
|
|
103
|
+
* filesets, except `always` ones.
|
|
102
104
|
* `options` carries the task ids decided in JS, where executors and
|
|
103
105
|
* target configuration are resolved.
|
|
104
106
|
*/
|
|
@@ -127,6 +129,15 @@ export declare class ImportResult {
|
|
|
127
129
|
staticImportExpressions: Array<string>
|
|
128
130
|
}
|
|
129
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Done once every pattern has appeared in the fed output, in any order, even
|
|
134
|
+
* split across chunks or interleaved with terminal control sequences.
|
|
135
|
+
*/
|
|
136
|
+
export declare class LogMatcher {
|
|
137
|
+
constructor(patterns: Array<string>)
|
|
138
|
+
feed(chunk: string): boolean
|
|
139
|
+
}
|
|
140
|
+
|
|
130
141
|
export declare class NxCache {
|
|
131
142
|
cacheDirectory: string
|
|
132
143
|
constructor(workspaceRoot: string, cachePath: string, dbConnection: ExternalObject<NxDbConnection>, linkTaskDetails?: boolean | undefined | null, maxCacheSize?: number | undefined | null)
|
|
@@ -232,11 +243,37 @@ export declare class ProcessMetricsCollector {
|
|
|
232
243
|
subscribe(callback: (err: Error | null, event: MetricsUpdate) => void): void
|
|
233
244
|
}
|
|
234
245
|
|
|
246
|
+
/**
|
|
247
|
+
* Retries a probe until it passes, the timeout elapses or `cancel` is called.
|
|
248
|
+
* A failing attempt is never an error.
|
|
249
|
+
*/
|
|
250
|
+
export declare class ReadinessProbe {
|
|
251
|
+
constructor(config: ReadinessProbeConfig, cwd: string)
|
|
252
|
+
/** False once the timeout elapses or `cancel` is called. */
|
|
253
|
+
wait(): Promise<boolean>
|
|
254
|
+
cancel(): void
|
|
255
|
+
}
|
|
256
|
+
|
|
235
257
|
export declare class RunningTasksService {
|
|
236
258
|
constructor(db: ExternalObject<NxDbConnection>)
|
|
237
259
|
getRunningTasks(ids: Array<string>): Array<string>
|
|
238
260
|
addRunningTask(taskId: string): void
|
|
261
|
+
/**
|
|
262
|
+
* Release this process's claim on a task and its readiness. A row another
|
|
263
|
+
* process has since taken over is left in place.
|
|
264
|
+
*/
|
|
239
265
|
removeRunningTask(taskId: string): void
|
|
266
|
+
/**
|
|
267
|
+
* No-op unless this process holds the task's claim, so a late or displaced
|
|
268
|
+
* probe result cannot overwrite the current owner's verdict. `url` is the
|
|
269
|
+
* address the task reported, written with its status so a reader never
|
|
270
|
+
* sees one without the other.
|
|
271
|
+
*/
|
|
272
|
+
setTaskReadiness(taskId: string, status: TaskReadiness, url?: string | undefined | null): void
|
|
273
|
+
/** `None` when the task is not running. */
|
|
274
|
+
getTaskReadiness(taskId: string): TaskReadiness | null
|
|
275
|
+
/** The address a running task reported with its readiness, if any. */
|
|
276
|
+
getTaskReadyUrl(taskId: string): string | null
|
|
240
277
|
}
|
|
241
278
|
|
|
242
279
|
export declare class RustPseudoTerminal {
|
|
@@ -282,14 +319,42 @@ export declare class TaskHasher {
|
|
|
282
319
|
hashPlansFor(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>, taskIds: Array<string>, perTaskEnvs: Record<string, Record<string, string>>, cwd: string, collectTaskInputs?: boolean | undefined | null): Record<string, HashDetails>
|
|
283
320
|
}
|
|
284
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Tracks which tasks each Nx process in a nested process tree is running, so
|
|
324
|
+
* that a task which re-invokes itself can be reported instead of looping
|
|
325
|
+
* forever.
|
|
326
|
+
*
|
|
327
|
+
* Every process in the tree shares a `root_pid`, but sharing a root does not
|
|
328
|
+
* imply a parent/child relationship: sibling Nx processes are common and
|
|
329
|
+
* legitimate (N atomized e2e specs each spawning the same `serve-static` web
|
|
330
|
+
* server, or two parallel tasks that each shell out to `nx run lib:build`).
|
|
331
|
+
* Only an invocation belonging to an actual *ancestor* of this process is a
|
|
332
|
+
* loop, so the check is scoped to `ancestor_pids` rather than to the whole
|
|
333
|
+
* tree.
|
|
334
|
+
*/
|
|
285
335
|
export declare class TaskInvocationTracker {
|
|
286
|
-
constructor(db: ExternalObject<NxDbConnection>, rootPid: number)
|
|
287
|
-
/**
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
336
|
+
constructor(db: ExternalObject<NxDbConnection>, rootPid: number, ancestorPids: Array<number>)
|
|
337
|
+
/**
|
|
338
|
+
* Register a task as invoked by the process identified by `pid`.
|
|
339
|
+
*
|
|
340
|
+
* Returns the invocation chain when an ancestor process is already running
|
|
341
|
+
* this task, which is a genuine loop. The chain lists every task invoked
|
|
342
|
+
* along the ancestry path, outermost first. Returns `null` when the task
|
|
343
|
+
* was registered, including when a *sibling* process is already running it.
|
|
344
|
+
*
|
|
345
|
+
* An ancestor running this task with the *same* overrides is a loop
|
|
346
|
+
* immediately. An ancestor running it with different overrides is allowed
|
|
347
|
+
* up to `MAX_ANCESTOR_INVOCATIONS_PER_TASK`, which lets a terminating
|
|
348
|
+
* `app:build -> app:build --flag` chain through while still bounding a
|
|
349
|
+
* recursion whose forwarded arguments grow on every hop.
|
|
350
|
+
*/
|
|
351
|
+
registerTask(pid: number, taskId: string, overridesHash: string): Array<InvocationRecord> | null
|
|
352
|
+
/**
|
|
353
|
+
* Remove a task invocation record after the task completes. Scoped to the
|
|
354
|
+
* registering process so that a sibling finishing the same task does not
|
|
355
|
+
* drop this process's record.
|
|
356
|
+
*/
|
|
357
|
+
unregisterTask(pid: number, taskId: string): void
|
|
293
358
|
/** Clean up stale invocations older than 1 day (handles PID recycling). */
|
|
294
359
|
cleanupStale(): void
|
|
295
360
|
}
|
|
@@ -672,8 +737,12 @@ export declare const enum EventType {
|
|
|
672
737
|
rescan = 'rescan'
|
|
673
738
|
}
|
|
674
739
|
|
|
675
|
-
/**
|
|
676
|
-
|
|
740
|
+
/**
|
|
741
|
+
* The files an `includeIgnored` fileset group matches on disk, sorted.
|
|
742
|
+
* Given the workspace's project roots, an entry skips projects nested below
|
|
743
|
+
* the one it reads from, as hashing does.
|
|
744
|
+
*/
|
|
745
|
+
export declare function expandFilesInput(workspaceRoot: string, globs: Array<string>, projectRoots?: Array<string> | undefined | null): Array<string>
|
|
677
746
|
|
|
678
747
|
export declare function expandOutputs(directory: string, entries: Array<string>): Array<string>
|
|
679
748
|
|
|
@@ -719,6 +788,11 @@ export interface FileSetInput {
|
|
|
719
788
|
* instead of the workspace file map.
|
|
720
789
|
*/
|
|
721
790
|
includeIgnored?: boolean
|
|
791
|
+
/**
|
|
792
|
+
* Keep the matched files in the hash even when the task is hashed from
|
|
793
|
+
* its ultracache recording.
|
|
794
|
+
*/
|
|
795
|
+
always?: boolean
|
|
722
796
|
}
|
|
723
797
|
|
|
724
798
|
export declare function findImports(projectFileMap: Record<string, Array<string>>): Array<ImportResult>
|
|
@@ -877,8 +951,17 @@ export interface InputMatch {
|
|
|
877
951
|
|
|
878
952
|
export interface InputsInput {
|
|
879
953
|
input: string
|
|
954
|
+
/**
|
|
955
|
+
* With `projects`: the selected projects' dependencies' `input`, as `^input`
|
|
956
|
+
* resolves for each, instead of the projects' own files.
|
|
957
|
+
*/
|
|
880
958
|
dependencies?: boolean
|
|
881
959
|
projects?: string | Array<string>
|
|
960
|
+
/**
|
|
961
|
+
* Keep the files this input resolves to in the hash even when the task
|
|
962
|
+
* is hashed from its ultracache recording.
|
|
963
|
+
*/
|
|
964
|
+
always?: boolean
|
|
882
965
|
}
|
|
883
966
|
|
|
884
967
|
export declare function installNxConsole(): Promise<boolean>
|
|
@@ -886,7 +969,7 @@ export declare function installNxConsole(): Promise<boolean>
|
|
|
886
969
|
export declare function installNxConsoleForEditor(editor: SupportedEditor): Promise<boolean>
|
|
887
970
|
|
|
888
971
|
export interface InvocationRecord {
|
|
889
|
-
|
|
972
|
+
pid: number
|
|
890
973
|
taskId: string
|
|
891
974
|
}
|
|
892
975
|
|
|
@@ -918,6 +1001,11 @@ export interface JsonInput {
|
|
|
918
1001
|
json: string
|
|
919
1002
|
fields?: Array<string>
|
|
920
1003
|
excludeFields?: Array<string>
|
|
1004
|
+
/**
|
|
1005
|
+
* Keep the file in the hash even when the task is hashed from its
|
|
1006
|
+
* ultracache recording.
|
|
1007
|
+
*/
|
|
1008
|
+
always?: boolean
|
|
921
1009
|
}
|
|
922
1010
|
|
|
923
1011
|
/**
|
|
@@ -1012,6 +1100,14 @@ export interface NxWorkspaceFilesExternals {
|
|
|
1012
1100
|
ignoredIndex: ExternalObject<IgnoredIndexReader>
|
|
1013
1101
|
}
|
|
1014
1102
|
|
|
1103
|
+
/**
|
|
1104
|
+
* Open `url` in the user's default browser. Returns `true` if an opener
|
|
1105
|
+
* process was spawned, `false` if none could be (e.g. no `xdg-open`) or `url`
|
|
1106
|
+
* isn't `http(s)`, so the caller can tell the user instead of failing
|
|
1107
|
+
* silently. Never throws.
|
|
1108
|
+
*/
|
|
1109
|
+
export declare function openUrl(url: string): boolean
|
|
1110
|
+
|
|
1015
1111
|
/** A workspace-relative file with the stamp it was left with. */
|
|
1016
1112
|
export interface OutputFile {
|
|
1017
1113
|
path: string
|
|
@@ -1076,8 +1172,54 @@ export interface ProjectGraph {
|
|
|
1076
1172
|
externalNodes: Record<string, ExternalNode>
|
|
1077
1173
|
}
|
|
1078
1174
|
|
|
1175
|
+
/** Exactly one of `url`, `port` or `command` is set. */
|
|
1176
|
+
export interface ReadinessProbeConfig {
|
|
1177
|
+
url?: string
|
|
1178
|
+
port?: number
|
|
1179
|
+
host?: string
|
|
1180
|
+
command?: string
|
|
1181
|
+
/** The whole environment of `command`. Without it the command inherits this process's. */
|
|
1182
|
+
env?: Record<string, string>
|
|
1183
|
+
timeout: number
|
|
1184
|
+
interval?: number
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* The `files` (workspace-relative) that start with `#!`, each with its header
|
|
1189
|
+
* (see `read_shebang_header`), read in parallel and sorted by path. Files that
|
|
1190
|
+
* cannot be read are left out, as are entries that `join` would follow out of
|
|
1191
|
+
* the root (rooted, drive-prefixed, or climbing with `..`).
|
|
1192
|
+
*/
|
|
1193
|
+
export declare function readShebangHeaders(workspaceRoot: string, files: Array<string>): Array<ShebangFile>
|
|
1194
|
+
|
|
1079
1195
|
export declare function remove(src: string): void
|
|
1080
1196
|
|
|
1197
|
+
/**
|
|
1198
|
+
* The daemon's own socket. Per run — the directory name hashes the pid, and
|
|
1199
|
+
* clients read the daemon's path back out of the process cache rather than
|
|
1200
|
+
* deriving it.
|
|
1201
|
+
*/
|
|
1202
|
+
export declare function resolveDaemonSocketPath(workspaceRoot: string, env?: Record<string, string> | undefined | null): SocketDirDetails
|
|
1203
|
+
|
|
1204
|
+
/** A forked task process's socket, in the daemon's per-run directory. */
|
|
1205
|
+
export declare function resolveForkedProcessSocketPath(workspaceRoot: string, id: string, env?: Record<string, string> | undefined | null): SocketDirDetails
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Where the Nx Console socket lives, for whoever binds or connects to it.
|
|
1209
|
+
*
|
|
1210
|
+
* `env` is for callers that load a workspace `.env` into a copy rather than
|
|
1211
|
+
* into their own environment, and `workspaceRoot` for callers that do not run
|
|
1212
|
+
* inside the workspace — Nx Console is both, since it runs in the editor's
|
|
1213
|
+
* extension host.
|
|
1214
|
+
*/
|
|
1215
|
+
export declare function resolveNxConsoleSocketPath(workspaceRoot: string, env?: Record<string, string> | undefined | null): SocketDirDetails
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Plugin worker sockets get their own workspace-scoped directory rather than
|
|
1219
|
+
* sitting in the shared system temp dir, which cannot be locked down.
|
|
1220
|
+
*/
|
|
1221
|
+
export declare function resolvePluginSocketPath(workspaceRoot: string, id: string, env?: Record<string, string> | undefined | null): SocketDirDetails
|
|
1222
|
+
|
|
1081
1223
|
export declare function restoreTerminal(): void
|
|
1082
1224
|
|
|
1083
1225
|
export declare const enum RunMode {
|
|
@@ -1089,6 +1231,62 @@ export interface RuntimeInput {
|
|
|
1089
1231
|
runtime: string
|
|
1090
1232
|
}
|
|
1091
1233
|
|
|
1234
|
+
/**
|
|
1235
|
+
* A workspace file that starts with `#!`, with its header (see
|
|
1236
|
+
* `read_shebang_header`).
|
|
1237
|
+
*/
|
|
1238
|
+
export interface ShebangFile {
|
|
1239
|
+
file: string
|
|
1240
|
+
header: string
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* One resolved socket location, and everything `daemon/tmp-dir.ts` needs to
|
|
1245
|
+
* explain it. Every user-facing sentence is rendered on the TypeScript side,
|
|
1246
|
+
* so this carries facts rather than prose.
|
|
1247
|
+
*/
|
|
1248
|
+
export interface SocketDirDetails {
|
|
1249
|
+
/** The socket itself, which on Windows is a named pipe rather than a path. */
|
|
1250
|
+
path: string
|
|
1251
|
+
/** The directory holding it, for the caller that deletes it on shutdown. */
|
|
1252
|
+
dir: string
|
|
1253
|
+
/**
|
|
1254
|
+
* Whether `path` exceeds what the platform will bind. Reported rather than
|
|
1255
|
+
* thrown because which advice is correct depends on the other fields.
|
|
1256
|
+
*/
|
|
1257
|
+
tooLong: boolean
|
|
1258
|
+
/**
|
|
1259
|
+
* Set when `path` is a directory Nx refuses to *be* the socket directory:
|
|
1260
|
+
* `shared-with-other-users`, `nx-managed`, or `os-temp-root`. The caller
|
|
1261
|
+
* throws on it rather than using `path`.
|
|
1262
|
+
*/
|
|
1263
|
+
invalidReason?: string
|
|
1264
|
+
/** The preferred root that was skipped, when a later tier was used. */
|
|
1265
|
+
demotedFrom?: string
|
|
1266
|
+
/**
|
|
1267
|
+
* The default-root directory Nx tried before falling back, when there was
|
|
1268
|
+
* one.
|
|
1269
|
+
*/
|
|
1270
|
+
attemptedDir?: string
|
|
1271
|
+
/**
|
|
1272
|
+
* The `NX_SOCKET_DIR` that was refused, when that is why this is a
|
|
1273
|
+
* fallback. Tracked apart from the other reasons so a later length error
|
|
1274
|
+
* stops telling someone to shorten a directory refused for another one.
|
|
1275
|
+
*/
|
|
1276
|
+
refusedConfiguredDir?: string
|
|
1277
|
+
/** Why that configured directory was refused. */
|
|
1278
|
+
refusalError?: string
|
|
1279
|
+
/**
|
|
1280
|
+
* Whether this landed in the workspace data dir, which the caller warns
|
|
1281
|
+
* about once per process.
|
|
1282
|
+
*/
|
|
1283
|
+
usedWorkspaceFallback: boolean
|
|
1284
|
+
/** Deduplicated advice for the refusals collected along the way. */
|
|
1285
|
+
remedies: Array<string>
|
|
1286
|
+
/** Every refusal as one sentence, for `--verbose`. */
|
|
1287
|
+
refusalDetails?: string
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1092
1290
|
export declare const enum SupportedEditor {
|
|
1093
1291
|
VSCode = 0,
|
|
1094
1292
|
VSCodeInsiders = 1,
|
|
@@ -1174,9 +1372,19 @@ export interface TaskGraph {
|
|
|
1174
1372
|
roots: Array<string>
|
|
1175
1373
|
/** Map of Task IDs to Tasks */
|
|
1176
1374
|
tasks: Record<string, Task>
|
|
1177
|
-
/** Map of Task IDs to
|
|
1178
|
-
dependencies: Record<string, Array<
|
|
1179
|
-
continuousDependencies: Record<string, Array<
|
|
1375
|
+
/** Map of Task IDs to the edges to tasks which the task depends on */
|
|
1376
|
+
dependencies: Record<string, Array<TaskGraphEdge>>
|
|
1377
|
+
continuousDependencies: Record<string, Array<TaskGraphEdge>>
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
/** An edge from a task to one of the tasks it depends on */
|
|
1381
|
+
export interface TaskGraphEdge {
|
|
1382
|
+
/** ID of the task depended on */
|
|
1383
|
+
id: string
|
|
1384
|
+
/** What the dependent waits for on a continuous dependency. Defaults to `started`. */
|
|
1385
|
+
waitFor?: 'started' | 'ready'
|
|
1386
|
+
/** `false` on a continuous dependency whose inputs the dependent does not hash */
|
|
1387
|
+
inputs?: false
|
|
1180
1388
|
}
|
|
1181
1389
|
|
|
1182
1390
|
/** Details about the composition of a task's hash */
|
|
@@ -1221,6 +1429,12 @@ export interface TaskOutputs {
|
|
|
1221
1429
|
files?: Array<OutputFile>
|
|
1222
1430
|
}
|
|
1223
1431
|
|
|
1432
|
+
export declare const enum TaskReadiness {
|
|
1433
|
+
Pending = 0,
|
|
1434
|
+
Ready = 1,
|
|
1435
|
+
Failed = 2
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1224
1438
|
/**
|
|
1225
1439
|
* The result of a completed Task.
|
|
1226
1440
|
*
|
|
@@ -1268,20 +1482,25 @@ export interface TaskTarget {
|
|
|
1268
1482
|
export interface TaskUltracacheSettings {
|
|
1269
1483
|
/** How this target's tasks participate. Defaults to `on`. */
|
|
1270
1484
|
mode?: 'on' | 'warn' | 'error' | 'off'
|
|
1485
|
+
/**
|
|
1486
|
+
* Collect successful stat metadata accesses as inputs. Defaults to `false`.
|
|
1487
|
+
* Missing-path probes are tracked independently of this setting.
|
|
1488
|
+
*/
|
|
1489
|
+
collectStats?: boolean
|
|
1271
1490
|
/**
|
|
1272
1491
|
* Workspace-relative glob patterns for reads that should be excluded
|
|
1273
1492
|
* from ultracache reports. The first path segment cannot contain `*`,
|
|
1274
1493
|
* and `?`, `!`, `[`, `]` and extglobs are not supported; anchor the
|
|
1275
1494
|
* pattern to a directory instead of leading with `**`.
|
|
1276
1495
|
*/
|
|
1277
|
-
|
|
1496
|
+
ignoreReads?: Array<string>
|
|
1278
1497
|
/**
|
|
1279
1498
|
* Workspace-relative glob patterns for writes that should be excluded
|
|
1280
1499
|
* from ultracache reports. The first path segment cannot contain `*`,
|
|
1281
1500
|
* and `?`, `!`, `[`, `]` and extglobs are not supported; anchor the
|
|
1282
1501
|
* pattern to a directory instead of leading with `**`.
|
|
1283
1502
|
*/
|
|
1284
|
-
|
|
1503
|
+
ignoreWrites?: Array<string>
|
|
1285
1504
|
}
|
|
1286
1505
|
|
|
1287
1506
|
export interface TerminalOutputRecord {
|
|
@@ -1346,6 +1565,7 @@ export interface UltracacheDiagnostic {
|
|
|
1346
1565
|
export interface UltracacheEligibilityOptions {
|
|
1347
1566
|
/** Tasks whose executor ships a custom hasher. */
|
|
1348
1567
|
customHasherTaskIds?: Array<string>
|
|
1568
|
+
continuousTaskIds?: Array<string>
|
|
1349
1569
|
}
|
|
1350
1570
|
|
|
1351
1571
|
/**
|
package/dist/src/native/index.js
CHANGED
|
@@ -209,7 +209,12 @@ Module._load = function (request, parent, isMain) {
|
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
const indexModulePath = require.resolve('./native-bindings.js');
|
|
212
|
-
|
|
212
|
+
// Absent on Node 22.15–22.22.2 and 24.0–24.11.0 under a `module.registerHooks()`
|
|
213
|
+
// load hook (Playwright 1.64): node evaluates CJS imported from ESM with its
|
|
214
|
+
// internal loader there.
|
|
215
|
+
if (require.cache) {
|
|
216
|
+
delete require.cache[indexModulePath];
|
|
217
|
+
}
|
|
213
218
|
// A direct re-export: node's CommonJS export lexer follows this form, so ESM
|
|
214
219
|
// importers see the named exports. Assigning via a variable hides them.
|
|
215
220
|
module.exports = require('./native-bindings.js');
|
|
@@ -474,8 +474,8 @@ function requireNative() {
|
|
|
474
474
|
loadErrors.push(e)
|
|
475
475
|
}
|
|
476
476
|
try {
|
|
477
|
-
const binding = require('@
|
|
478
|
-
const bindingPackageVersion = require('@
|
|
477
|
+
const binding = require('@nx/nx-openharmony-arm64')
|
|
478
|
+
const bindingPackageVersion = require('@nx/nx-openharmony-arm64/package.json').version
|
|
479
479
|
if (bindingPackageVersion !== '0.0.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
480
|
throw new Error(`Native binding package version mismatch, expected 0.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
@@ -490,8 +490,8 @@ function requireNative() {
|
|
|
490
490
|
loadErrors.push(e)
|
|
491
491
|
}
|
|
492
492
|
try {
|
|
493
|
-
const binding = require('@
|
|
494
|
-
const bindingPackageVersion = require('@
|
|
493
|
+
const binding = require('@nx/nx-openharmony-x64')
|
|
494
|
+
const bindingPackageVersion = require('@nx/nx-openharmony-x64/package.json').version
|
|
495
495
|
if (bindingPackageVersion !== '0.0.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
496
|
throw new Error(`Native binding package version mismatch, expected 0.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
@@ -506,8 +506,8 @@ function requireNative() {
|
|
|
506
506
|
loadErrors.push(e)
|
|
507
507
|
}
|
|
508
508
|
try {
|
|
509
|
-
const binding = require('@
|
|
510
|
-
const bindingPackageVersion = require('@
|
|
509
|
+
const binding = require('@nx/nx-openharmony-arm')
|
|
510
|
+
const bindingPackageVersion = require('@nx/nx-openharmony-arm/package.json').version
|
|
511
511
|
if (bindingPackageVersion !== '0.0.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
512
|
throw new Error(`Native binding package version mismatch, expected 0.0.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
@@ -584,11 +584,13 @@ module.exports.HashPlanner = nativeBinding.HashPlanner
|
|
|
584
584
|
module.exports.HttpRemoteCache = nativeBinding.HttpRemoteCache
|
|
585
585
|
module.exports.IgnoredIndexReader = nativeBinding.IgnoredIndexReader
|
|
586
586
|
module.exports.ImportResult = nativeBinding.ImportResult
|
|
587
|
+
module.exports.LogMatcher = nativeBinding.LogMatcher
|
|
587
588
|
module.exports.NxCache = nativeBinding.NxCache
|
|
588
589
|
module.exports.NxConsolePreferences = nativeBinding.NxConsolePreferences
|
|
589
590
|
module.exports.NxPluginCapabilities = nativeBinding.NxPluginCapabilities
|
|
590
591
|
module.exports.NxTaskHistory = nativeBinding.NxTaskHistory
|
|
591
592
|
module.exports.ProcessMetricsCollector = nativeBinding.ProcessMetricsCollector
|
|
593
|
+
module.exports.ReadinessProbe = nativeBinding.ReadinessProbe
|
|
592
594
|
module.exports.RunningTasksService = nativeBinding.RunningTasksService
|
|
593
595
|
module.exports.RustPseudoTerminal = nativeBinding.RustPseudoTerminal
|
|
594
596
|
module.exports.TaskDetails = nativeBinding.TaskDetails
|
|
@@ -638,12 +640,19 @@ module.exports.locateTouchedProjects = nativeBinding.locateTouchedProjects
|
|
|
638
640
|
module.exports.logDebug = nativeBinding.logDebug
|
|
639
641
|
module.exports.matchGlobPaths = nativeBinding.matchGlobPaths
|
|
640
642
|
module.exports.matchOutputPaths = nativeBinding.matchOutputPaths
|
|
643
|
+
module.exports.openUrl = nativeBinding.openUrl
|
|
641
644
|
module.exports.parseTaskStatus = nativeBinding.parseTaskStatus
|
|
645
|
+
module.exports.readShebangHeaders = nativeBinding.readShebangHeaders
|
|
642
646
|
module.exports.remove = nativeBinding.remove
|
|
647
|
+
module.exports.resolveDaemonSocketPath = nativeBinding.resolveDaemonSocketPath
|
|
648
|
+
module.exports.resolveForkedProcessSocketPath = nativeBinding.resolveForkedProcessSocketPath
|
|
649
|
+
module.exports.resolveNxConsoleSocketPath = nativeBinding.resolveNxConsoleSocketPath
|
|
650
|
+
module.exports.resolvePluginSocketPath = nativeBinding.resolvePluginSocketPath
|
|
643
651
|
module.exports.restoreTerminal = nativeBinding.restoreTerminal
|
|
644
652
|
module.exports.RunMode = nativeBinding.RunMode
|
|
645
653
|
module.exports.SupportedEditor = nativeBinding.SupportedEditor
|
|
646
654
|
module.exports.sweepBatchOutputs = nativeBinding.sweepBatchOutputs
|
|
655
|
+
module.exports.TaskReadiness = nativeBinding.TaskReadiness
|
|
647
656
|
module.exports.TaskStatus = nativeBinding.TaskStatus
|
|
648
657
|
module.exports.testOnlyTransferFileMap = nativeBinding.testOnlyTransferFileMap
|
|
649
658
|
module.exports.trackEvent = nativeBinding.trackEvent
|
|
Binary file
|
|
@@ -124,6 +124,7 @@ export const installNxConsole = __napiModule.exports.installNxConsole
|
|
|
124
124
|
export const IS_WASM = __napiModule.exports.IS_WASM
|
|
125
125
|
export const isAiAgent = __napiModule.exports.isAiAgent
|
|
126
126
|
export const logDebug = __napiModule.exports.logDebug
|
|
127
|
+
export const openUrl = __napiModule.exports.openUrl
|
|
127
128
|
export const remove = __napiModule.exports.remove
|
|
128
129
|
export const testOnlyTransferFileMap = __napiModule.exports.testOnlyTransferFileMap
|
|
129
130
|
export const transferProjectGraph = __napiModule.exports.transferProjectGraph
|
|
@@ -154,6 +154,7 @@ module.exports.installNxConsole = __napiModule.exports.installNxConsole
|
|
|
154
154
|
module.exports.IS_WASM = __napiModule.exports.IS_WASM
|
|
155
155
|
module.exports.isAiAgent = __napiModule.exports.isAiAgent
|
|
156
156
|
module.exports.logDebug = __napiModule.exports.logDebug
|
|
157
|
+
module.exports.openUrl = __napiModule.exports.openUrl
|
|
157
158
|
module.exports.remove = __napiModule.exports.remove
|
|
158
159
|
module.exports.testOnlyTransferFileMap = __napiModule.exports.testOnlyTransferFileMap
|
|
159
160
|
module.exports.transferProjectGraph = __napiModule.exports.transferProjectGraph
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from '../utils/http-client';
|
|
1
2
|
import type { CloudTaskRunnerOptions } from './nx-cloud-tasks-runner-shell';
|
|
2
3
|
import type { ReadUltracacheConfigurationsOptions, ReadUltracacheConfigurationsResult } from '../ultracache/fetch';
|
|
3
4
|
import { TasksRunner } from '../tasks-runner/tasks-runner';
|
|
4
5
|
import { RemoteCacheV2 } from '../tasks-runner/default-tasks-runner';
|
|
6
|
+
interface CloudBundleInstall {
|
|
7
|
+
version: string;
|
|
8
|
+
fullPath: string;
|
|
9
|
+
}
|
|
5
10
|
export declare class NxCloudEnterpriseOutdatedError extends Error {
|
|
6
11
|
constructor(url: string);
|
|
7
12
|
}
|
|
@@ -15,6 +20,13 @@ export interface NxCloudClient {
|
|
|
15
20
|
getRemoteCache: () => RemoteCacheV2;
|
|
16
21
|
/** Clients that expose Ultracache configurations; see `fetchUltracacheConfigurations`. */
|
|
17
22
|
readUltracacheConfigurations?: (options: ReadUltracacheConfigurationsOptions) => Promise<ReadUltracacheConfigurationsResult | null>;
|
|
23
|
+
/** Clients that report the workspace's Ultracache setting; see `isUltracacheOnInCI`. */
|
|
24
|
+
readUltracacheStatus?: (options: {
|
|
25
|
+
nxCloudOptions?: CloudTaskRunnerOptions;
|
|
26
|
+
timeoutMs?: number;
|
|
27
|
+
}) => Promise<{
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
}>;
|
|
18
30
|
}
|
|
19
31
|
export declare function verifyOrUpdateNxCloudClient(options?: {
|
|
20
32
|
url?: string;
|
|
@@ -24,3 +36,5 @@ export declare function verifyOrUpdateNxCloudClient(options?: {
|
|
|
24
36
|
version: string;
|
|
25
37
|
} | null>;
|
|
26
38
|
export declare function getBundleInstallDefaultLocation(): string;
|
|
39
|
+
export declare function downloadAndExtractClientBundle(httpClient: HttpClient, version: string, url: string): Promise<CloudBundleInstall>;
|
|
40
|
+
export {};
|