@webpieces/pr-gate 0.4.975 → 0.4.976

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 (169) hide show
  1. package/package.json +6 -6
  2. package/src/scripts/commands/await-checks-command.d.ts +6 -3
  3. package/src/scripts/commands/await-checks-command.js +17 -12
  4. package/src/scripts/commands/await-checks-command.js.map +1 -1
  5. package/src/scripts/commands/await-reviews-command.d.ts +1 -1
  6. package/src/scripts/commands/await-reviews-command.js +3 -3
  7. package/src/scripts/commands/await-reviews-command.js.map +1 -1
  8. package/src/scripts/commands/check-pr-command.d.ts +3 -1
  9. package/src/scripts/commands/check-pr-command.js +12 -9
  10. package/src/scripts/commands/check-pr-command.js.map +1 -1
  11. package/src/scripts/commands/finish-push-dev-command.js +3 -4
  12. package/src/scripts/commands/finish-push-dev-command.js.map +1 -1
  13. package/src/scripts/commands/finish-update-command.js +1 -1
  14. package/src/scripts/commands/finish-update-command.js.map +1 -1
  15. package/src/scripts/commands/finish-upsert-pr-command.d.ts +4 -1
  16. package/src/scripts/commands/finish-upsert-pr-command.js +65 -62
  17. package/src/scripts/commands/finish-upsert-pr-command.js.map +1 -1
  18. package/src/scripts/commands/human-post-pr-command.d.ts +8 -6
  19. package/src/scripts/commands/human-post-pr-command.js +32 -31
  20. package/src/scripts/commands/human-post-pr-command.js.map +1 -1
  21. package/src/scripts/commands/land-pr-command.d.ts +5 -1
  22. package/src/scripts/commands/land-pr-command.js +36 -22
  23. package/src/scripts/commands/land-pr-command.js.map +1 -1
  24. package/src/scripts/commands/main-checkout.d.ts +4 -1
  25. package/src/scripts/commands/main-checkout.js +22 -22
  26. package/src/scripts/commands/main-checkout.js.map +1 -1
  27. package/src/scripts/commands/push-dev-command.js +28 -29
  28. package/src/scripts/commands/push-dev-command.js.map +1 -1
  29. package/src/scripts/commands/review-upsert-pr-command.js +9 -9
  30. package/src/scripts/commands/review-upsert-pr-command.js.map +1 -1
  31. package/src/scripts/commands/start-update-command.d.ts +1 -1
  32. package/src/scripts/commands/start-update-command.js +3 -3
  33. package/src/scripts/commands/start-update-command.js.map +1 -1
  34. package/src/scripts/commands/start-upsert-pr-command.js +4 -4
  35. package/src/scripts/commands/start-upsert-pr-command.js.map +1 -1
  36. package/src/scripts/commands/sync-main-command.js +2 -2
  37. package/src/scripts/commands/sync-main-command.js.map +1 -1
  38. package/src/scripts/commands/upsert-hotfix-pr-command.d.ts +6 -4
  39. package/src/scripts/commands/upsert-hotfix-pr-command.js +46 -43
  40. package/src/scripts/commands/upsert-hotfix-pr-command.js.map +1 -1
  41. package/src/scripts/commands/working-tree-gate.d.ts +4 -1
  42. package/src/scripts/commands/working-tree-gate.js +14 -11
  43. package/src/scripts/commands/working-tree-gate.js.map +1 -1
  44. package/src/scripts/commands/write-review-command.js +4 -6
  45. package/src/scripts/commands/write-review-command.js.map +1 -1
  46. package/src/scripts/commands/write-review-fixes-command.js +3 -4
  47. package/src/scripts/commands/write-review-fixes-command.js.map +1 -1
  48. package/src/scripts/git-finishUpsertPr.js +2 -2
  49. package/src/scripts/git-finishUpsertPr.js.map +1 -1
  50. package/src/scripts/git-gatherInfo.js +6 -7
  51. package/src/scripts/git-gatherInfo.js.map +1 -1
  52. package/src/scripts/pr-gate-container.d.ts +9 -0
  53. package/src/scripts/pr-gate-container.js +19 -0
  54. package/src/scripts/pr-gate-container.js.map +1 -0
  55. package/src/scripts/workflow/await-loop.d.ts +1 -1
  56. package/src/scripts/workflow/await-loop.js +1 -1
  57. package/src/scripts/workflow/await-loop.js.map +1 -1
  58. package/src/scripts/workflow/build-affected.js +1 -1
  59. package/src/scripts/workflow/build-affected.js.map +1 -1
  60. package/src/scripts/workflow/build-artifact-gate.d.ts +1 -1
  61. package/src/scripts/workflow/build-artifact-gate.js +3 -3
  62. package/src/scripts/workflow/build-artifact-gate.js.map +1 -1
  63. package/src/scripts/workflow/build-gate-log.d.ts +9 -6
  64. package/src/scripts/workflow/build-gate-log.js +34 -40
  65. package/src/scripts/workflow/build-gate-log.js.map +1 -1
  66. package/src/scripts/workflow/checklist-scanner.d.ts +1 -1
  67. package/src/scripts/workflow/checklist-scanner.js +8 -8
  68. package/src/scripts/workflow/checklist-scanner.js.map +1 -1
  69. package/src/scripts/workflow/checklist-scope-hasher.d.ts +1 -1
  70. package/src/scripts/workflow/checklist-scope-hasher.js +2 -2
  71. package/src/scripts/workflow/checklist-scope-hasher.js.map +1 -1
  72. package/src/scripts/workflow/dev-deploy-refs.d.ts +5 -5
  73. package/src/scripts/workflow/dev-deploy-refs.js +8 -8
  74. package/src/scripts/workflow/dev-deploy-refs.js.map +1 -1
  75. package/src/scripts/workflow/dev-resolve-runner.d.ts +3 -3
  76. package/src/scripts/workflow/dev-resolve-runner.js +30 -30
  77. package/src/scripts/workflow/dev-resolve-runner.js.map +1 -1
  78. package/src/scripts/workflow/diff-basis.d.ts +4 -2
  79. package/src/scripts/workflow/diff-basis.js +18 -15
  80. package/src/scripts/workflow/diff-basis.js.map +1 -1
  81. package/src/scripts/workflow/diff-materializer.d.ts +5 -3
  82. package/src/scripts/workflow/diff-materializer.js +18 -15
  83. package/src/scripts/workflow/diff-materializer.js.map +1 -1
  84. package/src/scripts/workflow/gated-pr-publisher.d.ts +8 -6
  85. package/src/scripts/workflow/gated-pr-publisher.js +23 -22
  86. package/src/scripts/workflow/gated-pr-publisher.js.map +1 -1
  87. package/src/scripts/workflow/generated-artifact-registry.d.ts +4 -2
  88. package/src/scripts/workflow/generated-artifact-registry.js +11 -8
  89. package/src/scripts/workflow/generated-artifact-registry.js.map +1 -1
  90. package/src/scripts/workflow/git-exec.d.ts +22 -12
  91. package/src/scripts/workflow/git-exec.js +45 -29
  92. package/src/scripts/workflow/git-exec.js.map +1 -1
  93. package/src/scripts/workflow/git-findForkPoint.d.ts +6 -2
  94. package/src/scripts/workflow/git-findForkPoint.js +31 -23
  95. package/src/scripts/workflow/git-findForkPoint.js.map +1 -1
  96. package/src/scripts/workflow/git-readAiBranchName.d.ts +4 -2
  97. package/src/scripts/workflow/git-readAiBranchName.js +8 -5
  98. package/src/scripts/workflow/git-readAiBranchName.js.map +1 -1
  99. package/src/scripts/workflow/hotfix-pr-publisher.d.ts +4 -3
  100. package/src/scripts/workflow/hotfix-pr-publisher.js +7 -6
  101. package/src/scripts/workflow/hotfix-pr-publisher.js.map +1 -1
  102. package/src/scripts/workflow/landed-tree-resolver.d.ts +4 -2
  103. package/src/scripts/workflow/landed-tree-resolver.js +11 -8
  104. package/src/scripts/workflow/landed-tree-resolver.js.map +1 -1
  105. package/src/scripts/workflow/landed-worktree-reaper.d.ts +4 -2
  106. package/src/scripts/workflow/landed-worktree-reaper.js +12 -9
  107. package/src/scripts/workflow/landed-worktree-reaper.js.map +1 -1
  108. package/src/scripts/workflow/merge-end.d.ts +2 -2
  109. package/src/scripts/workflow/merge-end.js +22 -24
  110. package/src/scripts/workflow/merge-end.js.map +1 -1
  111. package/src/scripts/workflow/merge-start.d.ts +5 -1
  112. package/src/scripts/workflow/merge-start.js +56 -49
  113. package/src/scripts/workflow/merge-start.js.map +1 -1
  114. package/src/scripts/workflow/open-pr-check.d.ts +4 -2
  115. package/src/scripts/workflow/open-pr-check.js +11 -8
  116. package/src/scripts/workflow/open-pr-check.js.map +1 -1
  117. package/src/scripts/workflow/pr-comment-upserter.d.ts +5 -3
  118. package/src/scripts/workflow/pr-comment-upserter.js +15 -14
  119. package/src/scripts/workflow/pr-comment-upserter.js.map +1 -1
  120. package/src/scripts/workflow/pr-merger.d.ts +8 -5
  121. package/src/scripts/workflow/pr-merger.js +32 -27
  122. package/src/scripts/workflow/pr-merger.js.map +1 -1
  123. package/src/scripts/workflow/provenance-enforcer.d.ts +4 -2
  124. package/src/scripts/workflow/provenance-enforcer.js +19 -17
  125. package/src/scripts/workflow/provenance-enforcer.js.map +1 -1
  126. package/src/scripts/workflow/review-round-state.d.ts +7 -6
  127. package/src/scripts/workflow/review-round-state.js +33 -38
  128. package/src/scripts/workflow/review-round-state.js.map +1 -1
  129. package/src/scripts/workflow/run-update.js +1 -1
  130. package/src/scripts/workflow/run-update.js.map +1 -1
  131. package/src/scripts/workflow/squash-settings-enforcer.d.ts +6 -3
  132. package/src/scripts/workflow/squash-settings-enforcer.js +19 -14
  133. package/src/scripts/workflow/squash-settings-enforcer.js.map +1 -1
  134. package/src/scripts/wp-await-checks.js +2 -2
  135. package/src/scripts/wp-await-checks.js.map +1 -1
  136. package/src/scripts/wp-await-reviews.js +2 -2
  137. package/src/scripts/wp-await-reviews.js.map +1 -1
  138. package/src/scripts/wp-build.js +2 -2
  139. package/src/scripts/wp-build.js.map +1 -1
  140. package/src/scripts/wp-check-pr.js +2 -2
  141. package/src/scripts/wp-check-pr.js.map +1 -1
  142. package/src/scripts/wp-cleanup.js +2 -2
  143. package/src/scripts/wp-cleanup.js.map +1 -1
  144. package/src/scripts/wp-finish-push-dev.js +2 -2
  145. package/src/scripts/wp-finish-push-dev.js.map +1 -1
  146. package/src/scripts/wp-finish-update.js +2 -2
  147. package/src/scripts/wp-finish-update.js.map +1 -1
  148. package/src/scripts/wp-human-post-pr.js +2 -2
  149. package/src/scripts/wp-human-post-pr.js.map +1 -1
  150. package/src/scripts/wp-land-pr.js +2 -2
  151. package/src/scripts/wp-land-pr.js.map +1 -1
  152. package/src/scripts/wp-push-dev.js +2 -2
  153. package/src/scripts/wp-push-dev.js.map +1 -1
  154. package/src/scripts/wp-reap-worktree.js +2 -2
  155. package/src/scripts/wp-reap-worktree.js.map +1 -1
  156. package/src/scripts/wp-review-upsert-pr.js +2 -2
  157. package/src/scripts/wp-review-upsert-pr.js.map +1 -1
  158. package/src/scripts/wp-start-update.js +2 -2
  159. package/src/scripts/wp-start-update.js.map +1 -1
  160. package/src/scripts/wp-start-upsert-pr.js +2 -2
  161. package/src/scripts/wp-start-upsert-pr.js.map +1 -1
  162. package/src/scripts/wp-sync-main.js +2 -2
  163. package/src/scripts/wp-sync-main.js.map +1 -1
  164. package/src/scripts/wp-upsert-hotfix-pr.js +2 -2
  165. package/src/scripts/wp-upsert-hotfix-pr.js.map +1 -1
  166. package/src/scripts/wp-write-review-fixes.js +2 -2
  167. package/src/scripts/wp-write-review-fixes.js.map +1 -1
  168. package/src/scripts/wp-write-review.js +2 -2
  169. package/src/scripts/wp-write-review.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"run-update.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/pr-gate/src/scripts/workflow/run-update.ts"],"names":[],"mappings":"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","sourcesContent":["import { MutationVerb, BranchMutationEvent, logBranchMutation } from '@webpieces/repo-workflow-core';\nimport { injectable, bindingScopeValues } from 'inversify';\nimport { AiBranchName } from './git-readAiBranchName';\nimport { MergeState } from './merge-state';\nimport { MergeStart, MergeContext } from './merge-start';\nimport { MergeEnd, MergeEndOptions } from './merge-end';\n\nexport type UpdateOutcome = 'finalized' | 'conflict' | 'unvalidatedResume';\n\n// The shared \"sync this feature branch from main\" engine — a thin composition of the two lifecycle\n// primitives (merge-START brings main in, merge-END finalizes). INTERNAL, not a bin: `wp-start-update`\n// (standalone) and `wp-start-upsert-pr` (PR flow) both call it. It NEVER creates a PR and NEVER\n// process.exits; it RETURNS an outcome so each caller prints the handoff that fits its context.\n@injectable(bindingScopeValues.Singleton)\nexport class RunUpdate {\n constructor(\n private readonly aiBranchName: AiBranchName,\n private readonly mergeState: MergeState,\n private readonly mergeStart: MergeStart,\n private readonly mergeEnd: MergeEnd,\n ) {}\n\n // `finishCommand` is the command the AI is told to run after resolving conflicts (standalone passes\n // `wp-finish-update`, PR flow passes `wp-finish-upsert-pr`). `verb` is the invoking bin, threaded so\n // every branch mutation is recorded in the branch-mutation log (BranchMutationLog.branchMutationLogPath\n // resolves it for THIS tree — it is per-worktree). `pushRemote` is false\n // for the PR flow, which pushes exactly once from wp-finish-upsert-pr (see MergeEndOptions).\n // eslint-disable-next-line @typescript-eslint/max-params\n async runUpdateFromMain(repoRoot: string, verb: MutationVerb, finishCommand: string, pushRemote: boolean): Promise<UpdateOutcome> {\n logBranchMutation(repoRoot, new BranchMutationEvent(verb, 'START'));\n const outcome = await this.runUpdate(repoRoot, verb, finishCommand, pushRemote);\n const end = new BranchMutationEvent(verb, 'END');\n end.outcome = outcome;\n logBranchMutation(repoRoot, end);\n return outcome;\n }\n\n // eslint-disable-next-line @typescript-eslint/max-params\n private async runUpdate(repoRoot: string, verb: MutationVerb, finishCommand: string, pushRemote: boolean): Promise<UpdateOutcome> {\n const home = this.mergeState.mergeDirFor(repoRoot, this.aiBranchName.getFeatureName());\n\n // Resume path: an in-progress merge is the `merge-<n>/` run dir that holds a marker.\n const activeDir = this.mergeState.findActiveMergeRunDir(home);\n if (activeDir) {\n const existing = this.mergeState.readMergeMarker(activeDir);\n if (existing === null || !existing.validated) return 'unvalidatedResume';\n // Already validated → just finalize the branch swap (reads THIS run dir's marker).\n await this.mergeEnd.mergeEnd(\n repoRoot, verb, activeDir,\n new MergeContext(existing.currentBranch, existing.squashBranch, existing.backupBranch, existing.prNumber),\n new MergeEndOptions(null, pushRemote),\n );\n return 'finalized';\n }\n\n // Fresh update: mergeStart picks the slot number, creates its own `merge-<n>/` run dir, and\n // returns that path for merge-END to finalize against.\n const result = await this.mergeStart.mergeStart(repoRoot, verb, home, finishCommand);\n if (result.status === 'conflict' || result.context === null) {\n return 'conflict';\n }\n await this.mergeEnd.mergeEnd(repoRoot, verb, result.runDir, result.context, new MergeEndOptions(null, pushRemote));\n return 'finalized';\n }\n}\n"]}
