@vltpkg/cli-sdk 1.6.1 → 1.6.2

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/dist/index.js CHANGED
@@ -8,6 +8,7 @@ import { Config } from "./config/index.js";
8
8
  import { flushAndExit, outputCommand, stderr, stdout, } from "./output.js";
9
9
  import { indent } from "./print-err.js";
10
10
  import { loadCommand } from "./load-command.js";
11
+ import { mark } from '@vltpkg/output/trace';
11
12
  const { version } = loadPackageJson(import.meta.filename, process.env.__VLT_INTERNAL_CLI_PACKAGE_JSON);
12
13
  const loadVlt = async (cwd, argv) => {
13
14
  try {
@@ -85,6 +86,7 @@ const run = async () => {
85
86
  const { dispatchRegistry } = await import("./commands/registry.js");
86
87
  await dispatchRegistry(vlt);
87
88
  }
89
+ mark('command', { command: vlt.command });
88
90
  const command = await loadCommand(vlt.command);
89
91
  await outputCommand(command, vlt, { start, vltVersion: version });
90
92
  };
package/dist/output.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { error } from '@vltpkg/error-cause';
2
+ import { mark } from '@vltpkg/output/trace';
2
3
  import { formatWithOptions, styleText as utilStyleText, } from 'node:util';
3
4
  import { createSupportsColor } from 'supports-color';
4
5
  import { defaultView } from "./config/definition.js";
@@ -181,7 +182,10 @@ export const outputCommand = async (cliCommand, conf, { start, vltVersion } = {
181
182
  }
182
183
  if (conf.globalRoot)
183
184
  await sweepPendingRemove(conf.globalRoot);
184
- const output = await onDone(await command(conf));
185
+ const result = await command(conf);
186
+ mark('command:done');
187
+ const output = await onDone(result);
188
+ mark('view:done');
185
189
  stopRequestLog();
186
190
  const duration_ms = Date.now() - start;
187
191
  trackCommand({
@@ -208,6 +212,7 @@ export const outputCommand = async (cliCommand, conf, { start, vltVersion } = {
208
212
  // timer is unreffed so even if this is not awaited the process
209
213
  // can still exit promptly.
210
214
  await flushTelemetry();
215
+ mark('telemetry:flushed');
211
216
  }
212
217
  catch (err) {
213
218
  stopRequestLog();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/cli-sdk",
3
3
  "description": "The source for the vlt CLI",
4
- "version": "1.6.1",
4
+ "version": "1.6.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -14,35 +14,35 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@resvg/resvg-wasm": "^2.6.2",
17
- "@vltpkg/cmd-shim": "1.6.1",
18
- "@vltpkg/config": "1.6.1",
19
- "@vltpkg/dep-id": "1.6.1",
20
- "@vltpkg/dot-prop": "1.6.1",
21
- "@vltpkg/error-cause": "1.6.1",
22
- "@vltpkg/git": "1.6.1",
23
- "@vltpkg/graph": "1.6.1",
24
- "@vltpkg/graph-run": "1.6.1",
25
- "@vltpkg/init": "1.6.1",
26
- "@vltpkg/output": "1.6.1",
27
- "@vltpkg/package-info": "1.6.1",
28
- "@vltpkg/package-json": "1.6.1",
29
- "@vltpkg/pick-manifest": "1.6.1",
30
- "@vltpkg/promise-spawn": "1.6.1",
31
- "@vltpkg/query": "1.6.1",
32
- "@vltpkg/registry-client": "1.6.1",
33
- "@vltpkg/rollback-remove": "1.6.1",
34
- "@vltpkg/run": "1.6.1",
35
- "@vltpkg/security-archive": "1.6.1",
36
- "@vltpkg/semver": "1.6.1",
37
- "@vltpkg/spec": "1.6.1",
38
- "@vltpkg/tar": "1.6.1",
39
- "@vltpkg/types": "1.6.1",
40
- "@vltpkg/url-open": "1.6.1",
41
- "@vltpkg/vlt-json": "1.6.1",
42
- "@vltpkg/vlx": "1.6.1",
43
- "@vltpkg/which": "1.6.1",
44
- "@vltpkg/workspaces": "1.6.1",
45
- "@vltpkg/xdg": "1.6.1",
17
+ "@vltpkg/cmd-shim": "1.6.2",
18
+ "@vltpkg/config": "1.6.2",
19
+ "@vltpkg/dep-id": "1.6.2",
20
+ "@vltpkg/dot-prop": "1.6.2",
21
+ "@vltpkg/error-cause": "1.6.2",
22
+ "@vltpkg/git": "1.6.2",
23
+ "@vltpkg/graph": "1.6.2",
24
+ "@vltpkg/graph-run": "1.6.2",
25
+ "@vltpkg/init": "1.6.2",
26
+ "@vltpkg/output": "1.6.2",
27
+ "@vltpkg/package-info": "1.6.2",
28
+ "@vltpkg/package-json": "1.6.2",
29
+ "@vltpkg/pick-manifest": "1.6.2",
30
+ "@vltpkg/promise-spawn": "1.6.2",
31
+ "@vltpkg/query": "1.6.2",
32
+ "@vltpkg/registry-client": "1.6.2",
33
+ "@vltpkg/rollback-remove": "1.6.2",
34
+ "@vltpkg/run": "1.6.2",
35
+ "@vltpkg/security-archive": "1.6.2",
36
+ "@vltpkg/semver": "1.6.2",
37
+ "@vltpkg/spec": "1.6.2",
38
+ "@vltpkg/tar": "1.6.2",
39
+ "@vltpkg/types": "1.6.2",
40
+ "@vltpkg/url-open": "1.6.2",
41
+ "@vltpkg/vlt-json": "1.6.2",
42
+ "@vltpkg/vlx": "1.6.2",
43
+ "@vltpkg/which": "1.6.2",
44
+ "@vltpkg/workspaces": "1.6.2",
45
+ "@vltpkg/xdg": "1.6.2",
46
46
  "ansi-to-pre": "^1.0.6",
47
47
  "beautiful-mermaid": "^1.1.3",
48
48
  "chalk": "^5.6.2",