@pipeline-builder/pipeline-manager 6.5.5 → 6.5.7

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 (65) hide show
  1. package/README.md +11 -3
  2. package/dist/agent/post-steps.d.ts +1 -1
  3. package/dist/agent/post-steps.d.ts.map +1 -1
  4. package/dist/agent/post-steps.js +27 -31
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +8 -9
  7. package/dist/commands/audit-stacks.d.ts +2 -1
  8. package/dist/commands/audit-stacks.d.ts.map +1 -1
  9. package/dist/commands/audit-stacks.js +12 -2
  10. package/dist/commands/provision-steps.d.ts +1 -1
  11. package/dist/commands/provision-steps.js +2 -2
  12. package/dist/commands/provision.js +2 -2
  13. package/dist/commands/redrive-events.d.ts +4 -3
  14. package/dist/commands/redrive-events.d.ts.map +1 -1
  15. package/dist/commands/redrive-events.js +51 -18
  16. package/dist/commands/runner-signing-key.js +2 -2
  17. package/dist/commands/{setup-runner.d.ts → setup-account.d.ts} +133 -71
  18. package/dist/commands/setup-account.d.ts.map +1 -0
  19. package/dist/commands/setup-account.js +1366 -0
  20. package/dist/commands/store-token.d.ts +6 -28
  21. package/dist/commands/store-token.d.ts.map +1 -1
  22. package/dist/commands/store-token.js +12 -139
  23. package/dist/config/cli.constants.d.ts +0 -8
  24. package/dist/config/cli.constants.d.ts.map +1 -1
  25. package/dist/config/cli.constants.js +1 -9
  26. package/dist/lambda/events-handler.js +1558 -0
  27. package/dist/lambda/runner-handler.d.ts +27 -1
  28. package/dist/lambda/runner-handler.d.ts.map +1 -1
  29. package/dist/lambda/runner-handler.js +428 -71
  30. package/dist/lambda/runner-inspect-connection.d.ts +45 -0
  31. package/dist/lambda/runner-inspect-connection.d.ts.map +1 -0
  32. package/dist/lambda/runner-inspect-connection.js +157 -0
  33. package/dist/lambda/runner-jws.d.ts.map +1 -1
  34. package/dist/lambda/runner-jws.js +64 -6
  35. package/dist/lambda/runner-sources.d.ts +12 -0
  36. package/dist/lambda/runner-sources.d.ts.map +1 -1
  37. package/dist/lambda/runner-sources.js +25 -16
  38. package/dist/lambda/token-renew-handler.d.ts +3 -2
  39. package/dist/lambda/token-renew-handler.d.ts.map +1 -1
  40. package/dist/lambda/token-renew-handler.js +17 -5
  41. package/dist/templates/account-stack.json +2060 -0
  42. package/dist/templates/forwarder-stack.json +133 -0
  43. package/dist/utils/{runner-template.d.ts → account-template.d.ts} +83 -18
  44. package/dist/utils/account-template.d.ts.map +1 -0
  45. package/dist/utils/account-template.js +340 -0
  46. package/dist/utils/inspect-buildspec.d.ts +9 -0
  47. package/dist/utils/inspect-buildspec.d.ts.map +1 -0
  48. package/dist/utils/inspect-buildspec.js +209 -0
  49. package/dist/utils/service-account.d.ts +10 -2
  50. package/dist/utils/service-account.d.ts.map +1 -1
  51. package/dist/utils/service-account.js +10 -4
  52. package/package.json +5 -4
  53. package/dist/commands/setup-events.d.ts +0 -15
  54. package/dist/commands/setup-events.d.ts.map +0 -1
  55. package/dist/commands/setup-events.js +0 -182
  56. package/dist/commands/setup-runner.d.ts.map +0 -1
  57. package/dist/commands/setup-runner.js +0 -1132
  58. package/dist/templates/events-stack.json +0 -192
  59. package/dist/templates/runner-stack.json +0 -960
  60. package/dist/templates/token-renew-stack.json +0 -115
  61. package/dist/utils/cron.d.ts +0 -28
  62. package/dist/utils/cron.d.ts.map +0 -1
  63. package/dist/utils/cron.js +0 -119
  64. package/dist/utils/runner-template.d.ts.map +0 -1
  65. package/dist/utils/runner-template.js +0 -238