1
+ {"version":3,"file":"run-update.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/pr-gate/src/scripts/workflow/run-update.ts"],"names":[],"mappings":"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","sourcesContent":["import { MutationVerb, BranchMutationEvent, logBranchMutation } from '@webpieces/repo-workflow-core';\nimport { injectable, bindingScopeValues } from 'inversify';\nimport { AiBranchName } from './git-readAiBranchName';\nimport { MergeState } from './merge-state';\nimport { MergeStart, MergeContext } from './merge-start';\nimport { MergeEnd, MergeEndOptions } from './merge-end';\n\nexport type UpdateOutcome = 'finalized' | 'conflict' | 'unvalidatedResume';\n\n// The shared \"sync this feature branch from main\" engine — a thin composition of the two lifecycle\n// primitives (merge-START brings main in, merge-END finalizes). INTERNAL, not a bin: `wp-start-update`\n// (standalone) and `wp-start-upsert-pr` (PR flow) both call it. It NEVER creates a PR and NEVER\n// process.exits; it RETURNS an outcome so each caller prints the handoff that fits its context.\n@injectable(bindingScopeValues.Singleton)\nexport class RunUpdate {\n constructor(\n private readonly aiBranchName: AiBranchName,\n private readonly mergeState: MergeState,\n private readonly mergeStart: MergeStart,\n private readonly mergeEnd: MergeEnd,\n ) {}\n\n // `finishCommand` is the command the AI is told to run after resolving conflicts (standalone passes\n // `wp-finish-update`, PR flow passes `wp-finish-upsert-pr`). `verb` is the invoking bin, threaded so\n // every branch mutation is recorded in the branch-mutation log (BranchMutationLog.branchMutationLogPath\n // resolves it for THIS tree — it is per-worktree). `pushRemote` is false\n // for the PR flow, which pushes exactly once from wp-finish-upsert-pr (see MergeEndOptions).\n // eslint-disable-next-line @typescript-eslint/max-params\n async runUpdateFromMain(repoRoot: string, verb: MutationVerb, finishCommand: string, pushRemote: boolean): Promise<UpdateOutcome> {\n logBranchMutation(repoRoot, new BranchMutationEvent(verb, 'START'));\n const outcome = await this.runUpdate(repoRoot, verb, finishCommand, pushRemote);\n const end = new BranchMutationEvent(verb, 'END');\n end.outcome = outcome;\n logBranchMutation(repoRoot, end);\n return outcome;\n }\n\n // eslint-disable-next-line @typescript-eslint/max-params\n private async runUpdate(repoRoot: string, verb: MutationVerb, finishCommand: string, pushRemote: boolean): Promise<UpdateOutcome> {\n const home = this.mergeState.mergeDirFor(repoRoot, await this.aiBranchName.getFeatureName());\n\n // Resume path: an in-progress merge is the `merge-<n>/` run dir that holds a marker.\n const activeDir = this.mergeState.findActiveMergeRunDir(home);\n if (activeDir) {\n const existing = this.mergeState.readMergeMarker(activeDir);\n if (existing === null || !existing.validated) return 'unvalidatedResume';\n // Already validated → just finalize the branch swap (reads THIS run dir's marker).\n await this.mergeEnd.mergeEnd(\n repoRoot, verb, activeDir,\n new MergeContext(existing.currentBranch, existing.squashBranch, existing.backupBranch, existing.prNumber),\n new MergeEndOptions(null, pushRemote),\n );\n return 'finalized';\n }\n\n // Fresh update: mergeStart picks the slot number, creates its own `merge-<n>/` run dir, and\n // returns that path for merge-END to finalize against.\n const result = await this.mergeStart.mergeStart(repoRoot, verb, home, finishCommand);\n if (result.status === 'conflict' || result.context === null) {\n return 'conflict';\n }\n await this.mergeEnd.mergeEnd(repoRoot, verb, result.runDir, result.context, new MergeEndOptions(null, pushRemote));\n return 'finalized';\n }\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { NativeProcessApi } from '@webpieces/tooling-common';
1
2
  /** The only correct value for `squash_merge_commit_title`: the PR title becomes the commit subject. */
2
3
  export declare const SQUASH_TITLE_REQUIRED = "PR_TITLE";
3
4
  /** The only correct value for `squash_merge_commit_message`: the PR description becomes the commit body. */
@@ -47,8 +48,10 @@ export declare class SquashSettings {
47
48
  * message on a UI merge, which is not worth failing a finished run over.
48
49
  */
49
50
  export declare class SquashSettingsEnforcer {
51
+ private readonly processes;
52
+ constructor(processes: NativeProcessApi);
50
53
  /** Read → repair, or say precisely what is wrong and who can fix it. */
51
- ensure(): void;
54
+ ensure(): Promise<void>;
52
55
  /**
53
56
  * The no-admin path. It states the CONSEQUENCE first and the remedy second, and it does not ask the
54
57
  * reader to go learn what these settings are — a contributor who cannot change them still needs to
@@ -56,6 +59,6 @@ export declare class SquashSettingsEnforcer {
56
59
  */
57
60
  private noAdminMessage;
58
61
  private fixCommand;
59
- protected read(): SquashSettings;
60
- protected patch(): boolean;
62
+ private read;
63
+ private patch;
61
64
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SquashSettingsEnforcer = exports.SquashSettings = exports.SQUASH_MESSAGE_REQUIRED = exports.SQUASH_TITLE_REQUIRED = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const child_process_1 = require("child_process");
5
+ const tooling_common_1 = require("@webpieces/tooling-common");
6
6
  const inversify_1 = require("inversify");
7
7
  /** The only correct value for `squash_merge_commit_title`: the PR title becomes the commit subject. */
8
8
  exports.SQUASH_TITLE_REQUIRED = 'PR_TITLE';
@@ -60,9 +60,13 @@ exports.SquashSettings = SquashSettings;
60
60
  * message on a UI merge, which is not worth failing a finished run over.
61
61
  */
62
62
  let SquashSettingsEnforcer = class SquashSettingsEnforcer {
63
+ processes;
64
+ constructor(processes) {
65
+ this.processes = processes;
66
+ }
63
67
  /** Read → repair, or say precisely what is wrong and who can fix it. */
64
- ensure() {
65
- const current = this.read();
68
+ async ensure() {
69
+ const current = await this.read();
66
70
  if (!current.readable()) {
67
71
  process.stderr.write('⚠️ Could not read this repo\'s squash-merge settings via gh, so could not verify that a\n' +
68
72
  ` UI merge would write the gated body. Check by hand: ${exports.SQUASH_TITLE_REQUIRED} +\n` +
@@ -75,7 +79,7 @@ let SquashSettingsEnforcer = class SquashSettingsEnforcer {
75
79
  process.stderr.write(this.noAdminMessage(current));
76
80
  return;
77
81
  }
78
- if (!this.patch()) {
82
+ if (!(await this.patch())) {
79
83
  process.stderr.write(`⚠️ Could not update this repo's squash-merge settings (${current.describe()}).\n` +
80
84
  ` A UI merge will NOT write the gated body until it is fixed:\n${this.fixCommand()}`);
81
85
  return;
@@ -104,31 +108,32 @@ let SquashSettingsEnforcer = class SquashSettingsEnforcer {
104
108
  }
105
109
  // Both settings AND whether we may change them, in ONE API call. Failure-tolerant: an all-'' result
106
110
  // reads as "unknown", never as "wrong", so a gh hiccup cannot trigger a spurious repair or warning.
107
- read() {
108
- const result = (0, child_process_1.spawnSync)('gh', [
111
+ async read() {
112
+ const result = await this.processes.run('gh', [
109
113
  'api', 'repos/{owner}/{repo}',
110
114
  '--jq', '"\\(.squash_merge_commit_title)\\t\\(.squash_merge_commit_message)\\t\\(.permissions.admin)"',
111
- ], { encoding: 'utf8' });
115
+ ]);
112
116
  const settings = new SquashSettings();
113
- if (result.status !== 0)
117
+ if (!result.ok)
114
118
  return settings;
115
- const parts = (result.stdout ?? '').trim().split('\t');
119
+ const parts = result.stdout.trim().split('\t');
116
120
  settings.title = parts[0] ?? '';
117
121
  settings.message = parts[1] ?? '';
118
122
  settings.admin = (parts[2] ?? '') === 'true';
119
123
  return settings;
120
124
  }
121
- patch() {
122
- const result = (0, child_process_1.spawnSync)('gh', [
125
+ async patch() {
126
+ const result = await this.processes.run('gh', [
123
127
  'api', '-X', 'PATCH', 'repos/{owner}/{repo}',
124
128
  '-f', `squash_merge_commit_title=${exports.SQUASH_TITLE_REQUIRED}`,
125
129
  '-f', `squash_merge_commit_message=${exports.SQUASH_MESSAGE_REQUIRED}`,
126
- ], { encoding: 'utf8' });
127
- return result.status === 0;
130
+ ]);
131
+ return result.ok;
128
132
  }
129
133
  };
130
134
  exports.SquashSettingsEnforcer = SquashSettingsEnforcer;
131
135
  exports.SquashSettingsEnforcer = SquashSettingsEnforcer = tslib_1.__decorate([
132
- (0, inversify_1.injectable)(inversify_1.bindingScopeValues.Singleton)
136
+ (0, inversify_1.injectable)(inversify_1.bindingScopeValues.Singleton),
137
+ tslib_1.__metadata("design:paramtypes", [tooling_common_1.NativeProcessApi])
133
138
  ], SquashSettingsEnforcer);
134
139
  //# sourceMappingURL=squash-settings-enforcer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"squash-settings-enforcer.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/pr-gate/src/scripts/workflow/squash-settings-enforcer.ts"],"names":[],"mappings":"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","sourcesContent":["import { spawnSync } from 'child_process';\nimport { injectable, bindingScopeValues } from 'inversify';\n\n/** The only correct value for `squash_merge_commit_title`: the PR title becomes the commit subject. */\nexport const SQUASH_TITLE_REQUIRED = 'PR_TITLE';\n/** The only correct value for `squash_merge_commit_message`: the PR description becomes the commit body. */\nexport const SQUASH_MESSAGE_REQUIRED = 'PR_BODY';\n\n/**\n * What GitHub currently says about how this repo composes a squash commit. All '' / false when `gh` could\n * not be asked — an unreadable answer must never be treated as a diagnosis. Data-only, per CLAUDE.md.\n */\nexport class SquashSettings {\n title = '';\n message = '';\n /** Whether THIS token can PATCH the repo. Without it the enforcer can only report. */\n admin = false;\n\n correct(): boolean {\n return this.title === SQUASH_TITLE_REQUIRED && this.message === SQUASH_MESSAGE_REQUIRED;\n }\n\n readable(): boolean {\n return this.title !== '' && this.message !== '';\n }\n\n describe(): string {\n return `squash_merge_commit_title=${this.title}, squash_merge_commit_message=${this.message}`;\n }\n}\n\n/**\n * Keeps the two GitHub repo settings that decide what a squash commit SAYS pinned to the only pair that\n * works — `PR_TITLE` + `PR_BODY` — repairing them in place when it can.\n *\n * ─── Why the tooling owns this and not a doc ───────────────────────────────────────────────────────\n * `wp-finish-upsert-pr` renders the PR description AS the commit body (see Dashboard.renderPrBody). That\n * design only pays off if GitHub actually copies the description into the squash commit, which is exactly\n * what `squash_merge_commit_message: PR_BODY` does — and on `COMMIT_MESSAGES` the branch's raw internal\n * commit messages land instead, while `BLANK` lands nothing at all.\n *\n * These are SERVER-SIDE settings. They are not in `webpieces.config.json`, not in the repo, not on disk\n * anywhere — so no amount of config removal can fix them and no validator can see them. That is precisely\n * why they were being handed to humans as a two-line instruction in CLAUDE.md, and an instruction in a\n * doc is the thing this repo's whole philosophy says will not be followed: it is invisible at the moment\n * anyone decides anything. The framework's OWN repo proved it by sitting on `COMMIT_MESSAGES` while both\n * consumer repos were already correct.\n *\n * There is exactly ONE right answer here, so there is nothing to configure — hence no config key, and no\n * opt-out. A repo that deliberately wanted `COMMIT_MESSAGES` would be a repo that does not want the gated\n * body in its history, and such a repo should stop rendering one rather than keep the setting.\n *\n * ─── Why it is safe to PATCH ───────────────────────────────────────────────────────────────────────\n * It changes only how GitHub PRE-FILLS a squash commit message. It cannot merge anything, cannot alter\n * history, cannot touch branch protection or permissions, and is reversible from the repo's Settings page\n * in two clicks. Every repair is printed, never silent. Without admin it degrades to a warning carrying\n * the exact `gh api` command, because a contributor without admin must not be blocked by a setting only an\n * owner can change.\n *\n * NEVER FATAL. The caller reaches this after the PR is already up; a `gh` failure here costs a good commit\n * message on a UI merge, which is not worth failing a finished run over.\n */\n@injectable(bindingScopeValues.Singleton)\nexport class SquashSettingsEnforcer {\n /** Read → repair, or say precisely what is wrong and who can fix it. */\n ensure(): void {\n const current = this.read();\n if (!current.readable()) {\n process.stderr.write(\n '⚠️ Could not read this repo\\'s squash-merge settings via gh, so could not verify that a\\n' +\n ` UI merge would write the gated body. Check by hand: ${SQUASH_TITLE_REQUIRED} +\\n` +\n ` ${SQUASH_MESSAGE_REQUIRED} under Settings → Pull Requests.\\n`);\n return;\n }\n if (current.correct()) return; // The overwhelmingly common case: silent, and costs one API read.\n\n if (!current.admin) {\n process.stderr.write(this.noAdminMessage(current));\n return;\n }\n if (!this.patch()) {\n process.stderr.write(\n `⚠️ Could not update this repo's squash-merge settings (${current.describe()}).\\n` +\n ` A UI merge will NOT write the gated body until it is fixed:\\n${this.fixCommand()}`);\n return;\n }\n process.stdout.write(\n ` repaired this repo's squash-merge settings (was ${current.describe()}) →\\n` +\n ` ${SQUASH_TITLE_REQUIRED} + ${SQUASH_MESSAGE_REQUIRED}, so a merge clicked in the GitHub UI\\n` +\n ' now writes the same commit body this flow rendered ✓\\n');\n }\n\n /**\n * The no-admin path. It states the CONSEQUENCE first and the remedy second, and it does not ask the\n * reader to go learn what these settings are — a contributor who cannot change them still needs to\n * know why main's history is about to look wrong, and who to send this to.\n */\n private noAdminMessage(current: SquashSettings): string {\n return (\n `⚠️ This repo composes squash commits as ${current.describe()}, so a merge clicked in the\\n` +\n ' GitHub UI will NOT write the commit body this flow just rendered — the PR description is\\n' +\n ' the gated body, and only PR_BODY copies it into main.\\n' +\n ' Your token is not an admin on this repo, so this cannot be repaired automatically. Ask an\\n' +\n ' owner to run:\\n' + this.fixCommand() +\n ' (`pnpm wp-land-pr` writes the right body regardless, and is unaffected by this.)\\n');\n }\n\n private fixCommand(): string {\n return (\n ' gh api -X PATCH repos/{owner}/{repo} \\\\\\n' +\n ` -f squash_merge_commit_title=${SQUASH_TITLE_REQUIRED} \\\\\\n` +\n ` -f squash_merge_commit_message=${SQUASH_MESSAGE_REQUIRED}\\n`);\n }\n\n // Both settings AND whether we may change them, in ONE API call. Failure-tolerant: an all-'' result\n // reads as \"unknown\", never as \"wrong\", so a gh hiccup cannot trigger a spurious repair or warning.\n protected read(): SquashSettings {\n const result = spawnSync('gh', [\n 'api', 'repos/{owner}/{repo}',\n '--jq', '\"\\\\(.squash_merge_commit_title)\\\\t\\\\(.squash_merge_commit_message)\\\\t\\\\(.permissions.admin)\"',\n ], { encoding: 'utf8' });\n const settings = new SquashSettings();\n if (result.status !== 0) return settings;\n const parts = (result.stdout ?? '').trim().split('\\t');\n settings.title = parts[0] ?? '';\n settings.message = parts[1] ?? '';\n settings.admin = (parts[2] ?? '') === 'true';\n return settings;\n }\n\n protected patch(): boolean {\n const result = spawnSync('gh', [\n 'api', '-X', 'PATCH', 'repos/{owner}/{repo}',\n '-f', `squash_merge_commit_title=${SQUASH_TITLE_REQUIRED}`,\n '-f', `squash_merge_commit_message=${SQUASH_MESSAGE_REQUIRED}`,\n ], { encoding: 'utf8' });\n return result.status === 0;\n }\n}\n"]}
1
+ {"version":3,"file":"squash-settings-enforcer.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/pr-gate/src/scripts/workflow/squash-settings-enforcer.ts"],"names":[],"mappings":"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","sourcesContent":["import { NativeProcessApi } from '@webpieces/tooling-common';\nimport { injectable, bindingScopeValues } from 'inversify';\n\n/** The only correct value for `squash_merge_commit_title`: the PR title becomes the commit subject. */\nexport const SQUASH_TITLE_REQUIRED = 'PR_TITLE';\n/** The only correct value for `squash_merge_commit_message`: the PR description becomes the commit body. */\nexport const SQUASH_MESSAGE_REQUIRED = 'PR_BODY';\n\n/**\n * What GitHub currently says about how this repo composes a squash commit. All '' / false when `gh` could\n * not be asked — an unreadable answer must never be treated as a diagnosis. Data-only, per CLAUDE.md.\n */\nexport class SquashSettings {\n title = '';\n message = '';\n /** Whether THIS token can PATCH the repo. Without it the enforcer can only report. */\n admin = false;\n\n correct(): boolean {\n return this.title === SQUASH_TITLE_REQUIRED && this.message === SQUASH_MESSAGE_REQUIRED;\n }\n\n readable(): boolean {\n return this.title !== '' && this.message !== '';\n }\n\n describe(): string {\n return `squash_merge_commit_title=${this.title}, squash_merge_commit_message=${this.message}`;\n }\n}\n\n/**\n * Keeps the two GitHub repo settings that decide what a squash commit SAYS pinned to the only pair that\n * works — `PR_TITLE` + `PR_BODY` — repairing them in place when it can.\n *\n * ─── Why the tooling owns this and not a doc ───────────────────────────────────────────────────────\n * `wp-finish-upsert-pr` renders the PR description AS the commit body (see Dashboard.renderPrBody). That\n * design only pays off if GitHub actually copies the description into the squash commit, which is exactly\n * what `squash_merge_commit_message: PR_BODY` does — and on `COMMIT_MESSAGES` the branch's raw internal\n * commit messages land instead, while `BLANK` lands nothing at all.\n *\n * These are SERVER-SIDE settings. They are not in `webpieces.config.json`, not in the repo, not on disk\n * anywhere — so no amount of config removal can fix them and no validator can see them. That is precisely\n * why they were being handed to humans as a two-line instruction in CLAUDE.md, and an instruction in a\n * doc is the thing this repo's whole philosophy says will not be followed: it is invisible at the moment\n * anyone decides anything. The framework's OWN repo proved it by sitting on `COMMIT_MESSAGES` while both\n * consumer repos were already correct.\n *\n * There is exactly ONE right answer here, so there is nothing to configure — hence no config key, and no\n * opt-out. A repo that deliberately wanted `COMMIT_MESSAGES` would be a repo that does not want the gated\n * body in its history, and such a repo should stop rendering one rather than keep the setting.\n *\n * ─── Why it is safe to PATCH ───────────────────────────────────────────────────────────────────────\n * It changes only how GitHub PRE-FILLS a squash commit message. It cannot merge anything, cannot alter\n * history, cannot touch branch protection or permissions, and is reversible from the repo's Settings page\n * in two clicks. Every repair is printed, never silent. Without admin it degrades to a warning carrying\n * the exact `gh api` command, because a contributor without admin must not be blocked by a setting only an\n * owner can change.\n *\n * NEVER FATAL. The caller reaches this after the PR is already up; a `gh` failure here costs a good commit\n * message on a UI merge, which is not worth failing a finished run over.\n */\n@injectable(bindingScopeValues.Singleton)\nexport class SquashSettingsEnforcer {\n constructor(private readonly processes: NativeProcessApi) {}\n\n /** Read → repair, or say precisely what is wrong and who can fix it. */\n async ensure(): Promise<void> {\n const current = await this.read();\n if (!current.readable()) {\n process.stderr.write(\n '⚠️ Could not read this repo\\'s squash-merge settings via gh, so could not verify that a\\n' +\n ` UI merge would write the gated body. Check by hand: ${SQUASH_TITLE_REQUIRED} +\\n` +\n ` ${SQUASH_MESSAGE_REQUIRED} under Settings → Pull Requests.\\n`);\n return;\n }\n if (current.correct()) return; // The overwhelmingly common case: silent, and costs one API read.\n\n if (!current.admin) {\n process.stderr.write(this.noAdminMessage(current));\n return;\n }\n if (!(await this.patch())) {\n process.stderr.write(\n `⚠️ Could not update this repo's squash-merge settings (${current.describe()}).\\n` +\n ` A UI merge will NOT write the gated body until it is fixed:\\n${this.fixCommand()}`);\n return;\n }\n process.stdout.write(\n ` repaired this repo's squash-merge settings (was ${current.describe()}) →\\n` +\n ` ${SQUASH_TITLE_REQUIRED} + ${SQUASH_MESSAGE_REQUIRED}, so a merge clicked in the GitHub UI\\n` +\n ' now writes the same commit body this flow rendered ✓\\n');\n }\n\n /**\n * The no-admin path. It states the CONSEQUENCE first and the remedy second, and it does not ask the\n * reader to go learn what these settings are — a contributor who cannot change them still needs to\n * know why main's history is about to look wrong, and who to send this to.\n */\n private noAdminMessage(current: SquashSettings): string {\n return (\n `⚠️ This repo composes squash commits as ${current.describe()}, so a merge clicked in the\\n` +\n ' GitHub UI will NOT write the commit body this flow just rendered — the PR description is\\n' +\n ' the gated body, and only PR_BODY copies it into main.\\n' +\n ' Your token is not an admin on this repo, so this cannot be repaired automatically. Ask an\\n' +\n ' owner to run:\\n' + this.fixCommand() +\n ' (`pnpm wp-land-pr` writes the right body regardless, and is unaffected by this.)\\n');\n }\n\n private fixCommand(): string {\n return (\n ' gh api -X PATCH repos/{owner}/{repo} \\\\\\n' +\n ` -f squash_merge_commit_title=${SQUASH_TITLE_REQUIRED} \\\\\\n` +\n ` -f squash_merge_commit_message=${SQUASH_MESSAGE_REQUIRED}\\n`);\n }\n\n // Both settings AND whether we may change them, in ONE API call. Failure-tolerant: an all-'' result\n // reads as \"unknown\", never as \"wrong\", so a gh hiccup cannot trigger a spurious repair or warning.\n private async read(): Promise<SquashSettings> {\n const result = await this.processes.run('gh', [\n 'api', 'repos/{owner}/{repo}',\n '--jq', '\"\\\\(.squash_merge_commit_title)\\\\t\\\\(.squash_merge_commit_message)\\\\t\\\\(.permissions.admin)\"',\n ]);\n const settings = new SquashSettings();\n if (!result.ok) return settings;\n const parts = result.stdout.trim().split('\\t');\n settings.title = parts[0] ?? '';\n settings.message = parts[1] ?? '';\n settings.admin = (parts[2] ?? '') === 'true';\n return settings;\n }\n\n private async patch(): Promise<boolean> {\n const result = await this.processes.run('gh', [\n 'api', '-X', 'PATCH', 'repos/{owner}/{repo}',\n '-f', `squash_merge_commit_title=${SQUASH_TITLE_REQUIRED}`,\n '-f', `squash_merge_commit_message=${SQUASH_MESSAGE_REQUIRED}`,\n ]);\n return result.ok;\n }\n}\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-await-checks')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-await-checks.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-await-checks.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CACzF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-await-checks')),\n);\n"]}
1
+ {"version":3,"file":"wp-await-checks.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-await-checks.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CACzF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-await-checks')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-await-reviews')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-await-reviews.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-await-reviews.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAC1F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-await-reviews')),\n);\n"]}
1
+ {"version":3,"file":"wp-await-reviews.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-await-reviews.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAC1F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-await-reviews')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-build')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-build.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-build.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAClF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-build')),\n);\n"]}
1
+ {"version":3,"file":"wp-build.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-build.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAClF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-build')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-check-pr')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-check-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-check-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CACrF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-check-pr')),\n);\n"]}
1
+ {"version":3,"file":"wp-check-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-check-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CACrF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-check-pr')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-cleanup')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-cleanup.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-cleanup.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CACpF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-cleanup')),\n);\n"]}
1
+ {"version":3,"file":"wp-cleanup.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-cleanup.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CACpF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-cleanup')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-finish-push-dev')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-finish-push-dev.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-finish-push-dev.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAC5F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-finish-push-dev')),\n);\n"]}
1
+ {"version":3,"file":"wp-finish-push-dev.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-finish-push-dev.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAC5F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-finish-push-dev')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-finish-update')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-finish-update.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-finish-update.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAC1F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-finish-update')),\n);\n"]}
1
+ {"version":3,"file":"wp-finish-update.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-finish-update.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAC1F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-finish-update')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-human-post-pr')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-human-post-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-human-post-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAC1F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-human-post-pr')),\n);\n"]}
1
+ {"version":3,"file":"wp-human-post-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-human-post-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAC1F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-human-post-pr')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-land-pr')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-land-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-land-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CACpF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-land-pr')),\n);\n"]}
1
+ {"version":3,"file":"wp-land-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-land-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CACpF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-land-pr')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-push-dev')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-push-dev.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-push-dev.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CACrF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-push-dev')),\n);\n"]}
1
+ {"version":3,"file":"wp-push-dev.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-push-dev.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CACrF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-push-dev')),\n);\n"]}
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
- const inversify_1 = require("inversify");
5
+ const pr_gate_container_1 = require("./pr-gate-container");
6
6
  const rules_config_1 = require("@webpieces/rules-config");
