@devicecloud.dev/dcd 5.11.2-beta.1 → 5.12.0-beta.1

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.
@@ -19,11 +19,11 @@ export declare const artifactsCommand: import("citty").CommandDef<{
19
19
  };
20
20
  readonly report: {
21
21
  readonly type: "string";
22
- readonly description: "Download a test report in the specified format (options: allure, html, html-detailed, junit)";
22
+ readonly description: "Download a test report in the specified format (options: junit, html, html-detailed, allure). allure and html-detailed are deprecated and will be removed on 7 December 2026.";
23
23
  };
24
24
  readonly 'allure-path': {
25
25
  readonly type: "string";
26
- readonly description: "Custom file path for downloaded Allure report (default: ./report.html)";
26
+ readonly description: "Custom file path for downloaded Allure report (default: ./report.html). Deprecated: Allure reports will be removed on 7 December 2026.";
27
27
  };
28
28
  readonly 'html-path': {
29
29
  readonly type: "string";
@@ -1,10 +1,11 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import { apiFlags } from '../config/flags/api.flags.js';
3
3
  import { jsonFlag } from '../config/flags/output.flags.js';
4
- import { ReportDownloadService, } from '../services/report-download.service.js';
4
+ import { ReportDownloadService, reportFormatDeprecation, } from '../services/report-download.service.js';
5
5
  import { resolveAuth } from '../utils/auth.js';
6
6
  import { CliError, logger, validateEnum } from '../utils/cli.js';
7
7
  import { resolveApiUrl } from '../utils/config-store.js';
8
+ import { ui } from '../utils/ui.js';
8
9
  const DOWNLOAD_OPTIONS = ['ALL', 'FAILED'];
9
10
  const REPORT_OPTIONS = ['allure', 'html', 'html-detailed', 'junit'];
10
11
  export const artifactsCommand = defineCommand({
@@ -34,11 +35,11 @@ export const artifactsCommand = defineCommand({
34
35
  },
35
36
  report: {
36
37
  type: 'string',
37
- description: 'Download a test report in the specified format (options: allure, html, html-detailed, junit)',
38
+ description: 'Download a test report in the specified format (options: junit, html, html-detailed, allure). allure and html-detailed are deprecated and will be removed on 7 December 2026.',
38
39
  },
39
40
  'allure-path': {
40
41
  type: 'string',
41
- description: 'Custom file path for downloaded Allure report (default: ./report.html)',
42
+ description: 'Custom file path for downloaded Allure report (default: ./report.html). Deprecated: Allure reports will be removed on 7 December 2026.',
42
43
  },
43
44
  'html-path': {
44
45
  type: 'string',
@@ -64,6 +65,12 @@ export const artifactsCommand = defineCommand({
64
65
  const json = Boolean(args.json);
65
66
  // Success lines are dropped under --json; warnings stay on stderr.
66
67
  const log = json ? undefined : (m) => logger.log(m);
68
+ // This command fetches no notices and submits nothing, so neither the
69
+ // deprecation notice nor the API's submit warning reaches it.
70
+ const deprecation = reportFormatDeprecation(report);
71
+ if (deprecation) {
72
+ process.stderr.write(`${ui.deprecation(deprecation)}\n`);
73
+ }
67
74
  const auth = await resolveAuth({ apiKeyFlag });
68
75
  if (downloadArtifacts && report) {
69
76
  throw new CliError('--download-artifacts cannot also be provided when using --report (flags are mutually exclusive).');
@@ -31,7 +31,7 @@ export declare const cloudCommand: import("citty").CommandDef<{
31
31
  };
32
32
  readonly 'allure-path': {
33
33
  readonly type: "string";
34
- readonly description: "Custom file path for downloaded Allure report (requires --report allure, default: ./report.html)";
34
+ readonly description: "Custom file path for downloaded Allure report (requires --report allure, default: ./report.html). Deprecated: Allure reports will be removed on 7 December 2026.";
35
35
  };
36
36
  readonly 'html-path': {
37
37
  readonly type: "string";
@@ -76,7 +76,7 @@ export declare const cloudCommand: import("citty").CommandDef<{
76
76
  readonly report: {
77
77
  readonly type: "string";
78
78
  readonly alias: ["format"];
79
- readonly description: "Generate and download test reports in the specified format (options: allure, junit, html, html-detailed). Use \"allure\" for a complete HTML report.";
79
+ readonly description: "Generate and download test reports in the specified format (options: junit, html, html-detailed, allure). allure and html-detailed are deprecated and will be removed on 7 December 2026: from that date html-detailed gives the standard HTML report and allure gives none, and runs still run.";
80
80
  };
81
81
  readonly branch: {
82
82
  readonly type: "string";
@@ -349,6 +349,9 @@ export const cloudCommand = defineCommand({
349
349
  // As requested ('default' when not passed), not as the API resolves
350
350
  // it: the gpu1 retirement notice is aimed at runs that ask for gpu1.
351
351
  runner_type: runnerType,
352
+ // As passed (undefined without --report): the allure and
353
+ // html-detailed retirement notices are gated on it.
354
+ report,
352
355
  cli_version: cliVersion,
353
356
  ci_provider: ciContext.provider,
354
357
  ci_wrapper_version: ciContext.wrapperVersion,
@@ -20,7 +20,7 @@ export declare const outputFlags: {
20
20
  };
21
21
  readonly 'allure-path': {
22
22
  readonly type: "string";
23
- readonly description: "Custom file path for downloaded Allure report (requires --report allure, default: ./report.html)";
23
+ readonly description: "Custom file path for downloaded Allure report (requires --report allure, default: ./report.html). Deprecated: Allure reports will be removed on 7 December 2026.";
24
24
  };
25
25
  readonly 'html-path': {
26
26
  readonly type: "string";
@@ -65,6 +65,6 @@ export declare const outputFlags: {
65
65
  readonly report: {
66
66
  readonly type: "string";
67
67
  readonly alias: ["format"];
68
- readonly description: "Generate and download test reports in the specified format (options: allure, junit, html, html-detailed). Use \"allure\" for a complete HTML report.";
68
+ readonly description: "Generate and download test reports in the specified format (options: junit, html, html-detailed, allure). allure and html-detailed are deprecated and will be removed on 7 December 2026: from that date html-detailed gives the standard HTML report and allure gives none, and runs still run.";
69
69
  };
70
70
  };
@@ -20,7 +20,7 @@ export const outputFlags = {
20
20
  },
21
21
  'allure-path': {
22
22
  type: 'string',
23
- description: 'Custom file path for downloaded Allure report (requires --report allure, default: ./report.html)',
23
+ description: 'Custom file path for downloaded Allure report (requires --report allure, default: ./report.html). Deprecated: Allure reports will be removed on 7 December 2026.',
24
24
  },
25
25
  'html-path': {
26
26
  type: 'string',
@@ -65,6 +65,6 @@ export const outputFlags = {
65
65
  report: {
66
66
  type: 'string',
67
67
  alias: ['format'],
68
- description: 'Generate and download test reports in the specified format (options: allure, junit, html, html-detailed). Use "allure" for a complete HTML report.',
68
+ description: 'Generate and download test reports in the specified format (options: junit, html, html-detailed, allure). allure and html-detailed are deprecated and will be removed on 7 December 2026: from that date html-detailed gives the standard HTML report and allure gives none, and runs still run.',
69
69
  },
70
70
  };
@@ -17,7 +17,7 @@ export declare const flags: {
17
17
  };
18
18
  readonly 'allure-path': {
19
19
  readonly type: "string";
20
- readonly description: "Custom file path for downloaded Allure report (requires --report allure, default: ./report.html)";
20
+ readonly description: "Custom file path for downloaded Allure report (requires --report allure, default: ./report.html). Deprecated: Allure reports will be removed on 7 December 2026.";
21
21
  };
22
22
  readonly 'html-path': {
23
23
  readonly type: "string";
@@ -62,7 +62,7 @@ export declare const flags: {
62
62
  readonly report: {
63
63
  readonly type: "string";
64
64
  readonly alias: ["format"];
65
- readonly description: "Generate and download test reports in the specified format (options: allure, junit, html, html-detailed). Use \"allure\" for a complete HTML report.";
65
+ readonly description: "Generate and download test reports in the specified format (options: junit, html, html-detailed, allure). allure and html-detailed are deprecated and will be removed on 7 December 2026: from that date html-detailed gives the standard HTML report and allure gives none, and runs still run.";
66
66
  };
67
67
  readonly branch: {
68
68
  readonly type: "string";
@@ -30,7 +30,7 @@ export function registerDownloadArtifacts(server) {
30
30
  report: z
31
31
  .enum(['junit', 'allure', 'html'])
32
32
  .optional()
33
- .describe('Also download a formatted report of this type'),
33
+ .describe('Also download a formatted report of this type. allure is deprecated and will be removed on 7 December 2026; prefer junit or html.'),
34
34
  reportPath: z
35
35
  .string()
36
36
  .optional()
@@ -17,6 +17,13 @@ export interface ReportDownloadOptions extends DownloadOptions {
17
17
  junitPath?: string;
18
18
  reportType: 'allure' | 'html' | 'html-detailed' | 'junit';
19
19
  }
20
+ /**
21
+ * The report formats retired on 7 December 2026, and what each one
22
+ * does from that date. `dcd cloud` users are told by the API's submit message
23
+ * and a notice; `dcd artifacts` fetches neither, so it prints this itself.
24
+ * The values stay valid after the date: a run that asks for one must not fail.
25
+ */
26
+ export declare function reportFormatDeprecation(report: string | undefined): string | undefined;
20
27
  /** What one download attempt did; failures are warned about, not thrown. */
21
28
  export interface DownloadResult {
22
29
  error?: string;
@@ -1,6 +1,25 @@
1
1
  import * as path from 'node:path';
2
2
  import { ApiGateway } from '../gateways/api-gateway.js';
3
3
  import { refreshAuth } from '../utils/auth.js';
4
+ /**
5
+ * The report formats retired on 7 December 2026, and what each one
6
+ * does from that date. `dcd cloud` users are told by the API's submit message
7
+ * and a notice; `dcd artifacts` fetches neither, so it prints this itself.
8
+ * The values stay valid after the date: a run that asks for one must not fail.
9
+ */
10
+ export function reportFormatDeprecation(report) {
11
+ switch (report) {
12
+ case 'allure': {
13
+ return '--report allure is deprecated and will be removed on 7 December 2026. From that date runs get no Allure report. Use --report html or --report junit instead.';
14
+ }
15
+ case 'html-detailed': {
16
+ return '--report html-detailed is deprecated and will be removed on 7 December 2026. From that date it gives the standard HTML report. Use --report html instead.';
17
+ }
18
+ default: {
19
+ return undefined;
20
+ }
21
+ }
22
+ }
4
23
  /**
5
24
  * Service for downloading test artifacts and reports
6
25
  */
package/package.json CHANGED
@@ -68,7 +68,7 @@
68
68
  "test:unit": "node scripts/test-runner.mjs --unit",
69
69
  "typecheck": "tsc --noEmit -p tsconfig.test.json"
70
70
  },
71
- "version": "5.11.2-beta.1",
71
+ "version": "5.12.0-beta.1",
72
72
  "bugs": {
73
73
  "url": "https://discord.gg/gm3mJwcNw8"
74
74
  },