shipthis 0.1.31 → 0.1.33

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.
Files changed (84) hide show
  1. package/dist/{AppleBundleIdDetails-eoK5F8Qn.js → AppleBundleIdDetails-BhHPCvRm.js} +17 -19
  2. package/dist/Command-BDIkuv2g.js +29 -0
  3. package/dist/CommandGame-CvBIjPZp.js +7 -0
  4. package/dist/{Create-ISdroJ3G.js → Create-Lpe0B8nT.js} +20 -20
  5. package/dist/GameStatus-5XpufIY_.js +137 -0
  6. package/dist/{Import-CfThJF6k.js → Import-DFzrAG04.js} +34 -36
  7. package/dist/{JobLogTail-BWzbQBZz.js → JobLogTail-BYcJgPcL.js} +53 -52
  8. package/dist/{JobProgress-DjIkuk5U.js → JobProgress-BcrE7CUK.js} +40 -38
  9. package/dist/{JobStatusTable-CEqWU73q.js → JobStatusTable-Bi-y8ZZT.js} +14 -13
  10. package/dist/{NextSteps-CK9zHOCt.js → NextSteps-DbJHmscQ.js} +1 -3
  11. package/dist/{ProgressSpinner-6pw1T8Iw.js → ProgressSpinner-Um6ARKlk.js} +2 -2
  12. package/dist/{ProjectCredentialsTable-u9ruZ9mN.js → ProjectCredentialsTable-B4vDJl4l.js} +11 -10
  13. package/dist/{StatusTable-Dm5St4g-.js → StatusTable-DzRWcMr4.js} +7 -9
  14. package/dist/{Table-CvM6pccN.js → Table-FaNgpyeq.js} +15 -15
  15. package/dist/{UserCredentialsTable-Q7u9M-ap.js → UserCredentialsTable-CwkZTFBD.js} +18 -19
  16. package/dist/{baseAppleCommand-zhkGlKq0.js → baseAppleCommand-BKXweb-U.js} +1 -1
  17. package/dist/{baseGameAndroidCommand-DJ-cMLa_.js → baseGameAndroidCommand-CAi-BSsH.js} +23 -23
  18. package/dist/commands/apple/apiKey/create.js +36 -36
  19. package/dist/commands/apple/apiKey/export.js +27 -27
  20. package/dist/commands/apple/apiKey/import.js +28 -28
  21. package/dist/commands/apple/apiKey/status.js +32 -32
  22. package/dist/commands/apple/certificate/create.js +40 -40
  23. package/dist/commands/apple/certificate/export.js +27 -27
  24. package/dist/commands/apple/certificate/import.js +28 -28
  25. package/dist/commands/apple/certificate/status.js +33 -33
  26. package/dist/commands/apple/login.js +15 -15
  27. package/dist/commands/apple/status.js +27 -27
  28. package/dist/commands/dashboard.js +10 -10
  29. package/dist/commands/game/android/apiKey/connect.js +28 -28
  30. package/dist/commands/game/android/apiKey/create.js +29 -29
  31. package/dist/commands/game/android/apiKey/export.js +30 -30
  32. package/dist/commands/game/android/apiKey/import.js +32 -32
  33. package/dist/commands/game/android/apiKey/invite.js +14 -14
  34. package/dist/commands/game/android/apiKey/status.js +30 -30
  35. package/dist/commands/game/android/keyStore/create.js +25 -25
  36. package/dist/commands/game/android/keyStore/export.js +29 -29
  37. package/dist/commands/game/android/keyStore/import.js +36 -36
  38. package/dist/commands/game/android/keyStore/status.js +26 -26
  39. package/dist/commands/game/android/status.js +15 -58
  40. package/dist/commands/game/build/download.js +24 -24
  41. package/dist/commands/game/build/list.js +37 -37
  42. package/dist/commands/game/create.js +15 -15
  43. package/dist/commands/game/details.js +35 -36
  44. package/dist/commands/game/export.js +12 -12
  45. package/dist/commands/game/ios/app/addTester.js +37 -32
  46. package/dist/commands/game/ios/app/create.js +24 -24
  47. package/dist/commands/game/ios/app/status.js +29 -29
  48. package/dist/commands/game/ios/app/sync.js +31 -31
  49. package/dist/commands/game/ios/profile/create.js +32 -32
  50. package/dist/commands/game/ios/profile/export.js +29 -29
  51. package/dist/commands/game/ios/profile/import.js +33 -33
  52. package/dist/commands/game/ios/profile/status.js +36 -36
  53. package/dist/commands/game/ios/status.js +46 -58
  54. package/dist/commands/game/ios/wizard.js +39 -34
  55. package/dist/commands/game/job/list.js +34 -34
  56. package/dist/commands/game/job/status.js +32 -32
  57. package/dist/commands/game/list.js +38 -40
  58. package/dist/commands/game/ship.js +81 -77
  59. package/dist/commands/game/status.js +38 -85
  60. package/dist/commands/game/wizard.js +253 -242
  61. package/dist/commands/internal/fastlane.js +15 -17
  62. package/dist/commands/internal/readme.js +38 -36
  63. package/dist/commands/login.js +14 -14
  64. package/dist/commands/status.js +32 -30
  65. package/dist/{export-DZxo2_e_.js → export-DLQrUEBK.js} +5 -5
  66. package/dist/{git-DREGq-jc.js → git-BpsfNFZ_.js} +8 -8
  67. package/dist/{import-8pL1AF47.js → import-BoY5e0uJ.js} +14 -14
  68. package/dist/{index-DJ078v-U.js → index-B27WJDxn.js} +43 -27
  69. package/dist/{index-DKQjnJrC.js → index-CisLwc7e.js} +42 -44
  70. package/dist/{index-C6aAyrXW.js → index-Crv7S0bl.js} +6 -6
  71. package/dist/{index-BHh0BZvD.js → index-DC0GJtAy.js} +50 -60
  72. package/dist/{index-CyvGh-kt.js → index-DfUg5j06.js} +93 -92
  73. package/dist/{index-w3lHxk5O.js → index-pj8JVg5X.js} +242 -225
  74. package/dist/{upload-BTpxj3QP.js → upload-C8S17EU_.js} +22 -22
  75. package/dist/{useAndroidServiceAccountTestResult-Dy3Ag7_r.js → useAndroidServiceAccountTestResult-D4e5AKAZ.js} +11 -13
  76. package/dist/{useAppleApp-h1Ogi_qc.js → useAppleApp-Dr6URQvC.js} +4 -4
  77. package/dist/{useAppleBundleId-B3TTNap0.js → useAppleBundleId-DELAwSQp.js} +6 -6
  78. package/dist/{useProjectCredentials-DpeXZcHP.js → useProjectCredentials-BjvdJdQg.js} +10 -12
  79. package/dist/{useWebSocket-gyuCsore.js → useWebSocket-CRV7V69Q.js} +1 -1
  80. package/dist/utils/help.js +4 -4
  81. package/package.json +5 -4
  82. package/dist/Command-DFdHXDiU.js +0 -44
  83. package/dist/CommandGame-Dif-oSky.js +0 -9
  84. package/dist/{RunWithSpinner-BVXNWGD3.js → RunWithSpinner-gMVA07bZ.js} +2 -2