7
7
  const pr_gate_app_1 = require("./pr-gate-app");
8
8
  /**
@@ -18,7 +18,7 @@ const pr_gate_app_1 = require("./pr-gate-app");
18
18
  * three values; the sha is what stops a removal being decided by a branch NAME.
19
19
  */
20
20
  (0, rules_config_1.runMain)(async () => {
21
- const container = new inversify_1.Container({ autobind: true });
21
+ const container = new pr_gate_container_1.PrGateContainer().create();
22
22
  await container.get(pr_gate_app_1.PrGateApp).reapWorktree(process.argv.slice(2));
23
23
  });
24
24
  //# sourceMappingURL=wp-reap-worktree.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wp-reap-worktree.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-reap-worktree.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,0DAAkD;AAClD,+CAA0C;AAE1C;;;;;;;;;;;GAWG;AACH,IAAA,sBAAO,EAAC,KAAK,IAAmB,EAAE;IAC9B,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,MAAM,SAAS,CAAC,GAAG,CAAC,uBAAS,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,CAAC,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { Container } from 'inversify';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateApp } from './pr-gate-app';\n\n/**\n * INTERNAL entry point — deliberately NOT registered in package.json `bin`.\n *\n * `pnpm wp-land-pr` spawns this by absolute path with `cwd` set to the PRIMARY CLONE, so that the\n * worktree it just landed from can be removed by a process that is not standing in it. There is no\n * `wp-reap-worktree` verb for a human: `pnpm wp-cleanup` is that verb and does strictly more.\n *\n * Unlike its siblings it TAKES arguments (`<worktree-path> <branch> <head-sha>`), so\n * `CliArgs.assertNoArgs` — which exists to stop a stray flag from silently starting a mutation flow —\n * would be wrong here. ReapWorktreeCommand validates argv itself and refuses to do anything without all\n * three values; the sha is what stops a removal being decided by a branch NAME.\n */\nrunMain(async (): Promise<void> => {\n const container = new Container({ autobind: true });\n await container.get(PrGateApp).reapWorktree(process.argv.slice(2));\n});\n"]}
