@alwaysmeticulous/cli 2.304.0 → 2.305.0

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 (142) hide show
  1. package/dist/command-utils/common-options.d.ts +5 -0
  2. package/dist/command-utils/common-options.d.ts.map +1 -1
  3. package/dist/command-utils/common-options.js +7 -2
  4. package/dist/command-utils/common-options.js.map +1 -1
  5. package/dist/command-utils/json-args.d.ts +14 -0
  6. package/dist/command-utils/json-args.d.ts.map +1 -0
  7. package/dist/command-utils/json-args.js +40 -0
  8. package/dist/command-utils/json-args.js.map +1 -0
  9. package/dist/command-utils/json-args.spec.d.ts +2 -0
  10. package/dist/command-utils/json-args.spec.d.ts.map +1 -0
  11. package/dist/command-utils/json-args.spec.js +37 -0
  12. package/dist/command-utils/json-args.spec.js.map +1 -0
  13. package/dist/command-utils/print-json.d.ts +7 -0
  14. package/dist/command-utils/print-json.d.ts.map +1 -0
  15. package/dist/command-utils/print-json.js +16 -0
  16. package/dist/command-utils/print-json.js.map +1 -0
  17. package/dist/commands/agent/index.d.ts.map +1 -1
  18. package/dist/commands/agent/index.js +11 -4
  19. package/dist/commands/agent/index.js.map +1 -1
  20. package/dist/commands/agent/js-coverage-diff.command.d.ts.map +1 -1
  21. package/dist/commands/agent/js-coverage-diff.command.js +26 -33
  22. package/dist/commands/agent/js-coverage-diff.command.js.map +1 -1
  23. package/dist/commands/agent/js-coverage.command.d.ts +3 -0
  24. package/dist/commands/agent/js-coverage.command.d.ts.map +1 -1
  25. package/dist/commands/agent/js-coverage.command.js +81 -43
  26. package/dist/commands/agent/js-coverage.command.js.map +1 -1
  27. package/dist/commands/agent/js-coverage.command.spec.js +48 -2
  28. package/dist/commands/agent/js-coverage.command.spec.js.map +1 -1
  29. package/dist/commands/agent/screenshot-dom-diff.command.d.ts +1 -0
  30. package/dist/commands/agent/screenshot-dom-diff.command.d.ts.map +1 -1
  31. package/dist/commands/agent/screenshot-dom-diff.command.js +26 -18
  32. package/dist/commands/agent/screenshot-dom-diff.command.js.map +1 -1
  33. package/dist/commands/agent/screenshot-image-files.command.d.ts +1 -0
  34. package/dist/commands/agent/screenshot-image-files.command.d.ts.map +1 -1
  35. package/dist/commands/agent/screenshot-image-files.command.js +18 -5
  36. package/dist/commands/agent/screenshot-image-files.command.js.map +1 -1
  37. package/dist/commands/agent/screenshot-image.command.d.ts +1 -0
  38. package/dist/commands/agent/screenshot-image.command.d.ts.map +1 -1
  39. package/dist/commands/agent/screenshot-image.command.js +9 -4
  40. package/dist/commands/agent/screenshot-image.command.js.map +1 -1
  41. package/dist/commands/agent/test-run-diffs.command.d.ts +1 -0
  42. package/dist/commands/agent/test-run-diffs.command.d.ts.map +1 -1
  43. package/dist/commands/agent/test-run-diffs.command.js +40 -24
  44. package/dist/commands/agent/test-run-diffs.command.js.map +1 -1
  45. package/dist/commands/agent/test-run-diffs.utils.d.ts +7 -0
  46. package/dist/commands/agent/test-run-diffs.utils.d.ts.map +1 -1
  47. package/dist/commands/agent/test-run-diffs.utils.js +48 -3
  48. package/dist/commands/agent/test-run-diffs.utils.js.map +1 -1
  49. package/dist/commands/agent/test-run-diffs.utils.spec.js +145 -2
  50. package/dist/commands/agent/test-run-diffs.utils.spec.js.map +1 -1
  51. package/dist/commands/agent/test-run-for-commit.command.d.ts.map +1 -1
  52. package/dist/commands/agent/test-run-for-commit.command.js +12 -14
  53. package/dist/commands/agent/test-run-for-commit.command.js.map +1 -1
  54. package/dist/commands/agent/timeline.command.d.ts +1 -0
  55. package/dist/commands/agent/timeline.command.d.ts.map +1 -1
  56. package/dist/commands/agent/timeline.command.js +21 -7
  57. package/dist/commands/agent/timeline.command.js.map +1 -1
  58. package/dist/commands/agent/timeline.command.spec.d.ts +2 -0
  59. package/dist/commands/agent/timeline.command.spec.d.ts.map +1 -0
  60. package/dist/commands/agent/timeline.command.spec.js +77 -0
  61. package/dist/commands/agent/timeline.command.spec.js.map +1 -0
  62. package/dist/commands/agent/trigger-test-run.command.d.ts.map +1 -1
  63. package/dist/commands/agent/trigger-test-run.command.js +7 -11
  64. package/dist/commands/agent/trigger-test-run.command.js.map +1 -1
  65. package/dist/commands/agent/upload-build.command.d.ts.map +1 -1
  66. package/dist/commands/agent/upload-build.command.js +10 -10
  67. package/dist/commands/agent/upload-build.command.js.map +1 -1
  68. package/dist/commands/all-commands.d.ts +38 -0
  69. package/dist/commands/all-commands.d.ts.map +1 -0
  70. package/dist/commands/all-commands.js +65 -0
  71. package/dist/commands/all-commands.js.map +1 -0
  72. package/dist/commands/auth/__tests__/list-projects.command.spec.js +22 -12
  73. package/dist/commands/auth/__tests__/list-projects.command.spec.js.map +1 -1
  74. package/dist/commands/auth/__tests__/login.command.spec.js +9 -7
  75. package/dist/commands/auth/__tests__/login.command.spec.js.map +1 -1
  76. package/dist/commands/auth/__tests__/logout.command.spec.js +4 -8
  77. package/dist/commands/auth/__tests__/logout.command.spec.js.map +1 -1
  78. package/dist/commands/auth/__tests__/whoami.command.spec.js +62 -21
  79. package/dist/commands/auth/__tests__/whoami.command.spec.js.map +1 -1
  80. package/dist/commands/auth/list-projects.command.d.ts.map +1 -1
  81. package/dist/commands/auth/list-projects.command.js +15 -13
  82. package/dist/commands/auth/list-projects.command.js.map +1 -1
  83. package/dist/commands/auth/login.command.d.ts.map +1 -1
  84. package/dist/commands/auth/login.command.js +4 -5
  85. package/dist/commands/auth/login.command.js.map +1 -1
  86. package/dist/commands/auth/logout.command.d.ts +1 -5
  87. package/dist/commands/auth/logout.command.d.ts.map +1 -1
  88. package/dist/commands/auth/logout.command.js +4 -9
  89. package/dist/commands/auth/logout.command.js.map +1 -1
  90. package/dist/commands/auth/set-project.command.d.ts.map +1 -1
  91. package/dist/commands/auth/set-project.command.js +3 -4
  92. package/dist/commands/auth/set-project.command.js.map +1 -1
  93. package/dist/commands/auth/unset-project.command.js +5 -5
  94. package/dist/commands/auth/unset-project.command.js.map +1 -1
  95. package/dist/commands/auth/whoami.command.d.ts +5 -1
  96. package/dist/commands/auth/whoami.command.d.ts.map +1 -1
  97. package/dist/commands/auth/whoami.command.js +71 -31
  98. package/dist/commands/auth/whoami.command.js.map +1 -1
  99. package/dist/commands/ci/prepare.command.d.ts.map +1 -1
  100. package/dist/commands/ci/prepare.command.js +3 -2
  101. package/dist/commands/ci/prepare.command.js.map +1 -1
  102. package/dist/commands/ci/run-local.command.d.ts.map +1 -1
  103. package/dist/commands/ci/run-local.command.js +6 -4
  104. package/dist/commands/ci/run-local.command.js.map +1 -1
  105. package/dist/commands/ci/run.command.d.ts.map +1 -1
  106. package/dist/commands/ci/run.command.js +3 -2
  107. package/dist/commands/ci/run.command.js.map +1 -1
  108. package/dist/commands/ci/start-tunnel.command.d.ts.map +1 -1
  109. package/dist/commands/ci/start-tunnel.command.js +4 -2
  110. package/dist/commands/ci/start-tunnel.command.js.map +1 -1
  111. package/dist/commands/ci/upload-assets.command.d.ts +1 -0
  112. package/dist/commands/ci/upload-assets.command.d.ts.map +1 -1
  113. package/dist/commands/ci/upload-assets.command.js +3 -2
  114. package/dist/commands/ci/upload-assets.command.js.map +1 -1
  115. package/dist/commands/ci/upload-container.command.d.ts +1 -0
  116. package/dist/commands/ci/upload-container.command.d.ts.map +1 -1
  117. package/dist/commands/ci/upload-container.command.js +3 -2
  118. package/dist/commands/ci/upload-container.command.js.map +1 -1
  119. package/dist/commands/debug/index.d.ts.map +1 -1
  120. package/dist/commands/debug/index.js +39 -35
  121. package/dist/commands/debug/index.js.map +1 -1
  122. package/dist/commands/replay.command.d.ts.map +1 -1
  123. package/dist/commands/replay.command.js +3 -2
  124. package/dist/commands/replay.command.js.map +1 -1
  125. package/dist/commands/schema.command.d.ts +53 -0
  126. package/dist/commands/schema.command.d.ts.map +1 -1
  127. package/dist/commands/schema.command.js +232 -106
  128. package/dist/commands/schema.command.js.map +1 -1
  129. package/dist/commands/schema.command.spec.d.ts +2 -0
  130. package/dist/commands/schema.command.spec.d.ts.map +1 -0
  131. package/dist/commands/schema.command.spec.js +198 -0
  132. package/dist/commands/schema.command.spec.js.map +1 -0
  133. package/dist/main.d.ts.map +1 -1
  134. package/dist/main.js +60 -48
  135. package/dist/main.js.map +1 -1
  136. package/dist/utils/__tests__/select-project.spec.js +6 -12
  137. package/dist/utils/__tests__/select-project.spec.js.map +1 -1
  138. package/dist/utils/select-project.d.ts +1 -3
  139. package/dist/utils/select-project.d.ts.map +1 -1
  140. package/dist/utils/select-project.js +6 -5
  141. package/dist/utils/select-project.js.map +1 -1
  142. package/package.json +10 -10
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4d84e6cc-8c68-53c6-b0b0-5a6b7afd1525")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f8bd3b1b-a98d-56d5-8c90-8aef985d8078")}catch(e){}}();
3
3
 
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.debugCommand = void 0;
@@ -51,17 +51,18 @@ const runPipeline = async (opts) => {
51
51
  const replayDiffCommand = {
52
52
  command: "replay-diff <replayDiffId>",
53
53
  describe: "Debug a specific replay diff",
54
- builder: (yargs) => yargs
55
- .positional("replayDiffId", {
56
- type: "string",
57
- demandOption: true,
58
- description: "The replay diff ID to debug",
59
- })
60
- .option("sessionId", {
61
- string: true,
62
- description: "Override the session ID for this replay diff",
63
- })
64
- .option(SHARED_OPTIONS),
54
+ builder: {
55
+ replayDiffId: {
56
+ type: "string",
57
+ demandOption: true,
58
+ description: "The replay diff ID to debug",
59
+ },
60
+ sessionId: {
61
+ string: true,
62
+ description: "Override the session ID for this replay diff",
63
+ },
64
+ ...SHARED_OPTIONS,
65
+ },
65
66
  handler: (0, sentry_utils_1.wrapHandler)(async (args) => {
66
67
  await runPipeline({
67
68
  apiToken: args.apiToken,
@@ -76,21 +77,22 @@ const replayDiffCommand = {
76
77
  const replayCommand = {
77
78
  command: "replay <replayId>",
78
79
  describe: "Debug a replay, optionally comparing against a base replay",
79
- builder: (yargs) => yargs
80
- .positional("replayId", {
81
- type: "string",
82
- demandOption: true,
83
- description: "The replay ID to debug (head replay)",
84
- })
85
- .option("baseReplayId", {
86
- string: true,
87
- description: "Base replay ID to compare against",
88
- })
89
- .option("sessionId", {
90
- string: true,
91
- description: "Override the session ID",
92
- })
93
- .option(SHARED_OPTIONS),
80
+ builder: {
81
+ replayId: {
82
+ type: "string",
83
+ demandOption: true,
84
+ description: "The replay ID to debug (head replay)",
85
+ },
86
+ baseReplayId: {
87
+ string: true,
88
+ description: "Base replay ID to compare against",
89
+ },
90
+ sessionId: {
91
+ string: true,
92
+ description: "Override the session ID",
93
+ },
94
+ ...SHARED_OPTIONS,
95
+ },
94
96
  handler: (0, sentry_utils_1.wrapHandler)(async (args) => {
95
97
  const replayIds = [args.replayId];
96
98
  if (args.baseReplayId) {
@@ -109,11 +111,13 @@ const replayCommand = {
109
111
  const cleanCommand = {
110
112
  command: "clean",
111
113
  describe: "Clean up debug workspaces",
112
- builder: (yargs) => yargs.option("all", {
113
- boolean: true,
114
- description: "Delete all workspaces without prompting (useful for non-interactive environments)",
115
- default: false,
116
- }),
114
+ builder: {
115
+ all: {
116
+ boolean: true,
117
+ description: "Delete all workspaces without prompting (useful for non-interactive environments)",
118
+ default: false,
119
+ },
120
+ },
117
121
  handler: (0, sentry_utils_1.wrapHandler)(async (args) => {
118
122
  await (0, clean_workspaces_1.cleanWorkspaces)({
119
123
  all: args.all,
@@ -122,8 +126,8 @@ const cleanCommand = {
122
126
  }),
123
127
  };
124
128
  exports.debugCommand = {
125
- command: "debug <command>",
126
- describe: "Set up a debug workspace for investigating Meticulous replay diffs and replays",
129
+ command: "debug",
130
+ describe: "Set up a debug workspace",
127
131
  builder: (yargs) => yargs
128
132
  .command(replayDiffCommand)
129
133
  .command(replayCommand)
@@ -134,4 +138,4 @@ exports.debugCommand = {
134
138
  },
135
139
  };
136
140
  //# sourceMappingURL=index.js.map
137
- //# debugId=4d84e6cc-8c68-53c6-b0b0-5a6b7afd1525
141
+ //# debugId=f8bd3b1b-a98d-56d5-8c90-8aef985d8078
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/commands/debug/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AACA,qDAIkC;AAClC,uEAAqE;AAErE,uEAA6D;AAC7D,mEAA+D;AAC/D,uFAAoF;AACpF,yDAAqD;AACrD,2DAAuD;AACvD,yDAG4B;AAE5B,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,wBAAO,CAAC,QAAQ;IAC1B,aAAa,EAAE;QACb,MAAM,EAAE,IAAa;QACrB,WAAW,EACT,+DAA+D;KAClE;IACD,UAAU,EAAE;QACV,MAAM,EAAE,IAAa;QACrB,WAAW,EAAE,0CAA0C;KACxD;CACF,CAAC;AAEF,MAAM,WAAW,GAAG,KAAK,EAAE,IAQ1B,EAAiB,EAAE;IAClB,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAAC;QAC9C,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,gBAAgB,EAAE,IAAI;KACvB,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,MAAM,IAAA,8BAAqB,EAAC;QACzC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,gBAAgB,EAAE,IAAI;KACvB,CAAC,CAAC;IAEH,yDAAyD;IACzD,KAAK,IAAA,+BAAsB,EAAC;QAC1B,MAAM;QACN,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,SAAS,EAAE,IAAA,uDAA0B,EAAC,QAAQ,CAAC;KAChD,CAAC,CAAC;IAEH,MAAM,IAAA,kCAAgB,EAAC;QACr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AAE,EAAE;QAClC,MAAM,IAAA,kCAAe,EAAC;YACpB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,YAAY,EAAE,wCAAqB;SACpC,CAAC,CAAC;IACL,CAAC,CAAC;CACH,CAAC;AAEW,QAAA,YAAY,GAAkB;IACzC,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EACN,gFAAgF;IAClF,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK;SACF,OAAO,CAAC,iBAAiB,CAAC;SAC1B,OAAO,CAAC,aAAa,CAAC;SACtB,OAAO,CAAC,YAAY,CAAC;SACrB,aAAa,CAAC,CAAC,EAAE,mCAAmC,CAAC;IAC1D,OAAO,EAAE,GAAG,EAAE;QACZ,yBAAyB;IAC3B,CAAC;CACF,CAAC","debugId":"4d84e6cc-8c68-53c6-b0b0-5a6b7afd1525"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/commands/debug/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AACA,qDAIkC;AAClC,uEAAqE;AAErE,uEAA6D;AAC7D,mEAA+D;AAC/D,uFAAoF;AACpF,yDAAqD;AACrD,2DAAuD;AACvD,yDAG4B;AAE5B,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,wBAAO,CAAC,QAAQ;IAC1B,aAAa,EAAE;QACb,MAAM,EAAE,IAAa;QACrB,WAAW,EACT,+DAA+D;KAClE;IACD,UAAU,EAAE;QACV,MAAM,EAAE,IAAa;QACrB,WAAW,EAAE,0CAA0C;KACxD;CACF,CAAC;AAEF,MAAM,WAAW,GAAG,KAAK,EAAE,IAQ1B,EAAiB,EAAE;IAClB,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAAC;QAC9C,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,gBAAgB,EAAE,IAAI;KACvB,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,MAAM,IAAA,8BAAqB,EAAC;QACzC,QAAQ,EAAE,IAAI,CAAC,QAAQ;Q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,IAAI,EAAE,EAAE;QAClC,MAAM,IAAA,kCAAe,EAAC;YACpB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,YAAY,EAAE,wCAAqB;SACpC,CAAC,CAAC;IACL,CAAC,CAAC;CACH,CAAC;AAEW,QAAA,YAAY,GAAkB;IACzC,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,0BAA0B;IACpC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK;SACF,OAAO,CAAC,iBAAiB,CAAC;SAC1B,OAAO,CAAC,aAAa,CAAC;SACtB,OAAO,CAAC,YAAY,CAAC;SACrB,aAAa,CAAC,CAAC,EAAE,mCAAmC,CAAC;IAC1D,OAAO,EAAE,GAAG,EAAE;QACZ,yBAAyB;IAC3B,CAAC;CACF,CAAC","debugId":"f8bd3b1b-a98d-56d5-8c90-8aef985d8078"}
@@ -1 +1 @@
1
- {"version":3,"file":"replay.command.d.ts","sourceRoot":"","sources":["../../src/commands/replay.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAKV,sBAAsB,EAGvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAa3C,UAAU,OACR,SACE,qBAAqB,EACrB,IAAI,CAAC,sBAAsB,EAAE,eAAe,GAAG,eAAe,CAAC;IACjE,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,qBAAqB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC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IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,8BAA8B,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1D,8BAA8B,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACrD,iCAAiC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACxD,4BAA4B,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACnD,mCAAmC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAkOD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CA2EzD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9a8f88ac-ea4e-54ec-9b23-fa343f253686")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cfa67948-031c-53ce-b7d0-729a12a3367f")}catch(e){}}();
3
3
 
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.replayCommand = void 0;
@@ -163,6 +163,7 @@ exports.replayCommand = {
163
163
  builder: {
164
164
  apiToken: common_options_1.OPTIONS.apiToken,
165
165
  commitSha: common_options_1.OPTIONS.commitSha,
166
+ dryRun: common_options_1.OPTIONS.dryRun,
166
167
  sessionId: {
167
168
  string: true,
168
169
  demandOption: true,
@@ -228,4 +229,4 @@ exports.replayCommand = {
228
229
  handler: (0, sentry_utils_1.wrapHandler)(handler),
229
230
  };
230
231
  //# sourceMappingURL=replay.command.js.map
231
- //# debugId=9a8f88ac-ea4e-54ec-9b23-fa343f253686
232
+ //# debugId=cfa67948-031c-53ce-b7d0-729a12a3367f
@@ -1 +1 @@
1
- {"version":3,"file":"replay.command.js","sources":["../../src/commands/replay.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAIA,qDAAoE;AACpE,qDAA6D;AAC7D,iGAAuF;AAWvF,oEAIyC;AACzC,gEAA4D;AAC5D,gFAG2C;AAC3C,6DAAiE;AA2BjE,MAAM,OAAO,GAAG,KAAK,EAAE,EACrB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,MAAM,EACN,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,aAAa,EACb,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,aAAa,EACb,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,EAC9B,QAAQ,EAAE,yBAAyB,EACnC,YAAY,EACZ,8BAA8B,EAC9B,iCAAiC,EACjC,4BAA4B,EAC5B,mCAAmC,EACnC,iBAAiB,EACjB,2BAA2B,EAC3B,MAAM,GACE,EAAiB,EAAE;IAC3B,IAAI,CAAC,aAAa,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACb,+IAA+I,CAChJ,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,IAAI,yBAAyB,EAA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A,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC","debugId":"9a8f88ac-ea4e-54ec-9b23-fa343f253686"}
1
+ {"version":3,"file":"replay.command.js","sources":["../../src/commands/replay.command.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAIA,qDAAoE;AACpE,qDAA6D;AAC7D,iGAAuF;AAWvF,oEAIyC;AACzC,gEAA4D;AAC5D,gFAG2C;AAC3C,6DAAiE;AA2BjE,MAAM,OAAO,GAAG,KAAK,EAAE,EACrB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,MAAM,EACN,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,aAAa,EACb,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,aAAa,EACb,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,EAC9B,QAAQ,EAAE,yBAAyB,EACnC,YAAY,EACZ,8BAA8B,EAC9B,iCAAiC,EACjC,4BAA4B,EAC5B,mCAAmC,EACnC,iBAAiB,EACjB,2BAA2B,EAC3B,MAAM,GACE,EAAiB,EAAE;IAC3B,IAAI,CAAC,aAAa,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACb,+IAA+I,CAChJ,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,IAAI,yBAAyB,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CACb,4EAA4E,CAC7E,CAAC;IACJ,CAAC;IAED,IAAI,YAAY,IAAI,IAAI,EAAE,CAAC;QACzB,IAAI,CAAC,yBAAyB,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CACb,iCAAiC,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,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE,IAAI;SACd;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,IAAI;YACb,WAAW,EACT,4EAA4E;YAC9E,OAAO,EAAE,KAAK;SACf;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,uJAAuJ;SAC1J;QACD,oBAAoB,EAAE,wBAAO,CAAC,oBAAoB;QAClD,WAAW,EAAE;YACX,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,6CAA6C;SAC3D;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,qDAAqD;YAClE,KAAK,EAAE,kBAAkB;SAC1B;QACD,8BAA8B,EAAE;YAC9B,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,qDAAqD;SACnE;QACD,iCAAiC,EAAE;YACjC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,IAAI;YACZ,WAAW,EACT,gEAAgE;SACnE;QACD,4BAA4B,EAAE;YAC5B,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,8BAA8B;YAC3C,OAAO,EAAE,CAAC,2BAA2B,EAAE,kBAAkB,CAAC;SAC3D;QACD,mCAAmC,EAAE;YACnC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,2DAA2D;SACzE;QACD,GAAG,sCAAqB;QACxB,GAAG,wCAAuB;KAC3B;IACD,OAAO,EAAE,IAAA,0BAAW,EAAC,OAAO,CAAC;CAC9B,CAAC","debugId":"cfa67948-031c-53ce-b7d0-729a12a3367f"}
@@ -1,7 +1,60 @@
1
1
  import type { CommandModule } from "yargs";
2
+ interface OptionSchema {
3
+ type?: string;
4
+ description?: string;
5
+ default?: unknown;
6
+ required?: boolean;
7
+ choices?: unknown[];
8
+ hidden?: boolean;
9
+ deprecated?: boolean | string;
10
+ alias?: string | readonly string[];
11
+ }
12
+ interface CommandSchema {
13
+ command: string;
14
+ describe: string;
15
+ aliases?: string[];
16
+ positionals?: string[];
17
+ options?: Record<string, OptionSchema>;
18
+ subcommands?: CommandSchema[];
19
+ }
2
20
  interface Options {
3
21
  command?: string[];
4
22
  }
23
+ /**
24
+ * Builds the schema for the whole CLI, or for the command named by `path`.
25
+ * Leaf commands keep their `options`; groups and the top-level list have their
26
+ * options stripped (only the tree of names/describes is returned there).
27
+ */
28
+ export declare const generateSchema: (path?: string[]) => CommandSchema | Omit<CommandSchema, "options"> | CommandSchema[];
29
+ type JsonArgsTarget = {
30
+ kind: "leaf";
31
+ keys: Set<string>;
32
+ } | {
33
+ kind: "group";
34
+ name: string;
35
+ } | {
36
+ kind: "unknown";
37
+ };
38
+ /**
39
+ * Classifies the command at `commandPath` for `--jsonArgs` validation, which
40
+ * merges its keys straight onto argv, bypassing yargs' per-command `.strict()`.
41
+ * `--jsonArgs` only makes sense on a specific command, so only a `leaf` is
42
+ * accepted — `group` and `unknown` are rejected by the caller.
43
+ *
44
+ * - `leaf`: a specific command. `keys` is its allow-list — own options plus
45
+ * those inherited from any enclosing group and the globals. Validating against
46
+ * the *specific* command (not the union of all commands) matches `.strict()`:
47
+ * `--jsonArgs '{"dryRun":true}'` is rejected on `auth logout` just as
48
+ * `--dryRun` would be. Unknown keys — including prototype-polluting ones like
49
+ * `__proto__` — are never option names.
50
+ * - `group`: a command space (`meticulous agent`) — `--jsonArgs` carries a
51
+ * single command's options and has nothing to apply to here.
52
+ * - `unknown`: an unknown or empty command path (which yargs also rejects).
53
+ *
54
+ * Every genuinely-runnable command — including the hidden deprecated aliases and
55
+ * `schema` — resolves to a leaf, so no runnable invocation is wrongly rejected.
56
+ */
57
+ export declare const resolveJsonArgsTarget: (commandPath: string[]) => JsonArgsTarget;
5
58
  export declare const schemaCommand: CommandModule<unknown, Options>;
6
59
  export {};
7
60
  //# sourceMappingURL=schema.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.command.d.ts","sourceRoot":"","sources":["../../src/commands/schema.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA2B,MAAM,OAAO,CAAC;AA2BpE,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAgKD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAKzD,CAAC"}
1
+ {"version":3,"file":"schema.command.d.ts","sourceRoot":"","sources":["../../src/commands/schema.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA2B,MAAM,OAAO,CAAC;AAMpE,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;CACpC;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAmOD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAClB,MAAM,EAAE,KACd,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,GAAG,aAAa,EAUhE,CAAC;AAEF,KAAK,cAAc,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,gBACnB,MAAM,EAAE,KACpB,cAuCF,CAAC;AAqBF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,CAKzD,CAAC"}
@@ -1,126 +1,178 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ce5e24d4-7547-5f2d-944f-3f6a996cf2bc")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1b53d6ee-9c7a-5a4b-87ea-db842a6dc4de")}catch(e){}}();
3
3
 
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.schemaCommand = void 0;
5
+ exports.schemaCommand = exports.resolveJsonArgsTarget = exports.generateSchema = void 0;
6
+ const print_json_1 = require("../command-utils/print-json");
6
7
  const sentry_utils_1 = require("../command-utils/sentry.utils");
7
- const index_1 = require("./auth/index");
8
- const index_2 = require("./ci/index");
9
- const debug_1 = require("./debug");
10
- const index_3 = require("./download/index");
11
- const local_1 = require("./local");
12
- const index_4 = require("./project/index");
13
- const index_5 = require("./record/index");
14
- const replay_command_1 = require("./replay.command");
15
- const GLOBAL_OPTIONS = {
16
- logLevel: {
17
- type: "string",
18
- description: "Log level",
19
- choices: ["trace", "debug", "info", "warn", "error", "silent"],
20
- },
21
- dataDir: {
22
- type: "string",
23
- description: "Where Meticulous stores data (sessions, replays, etc.)",
24
- },
25
- rawJson: {
26
- type: "string",
27
- description: "Pass all options as a JSON string (for agent/programmatic use)",
28
- },
29
- };
30
- const ALL_COMMANDS = [
31
- index_1.authCommand,
32
- index_2.ciCommand,
33
- index_3.downloadCommand,
34
- index_4.projectCommand,
35
- index_5.recordCommand,
36
- replay_command_1.replayCommand,
37
- local_1.localCommand,
38
- debug_1.debugCommand,
39
- ];
40
- const buildCommandSchema = (commands) => {
8
+ const all_commands_1 = require("./all-commands");
9
+ const deprecated_aliases_1 = require("./deprecated-aliases");
10
+ const buildCommandSchema = (commands, inheritedOptions,
11
+ // `describe: false` hides a command from the public schema. The `--jsonArgs`
12
+ // allow-list needs those commands' options too (a super-user-gated command
13
+ // still accepts its flags programmatically), so it walks with includeHidden.
14
+ includeHidden = false) => {
41
15
  return commands
42
- .filter((cmd) => cmd.describe !== false)
43
- .map(commandModuleToSchema);
16
+ .filter((cmd) => includeHidden || cmd.describe !== false)
17
+ .map((cmd) => commandModuleToSchema(cmd, inheritedOptions, includeHidden));
44
18
  };
45
- const commandModuleToSchema = (cmd) => {
46
- const rawCommand = Array.isArray(cmd.command)
47
- ? cmd.command[0]
48
- : (cmd.command ?? "");
49
- const name = rawCommand.split(" ")[0];
19
+ const commandModuleToSchema = (cmd, inheritedOptions, includeHidden) => {
20
+ const { name, aliases } = getCommandNames(cmd);
21
+ const positionals = getPositionals(cmd);
50
22
  const describe = typeof cmd.describe === "string" ? cmd.describe : "";
23
+ const base = {
24
+ command: name,
25
+ describe,
26
+ ...(aliases.length > 0 ? { aliases } : {}),
27
+ ...(positionals.length > 0 ? { positionals } : {}),
28
+ };
51
29
  if (typeof cmd.builder === "function") {
52
30
  const submodules = [];
53
- const mockYargs = createMockYargs(submodules);
31
+ const groupOptions = {};
32
+ const mockYargs = createMockYargs(submodules, groupOptions);
54
33
  cmd.builder(mockYargs);
55
- const subcommands = buildCommandSchema(submodules);
34
+ // Options declared on a group builder (e.g. agent's --verbose/--json) are
35
+ // inherited by every subcommand, so thread them down into the subcommands.
36
+ const inherited = { ...inheritedOptions };
37
+ for (const [key, opt] of Object.entries(groupOptions)) {
38
+ inherited[key] = yargsOptionToSchema(opt);
39
+ }
40
+ const subcommands = buildCommandSchema(submodules, inherited, includeHidden);
56
41
  return {
57
- command: name,
58
- describe,
42
+ ...base,
59
43
  ...(subcommands.length > 0 ? { subcommands } : {}),
60
44
  };
61
45
  }
62
- if (cmd.builder && typeof cmd.builder === "object") {
63
- const options = { ...GLOBAL_OPTIONS };
64
- for (const [key, opt] of Object.entries(cmd.builder)) {
65
- const schema = {};
66
- if (opt.type) {
67
- schema.type = opt.type;
68
- }
69
- else if (opt.boolean) {
70
- schema.type = "boolean";
71
- }
72
- else if (opt.string) {
73
- schema.type = "string";
74
- }
75
- else if (opt.number) {
76
- schema.type = "number";
77
- }
78
- const desc = opt.description ?? opt.describe;
79
- if (desc) {
80
- schema.description = desc;
81
- }
82
- if ("default" in opt) {
83
- schema.default = opt.default;
84
- }
85
- if (opt.demandOption || opt.required) {
86
- schema.required = true;
87
- }
88
- if (opt.choices) {
89
- schema.choices = opt.choices;
90
- }
91
- if (opt.hidden) {
92
- schema.hidden = true;
93
- }
94
- options[key] = schema;
95
- }
96
- return { command: name, describe, options };
46
+ // A leaf command (object builder, or none at all). Top-level global options
47
+ // first, then options inherited from any enclosing group, then the command's
48
+ // own — all converted the same way, so the schema stays in sync with how
49
+ // they're actually declared. A command with no builder (e.g. auth logout)
50
+ // still accepts the global flags, so we always emit them.
51
+ const ownBuilder = cmd.builder && typeof cmd.builder === "object"
52
+ ? cmd.builder
53
+ : {};
54
+ const options = {};
55
+ for (const [key, opt] of Object.entries(all_commands_1.GLOBAL_OPTIONS)) {
56
+ options[key] = yargsOptionToSchema(opt);
57
+ }
58
+ Object.assign(options, inheritedOptions);
59
+ for (const [key, opt] of Object.entries(ownBuilder)) {
60
+ options[key] = yargsOptionToSchema(opt);
61
+ }
62
+ return { ...base, options };
63
+ };
64
+ /**
65
+ * A command's canonical name plus any aliases. yargs encodes aliases either as
66
+ * extra entries in an array `command` (`["simulate", "replay"]`) or via the
67
+ * `aliases` field; we normalise both, stripping positional placeholders like
68
+ * `<id>` / `[command..]` down to the leading token.
69
+ */
70
+ const getCommandNames = (cmd) => {
71
+ const commandEntries = Array.isArray(cmd.command)
72
+ ? cmd.command
73
+ : cmd.command != null
74
+ ? [cmd.command]
75
+ : [""];
76
+ const [name, ...arrayAliases] = commandEntries.map((entry) => entry.split(" ")[0]);
77
+ const aliasField = cmd.aliases == null
78
+ ? []
79
+ : Array.isArray(cmd.aliases)
80
+ ? cmd.aliases
81
+ : [cmd.aliases];
82
+ return { name: name ?? "", aliases: [...arrayAliases, ...aliasField] };
83
+ };
84
+ /**
85
+ * The names of a command's positional arguments, parsed from its command string
86
+ * (e.g. `schema [command..]` → `["command"]`, `replay-diff <replayDiffId>` →
87
+ * `["replayDiffId"]`). yargs exposes each on argv under its bare name, so they're
88
+ * valid keys to pass via `--jsonArgs` just like options.
89
+ */
90
+ const getPositionals = (cmd) => {
91
+ const first = Array.isArray(cmd.command) ? cmd.command[0] : cmd.command;
92
+ if (typeof first !== "string") {
93
+ return [];
94
+ }
95
+ return first
96
+ .split(" ")
97
+ .slice(1) // drop the command name; the rest are positional tokens
98
+ .map((token) => token.replace(/[<>[\]]/g, "").replace(/\.\.$/, ""))
99
+ .filter((name) => name.length > 0);
100
+ };
101
+ const yargsOptionToSchema = (opt) => {
102
+ const schema = {};
103
+ if (opt.type) {
104
+ schema.type = opt.type;
105
+ }
106
+ else if (opt.boolean) {
107
+ schema.type = "boolean";
108
+ }
109
+ else if (opt.string) {
110
+ schema.type = "string";
111
+ }
112
+ else if (opt.number) {
113
+ schema.type = "number";
97
114
  }
98
- return { command: name, describe };
115
+ const desc = opt.description ?? opt.describe;
116
+ if (desc) {
117
+ schema.description = desc;
118
+ }
119
+ if ("default" in opt) {
120
+ schema.default = opt.default;
121
+ }
122
+ if (opt.demandOption || opt.required) {
123
+ schema.required = true;
124
+ }
125
+ if (opt.choices) {
126
+ schema.choices = opt.choices;
127
+ }
128
+ if (opt.hidden) {
129
+ schema.hidden = true;
130
+ }
131
+ if (opt.deprecated) {
132
+ schema.deprecated = opt.deprecated;
133
+ }
134
+ if (opt.alias) {
135
+ schema.alias = opt.alias;
136
+ }
137
+ return schema;
99
138
  };
100
- const createMockYargs = (captured) => {
101
- const mock = {};
102
- const fluent = () => mock;
103
- mock.command = (module) => {
104
- captured.push(module);
105
- return mock;
139
+ const createMockYargs = (captured, capturedOptions) => {
140
+ // Record group-level options (both `.option(key, opt)` and `.option({...})`)
141
+ // so they can be inherited by subcommands in the schema.
142
+ const captureOption = (keyOrOptions, opt) => {
143
+ if (typeof keyOrOptions === "string") {
144
+ if (opt) {
145
+ capturedOptions[keyOrOptions] = opt;
146
+ }
147
+ }
148
+ else {
149
+ Object.assign(capturedOptions, keyOrOptions);
150
+ }
151
+ return proxy;
152
+ };
153
+ const handlers = {
154
+ command: (module) => {
155
+ captured.push(module);
156
+ return proxy;
157
+ },
158
+ option: captureOption,
159
+ options: captureOption,
106
160
  };
107
- mock.demandCommand = fluent;
108
- mock.help = fluent;
109
- mock.option = fluent;
110
- mock.options = fluent;
111
- mock.strict = fluent;
112
- mock.positional = fluent;
113
- mock.usage = fluent;
114
- mock.epilog = fluent;
115
- mock.example = fluent;
116
- return mock;
161
+ // Any other yargs builder method (`.help()`, `.strict()`, `.check()`,
162
+ // `.config()`, `.implies()`, `.coerce()`, …) is a fluent no-op that returns
163
+ // the mock, so a builder using one doesn't crash schema generation — those
164
+ // methods add no options for the schema to capture anyway.
165
+ const proxy = new Proxy(handlers, {
166
+ get: (target, prop) => prop in target ? target[prop] : () => proxy,
167
+ });
168
+ return proxy;
117
169
  };
118
170
  const findInSchema = (nodes, pathSegments) => {
119
171
  if (pathSegments.length === 0) {
120
172
  return nodes;
121
173
  }
122
174
  const [head, ...rest] = pathSegments;
123
- const match = nodes.find((n) => n.command === head);
175
+ const match = nodes.find((n) => n.command === head || n.aliases?.includes(head));
124
176
  if (!match) {
125
177
  throw new Error(`Command not found: "${head}". Available: ${nodes.map((n) => n.command).join(", ")}`);
126
178
  }
@@ -135,20 +187,94 @@ const findInSchema = (nodes, pathSegments) => {
135
187
  const stripOptions = (node) => ({
136
188
  command: node.command,
137
189
  describe: node.describe,
190
+ ...(node.aliases ? { aliases: node.aliases } : {}),
191
+ ...(node.positionals ? { positionals: node.positionals } : {}),
138
192
  ...(node.subcommands
139
193
  ? { subcommands: node.subcommands.map(stripOptions) }
140
194
  : {}),
141
195
  });
142
- const handler = ({ command }) => {
143
- const schema = buildCommandSchema(ALL_COMMANDS);
144
- const result = command && command.length > 0 ? findInSchema(schema, command) : schema;
196
+ /**
197
+ * Builds the schema for the whole CLI, or for the command named by `path`.
198
+ * Leaf commands keep their `options`; groups and the top-level list have their
199
+ * options stripped (only the tree of names/describes is returned there).
200
+ */
201
+ const generateSchema = (path) => {
202
+ const schema = buildCommandSchema(all_commands_1.CLI_COMMANDS, {});
203
+ const result = path && path.length > 0 ? findInSchema(schema, path) : schema;
145
204
  const isLeaf = !Array.isArray(result) && !result.subcommands;
146
- const output = isLeaf
205
+ return isLeaf
147
206
  ? result
148
207
  : Array.isArray(result)
149
208
  ? result.map(stripOptions)
150
209
  : stripOptions(result);
151
- process.stdout.write(JSON.stringify(output, null, 2) + "\n");
210
+ };
211
+ exports.generateSchema = generateSchema;
212
+ /**
213
+ * Classifies the command at `commandPath` for `--jsonArgs` validation, which
214
+ * merges its keys straight onto argv, bypassing yargs' per-command `.strict()`.
215
+ * `--jsonArgs` only makes sense on a specific command, so only a `leaf` is
216
+ * accepted — `group` and `unknown` are rejected by the caller.
217
+ *
218
+ * - `leaf`: a specific command. `keys` is its allow-list — own options plus
219
+ * those inherited from any enclosing group and the globals. Validating against
220
+ * the *specific* command (not the union of all commands) matches `.strict()`:
221
+ * `--jsonArgs '{"dryRun":true}'` is rejected on `auth logout` just as
222
+ * `--dryRun` would be. Unknown keys — including prototype-polluting ones like
223
+ * `__proto__` — are never option names.
224
+ * - `group`: a command space (`meticulous agent`) — `--jsonArgs` carries a
225
+ * single command's options and has nothing to apply to here.
226
+ * - `unknown`: an unknown or empty command path (which yargs also rejects).
227
+ *
228
+ * Every genuinely-runnable command — including the hidden deprecated aliases and
229
+ * `schema` — resolves to a leaf, so no runnable invocation is wrongly rejected.
230
+ */
231
+ const resolveJsonArgsTarget = (commandPath) => {
232
+ const schema = buildCommandSchema(
233
+ // Every command `main.ts` registers — `CLI_COMMANDS` plus the hidden
234
+ // deprecated aliases and `schema` itself — so the allow-list covers exactly
235
+ // what can be invoked. (generateSchema deliberately uses only `CLI_COMMANDS`
236
+ // for the public, user-facing schema.)
237
+ [...all_commands_1.CLI_COMMANDS, ...deprecated_aliases_1.deprecatedAliases, exports.schemaCommand], {}, true);
238
+ let nodes = schema;
239
+ let node;
240
+ for (const token of commandPath) {
241
+ const match = nodes.find((n) => n.command === token || n.aliases?.includes(token));
242
+ // A token that isn't a subcommand is a positional argument — stop at the
243
+ // deepest command matched so far.
244
+ if (!match) {
245
+ break;
246
+ }
247
+ node = match;
248
+ nodes = match.subcommands ?? [];
249
+ }
250
+ if (node?.options) {
251
+ const keys = new Set();
252
+ addOptionKeys(node.options, keys);
253
+ // Positional args are also passable via --jsonArgs (yargs exposes them on
254
+ // argv under their bare name), e.g. `schema --jsonArgs '{"command":[...]}'`.
255
+ for (const positional of node.positionals ?? []) {
256
+ keys.add(positional);
257
+ }
258
+ return { kind: "leaf", keys };
259
+ }
260
+ if (node?.subcommands) {
261
+ return { kind: "group", name: node.command };
262
+ }
263
+ return { kind: "unknown" };
264
+ };
265
+ exports.resolveJsonArgsTarget = resolveJsonArgsTarget;
266
+ // Only canonical option names are accepted via --jsonArgs; aliases are omitted
267
+ // deliberately. The merge onto argv sets exactly the key given, and handlers
268
+ // read the canonical name — so an alias key would be silently dropped. Rejecting
269
+ // it as an unknown option is clearer. (`alias` stays in the schema output for
270
+ // discoverability.)
271
+ const addOptionKeys = (options, keys) => {
272
+ for (const key of Object.keys(options)) {
273
+ keys.add(key);
274
+ }
275
+ };
276
+ const handler = ({ command }) => {
277
+ (0, print_json_1.printJson)((0, exports.generateSchema)(command));
152
278
  return Promise.resolve();
153
279
  };
154
280
  exports.schemaCommand = {
@@ -158,4 +284,4 @@ exports.schemaCommand = {
158
284
  handler: (0, sentry_utils_1.wrapHandler)(handler),
159
285
  };
160
286
  //# sourceMappingURL=schema.command.js.map
161
- //# debugId=ce5e24d4-7547-5f2d-944f-3f6a996cf2bc
287
+ //# debugId=1b53d6ee-9c7a-5a4b-87ea-db842a6dc4de