@@ -1,42 +1,26 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { render } from 'ink';
3
1
  import { Flags } from '@oclif/core';
4
- import 'react';
5
- import '../../../index-CyvGh-kt.js';
6
- import { c as BaseGameCommand, k as getProjectPlatformProgress, P as Platform, b as getShortDate } from '../../../index-w3lHxk5O.js';
7
- import 'ink-spinner';
8
- import '@inkjs/ui';
2
+ import { c as BaseGameCommand } from '../../../index-pj8JVg5X.js';
3
+ import 'node:fs';
9
4
  import 'axios';
10
- import '@tanstack/react-query';
11
- import 'fs';
5
+ import 'crypto-js';
12
6
  import 'uuid';
13
- import 'yazl';
14
- import { g as getShortUUID, m as makeHumanReadable } from '../../../index-DJ078v-U.js';
15
- import 'open';
16
- import 'marked';
17
- import 'marked-terminal';
18
- import 'path';
19
- import { N as NextSteps } from '../../../NextSteps-CK9zHOCt.js';
20
- import 'qrcode';
21
- import { S as StatusTable } from '../../../StatusTable-Dm5St4g-.js';
22
- import 'string-length';
23
- import 'strip-ansi';
24
7
  import 'luxon';
25
- import 'fast-glob';
26
- import { C as Command } from '../../../Command-DFdHXDiU.js';
27
- import 'socket.io-client';
28
- import '../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
8
+ import 'node:path';
29
9
  import '@expo/apple-utils/build/index.js';