1
+ {"version":3,"file":"wp-reap-worktree.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-reap-worktree.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,2DAAsD;AACtD,0DAAkD;AAClD,+CAA0C;AAE1C;;;;;;;;;;;GAWG;AACH,IAAA,sBAAO,EAAC,KAAK,IAAmB,EAAE;IAC9B,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;IACjD,MAAM,SAAS,CAAC,GAAG,CAAC,uBAAS,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,CAAC,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { PrGateContainer } from './pr-gate-container';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateApp } from './pr-gate-app';\n\n/**\n * INTERNAL entry point — deliberately NOT registered in package.json `bin`.\n *\n * `pnpm wp-land-pr` spawns this by absolute path with `cwd` set to the PRIMARY CLONE, so that the\n * worktree it just landed from can be removed by a process that is not standing in it. There is no\n * `wp-reap-worktree` verb for a human: `pnpm wp-cleanup` is that verb and does strictly more.\n *\n * Unlike its siblings it TAKES arguments (`<worktree-path> <branch> <head-sha>`), so\n * `CliArgs.assertNoArgs` — which exists to stop a stray flag from silently starting a mutation flow —\n * would be wrong here. ReapWorktreeCommand validates argv itself and refuses to do anything without all\n * three values; the sha is what stops a removal being decided by a branch NAME.\n */\nrunMain(async (): Promise<void> => {\n const container = new PrGateContainer().create();\n await container.get(PrGateApp).reapWorktree(process.argv.slice(2));\n});\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-review-upsert-pr')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-review-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-review-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAC7F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-review-upsert-pr')),\n);\n"]}
1
+ {"version":3,"file":"wp-review-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-review-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAC7F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-review-upsert-pr')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-start-update')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-start-update.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-update.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CACzF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-start-update')),\n);\n"]}
1
+ {"version":3,"file":"wp-start-update.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-update.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CACzF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-start-update')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-start-upsert-pr')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-start-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAC5F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-start-upsert-pr')),\n);\n"]}
1
+ {"version":3,"file":"wp-start-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAC5F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-start-upsert-pr')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-sync-main')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-sync-main.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-sync-main.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CACtF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-sync-main')),\n);\n"]}
1
+ {"version":3,"file":"wp-sync-main.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-sync-main.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CACtF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-sync-main')),\n);\n"]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  require("reflect-metadata");
5
5
  const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
6
+ const pr_gate_container_1 = require("./pr-gate-container");
7
7
  const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
8
8
  const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
9
- const container = new inversify_1.Container({ autobind: true });
9
+ const container = new pr_gate_container_1.PrGateContainer().create();
10
10
  (0, rules_config_1.runMain)(() => container
11
11
  .get(pr_gate_cli_app_1.PrGateCliApp)
12
12
  .run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-upsert-hotfix-pr')));
@@ -1 +1 @@
1
- {"version":3,"file":"wp-upsert-hotfix-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-upsert-hotfix-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAC7F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-upsert-hotfix-pr')),\n);\n"]}
1
+ {"version":3,"file":"wp-upsert-hotfix-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-upsert-hotfix-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,2DAAsD;AACtD,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,mCAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACjD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAC7F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { PrGateContainer } from './pr-gate-container';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new PrGateContainer().create();\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-upsert-hotfix-pr')),\n);\n"]}