@@ -2,11 +2,22 @@ import { type Stack } from '@aws-sdk/client-cloudformation';
2
2
  import { type RunnerHealth, type RunnerOutcome, type RunnerSigningKeyDto, type RunnersUnavailableReason, type RunnerStatus } from '@pipeline-builder/api-core/pipeline-runners';
3
3
  import { Command } from 'commander';
4
4
  import { type StepUpProvider } from '../utils/service-account.js';
5
- export interface RunnerPlanInput {
6
- label?: string;
5
+ export interface AccountPlanInput {
6
+ /** `--name`: the connector's free-text name (a new connector: default `<account id> · <home region>`). */
7
+ name?: string;
8
+ /** `--account <id or name>`: the connector to update (default: this organization's connector in the account). */
9
+ account?: string;
10
+ /** `--region`: the home region (the stack's). */
7
11
  region: string;
8
12
  regions?: string;
9
- pipelinePrefix?: string;
13
+ /** `--allowed-prefixes`. */
14
+ allowedPrefixes?: string;
15
+ /** commander's `--no-runner` (true unless given). */
16
+ runner?: boolean;
17
+ /** commander's `--no-reporting` (true unless given). */
18
+ reporting?: boolean;
19
+ /** `--dora`: DORA lead time in-account (reporting). */
20
+ dora?: boolean;
10
21
  apiGateway?: boolean;
11
22
  allowIp?: string[];
12
23
  /** commander's `--no-waf` (true unless given). */
@@ -15,63 +26,68 @@ export interface RunnerPlanInput {
15
26
  wafRateLimit?: string | number;
16
27
  /** `--generate-key`: create the org's signing key (step-up) when it has none. */
17
28
  generateKey?: boolean;
29
+ /** `--default`: make this connector the organization's default (step-up) once it is set up. */
30
+ default?: boolean;
18
31
  yes?: boolean;
19
- delete?: boolean;
20
- withEvents?: boolean;
21
- /** `--enable-deploy` and its options (each needs it). */
22
- enableDeploy?: boolean;
23
- requireBootstrap?: boolean;
32
+ /** `--permissions-boundary`: an IAM permissions boundary for EVERY role. */
33
+ permissionsBoundary?: string;
34
+ /** `--bootstrap`: `cdk bootstrap` the home region (the template bucket) and, with --deploy, every allowlisted region that needs it. */
24
35
  bootstrap?: boolean;
36
+ /** `--deploy` and its options (each needs it). */
37
+ deploy?: boolean;
38
+ requireBootstrap?: boolean;
25
39
  cdkQualifier?: string;
26
40
  deployTimeout?: string | number;
27
41
  deployConcurrency?: string | number;
28
- deployPermissionsBoundary?: string;
29
42
  registryPullHost?: string;
30
43
  }
31
- /** The deploy half of a plan (`--enable-deploy`). */
44
+ /** The deploy half of a plan (`--deploy`). */
32
45
  export interface RunnerDeployPlan {
33
46
  qualifier: string;
34
47
  timeoutMinutes: number;
35
48
  concurrency: number;
36
- /** '' = none. */
37
- permissionsBoundaryArn: string;
38
- /** Refuse when an allowlisted region has no (or an outdated) CDK bootstrap. */
39
49
  requireBootstrap: boolean;
40
- /** Bootstrap such regions (cdk bootstrap with these credentials) instead of only warning. */
41
50
  bootstrap: boolean;
42
- /** Explicit; otherwise the platform URL's host[:port]. */
43
51
  registryPullHost?: string;
44
52
  }
45
- export interface RunnerPlan {
46
- label: string;
47
- /** Where the stack lives. */
53
+ export interface AccountPlan {
54
+ /** The typed name (trimmed), or undefined = keep / default. */
55
+ name?: string;
56
+ /** `--account`: the connector to update, by id or name. */
57
+ account?: string;
58
+ /** Where the stack lives (the home region). */
48
59
  region: string;
49
- /** Where the runner may act. */
60
+ /** Where the runner may act and reporting covers. */
50
61
  regions: string[];
51
62
  /**
52
- * The regions the account scan MUST cover (the stack region, then every
53
- * --regions region): listed first, and an unreadable one fails the scan. The
54
- * scan itself covers every enabled region of the account ({@link accountRunnerStacks}).
63
+ * The regions the account scan MUST cover (the home region, then every
64
+ * --regions region): listed first, and an unreadable one fails the scan.
55
65
  */
56
66
  scanRegions: string[];
57
67
  /** Explicit prefixes, or undefined = derive from the org's registered pipeline names. */
58
68
  prefixes?: string[];
69
+ runner: boolean;
70
+ reporting: boolean;
71
+ dora: boolean;
59
72
  apiGateway: boolean;
60
73
  allowIps: string[];
61
- /** The API's WAFv2 rate limit is attached (api-gateway only). */
62
74
  waf: boolean;
63
- /** Requests per 5 minutes per source IP (meaningful when `waf`). */
64
75
  wafRateLimit: number;
65
76
  generateKey: boolean;
77
+ /** --default: make the connector the org's default once it is set up. */
78
+ makeDefault: boolean;
66
79
  /** --yes: confirms '*' prefixes and installing beside a parent organization's shared runner. */
67
80
  yes: boolean;
68
- delete: boolean;
69
- withEvents: boolean;
70
- /** `--enable-deploy`: the deploy project and its checks. */
81
+ /** '' = none. */
82
+ permissionsBoundaryArn: string;
83
+ /** --bootstrap. */
84
+ bootstrap: boolean;
85
+ /** The CDK bootstrap qualifier of the home region's template bucket (and the deploy regions'). */
86
+ qualifier: string;
71
87
  deploy?: RunnerDeployPlan;
72
88
  }
73
89
  /** Validate the flags into a plan. Throws ValidationError naming the flag. */
74
- export declare function planRunner(input: RunnerPlanInput): RunnerPlan;
90
+ export declare function planAccount(input: AccountPlanInput): AccountPlan;
75
91
  /**
76
92
  * The org's default pipeline-name prefix, from its registered pipeline names:
77
93
  * its pipeline ORGANIZATION IDENTITY + `-`.
@@ -92,10 +108,11 @@ export declare function planRunner(input: RunnerPlanInput): RunnerPlan;
92
108
  */
93
109
  export declare function prefixesFromPipelineNames(names: string[]): string[];
94
110
  /** What a dry run prints. No call of any kind is made to build it. */
95
- export declare function describePlan(plan: RunnerPlan, bundleSha256?: string): Record<string, unknown>;
111
+ export declare function describePlan(plan: AccountPlan, bundleSha256?: string): Record<string, unknown>;
96
112
  export interface PlatformApi {
97
113
  get<T = unknown>(url: string, params?: Record<string, unknown>, headers?: Record<string, string>): Promise<T>;
98
114
  post<T = unknown>(url: string, data?: unknown, headers?: Record<string, string>): Promise<T>;
115
+ put<T = unknown>(url: string, data?: unknown, headers?: Record<string, string>): Promise<T>;
99
116
  patch<T = unknown>(url: string, data?: unknown, headers?: Record<string, string>): Promise<T>;
100
117
  delete<T = unknown>(url: string, headers?: Record<string, string>): Promise<T>;
101
118
  }
@@ -124,59 +141,74 @@ export interface RunnerList {
124
141
  export interface RunnerStackInfo {
125
142
  stackName: string;
126
143
  region: string;
127
- /** Its RunnerId parameter (the function's RUNNER_ID). */
144
+ /** Its RunnerId parameter (the function's RUNNER_ID): the connector id. */
128
145
  runnerId?: string;
129
- /** Its pb.runner-label tag. */
130
- label?: string;
131
146
  /** Its AllowedPipelinePrefixes parameter. */
132
147
  prefixes: string[];
133
148
  }
134
- export interface SetupRunnerDeps {
149
+ export interface AccountDeps {
135
150
  platform: PlatformApi;
136
151
  platformBaseUrl: string;
137
152
  stepUp: StepUpProvider;
138
- /** `aws cloudformation deploy` of the given template (written to a temp file). */
153
+ /** `aws cloudformation deploy` of the given template, uploaded to `s3Bucket` (written to a temp file). */
139
154
  deployStack(a: {
140
155
  stackName: string;
141
156
  template: Record<string, unknown>;
142
157
  parameters: string[];
143
- tags: Record<string, string>;
144
158
  region: string;
159
+ s3Bucket: string;
145
160
  }): Promise<void>;
161
+ /** Set the stack's policy (before an update; after a create). */
162
+ setStackPolicy(stackName: string, policy: Record<string, unknown>, region: string): Promise<void>;
146
163
  /** The stack's outputs and parameters, or undefined when it does not exist. */
147
164
  describeStack(stackName: string, region: string): Promise<{
165
+ status: string;
148
166
  outputs: Record<string, string>;
149
167
  parameters: Record<string, string>;
150
168
  } | undefined>;
151
169
  /** The account's enabled regions (EC2 DescribeRegions, AllRegions=false), asked in `region`. */
152
170
  enabledRegions(region: string): Promise<string[]>;
153
171
  /**
154
- * Every runner stack (`pipeline-builder-runner-*`) in these regions of the
155
- * account. An unreadable region in `required` fails the call; any other is
156
- * warned about and skipped (an SCP that denies a region denies a runner there too).
172
+ * Every connector stack with a runner (`pipeline-builder-runner-*`) in these
173
+ * regions of the account. An unreadable region in `required` fails the call;
174
+ * any other is warned about and skipped.
157
175
  */
158
176
  listRunnerStacks(regions: string[], required: string[]): Promise<RunnerStackInfo[]>;
177
+ /** The regions (of `regions`) holding a forwarder stack of this name. */
178
+ forwarderRegions(stackName: string, regions: string[]): Promise<string[]>;
159
179
  deleteStack(stackName: string, region: string): Promise<void>;
160
- /** Upload the bundled runner handler and wait until the function is updated. */
161
- uploadCode(functionName: string, region: string): Promise<void>;
180
+ /** Upload one bundled Lambda handler and wait until the function is updated. */
181
+ uploadCode(functionName: string, region: string, bundle: LambdaBundle): Promise<void>;
162
182
  /** The org's registered pipeline names (for the default prefix). */
163
183
  registeredPipelineNames(): Promise<string[]>;
164
184
  /** SHA-256 (hex) of the runner bundle this CLI deploys. */
165
185
  bundleSha256(): string;
166
- /** `infra setup-events --scoped-ingest` in the region (--with-events). */
167
- runSetupEvents(region: string): Promise<void>;
168
186
  /** A y/N question; false when nobody can answer (not a terminal, --json). */
169
187
  confirm(question: string): Promise<boolean>;
170
188
  warn(message: string): void;
171
- /** --enable-deploy: the org the operator's token acts for (the registry-push secret is named after it). */
189
+ /** The org the operator's token acts for (secret names, OrgId). */
172
190
  organizationId(): Promise<string>;
173
- /** --enable-deploy: the region's CDK bootstrap version (undefined = not bootstrapped with that qualifier). */
191
+ /** This AWS account's id (sts:GetCallerIdentity): the default name. */
192
+ accountId(): Promise<string>;
193
+ /** A region's CDK bootstrap version (undefined = not bootstrapped with that qualifier). */
174
194
  bootstrapVersion(region: string, qualifier: string): Promise<number | undefined>;
195
+ /** The home region's CDK bootstrap bucket (the template goes there), or undefined when there is none. */
196
+ bootstrapBucket(region: string, qualifier: string): Promise<string | undefined>;
175
197
  /** --bootstrap: `cdk bootstrap` the region with these credentials. */
176
198
  runBootstrap(region: string, qualifier: string): Promise<void>;
177
- /** --enable-deploy: whether a Secrets Manager secret exists. */
199
+ /** Whether a Secrets Manager secret exists. */
178
200
  secretExists(name: string, region: string): Promise<boolean>;
201
+ /**
202
+ * remove-account: the ids of the key a secret holds (never the key itself),
203
+ * or undefined when the secret carries none.
204
+ */
205
+ readStoredKey(secretName: string, region: string): Promise<{
206
+ keyId: string;
207
+ serviceAccountId: string;
208
+ } | undefined>;
179
209
  }
210
+ /** The connector's bundled Lambda handlers (dist/lambda/*). */
211
+ export type LambdaBundle = 'runner' | 'events' | 'renew';
180
212
  /** Why the platform cannot take runners right now (`available: false` / 409 RUNNERS_UNAVAILABLE). */
181
213
  export declare function runnersUnavailableMessage(reason?: RunnersUnavailableReason | null): string;
182
214
  /** A 409 RUNNERS_UNAVAILABLE refusal's `details.reason`, when the server sent one. */
@@ -195,14 +227,17 @@ export interface SigningKeyStatus {
195
227
  kid: string | null;
196
228
  inheritedFrom?: string;
197
229
  }
198
- export interface SetupRunnerResult {
199
- action: 'created' | 'updated' | 'deleted';
230
+ export interface AccountResult {
231
+ action: 'created' | 'updated' | 'removed';
232
+ /** The connector id (with a runner). */
200
233
  runnerId?: string;
201
- label: string;
234
+ /** The connector's name (with a runner). */
235
+ name?: string;
202
236
  stackName: string;
203
237
  region: string;
204
238
  regions: string[];
205
239
  prefixes?: string[];
240
+ runner?: boolean;
206
241
  /** pending | active, as the platform last reported it. */
207
242
  status?: string;
208
243
  test?: {
@@ -214,14 +249,27 @@ export interface SetupRunnerResult {
214
249
  jwksUrl?: string;
215
250
  signingKey?: SigningKeyStatus;
216
251
  bundleSha256?: string;
217
- eventsStack?: 'present' | 'missing' | 'deployed';
218
- /** Deploys through this runner: off, or on with each allowlisted region's CDK bootstrap. */
252
+ /** Reporting: off, or on with the regions forwarding to the home region (and those whose forwarder was removed). */
253
+ reporting?: {
254
+ enabled: false;
255
+ } | {
256
+ enabled: true;
257
+ forwarders: string[];
258
+ removedForwarders: string[];
259
+ };
260
+ /** The credential secrets the key renewal rotates. */
261
+ renewed?: string[];
262
+ /** --default: the connector is now the organization's default. */
263
+ default?: true;
264
+ /** Deploys through the runner: off, or on with each allowlisted region's CDK bootstrap. */
219
265
  deploy?: {
220
266
  enabled: false;
221
267
  } | {
222
268
  enabled: true;
223
269
  bootstrap: Record<string, RegionBootstrap>;
224
270
  };
271
+ /** remove-account: what is deliberately kept. */
272
+ retained?: string[];
225
273
  }
226
274
  /** A region's CDK bootstrap as --enable-deploy found (or left) it. */
227
275
  export type RegionBootstrap = 'ok' | 'missing' | 'outdated' | 'bootstrapped';
@@ -251,7 +299,7 @@ export declare function prefixesOverlap(a: string[], b: string[]): boolean;
251
299
  * and must be readable; the rest follow in the order DescribeRegions answers.
252
300
  * Returns the stacks and the regions scanned.
253
301
  */
254
- export declare function accountRunnerStacks(plan: RunnerPlan, deps: SetupRunnerDeps): Promise<{
302
+ export declare function accountRunnerStacks(plan: AccountPlan, deps: AccountDeps): Promise<{
255
303
  stacks: RunnerStackInfo[];
256
304
  regions: string[];
257
305
  }>;
@@ -261,39 +309,53 @@ export declare function accountRunnerStacks(plan: RunnerPlan, deps: SetupRunnerD
261
309
  * failed region is warned about and skipped.
262
310
  */
263
311
  export declare function scanRegionStacks(regions: string[], required: string[], listOne: (region: string) => Promise<RunnerStackInfo[]>, warn: (message: string) => void): Promise<RunnerStackInfo[]>;
312
+ /**
313
+ * The credential secrets the key renewal may rotate (each only when it exists):
314
+ * every one `store-token` can store — the platform key and each scope's leaf.
315
+ */
316
+ export declare const RENEWABLE_LEAVES: readonly string[];
264
317
  /** The registry host the deploy build pulls from: --registry-pull-host, else the platform URL's host[:port]. */
265
318
  export declare function deployPullHost(plan: RunnerDeployPlan, platformBaseUrl: string): string;
266
319
  /** The runner's own JWKS URL (absolute). */
267
320
  export declare function runnerJwksUrl(platformBaseUrl: string, runnerId: string): string;
268
321
  /** Install or update a runner. */
269
- export declare function setupRunnerFlow(plan: RunnerPlan, deps: SetupRunnerDeps): Promise<SetupRunnerResult>;
322
+ export declare function setupAccountFlow(plan: AccountPlan, deps: AccountDeps): Promise<AccountResult>;
323
+ /** What remove-account deliberately leaves in the account (each removable by hand). */
324
+ export declare const RETAINED_RESOURCES: string[];
270
325
  /**
271
- * Revoke on the platform, THEN delete the stack. The runner is this org's
272
- * runner with that label among the account's runner stacks; without one, only a
273
- * PENDING runner of that label (an install that never got this far) is revoked
274
- * by label — an active one lives in another account or region, and revoking it
275
- * from the wrong account would silently cut that one off. A stack whose runner
276
- * is not this org's is never touched.
326
+ * remove-account: revoke the connector on the platform FIRST (step-up; a stack
327
+ * whose connector the platform still has is never deleted), revoke the
328
+ * reporting credential, then delete the regional forwarders and the home stack.
329
+ * The connector is this organization's connector in the account (or the one
330
+ * `--account` names); `--no-runner` removes a reporting-only connector.
277
331
  */
278
- export declare function deleteRunner(plan: RunnerPlan, deps: SetupRunnerDeps): Promise<SetupRunnerResult>;
332
+ export declare function removeAccountFlow(plan: AccountPlan, deps: AccountDeps): Promise<AccountResult>;
279
333
  /** SHA-256 of the runner bundle: what release notes list, so an operator can check what runs in their account. */
280
334
  export declare function sha256OfFile(file: string): string;
281
- /** A DescribeStacks entry as {@link RunnerStackInfo}, or undefined when it is not a runner stack. */
335
+ /** A DescribeStacks entry as {@link RunnerStackInfo}, or undefined when it is not a connector stack with a runner. */
282
336
  export declare function runnerStackInfo(s: Stack, region: string): RunnerStackInfo | undefined;
283
- /** The rule, after the options in `setup-runner --help`. */
284
- export declare const SETUP_RUNNER_HELP: string;
337
+ /** The rule, after the options in `setup-account --help`. */
338
+ export declare const SETUP_ACCOUNT_HELP: string;
339
+ /**
340
+ * Registers `infra setup-account`.
341
+ *
342
+ * @example
343
+ * ```bash
344
+ * pipeline-manager infra setup-account --region us-east-1 --regions us-east-1,eu-west-2 --allowed-prefixes acme- --name "Prod — US East"
345
+ * pipeline-manager infra setup-account --region us-east-1 --api-gateway --allow-ip 203.0.113.10/32 --deploy
346
+ * pipeline-manager infra setup-account --region us-east-1 --no-runner
347
+ * pipeline-manager infra setup-account --region us-east-1 --dry-run --json
348
+ * ```
349
+ */
350
+ export declare function setupAccount(program: Command): void;
285
351
  /**
286
- * Registers `infra setup-runner`.
352
+ * Registers `infra remove-account`.
287
353
  *
288
354
  * @example
289
355
  * ```bash
290
- * pipeline-manager infra setup-runner --region us-east-1 --regions us-east-1,eu-west-2 --pipeline-prefix acme-
291
- * pipeline-manager infra setup-runner --region us-east-1 --api-gateway --allow-ip 203.0.113.10/32
292
- * pipeline-manager infra setup-runner --region us-east-1 --api-gateway --allow-ip 203.0.113.10/32 --waf-rate-limit 500
293
- * pipeline-manager infra setup-runner --region us-east-1 --generate-key
294
- * pipeline-manager infra setup-runner --region us-east-1 --label ops --delete
295
- * pipeline-manager infra setup-runner --region us-east-1 --dry-run --json
356
+ * pipeline-manager infra remove-account --region us-east-1
357
+ * pipeline-manager infra remove-account --region us-east-1 --no-runner
296
358
  * ```
297
359
  */
298
- export declare function setupRunner(program: Command): void;
299
- //# sourceMappingURL=setup-runner.d.ts.map
360
+ export declare function removeAccount(program: Command): void;
361
+ //# sourceMappingURL=setup-account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-account.d.ts","sources":["../../src/commands/set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