30
- import 'crypto-js';
31
- import 'crypto';
32
- import 'readline-sync';
10
+ import 'node:crypto';
33
11
  import 'node:readline';
34
- import 'node:path';
35
12
  import 'node:url';
13
+ import 'readline-sync';
36
14
  import 'isomorphic-git';
37
- import 'ini';
38
15
  import 'deepmerge';
39
- import '../../../Title-BCQtayg6.js';
16
+ import 'ini';
17
+ import '@tanstack/react-query';
18
+ import 'react';
19
+ import 'fast-glob';
20
+ import 'yazl';
21
+ import 'socket.io-client';
22
+ import 'fullscreen-ink';
23
+ import 'ink';
40
24
 
41
25
  class GameAndroidStatus extends BaseGameCommand {
42
26
  static args = {};
@@ -50,34 +34,7 @@ class GameAndroidStatus extends BaseGameCommand {
50
34
  };
51
35
  async run() {
52
36
  const game = await this.getGame();
53
- const platformStatus = await getProjectPlatformProgress(game.id, Platform.ANDROID);
54
- const gameStatuses = {
55
- name: game.name,
56
- id: getShortUUID(game.id),
57
- createdAt: getShortDate(game.createdAt),
58
- engine: "Godot"
59
- };
60
- const steps = [
61
- (platformStatus.hasBundleSet == false || platformStatus.hasApiKeyForPlatform == false || platformStatus.hasCredentialsForPlatform == false) && "shipthis game wizard android"
62
- ].filter(Boolean);
63
- const progressToStatuses = (progress) => {
64
- const { platform, ...rest } = progress;
65
- return makeHumanReadable(rest);
66
- };
67
- render(
68
- /* @__PURE__ */ jsxs(Command, { command: this, children: [
69
- /* @__PURE__ */ jsx(StatusTable, { marginBottom: 1, title: "ShipThis game status", statuses: gameStatuses }),
70
- /* @__PURE__ */ jsx(
71
- StatusTable,
72
- {
73
- marginBottom: 1,
74
- title: "Overall Android status for game",
75
- statuses: progressToStatuses(platformStatus)
76
- }
77
- ),
78
- /* @__PURE__ */ jsx(NextSteps, { steps })
79
- ] })
80
- );
37
+ await this.config.runCommand("game:status", ["--gameId", game.id, "--platform", "android"]);
81
38
  }
82
39
  }
83
40
 
@@ -1,40 +1,40 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
+ import * as fs from 'node:fs';
2
3
  import { Args, Flags } from '@oclif/core';
3
4
  import { render } from 'ink';
4
- import * as fs from 'fs';
5
- import { c as BaseGameCommand, H as downloadBuildById } from '../../../index-w3lHxk5O.js';
6
- import 'react';
7
- import '../../../index-CyvGh-kt.js';
5
+ import { c as BaseGameCommand, H as downloadBuildById } from '../../../index-pj8JVg5X.js';
8
6
  import 'ink-spinner';
9
- import '@inkjs/ui';
10
- import 'axios';
11
- import '@tanstack/react-query';
12
- import 'uuid';
13
- import 'yazl';
14
- import 'crypto';
15
- import 'readline-sync';
16
- import 'node:readline';
7
+ import 'node:crypto';
17
8
  import 'node:path';
9
+ import 'node:readline';
18
10
  import 'node:url';
11
+ import 'readline-sync';
19
12
  import 'luxon';
13
+ import 'axios';
20
14
  import 'isomorphic-git';
15
+ import '@tanstack/react-query';
16
+ import 'react';
21
17
  import 'fast-glob';
