nx 22.1.0-canary.20251112-36b9f7a → 22.1.0-canary.20251117-e8576a8
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/bin/init-local.d.ts.map +1 -1
- package/bin/init-local.js +40 -2
- package/executors.json +16 -16
- package/generators.json +13 -13
- package/migrations.json +143 -143
- package/package.json +11 -14
- package/presets/npm.json +4 -4
- package/schemas/nx-schema.json +1286 -1286
- package/schemas/project-schema.json +359 -359
- package/schemas/workspace-schema.json +165 -165
- package/src/ai/set-up-ai-agents/schema.json +31 -31
- package/src/command-line/add/add.d.ts.map +1 -1
- package/src/command-line/add/add.js +5 -2
- package/src/command-line/init/command-object.d.ts.map +1 -1
- package/src/command-line/init/command-object.js +10 -0
- package/src/core/graph/main.js +1 -1
- package/src/daemon/client/client.d.ts +3 -0
- package/src/daemon/client/client.d.ts.map +1 -1
- package/src/daemon/client/client.js +18 -4
- package/src/daemon/client/daemon-socket-messenger.d.ts.map +1 -1
- package/src/daemon/client/daemon-socket-messenger.js +4 -0
- package/src/daemon/message-types/nx-console.d.ts +18 -0
- package/src/daemon/message-types/nx-console.d.ts.map +1 -0
- package/src/daemon/message-types/nx-console.js +19 -0
- package/src/daemon/server/handle-nx-console.d.ts +4 -0
- package/src/daemon/server/handle-nx-console.d.ts.map +1 -0
- package/src/daemon/server/handle-nx-console.js +54 -0
- package/src/daemon/server/nx-console-operations.d.ts +31 -0
- package/src/daemon/server/nx-console-operations.d.ts.map +1 -0
- package/src/daemon/server/nx-console-operations.js +135 -0
- package/src/daemon/server/server.d.ts.map +1 -1
- package/src/daemon/server/server.js +16 -0
- package/src/daemon/server/shutdown-utils.d.ts.map +1 -1
- package/src/daemon/server/shutdown-utils.js +3 -0
- package/src/devkit-internals.d.ts +1 -1
- package/src/devkit-internals.d.ts.map +1 -1
- package/src/devkit-internals.js +2 -1
- package/src/executors/noop/schema.json +8 -8
- package/src/executors/run-commands/schema.json +187 -187
- package/src/executors/run-script/schema.json +25 -25
- package/src/native/index.d.ts +37 -24
- package/src/native/native-bindings.js +1 -0
- package/src/native/nx.wasi-browser.js +45 -53
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +38 -38
- package/src/project-graph/plugins/resolve-plugin.js +1 -1
- package/src/tasks-runner/process-metrics-service.d.ts +2 -2
- package/src/tasks-runner/process-metrics-service.d.ts.map +1 -1
- package/src/tasks-runner/task-env-paths.d.ts +2 -0
- package/src/tasks-runner/task-env-paths.d.ts.map +1 -0
- package/src/tasks-runner/task-env-paths.js +45 -0
- package/src/tasks-runner/task-env.d.ts +3 -1
- package/src/tasks-runner/task-env.d.ts.map +1 -1
- package/src/tasks-runner/task-env.js +27 -51
- package/src/tasks-runner/task-orchestrator.js +1 -1
- package/src/utils/consume-messages-from-socket.d.ts.map +1 -1
- package/src/utils/consume-messages-from-socket.js +4 -2
- package/src/utils/package-json.d.ts +4 -0
- package/src/utils/package-json.d.ts.map +1 -1
- package/src/utils/package-json.js +45 -11
|
@@ -1,198 +1,198 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
"name": "Custom done conditions",
|
|
15
|
-
"keys": ["commands", "readyWhen"]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "Setting the cwd",
|
|
19
|
-
"keys": ["commands", "cwd"]
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"properties": {
|
|
23
|
-
"commands": {
|
|
24
|
-
"type": "array",
|
|
25
|
-
"description": "Commands to run in child process.",
|
|
26
|
-
"items": {
|
|
27
|
-
"oneOf": [
|
|
28
|
-
{
|
|
29
|
-
"type": "object",
|
|
30
|
-
"properties": {
|
|
31
|
-
"command": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"description": "Command to run in child process."
|
|
34
|
-
},
|
|
35
|
-
"forwardAllArgs": {
|
|
36
|
-
"type": "boolean",
|
|
37
|
-
"description": "Whether arguments should be forwarded when interpolation is not present."
|
|
38
|
-
},
|
|
39
|
-
"prefix": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"description": "Prefix in front of every line out of the output"
|
|
42
|
-
},
|
|
43
|
-
"prefixColor": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "Color of the prefix",
|
|
46
|
-
"enum": [
|
|
47
|
-
"black",
|
|
48
|
-
"red",
|
|
49
|
-
"green",
|
|
50
|
-
"yellow",
|
|
51
|
-
"blue",
|
|
52
|
-
"magenta",
|
|
53
|
-
"cyan",
|
|
54
|
-
"white"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
"color": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"description": "Color of the output",
|
|
60
|
-
"enum": [
|
|
61
|
-
"black",
|
|
62
|
-
"red",
|
|
63
|
-
"green",
|
|
64
|
-
"yellow",
|
|
65
|
-
"blue",
|
|
66
|
-
"magenta",
|
|
67
|
-
"cyan",
|
|
68
|
-
"white"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
"bgColor": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"description": "Background color of the output",
|
|
74
|
-
"enum": [
|
|
75
|
-
"bgBlack",
|
|
76
|
-
"bgRed",
|
|
77
|
-
"bgGreen",
|
|
78
|
-
"bgYellow",
|
|
79
|
-
"bgBlue",
|
|
80
|
-
"bgMagenta",
|
|
81
|
-
"bgCyan",
|
|
82
|
-
"bgWhite"
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"description": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"description": "An optional description useful for inline documentation purposes. It is not used as part of the execution of the command."
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"additionalProperties": false,
|
|
91
|
-
"required": ["command"]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "string"
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
"x-priority": "important"
|
|
99
|
-
},
|
|
100
|
-
"command": {
|
|
101
|
-
"oneOf": [
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "Run Commands",
|
|
4
|
+
"description": "Run any custom commands with Nx.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"outputCapture": "pipe",
|
|
8
|
+
"presets": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Arguments forwarding",
|
|
11
|
+
"keys": ["commands"]
|
|
12
|
+
},
|
|
102
13
|
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"items": {
|
|
106
|
-
"type": "string"
|
|
107
|
-
},
|
|
108
|
-
"x-priority": "important"
|
|
14
|
+
"name": "Custom done conditions",
|
|
15
|
+
"keys": ["commands", "readyWhen"]
|
|
109
16
|
},
|
|
110
17
|
{
|
|
111
|
-
|
|
112
|
-
|
|
18
|
+
"name": "Setting the cwd",
|
|
19
|
+
"keys": ["commands", "cwd"]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"commands": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"description": "Commands to run in child process.",
|
|
26
|
+
"items": {
|
|
27
|
+
"oneOf": [
|
|
28
|
+
{
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"command": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Command to run in child process."
|
|
34
|
+
},
|
|
35
|
+
"forwardAllArgs": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "Whether arguments should be forwarded when interpolation is not present."
|
|
38
|
+
},
|
|
39
|
+
"prefix": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Prefix in front of every line out of the output"
|
|
42
|
+
},
|
|
43
|
+
"prefixColor": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Color of the prefix",
|
|
46
|
+
"enum": [
|
|
47
|
+
"black",
|
|
48
|
+
"red",
|
|
49
|
+
"green",
|
|
50
|
+
"yellow",
|
|
51
|
+
"blue",
|
|
52
|
+
"magenta",
|
|
53
|
+
"cyan",
|
|
54
|
+
"white"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"color": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Color of the output",
|
|
60
|
+
"enum": [
|
|
61
|
+
"black",
|
|
62
|
+
"red",
|
|
63
|
+
"green",
|
|
64
|
+
"yellow",
|
|
65
|
+
"blue",
|
|
66
|
+
"magenta",
|
|
67
|
+
"cyan",
|
|
68
|
+
"white"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"bgColor": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Background color of the output",
|
|
74
|
+
"enum": [
|
|
75
|
+
"bgBlack",
|
|
76
|
+
"bgRed",
|
|
77
|
+
"bgGreen",
|
|
78
|
+
"bgYellow",
|
|
79
|
+
"bgBlue",
|
|
80
|
+
"bgMagenta",
|
|
81
|
+
"bgCyan",
|
|
82
|
+
"bgWhite"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"description": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "An optional description useful for inline documentation purposes. It is not used as part of the execution of the command."
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": ["command"]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"x-priority": "important"
|
|
99
|
+
},
|
|
100
|
+
"command": {
|
|
101
|
+
"oneOf": [
|
|
102
|
+
{
|
|
103
|
+
"type": "array",
|
|
104
|
+
"description": "Command to run in child process, but divided into parts.",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"x-priority": "important"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "Command to run in child process."
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"type": "string",
|
|
116
|
+
"description": "Command to run in child process.",
|
|
117
|
+
"x-priority": "important"
|
|
118
|
+
},
|
|
119
|
+
"parallel": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"description": "Run commands in parallel.",
|
|
122
|
+
"default": true,
|
|
123
|
+
"x-priority": "important"
|
|
124
|
+
},
|
|
125
|
+
"readyWhen": {
|
|
126
|
+
"description": "String or array of strings to appear in `stdout` or `stderr` that indicate that the task is done. When running multiple commands, this option can only be used when `parallel` is set to `true`. If not specified, the task is done when all the child processes complete.",
|
|
127
|
+
"oneOf": [
|
|
128
|
+
{ "type": "string" },
|
|
129
|
+
{ "type": "array", "items": { "type": "string" } }
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"args": {
|
|
133
|
+
"oneOf": [
|
|
134
|
+
{
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"type": "string"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"description": "Extra arguments. You can pass them as follows: nx run project:target --args='--wait=100'. You can then use {args.wait} syntax to interpolate them in the workspace config file. See example [above](#chaining-commands-interpolating-args-and-setting-the-cwd)"
|
|
145
|
+
},
|
|
146
|
+
"envFile": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "You may specify a custom .env file path."
|
|
149
|
+
},
|
|
150
|
+
"color": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"description": "Use colors when showing output of command.",
|
|
153
|
+
"default": false
|
|
154
|
+
},
|
|
155
|
+
"cwd": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Current working directory of the commands. If it's not specified the commands will run in the workspace root, if a relative path is specified the commands will run in that path relative to the workspace root and if it's an absolute path the commands will run in that path."
|
|
158
|
+
},
|
|
159
|
+
"env": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"description": "Environment variables that will be made available to the commands. This property has priority over the `.env` files.",
|
|
162
|
+
"additionalProperties": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"__unparsed__": {
|
|
167
|
+
"hidden": true,
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"$default": {
|
|
173
|
+
"$source": "unparsed"
|
|
174
|
+
},
|
|
175
|
+
"x-priority": "internal"
|
|
176
|
+
},
|
|
177
|
+
"forwardAllArgs": {
|
|
178
|
+
"type": "boolean",
|
|
179
|
+
"description": "Whether arguments should be forwarded when interpolation is not present.",
|
|
180
|
+
"default": true
|
|
181
|
+
},
|
|
182
|
+
"tty": {
|
|
183
|
+
"type": "boolean",
|
|
184
|
+
"description": "Whether commands should be run with a tty terminal",
|
|
185
|
+
"hidden": true
|
|
113
186
|
}
|
|
114
|
-
],
|
|
115
|
-
"type": "string",
|
|
116
|
-
"description": "Command to run in child process.",
|
|
117
|
-
"x-priority": "important"
|
|
118
|
-
},
|
|
119
|
-
"parallel": {
|
|
120
|
-
"type": "boolean",
|
|
121
|
-
"description": "Run commands in parallel.",
|
|
122
|
-
"default": true,
|
|
123
|
-
"x-priority": "important"
|
|
124
|
-
},
|
|
125
|
-
"readyWhen": {
|
|
126
|
-
"description": "String or array of strings to appear in `stdout` or `stderr` that indicate that the task is done. When running multiple commands, this option can only be used when `parallel` is set to `true`. If not specified, the task is done when all the child processes complete.",
|
|
127
|
-
"oneOf": [
|
|
128
|
-
{ "type": "string" },
|
|
129
|
-
{ "type": "array", "items": { "type": "string" } }
|
|
130
|
-
]
|
|
131
187
|
},
|
|
132
|
-
"
|
|
133
|
-
|
|
188
|
+
"additionalProperties": true,
|
|
189
|
+
"oneOf": [
|
|
134
190
|
{
|
|
135
|
-
|
|
136
|
-
"items": {
|
|
137
|
-
"type": "string"
|
|
138
|
-
}
|
|
191
|
+
"required": ["commands"]
|
|
139
192
|
},
|
|
140
193
|
{
|
|
141
|
-
|
|
194
|
+
"required": ["command"]
|
|
142
195
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
"envFile": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"description": "You may specify a custom .env file path."
|
|
149
|
-
},
|
|
150
|
-
"color": {
|
|
151
|
-
"type": "boolean",
|
|
152
|
-
"description": "Use colors when showing output of command.",
|
|
153
|
-
"default": false
|
|
154
|
-
},
|
|
155
|
-
"cwd": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"description": "Current working directory of the commands. If it's not specified the commands will run in the workspace root, if a relative path is specified the commands will run in that path relative to the workspace root and if it's an absolute path the commands will run in that path."
|
|
158
|
-
},
|
|
159
|
-
"env": {
|
|
160
|
-
"type": "object",
|
|
161
|
-
"description": "Environment variables that will be made available to the commands. This property has priority over the `.env` files.",
|
|
162
|
-
"additionalProperties": {
|
|
163
|
-
"type": "string"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"__unparsed__": {
|
|
167
|
-
"hidden": true,
|
|
168
|
-
"type": "array",
|
|
169
|
-
"items": {
|
|
170
|
-
"type": "string"
|
|
171
|
-
},
|
|
172
|
-
"$default": {
|
|
173
|
-
"$source": "unparsed"
|
|
174
|
-
},
|
|
175
|
-
"x-priority": "internal"
|
|
176
|
-
},
|
|
177
|
-
"forwardAllArgs": {
|
|
178
|
-
"type": "boolean",
|
|
179
|
-
"description": "Whether arguments should be forwarded when interpolation is not present.",
|
|
180
|
-
"default": true
|
|
181
|
-
},
|
|
182
|
-
"tty": {
|
|
183
|
-
"type": "boolean",
|
|
184
|
-
"description": "Whether commands should be run with a tty terminal",
|
|
185
|
-
"hidden": true
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"additionalProperties": true,
|
|
189
|
-
"oneOf": [
|
|
190
|
-
{
|
|
191
|
-
"required": ["commands"]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"required": ["command"]
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"examplesFile": "../../../docs/run-commands-examples.md"
|
|
196
|
+
],
|
|
197
|
+
"examplesFile": "../../../docs/run-commands-examples.md"
|
|
198
198
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "Run Script",
|
|
4
|
+
"description": "Run any NPM script of a project in the project's root directory.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"outputCapture": "pipe",
|
|
8
|
+
"properties": {
|
|
9
|
+
"script": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "An npm script name in the `package.json` file of the project (e.g., `build`)."
|
|
12
|
+
},
|
|
13
|
+
"__unparsed__": {
|
|
14
|
+
"hidden": true,
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "unparsed"
|
|
21
|
+
},
|
|
22
|
+
"x-priority": "internal"
|
|
23
|
+
}
|
|
12
24
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"items": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
19
|
-
"$default": {
|
|
20
|
-
"$source": "unparsed"
|
|
21
|
-
},
|
|
22
|
-
"x-priority": "internal"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": true,
|
|
26
|
-
"required": ["script"],
|
|
27
|
-
"examplesFile": "../../../docs/run-script-examples.md"
|
|
25
|
+
"additionalProperties": true,
|
|
26
|
+
"required": ["script"],
|
|
27
|
+
"examplesFile": "../../../docs/run-script-examples.md"
|
|
28
28
|
}
|
package/src/native/index.d.ts
CHANGED
|
@@ -193,13 +193,6 @@ export declare class WorkspaceContext {
|
|
|
193
193
|
getFilesInDirectory(directory: string): Array<string>
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
/** Batch metrics snapshot */
|
|
197
|
-
export interface BatchMetricsSnapshot {
|
|
198
|
-
batchId: string
|
|
199
|
-
taskIds: Array<string>
|
|
200
|
-
processes: Array<ProcessMetrics>
|
|
201
|
-
}
|
|
202
|
-
|
|
203
196
|
export interface CachedResult {
|
|
204
197
|
code: number
|
|
205
198
|
terminalOutput?: string
|
|
@@ -272,6 +265,30 @@ export declare export declare function getFilesForOutputs(directory: string, ent
|
|
|
272
265
|
|
|
273
266
|
export declare export declare function getTransformableOutputs(outputs: Array<string>): Array<string>
|
|
274
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Group information - union of different process group types
|
|
270
|
+
* Use group_type to discriminate which optional fields are present
|
|
271
|
+
*/
|
|
272
|
+
export interface GroupInfo {
|
|
273
|
+
/** Type discriminator: MainCLI, Daemon, Task, or Batch */
|
|
274
|
+
groupType: GroupType
|
|
275
|
+
/** Display name for the group */
|
|
276
|
+
displayName: string
|
|
277
|
+
/** Unique ID for this group */
|
|
278
|
+
id: string
|
|
279
|
+
/** Task IDs in this batch (present for Batch groups) */
|
|
280
|
+
taskIds?: Array<string>
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/** Group type discriminator */
|
|
284
|
+
export declare const enum GroupType {
|
|
285
|
+
MainCLI = 'MainCLI',
|
|
286
|
+
MainCliSubprocesses = 'MainCliSubprocesses',
|
|
287
|
+
Daemon = 'Daemon',
|
|
288
|
+
Task = 'Task',
|
|
289
|
+
Batch = 'Batch'
|
|
290
|
+
}
|
|
291
|
+
|
|
275
292
|
export declare export declare function hashArray(input: Array<string | undefined | null>): string
|
|
276
293
|
|
|
277
294
|
export interface HashDetails {
|
|
@@ -311,10 +328,19 @@ export declare export declare function isEditorInstalled(editor: SupportedEditor
|
|
|
311
328
|
|
|
312
329
|
export declare export declare function logDebug(message: string): void
|
|
313
330
|
|
|
331
|
+
/** Combined metadata for groups and processes */
|
|
332
|
+
export interface Metadata {
|
|
333
|
+
/** Group-level metadata */
|
|
334
|
+
groups: Record<string, GroupInfo>
|
|
335
|
+
/** Process-level metadata (keyed by PID as string for NAPI compatibility) */
|
|
336
|
+
processes: Record<string, ProcessMetadata>
|
|
337
|
+
}
|
|
338
|
+
|
|
314
339
|
/** Metrics update sent every collection cycle */
|
|
315
340
|
export interface MetricsUpdate {
|
|
316
|
-
|
|
317
|
-
|
|
341
|
+
timestamp: number
|
|
342
|
+
processes: Array<ProcessMetrics>
|
|
343
|
+
metadata: Metadata
|
|
318
344
|
}
|
|
319
345
|
|
|
320
346
|
/** Stripped version of the NxJson interface for use in rust */
|
|
@@ -344,6 +370,8 @@ export interface ProcessMetadata {
|
|
|
344
370
|
exePath: string
|
|
345
371
|
cwd: string
|
|
346
372
|
alias?: string
|
|
373
|
+
groupId: string
|
|
374
|
+
isRoot: boolean
|
|
347
375
|
}
|
|
348
376
|
|
|
349
377
|
/** Process metrics (dynamic, changes every collection) */
|
|
@@ -353,21 +381,6 @@ export interface ProcessMetrics {
|
|
|
353
381
|
memory: number
|
|
354
382
|
}
|
|
355
383
|
|
|
356
|
-
/** Organized collection of process metrics with timestamp */
|
|
357
|
-
export interface ProcessMetricsSnapshot {
|
|
358
|
-
timestamp: number
|
|
359
|
-
mainCli?: ProcessTreeMetrics
|
|
360
|
-
daemon?: ProcessTreeMetrics
|
|
361
|
-
tasks: Record<string, Array<ProcessMetrics>>
|
|
362
|
-
batches: Record<string, BatchMetricsSnapshot>
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/** Metrics for a process and its subprocesses (used for both CLI and daemon) */
|
|
366
|
-
export interface ProcessTreeMetrics {
|
|
367
|
-
main: ProcessMetrics
|
|
368
|
-
subprocesses: Array<ProcessMetrics>
|
|
369
|
-
}
|
|
370
|
-
|
|
371
384
|
export interface Project {
|
|
372
385
|
root: string
|
|
373
386
|
namedInputs?: Record<string, Array<JsInputs>>
|
|
@@ -390,6 +390,7 @@ module.exports.getBinaryTarget = nativeBinding.getBinaryTarget
|
|
|
390
390
|
module.exports.getDefaultMaxCacheSize = nativeBinding.getDefaultMaxCacheSize
|
|
391
391
|
module.exports.getFilesForOutputs = nativeBinding.getFilesForOutputs
|
|
392
392
|
module.exports.getTransformableOutputs = nativeBinding.getTransformableOutputs
|
|
393
|
+
module.exports.GroupType = nativeBinding.GroupType
|
|
393
394
|
module.exports.hashArray = nativeBinding.hashArray
|
|
394
395
|
module.exports.hashFile = nativeBinding.hashFile
|
|
395
396
|
module.exports.installNxConsole = nativeBinding.installNxConsole
|
|
@@ -59,55 +59,51 @@ function __napi_rs_initialize_modules(__napiInstance) {
|
|
|
59
59
|
__napiInstance.exports['__napi_register__get_transformable_outputs_5']?.()
|
|
60
60
|
__napiInstance.exports['__napi_register__hash_array_6']?.()
|
|
61
61
|
__napiInstance.exports['__napi_register__hash_file_7']?.()
|
|
62
|
-
__napiInstance.exports['
|
|
63
|
-
__napiInstance.exports['
|
|
64
|
-
__napiInstance.exports['
|
|
65
|
-
__napiInstance.exports['
|
|
66
|
-
__napiInstance.exports['
|
|
67
|
-
__napiInstance.exports['
|
|
68
|
-
__napiInstance.exports['
|
|
69
|
-
__napiInstance.exports['
|
|
70
|
-
__napiInstance.exports['
|
|
71
|
-
__napiInstance.exports['
|
|
72
|
-
__napiInstance.exports['
|
|
73
|
-
__napiInstance.exports['
|
|
74
|
-
__napiInstance.exports['
|
|
75
|
-
__napiInstance.exports['
|
|
76
|
-
__napiInstance.exports['
|
|
77
|
-
__napiInstance.exports['
|
|
78
|
-
__napiInstance.exports['
|
|
79
|
-
__napiInstance.exports['
|
|
80
|
-
__napiInstance.exports['
|
|
81
|
-
__napiInstance.exports['
|
|
82
|
-
__napiInstance.exports['
|
|
83
|
-
__napiInstance.exports['
|
|
84
|
-
__napiInstance.exports['
|
|
85
|
-
__napiInstance.exports['
|
|
86
|
-
__napiInstance.exports['
|
|
87
|
-
__napiInstance.exports['
|
|
88
|
-
__napiInstance.exports['
|
|
89
|
-
__napiInstance.exports['
|
|
90
|
-
__napiInstance.exports['
|
|
91
|
-
__napiInstance.exports['
|
|
92
|
-
__napiInstance.exports['
|
|
93
|
-
__napiInstance.exports['
|
|
94
|
-
__napiInstance.exports['
|
|
95
|
-
__napiInstance.exports['
|
|
96
|
-
__napiInstance.exports['
|
|
97
|
-
__napiInstance.exports['
|
|
98
|
-
__napiInstance.exports['
|
|
99
|
-
__napiInstance.exports['
|
|
100
|
-
__napiInstance.exports['
|
|
101
|
-
__napiInstance.exports['
|
|
102
|
-
__napiInstance.exports['
|
|
103
|
-
__napiInstance.exports['
|
|
104
|
-
__napiInstance.exports['
|
|
105
|
-
__napiInstance.exports['
|
|
106
|
-
__napiInstance.exports['
|
|
107
|
-
__napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_74']?.()
|
|
108
|
-
__napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_75']?.()
|
|
109
|
-
__napiInstance.exports['__napi_register__FileMap_struct_76']?.()
|
|
110
|
-
__napiInstance.exports['__napi_register____test_only_transfer_file_map_77']?.()
|
|
62
|
+
__napiInstance.exports['__napi_register__can_install_nx_console_8']?.()
|
|
63
|
+
__napiInstance.exports['__napi_register__install_nx_console_9']?.()
|
|
64
|
+
__napiInstance.exports['__napi_register__NxConsolePreferences_struct_10']?.()
|
|
65
|
+
__napiInstance.exports['__napi_register__NxConsolePreferences_impl_14']?.()
|
|
66
|
+
__napiInstance.exports['__napi_register__log_debug_15']?.()
|
|
67
|
+
__napiInstance.exports['__napi_register__IS_WASM_16']?.()
|
|
68
|
+
__napiInstance.exports['__napi_register__get_binary_target_17']?.()
|
|
69
|
+
__napiInstance.exports['__napi_register__ImportResult_struct_18']?.()
|
|
70
|
+
__napiInstance.exports['__napi_register__find_imports_19']?.()
|
|
71
|
+
__napiInstance.exports['__napi_register__transfer_project_graph_20']?.()
|
|
72
|
+
__napiInstance.exports['__napi_register__ExternalNode_struct_21']?.()
|
|
73
|
+
__napiInstance.exports['__napi_register__Target_struct_22']?.()
|
|
74
|
+
__napiInstance.exports['__napi_register__Project_struct_23']?.()
|
|
75
|
+
__napiInstance.exports['__napi_register__ProjectGraph_struct_24']?.()
|
|
76
|
+
__napiInstance.exports['__napi_register__HashPlanInspector_struct_25']?.()
|
|
77
|
+
__napiInstance.exports['__napi_register__HashPlanInspector_impl_28']?.()
|
|
78
|
+
__napiInstance.exports['__napi_register__HashPlanner_struct_29']?.()
|
|
79
|
+
__napiInstance.exports['__napi_register__HashPlanner_impl_33']?.()
|
|
80
|
+
__napiInstance.exports['__napi_register__HashDetails_struct_34']?.()
|
|
81
|
+
__napiInstance.exports['__napi_register__HasherOptions_struct_35']?.()
|
|
82
|
+
__napiInstance.exports['__napi_register__TaskHasher_struct_36']?.()
|
|
83
|
+
__napiInstance.exports['__napi_register__TaskHasher_impl_39']?.()
|
|
84
|
+
__napiInstance.exports['__napi_register__Task_struct_40']?.()
|
|
85
|
+
__napiInstance.exports['__napi_register__TaskTarget_struct_41']?.()
|
|
86
|
+
__napiInstance.exports['__napi_register__TaskResult_struct_42']?.()
|
|
87
|
+
__napiInstance.exports['__napi_register__TaskGraph_struct_43']?.()
|
|
88
|
+
__napiInstance.exports['__napi_register__FileData_struct_44']?.()
|
|
89
|
+
__napiInstance.exports['__napi_register__InputsInput_struct_45']?.()
|
|
90
|
+
__napiInstance.exports['__napi_register__FileSetInput_struct_46']?.()
|
|
91
|
+
__napiInstance.exports['__napi_register__RuntimeInput_struct_47']?.()
|
|
92
|
+
__napiInstance.exports['__napi_register__EnvironmentInput_struct_48']?.()
|
|
93
|
+
__napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_49']?.()
|
|
94
|
+
__napiInstance.exports['__napi_register__DepsOutputsInput_struct_50']?.()
|
|
95
|
+
__napiInstance.exports['__napi_register__NxJson_struct_51']?.()
|
|
96
|
+
__napiInstance.exports['__napi_register__is_ai_agent_52']?.()
|
|
97
|
+
__napiInstance.exports['__napi_register__FileLock_struct_53']?.()
|
|
98
|
+
__napiInstance.exports['__napi_register__FileLock_impl_55']?.()
|
|
99
|
+
__napiInstance.exports['__napi_register__WorkspaceContext_struct_56']?.()
|
|
100
|
+
__napiInstance.exports['__napi_register__WorkspaceContext_impl_67']?.()
|
|
101
|
+
__napiInstance.exports['__napi_register__WorkspaceErrors_68']?.()
|
|
102
|
+
__napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_69']?.()
|
|
103
|
+
__napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_70']?.()
|
|
104
|
+
__napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_71']?.()
|
|
105
|
+
__napiInstance.exports['__napi_register__FileMap_struct_72']?.()
|
|
106
|
+
__napiInstance.exports['__napi_register____test_only_transfer_file_map_73']?.()
|
|
111
107
|
}
|
|
112
108
|
export const FileLock = __napiModule.exports.FileLock
|
|
113
109
|
export const HashPlanInspector = __napiModule.exports.HashPlanInspector
|
|
@@ -117,7 +113,6 @@ export const NxConsolePreferences = __napiModule.exports.NxConsolePreferences
|
|
|
117
113
|
export const TaskHasher = __napiModule.exports.TaskHasher
|
|
118
114
|
export const WorkspaceContext = __napiModule.exports.WorkspaceContext
|
|
119
115
|
export const canInstallNxConsole = __napiModule.exports.canInstallNxConsole
|
|
120
|
-
export const canInstallNxConsoleForEditor = __napiModule.exports.canInstallNxConsoleForEditor
|
|
121
116
|
export const copy = __napiModule.exports.copy
|
|
122
117
|
export const expandOutputs = __napiModule.exports.expandOutputs
|
|
123
118
|
export const findImports = __napiModule.exports.findImports
|
|
@@ -127,13 +122,10 @@ export const getTransformableOutputs = __napiModule.exports.getTransformableOutp
|
|
|
127
122
|
export const hashArray = __napiModule.exports.hashArray
|
|
128
123
|
export const hashFile = __napiModule.exports.hashFile
|
|
129
124
|
export const installNxConsole = __napiModule.exports.installNxConsole
|
|
130
|
-
export const installNxConsoleForEditor = __napiModule.exports.installNxConsoleForEditor
|
|
131
125
|
export const IS_WASM = __napiModule.exports.IS_WASM
|
|
132
126
|
export const isAiAgent = __napiModule.exports.isAiAgent
|
|
133
|
-
export const isEditorInstalled = __napiModule.exports.isEditorInstalled
|
|
134
127
|
export const logDebug = __napiModule.exports.logDebug
|
|
135
128
|
export const remove = __napiModule.exports.remove
|
|
136
|
-
export const SupportedEditor = __napiModule.exports.SupportedEditor
|
|
137
129
|
export const testOnlyTransferFileMap = __napiModule.exports.testOnlyTransferFileMap
|
|
138
130
|
export const transferProjectGraph = __napiModule.exports.transferProjectGraph
|
|
139
131
|
export const validateOutputs = __napiModule.exports.validateOutputs
|