nx 23.3.0-beta.6 → 23.3.0-beta.8
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 +1 -1
- package/dist/nx-cloud-internals.d.ts +1 -1
- package/dist/nx-cloud-internals.js +4 -4
- package/dist/src/command-line/migrate/agentic/master/run-master-session.d.ts +6 -2
- package/dist/src/command-line/migrate/agentic/master/run-master-session.js +88 -14
- package/dist/src/command-line/migrate/command-object.d.ts +1 -0
- package/dist/src/command-line/migrate/command-object.js +6 -1
- package/dist/src/command-line/migrate/migrate-analytics.d.ts +34 -9
- package/dist/src/command-line/migrate/migrate-analytics.js +71 -10
- package/dist/src/command-line/migrate/migrate-config.d.ts +5 -2
- package/dist/src/command-line/migrate/migrate-config.js +19 -11
- package/dist/src/command-line/migrate/migrate.d.ts +2 -0
- package/dist/src/command-line/migrate/migrate.js +152 -45
- package/dist/src/command-line/migrate/resolve-package-version.js +2 -19
- package/dist/src/command-line/migrate/run/broker.d.ts +14 -2
- package/dist/src/command-line/migrate/run/broker.js +95 -34
- package/dist/src/command-line/migrate/run/existing-run-report.d.ts +55 -0
- package/dist/src/command-line/migrate/run/existing-run-report.js +225 -0
- package/dist/src/command-line/migrate/run/give-up.d.ts +41 -0
- package/dist/src/command-line/migrate/run/give-up.js +148 -0
- package/dist/src/command-line/migrate/run/index.d.ts +6 -4
- package/dist/src/command-line/migrate/run/index.js +15 -2
- package/dist/src/command-line/migrate/run/issues.d.ts +14 -0
- package/dist/src/command-line/migrate/run/issues.js +59 -0
- package/dist/src/command-line/migrate/run/orchestrator.d.ts +40 -1
- package/dist/src/command-line/migrate/run/orchestrator.js +509 -160
- package/dist/src/command-line/migrate/run/run-id.d.ts +0 -8
- package/dist/src/command-line/migrate/run/run-id.js +0 -30
- package/dist/src/command-line/migrate/run/run-state.d.ts +11 -9
- package/dist/src/command-line/migrate/run/run-state.js +25 -12
- package/dist/src/command-line/migrate/run/runbook.js +9 -4
- package/dist/src/command-line/migrate/run/state-lock.d.ts +31 -0
- package/dist/src/command-line/migrate/run/state-lock.js +126 -0
- package/dist/src/command-line/migrate/run/state-machine.d.ts +15 -0
- package/dist/src/command-line/migrate/run/state-machine.js +137 -10
- package/dist/src/command-line/migrate/run/util.d.ts +1 -0
- package/dist/src/command-line/migrate/run/util.js +21 -0
- package/dist/src/command-line/migrate/run/worker.js +3 -0
- package/dist/src/command-line/migrate/step-actions.d.ts +1 -1
- package/dist/src/command-line/migrate/step-actions.js +7 -1
- package/dist/src/command-line/migrate/text.d.ts +6 -0
- package/dist/src/command-line/migrate/text.js +25 -0
- package/dist/src/command-line/release/utils/release-graph.js +1 -1
- package/dist/src/command-line/release/utils/remote-release-clients/github.js +2 -5
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.d.ts +2 -2
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.js +4 -5
- package/dist/src/command-line/release/version/version-actions.d.ts +3 -0
- package/dist/src/command-line/reset/reset.js +3 -0
- package/dist/src/config/task-graph.d.ts +1 -1
- package/dist/src/config/workspace-json-project-json.d.ts +4 -4
- package/dist/src/daemon/client/client.d.ts +3 -3
- package/dist/src/daemon/client/client.js +4 -4
- package/dist/src/daemon/message-types/ultracache-configuration-version.d.ts +8 -0
- package/dist/src/daemon/server/handle-hash-tasks.d.ts +2 -2
- package/dist/src/daemon/server/handle-hash-tasks.js +3 -3
- package/dist/src/daemon/server/handle-select-affected-tasks.js +4 -2
- package/dist/src/daemon/server/ultracache-configuration-state.d.ts +7 -0
- package/dist/src/daemon/server/{io-snapshots-state.js → ultracache-configuration-state.js} +5 -4
- package/dist/src/hasher/create-task-hasher.d.ts +3 -3
- package/dist/src/hasher/create-task-hasher.js +6 -6
- package/dist/src/hasher/hash-task.d.ts +2 -2
- package/dist/src/hasher/hash-task.js +5 -5
- package/dist/src/hasher/native-task-hasher-impl.d.ts +7 -7
- package/dist/src/hasher/native-task-hasher-impl.js +19 -19
- package/dist/src/hasher/task-hasher.d.ts +14 -14
- package/dist/src/hasher/task-hasher.js +13 -13
- package/dist/src/native/index.d.ts +95 -102
- package/dist/src/native/native-bindings.js +4 -5
- 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/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +15 -8
- package/dist/src/nx-cloud/update-manager.d.ts +3 -3
- package/dist/src/nx-cloud/update-manager.js +19 -13
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.js +2 -1
- package/dist/src/nx-cloud/utilities/nx-cloud-http-client.d.ts +5 -0
- package/dist/src/nx-cloud/utilities/nx-cloud-http-client.js +16 -0
- package/dist/src/nx-cloud/utilities/url-shorten.js +17 -10
- package/dist/src/plugins/js/index.js +45 -64
- package/dist/src/plugins/js/lock-file/lock-file.d.ts +4 -4
- package/dist/src/plugins/js/lock-file/lock-file.js +6 -7
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +22 -18
- package/dist/src/project-graph/affected/affected-tasks.d.ts +11 -10
- package/dist/src/project-graph/affected/affected-tasks.js +16 -20
- package/dist/src/tasks-runner/init-tasks-runner.d.ts +5 -5
- package/dist/src/tasks-runner/init-tasks-runner.js +8 -15
- package/dist/src/tasks-runner/run-command.d.ts +7 -7
- package/dist/src/tasks-runner/run-command.js +18 -23
- package/dist/src/ultracache/config.d.ts +21 -0
- package/dist/src/ultracache/config.js +29 -0
- package/dist/src/ultracache/fetch.d.ts +21 -0
- package/dist/src/{io-snapshots → ultracache}/fetch.js +9 -9
- package/dist/src/ultracache/overrides.d.ts +17 -0
- package/dist/src/{io-snapshots → ultracache}/overrides.js +22 -10
- package/dist/src/ultracache/report.d.ts +13 -0
- package/dist/src/{io-snapshots → ultracache}/report.js +15 -21
- package/dist/src/ultracache/store.d.ts +40 -0
- package/dist/src/{io-snapshots → ultracache}/store.js +45 -45
- package/dist/src/utils/ab-testing.js +11 -12
- package/dist/src/utils/db-connection.d.ts +1 -0
- package/dist/src/utils/db-connection.js +1 -0
- package/dist/src/utils/git-utils.d.ts +7 -0
- package/dist/src/utils/git-utils.js +21 -9
- package/dist/src/utils/http-client.d.ts +27 -0
- package/dist/src/utils/http-client.js +193 -0
- package/package.json +12 -38
- package/dist/src/daemon/message-types/io-snapshot-version.d.ts +0 -5
- package/dist/src/daemon/server/io-snapshots-state.d.ts +0 -7
- package/dist/src/io-snapshots/config.d.ts +0 -23
- package/dist/src/io-snapshots/config.js +0 -32
- package/dist/src/io-snapshots/fetch.d.ts +0 -21
- package/dist/src/io-snapshots/outputs.d.ts +0 -12
- package/dist/src/io-snapshots/outputs.js +0 -33
- package/dist/src/io-snapshots/overrides.d.ts +0 -12
- package/dist/src/io-snapshots/report.d.ts +0 -13
- package/dist/src/io-snapshots/store.d.ts +0 -37
- package/dist/src/nx-cloud/utilities/axios.d.ts +0 -4
- package/dist/src/nx-cloud/utilities/axios.js +0 -17
- /package/dist/src/daemon/message-types/{io-snapshot-version.js → ultracache-configuration-version.js} +0 -0
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { type MigrateRunState } from './run-state';
|
|
1
|
+
import { type MigrateRunPolicy, type MigrateRunState } from './run-state';
|
|
2
2
|
import { type StepAction } from './state-machine';
|
|
3
3
|
import { type PlannedMigration } from '../migration-shape';
|
|
4
|
+
import { type ExistingRunFacts } from './existing-run-report';
|
|
4
5
|
export interface RunOrchestratorInitInput {
|
|
5
6
|
root: string;
|
|
6
7
|
migrationsJson: {
|
|
7
8
|
migrations?: PlannedMigration[];
|
|
8
9
|
[k: string]: unknown;
|
|
9
10
|
};
|
|
11
|
+
migrationsPath?: string;
|
|
10
12
|
createCommits: boolean;
|
|
11
13
|
commitPrefix: string;
|
|
12
14
|
skipInstall: boolean;
|
|
13
15
|
installedNxVersion: string;
|
|
14
16
|
validate: boolean | undefined;
|
|
15
17
|
emitAgentInstructions?: boolean;
|
|
18
|
+
onExistingRun?: 'report' | 'start-fresh';
|
|
19
|
+
replaceRunId?: string;
|
|
20
|
+
confirmStart?: () => Promise<boolean>;
|
|
16
21
|
}
|
|
17
22
|
export type OrchestratorInitResult = {
|
|
18
23
|
kind: 'ready';
|
|
@@ -22,13 +27,47 @@ export type OrchestratorInitResult = {
|
|
|
22
27
|
reconcileCommand: string;
|
|
23
28
|
} | {
|
|
24
29
|
kind: 'refused';
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'existing-run';
|
|
32
|
+
runId: string;
|
|
33
|
+
facts: ExistingRunFacts;
|
|
25
34
|
};
|
|
35
|
+
export interface RunOrchestratorResumeInput {
|
|
36
|
+
root: string;
|
|
37
|
+
runId: string;
|
|
38
|
+
policy: MigrateRunPolicy;
|
|
39
|
+
emitAgentInstructions?: boolean;
|
|
40
|
+
}
|
|
26
41
|
export interface RunOrchestratorReconcileInput {
|
|
27
42
|
root: string;
|
|
28
43
|
runId: string;
|
|
29
44
|
stepAction?: StepAction;
|
|
30
45
|
}
|
|
31
46
|
export declare function runOrchestratorInit(input: RunOrchestratorInitInput): Promise<OrchestratorInitResult>;
|
|
47
|
+
/**
|
|
48
|
+
* Continues the active run `runId` names: the `--run-migrations --run-id`
|
|
49
|
+
* shape on both paths. Refuses as holdRunToContinue does.
|
|
50
|
+
*/
|
|
51
|
+
export declare function runOrchestratorResume(input: RunOrchestratorResumeInput): OrchestratorInitResult;
|
|
52
|
+
/**
|
|
53
|
+
* Holds the active run `runId` names and returns its state. A continue calls
|
|
54
|
+
* this before the install and the agent selection: a concurrent start-fresh
|
|
55
|
+
* must not delete the run meanwhile. Throws when the id names no run or a
|
|
56
|
+
* finished one, and while another process holds the run: continuing would
|
|
57
|
+
* open a second session over a live one. Under WASM nothing is held and no
|
|
58
|
+
* holder refuses.
|
|
59
|
+
*/
|
|
60
|
+
export declare function holdRunToContinue(root: string, runId: string): MigrateRunState;
|
|
61
|
+
export declare function activeRunToReplace(root: string, runId: string | undefined): {
|
|
62
|
+
runId: string;
|
|
63
|
+
state: MigrateRunState;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Drops the hold holdRunToContinue took, for a wrapper that hands the
|
|
67
|
+
* continue to the workspace-local nx: the child takes its own hold, and an
|
|
68
|
+
* exclusive one refuses while this process still holds.
|
|
69
|
+
*/
|
|
70
|
+
export declare function releaseRunToHandOff(root: string, runId: string): void;
|
|
32
71
|
export declare function runOrchestratorReconcile(input: RunOrchestratorReconcileInput): Promise<void>;
|
|
33
72
|
/**
|
|
34
73
|
* What a completed run leaves behind for whoever reads its summary, one line
|