18
+ import 'uuid';
19
+ import 'yazl';
22
20
  import 'socket.io-client';
21
+ import 'fullscreen-ink';
22
+ import 'string-length';
23
+ import 'strip-ansi';
23
24
  import 'open';
25
+ import '@inkjs/ui';
24
26
  import 'marked';
25
27
  import 'marked-terminal';
26
- import 'path';
27
28
  import 'qrcode';
28
- import { R as RunWithSpinner } from '../../../RunWithSpinner-BVXNWGD3.js';
29
- import 'string-length';
30
- import 'strip-ansi';
31
- import { C as Command } from '../../../Command-DFdHXDiU.js';
32
- import '@expo/apple-utils/build/index.js';
29
+ import { R as RunWithSpinner } from '../../../RunWithSpinner-gMVA07bZ.js';
30
+ import '../../../index-DfUg5j06.js';
31
+ import { C as Command } from '../../../Command-BDIkuv2g.js';
33
32
  import 'crypto-js';
34
- import 'ini';
33
+ import '@expo/apple-utils/build/index.js';
35
34
  import 'deepmerge';
36
- import '../../../index-DJ078v-U.js';
37
- import '../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
35
+ import 'ini';
36
+ import '../../../index-B27WJDxn.js';
37
+ import '../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
38
38
 
39
39
  class GameBuildDownload extends BaseGameCommand {
40
40
  static args = {
@@ -52,7 +52,7 @@ class GameBuildDownload extends BaseGameCommand {
52
52
  };
53
53
  async run() {
54
54
  const { args, flags } = this;
55
- const { file, build_id } = args;
55
+ const { build_id, file } = args;
56
56
  const { force } = flags;
57
57
  const alreadyExists = fs.existsSync(file);
58
58
  if (alreadyExists && !force) {
@@ -67,9 +67,9 @@ class GameBuildDownload extends BaseGameCommand {
67
67
  /* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
68
68
  RunWithSpinner,
69
69
  {
70
- msgInProgress: `Downloading to ${file}...`,
71
- msgComplete: `Downloaded build artifact to ${file}`,
72
70
  executeMethod,
71
+ msgComplete: `Downloaded build artifact to ${file}`,
72
+ msgInProgress: `Downloading to ${file}...`,
73
73
  onComplete: handleComplete
74
74
  }
75
75
  ) })
@@ -1,52 +1,52 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { Box, Text, render } from 'ink';
3
2
  import { Flags } from '@oclif/core';
4
- import { c as BaseGameCommand } from '../../../index-w3lHxk5O.js';
5
- import 'react';
6
- import { u as useBuilds, c as getBuildSummary } from '../../../index-CyvGh-kt.js';
3
+ import { Box, Text, render } from 'ink';
4
+ import { c as BaseGameCommand } from '../../../index-pj8JVg5X.js';
7
5
  import Spinner from 'ink-spinner';
8
- import 'axios';
9
- import 'crypto-js';
10
- import 'uuid';
11
- import 'fs';
12
- import 'luxon';
13
- import '@inkjs/ui';
14
- import '@tanstack/react-query';
15
- import 'yazl';
16
- import 'crypto';
17
- import 'readline-sync';
18
- import 'node:readline';
6
+ import 'node:crypto';
7
+ import 'node:fs';
19
8
  import 'node:path';
9
+ import 'node:readline';
20
10
  import 'node:url';
11
+ import 'readline-sync';
12
+ import 'luxon';
13
+ import 'axios';
21
14
  import 'isomorphic-git';
15
+ import '@tanstack/react-query';
16
+ import 'react';
17
+ import 'crypto-js';
18
+ import 'uuid';
19
+ import { u as useBuilds, d as getBuildSummary } from '../../../index-DfUg5j06.js';
22
20
  import 'fast-glob';
21
+ import 'yazl';
23
22
  import 'socket.io-client';
23
+ import 'fullscreen-ink';
24
+ import { T as Table } from '../../../Table-FaNgpyeq.js';
25
+ import { T as Title } from '../../../Title-BCQtayg6.js';
26
+ import 'string-length';
27
+ import 'strip-ansi';
24
28
  import 'open';
29
+ import '@inkjs/ui';
25
30
  import 'marked';
26
31
  import 'marked-terminal';
27
- import 'path';
28
32
  import 'qrcode';
29
- import 'string-length';
30
- import 'strip-ansi';
31
- import { C as CommandGame } from '../../../CommandGame-Dif-oSky.js';
32
- import { T as Table } from '../../../Table-CvM6pccN.js';
33
- import { T as Title } from '../../../Title-BCQtayg6.js';
33
+ import { C as CommandGame } from '../../../CommandGame-CvBIjPZp.js';
34
34
  import '@expo/apple-utils/build/index.js';
35
- import 'ini';
36
35
  import 'deepmerge';
37
- import '../../../index-DJ078v-U.js';
38
- import '../../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
39
- import '../../../Command-DFdHXDiU.js';
36
+ import 'ini';
37
+ import '../../../index-B27WJDxn.js';
38
+ import '../../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
39
+ import '../../../Command-BDIkuv2g.js';
40
40
 
41
41
  const BuildsTable = ({ queryProps, ...boxProps }) => {
42
- const { isLoading, data } = useBuilds(queryProps);
42
+ const { data, isLoading } = useBuilds(queryProps);
43
43
  const hasBuilds = (data?.data?.length ?? 0) > 0;
44
44
  return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginBottom: 1, ...boxProps, children: [
45
45
  /* @__PURE__ */ jsx(Title, { children: `Builds uploaded to ShipThis from completed jobs for this game.` }),
46
- !isLoading && !hasBuilds && /* @__PURE__ */ jsx(Box, { marginLeft: 2, marginTop: 1, flexDirection: "column", children: /* @__PURE__ */ jsx(Text, { children: "You DO NOT have any builds uploaded to ShipThis from completed jobs for this game." }) }),
46
+ !isLoading && !hasBuilds && /* @__PURE__ */ jsx(Box, { flexDirection: "column", marginLeft: 2, marginTop: 1, children: /* @__PURE__ */ jsx(Text, { children: "You DO NOT have any builds uploaded to ShipThis from completed jobs for this game." }) }),
47
47
  isLoading && /* @__PURE__ */ jsx(Spinner, { type: "dots" }),
48
48
  data && hasBuilds && /* @__PURE__ */ jsx(Table, { data: data.data.map(getBuildSummary) }),
49
- data && data.pageCount > 1 && /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
49
+ data && data.pageCount > 1 && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginTop: 1, children: [
50
50
  /* @__PURE__ */ jsx(Text, { children: `Showing page ${(queryProps.pageNumber || 0) + 1} of ${data.pageCount}.` }),
51
51
  /* @__PURE__ */ jsx(Text, { children: "Use the --pageNumber parameter to see other pages." })
52
52
  ] })
@@ -63,20 +63,20 @@ class GameBuildList extends BaseGameCommand {
63
63
  ];
64
64
  static flags = {
65
65
  ...super.flags,
66
- pageNumber: Flags.integer({ char: "p", description: "The page number to show (starts at 0)", default: 0 }),
67
- pageSize: Flags.integer({ char: "s", description: "The number of items to show per page", default: 10 }),
66
+ order: Flags.string({
67
+ char: "r",
68
+ default: "desc",
69
+ description: "The order to sort by",
70
+ options: ["asc", "desc"]
71
+ }),
68
72
  orderBy: Flags.string({
69
73
  char: "o",
70
- description: "The field to order by",
71
74
  default: "createdAt",
75
+ description: "The field to order by",
72
76
  options: ["createdAt", "updatedAt"]
73
77
  }),
74
- order: Flags.string({
75
- char: "r",
76
- description: "The order to sort by",
77
- default: "desc",
78
- options: ["asc", "desc"]
79
- })
78
+ pageNumber: Flags.integer({ char: "p", default: 0, description: "The page number to show (starts at 0)" }),
79
+ pageSize: Flags.integer({ char: "s", default: 10, description: "The number of items to show per page" })
80
80
  };
81
81
  async run() {
82
82
  const game = await this.getGame();
@@ -1,26 +1,26 @@
1
1
  import { Flags } from '@oclif/core';
2
- import { B as BaseAuthenticatedCommand, D as DetailsFlags, j as isCWDGodotGame, t as GameEngine, u as getGodotVersion, v as createProject, w as DEFAULT_IGNORED_FILES_GLOBS, x as DEFAULT_SHIPPED_FILES_GLOBS, y as getGodotProjectName } from '../../index-w3lHxk5O.js';
3
- import { a as getInput } from '../../index-DJ078v-U.js';
4
- import 'path';
5
- import 'fs';
6
- import '@expo/apple-utils/build/index.js';
2
+ import { B as BaseAuthenticatedCommand, D as DetailsFlags, j as isCWDGodotGame, s as GameEngine, t as getGodotVersion, u as createProject, v as DEFAULT_SHIPPED_FILES_GLOBS, w as DEFAULT_IGNORED_FILES_GLOBS, x as getGodotProjectName } from '../../index-pj8JVg5X.js';
3
+ import { a as getInput } from '../../index-B27WJDxn.js';
4
+ import 'node:fs';
7
5
  import 'axios';
8
6
  import 'crypto-js';
9
7
  import 'uuid';
10
8
  import 'luxon';
11
- import 'crypto';
12
- import 'readline-sync';
13
- import 'node:readline';
14
9
  import 'node:path';
10
+ import '@expo/apple-utils/build/index.js';
11
+ import 'node:crypto';
12
+ import 'node:readline';
15
13
  import 'node:url';
14
+ import 'readline-sync';
16
15
  import 'isomorphic-git';
17
- import 'ini';
18
16
  import 'deepmerge';
19
- import 'react';
17
+ import 'ini';
20
18
  import '@tanstack/react-query';
19
+ import 'react';
21
20
  import 'fast-glob';
22
21
  import 'yazl';
23
22
  import 'socket.io-client';
23
+ import 'fullscreen-ink';
24
24
  import 'ink';
25
25
 
26
26
  class GameCreate extends BaseAuthenticatedCommand {
@@ -28,13 +28,13 @@ class GameCreate extends BaseAuthenticatedCommand {
28
28
  static description = "Create a new game in ShipThis.";
29
29
  static examples = ["<%= config.bin %> <%= command.id %>"];
30
30
  static flags = {
31
- quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" }),
32
31
  force: Flags.boolean({ char: "f" }),
32
+ quiet: Flags.boolean({ char: "q", description: "Avoid output except for interactions and errors" }),
33
33
  ...DetailsFlags
34
34
  };
35
35
  async run() {
36
36
  const { flags } = this;
37
- const { quiet, force, name: flagName, ...details } = flags;
37
+ const { force, name: flagName, quiet, ...details } = flags;
38
38
  if (this.hasProjectConfig() && !force) {
39
39
  throw new Error("This directory already has a ShipThis project. Use --force to overwrite.");
40
40
  }
@@ -55,11 +55,11 @@ class GameCreate extends BaseAuthenticatedCommand {
55
55
  gameEngine,
56
56
  gameEngineVersion
57
57
  };
58
- const project = await createProject({ name, details: projectDetails });
58
+ const project = await createProject({ details: projectDetails, name });
59
59
  await this.setProjectConfig({
60
+ ignoredFilesGlobs: DEFAULT_IGNORED_FILES_GLOBS,
60
61
  project,
61
- shippedFilesGlobs: DEFAULT_SHIPPED_FILES_GLOBS,
62
- ignoredFilesGlobs: DEFAULT_IGNORED_FILES_GLOBS
62
+ shippedFilesGlobs: DEFAULT_SHIPPED_FILES_GLOBS
63
63
  });
64
64
  if (!flags.quiet) await this.config.runCommand("game:status");
65
65
  }
@@ -1,41 +1,41 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { render } from 'ink';
3
2
  import { Flags } from '@oclif/core';
4
- import 'react';
5
- import '../../index-CyvGh-kt.js';
6
- import { c as BaseGameCommand, D as DetailsFlags, t as GameEngine } from '../../index-w3lHxk5O.js';
3
+ import { render } from 'ink';
4
+ import { c as BaseGameCommand, D as DetailsFlags, s as GameEngine } from '../../index-pj8JVg5X.js';
7
5
  import 'ink-spinner';
6
+ import { i as isValidSemVer } from '../../index-B27WJDxn.js';
7
+ import 'react';
8
+ import 'node:fs';
8
9
  import 'axios';
9
10
  import 'crypto-js';
10
11
  import 'uuid';
11
- import 'fs';
12
12
  import 'luxon';
13
- import '@inkjs/ui';
14
13
  import '@tanstack/react-query';
14
+ import 'fast-glob';
15
15
  import 'yazl';
16
- import { i as isValidSemVer } from '../../index-DJ078v-U.js';
16
+ import 'socket.io-client';
17
+ import 'fullscreen-ink';
18
+ import 'string-length';
19
+ import 'strip-ansi';
20
+ import { S as StatusTable } from '../../StatusTable-DzRWcMr4.js';
17
21
  import 'open';
22
+ import '@inkjs/ui';
23
+ import 'node:path';
18
24
  import 'marked';
19
25
  import 'marked-terminal';
20
- import 'path';
21
26
  import 'qrcode';
22
- import { S as StatusTable } from '../../StatusTable-Dm5St4g-.js';
23
- import 'string-length';
24
- import 'strip-ansi';
25
- import 'fast-glob';
26
- import { C as Command } from '../../Command-DFdHXDiU.js';
27
- import 'socket.io-client';
28
- import '../../useAndroidServiceAccountTestResult-Dy3Ag7_r.js';
27
+ import '../../index-DfUg5j06.js';
28
+ import { C as Command } from '../../Command-BDIkuv2g.js';
29
29
  import '@expo/apple-utils/build/index.js';
30
- import 'crypto';
31
- import 'readline-sync';
30
+ import 'node:crypto';
32
31
  import 'node:readline';
33
- import 'node:path';
34
32
  import 'node:url';
33
+ import 'readline-sync';
35
34
  import 'isomorphic-git';
36
- import 'ini';
37
35
  import 'deepmerge';
36
+ import 'ini';
38
37
  import '../../Title-BCQtayg6.js';
38
+ import '../../useAndroidServiceAccountTestResult-D4e5AKAZ.js';
39
39
 
40
40
  class GameDetails extends BaseGameCommand {
41
41
  static args = {};
@@ -52,17 +52,17 @@ class GameDetails extends BaseGameCommand {
52
52
  ...DetailsFlags
53
53
  };
54
54
  async run() {
55
- const { gameId, force, ...valueFlags } = this.flags;
55
+ const { force, gameId, ...valueFlags } = this.flags;
56
56
  const {
57
- name,
58
- semanticVersion,
57
+ androidPackageName,
59
58
  buildNumber,
60
59
  gameEngine,
61
60
  gameEngineVersion,
62
- iosBundleId,
63
- androidPackageName,
64
61
  gcpProjectId,
65
- gcpServiceAccountId
62
+ gcpServiceAccountId,
63
+ iosBundleId,
64
+ name,
65
+ semanticVersion
66
66
  } = valueFlags;
67
67
  if (semanticVersion && !isValidSemVer(semanticVersion))
68
68
  throw new Error(`Invalid semantic version: ${semanticVersion}`);
@@ -71,7 +71,6 @@ class GameDetails extends BaseGameCommand {
71
71
  if (gameEngine && gameEngine !== GameEngine.GODOT) throw new Error(`Game engine ${gameEngine} not supported`);
72
72
  let game = await this.getGame();
73
73
  const update = {
74
- name: name || game.name,
75
74
  details: {
76
75
  ...game.details,
77
76
  ...semanticVersion && { semanticVersion },
@@ -82,7 +81,8 @@ class GameDetails extends BaseGameCommand {
82
81
  ...androidPackageName && { androidPackageName },
83
82
  ...gcpProjectId && { gcpProjectId },
84
83
  ...gcpServiceAccountId && { gcpServiceAccountId }
85
- }
84
+ },
85
+ name: name || game.name
86
86
  };
87
87
  if (Object.keys(valueFlags).length > 0) {
88
88
  game = await this.updateGame(update);
@@ -91,22 +91,21 @@ class GameDetails extends BaseGameCommand {
91
91
  /* @__PURE__ */ jsx(Command, { command: this, children: /* @__PURE__ */ jsx(
92
92
  StatusTable,
93
93
  {
94
- title: "Game Details",
95
94
  statuses: {
96
- "Game Name": game.name,
97
- "Game Engine": game.details?.gameEngine || "Please set!",
98
- "Game Engine Version": game.details?.gameEngineVersion || "Please set!",
99
- "iOS Bundle ID": game.details?.iosBundleId || "N/A",
100
95
  "Android Package Name": game.details?.androidPackageName || "N/A",
101
- "Semantic Version": game.details?.semanticVersion || "0.0.1",
102
96
  "Build Number": game.details?.buildNumber || 1,
103
97
  "GCP Project ID": game.details?.gcpProjectId || "N/A",
104
- "GCP Service Account ID": game.details?.gcpServiceAccountId || "N/A"
105
- }
98
+ "GCP Service Account ID": game.details?.gcpServiceAccountId || "N/A",
99
+ "Game Engine": game.details?.gameEngine || "Please set!",
100
+ "Game Engine Version": game.details?.gameEngineVersion || "Please set!",
101
+ "Game Name": game.name,
102
+ "Semantic Version": game.details?.semanticVersion || "0.0.1",
103
+ "iOS Bundle ID": game.details?.iosBundleId || "N/A"
104
+ },
105
+ title: "Game Details"
106
106
  }
107
107
  ) })
108
108
  );
109
- return;
110
109
  }
111
110
  }
112
111
 
@@ -1,26 +1,26 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
- import { B as BaseAuthenticatedCommand, j as isCWDGodotGame, F as getProject, w as DEFAULT_IGNORED_FILES_GLOBS, x as DEFAULT_SHIPPED_FILES_GLOBS } from '../../index-w3lHxk5O.js';
3
- import 'crypto';
4
- import 'fs';
5
- import 'readline-sync';
6
- import 'node:readline';
2
+ import { B as BaseAuthenticatedCommand, j as isCWDGodotGame, E as getProject, v as DEFAULT_SHIPPED_FILES_GLOBS, w as DEFAULT_IGNORED_FILES_GLOBS } from '../../index-pj8JVg5X.js';
3
+ import 'node:crypto';
4
+ import 'node:fs';
7
5
  import 'node:path';
6
+ import 'node:readline';
8
7
  import 'node:url';
8
+ import 'readline-sync';
9
9
  import 'luxon';
10
10
  import 'axios';
11
11
  import 'isomorphic-git';
12
- import 'react';
13
12
  import '@tanstack/react-query';
14
- import 'uuid';
13
+ import 'react';
15
14
  import 'fast-glob';
15
+ import 'uuid';
16
16
  import 'yazl';
17
17
  import 'socket.io-client';
18
+ import 'fullscreen-ink';
18
19
  import 'ink';
19
- import 'path';
20
- import '@expo/apple-utils/build/index.js';
21
20
  import 'crypto-js';
22
- import 'ini';
21
+ import '@expo/apple-utils/build/index.js';
23
22
  import 'deepmerge';
23
+ import 'ini';
24
24
 
25
25
  class GameExport extends BaseAuthenticatedCommand {
26
26
  static args = {
@@ -47,9 +47,9 @@ class GameExport extends BaseAuthenticatedCommand {
47
47
  }
48
48
  const project = await getProject(args.game_id);
49
49
  await this.setProjectConfig({
50
+ ignoredFilesGlobs: DEFAULT_IGNORED_FILES_GLOBS,
50
51
  project,
51
- shippedFilesGlobs: DEFAULT_SHIPPED_FILES_GLOBS,
52
- ignoredFilesGlobs: DEFAULT_IGNORED_FILES_GLOBS
52
+ shippedFilesGlobs: DEFAULT_SHIPPED_FILES_GLOBS
53
53
  });
54
54
  await this.config.runCommand("game:status");
55
55
  this.exit(0);