@mastra/factory 0.16.0-alpha.9 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/README.md +37 -0
  2. package/dist/auth.js +1 -1
  3. package/dist/auth.js.map +1 -1
  4. package/dist/boards/review.d.ts.map +1 -1
  5. package/dist/boards/review.js +19 -8
  6. package/dist/boards/review.js.map +1 -1
  7. package/dist/boards/work.d.ts.map +1 -1
  8. package/dist/boards/work.js +31 -3
  9. package/dist/boards/work.js.map +1 -1
  10. package/dist/capabilities/intake.d.ts +4 -0
  11. package/dist/capabilities/intake.d.ts.map +1 -1
  12. package/dist/capabilities/version-control.d.ts +15 -0
  13. package/dist/capabilities/version-control.d.ts.map +1 -1
  14. package/dist/factory.d.ts +7 -7
  15. package/dist/factory.d.ts.map +1 -1
  16. package/dist/factory.js +100 -40
  17. package/dist/factory.js.map +1 -1
  18. package/dist/integrations/base.d.ts +3 -0
  19. package/dist/integrations/base.d.ts.map +1 -1
  20. package/dist/integrations/github/integration.d.ts.map +1 -1
  21. package/dist/integrations/github/integration.js +21 -0
  22. package/dist/integrations/github/integration.js.map +1 -1
  23. package/dist/integrations/github/routes.js +2 -1
  24. package/dist/integrations/github/routes.js.map +1 -1
  25. package/dist/integrations/github/sandbox.d.ts +41 -42
  26. package/dist/integrations/github/sandbox.d.ts.map +1 -1
  27. package/dist/integrations/github/sandbox.js +416 -227
  28. package/dist/integrations/github/sandbox.js.map +1 -1
  29. package/dist/integrations/github/webhook.d.ts +2 -5
  30. package/dist/integrations/github/webhook.d.ts.map +1 -1
  31. package/dist/integrations/github/webhook.js +8 -48
  32. package/dist/integrations/github/webhook.js.map +1 -1
  33. package/dist/integrations/gitlab/agent-tools.d.ts +14 -0
  34. package/dist/integrations/gitlab/agent-tools.d.ts.map +1 -0
  35. package/dist/integrations/gitlab/agent-tools.js +42 -0
  36. package/dist/integrations/gitlab/agent-tools.js.map +1 -0
  37. package/dist/integrations/gitlab/api.d.ts +222 -0
  38. package/dist/integrations/gitlab/api.d.ts.map +1 -0
  39. package/dist/integrations/gitlab/api.js +274 -0
  40. package/dist/integrations/gitlab/api.js.map +1 -0
  41. package/dist/integrations/gitlab/default-rules.d.ts +125 -0
  42. package/dist/integrations/gitlab/default-rules.d.ts.map +1 -0
  43. package/dist/integrations/gitlab/default-rules.js +172 -0
  44. package/dist/integrations/gitlab/default-rules.js.map +1 -0
  45. package/dist/integrations/gitlab/integration.d.ts +138 -0
  46. package/dist/integrations/gitlab/integration.d.ts.map +1 -0
  47. package/dist/integrations/gitlab/integration.js +705 -0
  48. package/dist/integrations/gitlab/integration.js.map +1 -0
  49. package/dist/integrations/gitlab/issue-reconciler.d.ts +6 -0
  50. package/dist/integrations/gitlab/issue-reconciler.d.ts.map +1 -0
  51. package/dist/integrations/gitlab/issue-reconciler.js +123 -0
  52. package/dist/integrations/gitlab/issue-reconciler.js.map +1 -0
  53. package/dist/integrations/gitlab/merge-request-reconciler.d.ts +6 -0
  54. package/dist/integrations/gitlab/merge-request-reconciler.d.ts.map +1 -0
  55. package/dist/integrations/gitlab/merge-request-reconciler.js +267 -0
  56. package/dist/integrations/gitlab/merge-request-reconciler.js.map +1 -0
  57. package/dist/integrations/gitlab/reconciler.d.ts +5 -0
  58. package/dist/integrations/gitlab/reconciler.d.ts.map +1 -0
  59. package/dist/integrations/gitlab/reconciler.js +31 -0
  60. package/dist/integrations/gitlab/reconciler.js.map +1 -0
  61. package/dist/integrations/gitlab/reconciliation-config.d.ts +3 -0
  62. package/dist/integrations/gitlab/reconciliation-config.d.ts.map +1 -0
  63. package/dist/integrations/gitlab/reconciliation-config.js +17 -0
  64. package/dist/integrations/gitlab/reconciliation-config.js.map +1 -0
  65. package/dist/integrations/gitlab/routes.d.ts +20 -0
  66. package/dist/integrations/gitlab/routes.d.ts.map +1 -0
  67. package/dist/integrations/gitlab/routes.js +473 -0
  68. package/dist/integrations/gitlab/routes.js.map +1 -0
  69. package/dist/integrations/gitlab/rules.d.ts +35 -0
  70. package/dist/integrations/gitlab/rules.d.ts.map +1 -0
  71. package/dist/integrations/gitlab/rules.js +391 -0
  72. package/dist/integrations/gitlab/rules.js.map +1 -0
  73. package/dist/integrations/gitlab/session-subscriptions.d.ts +32 -0
  74. package/dist/integrations/gitlab/session-subscriptions.d.ts.map +1 -0
  75. package/dist/integrations/gitlab/session-subscriptions.js +192 -0
  76. package/dist/integrations/gitlab/session-subscriptions.js.map +1 -0
  77. package/dist/integrations/gitlab/subscriptions.d.ts +70 -0
  78. package/dist/integrations/gitlab/subscriptions.d.ts.map +1 -0
  79. package/dist/integrations/gitlab/subscriptions.js +76 -0
  80. package/dist/integrations/gitlab/subscriptions.js.map +1 -0
  81. package/dist/integrations/gitlab/version-control.d.ts +16 -0
  82. package/dist/integrations/gitlab/version-control.d.ts.map +1 -0
  83. package/dist/integrations/gitlab/version-control.js +622 -0
  84. package/dist/integrations/gitlab/version-control.js.map +1 -0
  85. package/dist/integrations/gitlab/webhook-dispatch.d.ts +75 -0
  86. package/dist/integrations/gitlab/webhook-dispatch.d.ts.map +1 -0
  87. package/dist/integrations/gitlab/webhook-dispatch.js +235 -0
  88. package/dist/integrations/gitlab/webhook-dispatch.js.map +1 -0
  89. package/dist/integrations/gitlab/webhook.d.ts +72 -0
  90. package/dist/integrations/gitlab/webhook.d.ts.map +1 -0
  91. package/dist/integrations/gitlab/webhook.js +201 -0
  92. package/dist/integrations/gitlab/webhook.js.map +1 -0
  93. package/dist/integrations/incidentio/integration.js +1 -1
  94. package/dist/integrations/issue-reconciler.d.ts +3 -3
  95. package/dist/integrations/issue-reconciler.d.ts.map +1 -1
  96. package/dist/integrations/issue-reconciler.js +22 -2
  97. package/dist/integrations/issue-reconciler.js.map +1 -1
  98. package/dist/integrations/platform/github/integration.d.ts.map +1 -1
  99. package/dist/integrations/platform/github/integration.js +21 -0
  100. package/dist/integrations/platform/github/integration.js.map +1 -1
  101. package/dist/integrations/platform/gitlab/event-worker.d.ts +64 -0
  102. package/dist/integrations/platform/gitlab/event-worker.d.ts.map +1 -0
  103. package/dist/integrations/platform/gitlab/event-worker.js +306 -0
  104. package/dist/integrations/platform/gitlab/event-worker.js.map +1 -0
  105. package/dist/integrations/platform/gitlab/integration.d.ts +57 -0
  106. package/dist/integrations/platform/gitlab/integration.d.ts.map +1 -0
  107. package/dist/integrations/platform/gitlab/integration.js +125 -0
  108. package/dist/integrations/platform/gitlab/integration.js.map +1 -0
  109. package/dist/integrations/platform/incidentio/integration.js +1 -1
  110. package/dist/integrations/slack/integration.d.ts.map +1 -1
  111. package/dist/integrations/slack/integration.js +3 -3
  112. package/dist/integrations/slack/integration.js.map +1 -1
  113. package/dist/integrations/slack/slack.d.ts +2 -0
  114. package/dist/integrations/slack/slack.d.ts.map +1 -1
  115. package/dist/integrations/slack/slack.js +21 -7
  116. package/dist/integrations/slack/slack.js.map +1 -1
  117. package/dist/integrations/subscription-session.d.ts +37 -0
  118. package/dist/integrations/subscription-session.d.ts.map +1 -0
  119. package/dist/integrations/subscription-session.js +83 -0
  120. package/dist/integrations/subscription-session.js.map +1 -0
  121. package/dist/packages/_internals/workspace/dist/index.js +1 -11
  122. package/dist/packages/_internals/workspace/dist/index.js.map +1 -1
  123. package/dist/routes/intake.d.ts.map +1 -1
  124. package/dist/routes/intake.js +4 -2
  125. package/dist/routes/intake.js.map +1 -1
  126. package/dist/routes/oauth.js +1 -1
  127. package/dist/routes/projects.d.ts +1 -0
  128. package/dist/routes/projects.d.ts.map +1 -1
  129. package/dist/routes/projects.js +1 -0
  130. package/dist/routes/projects.js.map +1 -1
  131. package/dist/routes/source-control-sessions.d.ts +20 -0
  132. package/dist/routes/source-control-sessions.d.ts.map +1 -0
  133. package/dist/routes/source-control-sessions.js +319 -0
  134. package/dist/routes/source-control-sessions.js.map +1 -0
  135. package/dist/routes/source-control-settings.d.ts +10 -0
  136. package/dist/routes/source-control-settings.d.ts.map +1 -0
  137. package/dist/routes/source-control-settings.js +87 -0
  138. package/dist/routes/source-control-settings.js.map +1 -0
  139. package/dist/routes/surface.d.ts +3 -3
  140. package/dist/routes/surface.d.ts.map +1 -1
  141. package/dist/routes/surface.js +55 -13
  142. package/dist/routes/surface.js.map +1 -1
  143. package/dist/routes/tenant-credentials.d.ts +8 -0
  144. package/dist/routes/tenant-credentials.d.ts.map +1 -1
  145. package/dist/routes/tenant-credentials.js +20 -3
  146. package/dist/routes/tenant-credentials.js.map +1 -1
  147. package/dist/routes/work-items.d.ts.map +1 -1
  148. package/dist/routes/work-items.js +1 -1
  149. package/dist/routes/work-items.js.map +1 -1
  150. package/dist/rules/dispatcher.d.ts.map +1 -1
  151. package/dist/rules/dispatcher.js +7 -1
  152. package/dist/rules/dispatcher.js.map +1 -1
  153. package/dist/rules/start-coordinator.d.ts +1 -1
  154. package/dist/rules/start-coordinator.d.ts.map +1 -1
  155. package/dist/rules/start-coordinator.js +3 -2
  156. package/dist/rules/start-coordinator.js.map +1 -1
  157. package/dist/rules/transition-service.d.ts.map +1 -1
  158. package/dist/rules/transition-service.js +6 -3
  159. package/dist/rules/transition-service.js.map +1 -1
  160. package/dist/rules/types.d.ts +67 -3
  161. package/dist/rules/types.d.ts.map +1 -1
  162. package/dist/rules/types.js +23 -2
  163. package/dist/rules/types.js.map +1 -1
  164. package/dist/rules/validation.d.ts.map +1 -1
  165. package/dist/rules/validation.js +2 -0
  166. package/dist/rules/validation.js.map +1 -1
  167. package/dist/sandbox/git-ref.d.ts +7 -0
  168. package/dist/sandbox/git-ref.d.ts.map +1 -0
  169. package/dist/sandbox/git-ref.js +15 -0
  170. package/dist/sandbox/git-ref.js.map +1 -0
  171. package/dist/sandbox/session-retirement.js +1 -1
  172. package/dist/sandbox/workdir.d.ts.map +1 -1
  173. package/dist/sandbox/workdir.js +6 -6
  174. package/dist/sandbox/workdir.js.map +1 -1
  175. package/dist/session/factory-session.d.ts +31 -1
  176. package/dist/session/factory-session.d.ts.map +1 -1
  177. package/dist/session/factory-session.js +60 -1
  178. package/dist/session/factory-session.js.map +1 -1
  179. package/dist/session/source-control-tools.d.ts +16 -0
  180. package/dist/session/source-control-tools.d.ts.map +1 -0
  181. package/dist/session/source-control-tools.js +464 -0
  182. package/dist/session/source-control-tools.js.map +1 -0
  183. package/dist/storage/domains/intake/base.d.ts +18 -0
  184. package/dist/storage/domains/intake/base.d.ts.map +1 -1
  185. package/dist/storage/domains/intake/base.js +77 -0
  186. package/dist/storage/domains/intake/base.js.map +1 -1
  187. package/dist/work-item-branch.d.ts +3 -1
  188. package/dist/work-item-branch.d.ts.map +1 -1
  189. package/dist/work-item-branch.js +22 -4
  190. package/dist/work-item-branch.js.map +1 -1
  191. package/dist/workspace.d.ts +15 -1
  192. package/dist/workspace.d.ts.map +1 -1
  193. package/dist/workspace.js +57 -23
  194. package/dist/workspace.js.map +1 -1
  195. package/factory-skills/factory-gitlab-rereview/SKILL.md +19 -0
  196. package/factory-skills/factory-gitlab-review/SKILL.md +30 -0
  197. package/factory-skills/factory-rereview/SKILL.md +13 -6
  198. package/factory-skills/factory-review/SKILL.md +13 -6
  199. package/factory-skills/factory-review/references/archaeology.md +225 -0
  200. package/factory-skills/factory-review/references/categories/README.md +34 -0
  201. package/factory-skills/factory-review/references/categories/behavior-change.md +36 -0
  202. package/factory-skills/factory-review/references/categories/bug-fix.md +37 -0
  203. package/factory-skills/factory-review/references/categories/docs.md +32 -0
  204. package/factory-skills/factory-review/references/categories/experimental-flagged.md +34 -0
  205. package/factory-skills/factory-review/references/categories/infra-tooling.md +37 -0
  206. package/factory-skills/factory-review/references/categories/internal-capability.md +35 -0
  207. package/factory-skills/factory-review/references/categories/large-cross-cutting.md +35 -0
  208. package/factory-skills/factory-review/references/categories/mechanical.md +36 -0
  209. package/factory-skills/factory-review/references/categories/performance.md +33 -0
  210. package/factory-skills/factory-review/references/categories/public-api.md +38 -0
  211. package/factory-skills/factory-review/references/categories/refactor.md +35 -0
  212. package/factory-skills/factory-review/references/categories/revert.md +31 -0
  213. package/factory-skills/factory-review/references/categories/schema-storage.md +39 -0
  214. package/factory-skills/factory-review/references/categories/security.md +35 -0
  215. package/factory-skills/factory-review/references/categories/tests-only.md +38 -0
  216. package/package.json +9 -9
@@ -6,14 +6,16 @@
6
6
  * operate entirely against the remote checkout.
7
7
  *
8
8
  * - `materializeRepo(row, token)` clones the repo inside the sandbox when no
9
- * checkout exists yet (a base-image boot, a wiped disk), using a short-lived
10
- * installation token that is scrubbed from the git remote afterwards so it
11
- * never persists in the VM. A checkout that is already there, from a repo
12
- * template image or an earlier start, is left exactly as it is.
9
+ * checkout exists yet (a base-image boot, a wiped disk), supplying the
10
+ * short-lived token only in that Git process's environment. A checkout that
11
+ * is already there, from a repo template image or an earlier start, is left
12
+ * exactly as it is.
13
13
  *
14
14
  * This module owns everything git/GitHub: clone, commit/push, setup/teardown commands,
15
15
  * and `gh pr create`. Workdir layout lives in `../sandbox/workdir`.
16
16
  */
17
+ import type { RepositoryAccess } from '../../capabilities/version-control.js';
18
+ import { isValidGitRef } from '../../sandbox/git-ref.js';
17
19
  import type { ExecutableSandbox, SandboxCommandResult } from '../../sandbox/materialization.js';
18
20
  import type { SourceControlStorageHandle } from '../../storage/domains/source-control/base.js';
19
21
  type MaterializationStore = Pick<SourceControlStorageHandle['sessions'], 'markMaterialized'>;
@@ -46,11 +48,9 @@ interface ShOptions {
46
48
  phase?: string;
47
49
  }
48
50
  /**
49
- * Run a shell script in the sandbox via `sh -c`, bounded by a hang guard.
50
- * Transient transport-level 5xx failures (proxy hiccups while the VM boots)
51
- * are retried with a short backoff; every script routed through here is safe
52
- * to re-run. Hang-guard timeouts are NOT retried — the budget applies to the
53
- * command as a whole.
51
+ * Run a shell script in the sandbox via `sh -c`. This is reserved for the
52
+ * explicitly configured repository lifecycle hooks; programmatic commands use
53
+ * {@link execute} with an argv array.
54
54
  */
55
55
  export declare function sh(sandbox: ExecutableSandbox, script: string, options?: ShOptions): Promise<SandboxCommandResult>;
56
56
  /** Error raised when the sandbox cannot materialize the repo (actionable). */
@@ -62,6 +62,10 @@ export declare class MaterializeError extends Error {
62
62
  export interface RepoMaterializeInfo {
63
63
  repoFullName: string;
64
64
  defaultBranch: string;
65
+ /** Provider-supplied, credential-free HTTPS clone URL. */
66
+ cloneUrl?: string;
67
+ /** Username paired with the bearer token for git-over-HTTPS. */
68
+ authUsername?: string;
65
69
  }
66
70
  /** Options for {@link materializeRepo}. */
67
71
  export interface MaterializeRepoOptions {
@@ -77,9 +81,9 @@ export interface MaterializeRepoOptions {
77
81
  }
78
82
  /**
79
83
  * Materialize the repo inside the user's sandbox: clone when no checkout of
80
- * this repo exists, otherwise nothing. Scrubs the install token from the
81
- * remote after a clone and sets `materialized_at` on the per-user sandbox
82
- * binding row.
84
+ * this repo exists, otherwise nothing. Credentials are process-scoped and the
85
+ * stored remote remains credential-free. Sets `materialized_at` on the
86
+ * per-user sandbox binding row.
83
87
  */
84
88
  export declare function materializeRepo(options: MaterializeRepoOptions): Promise<void>;
85
89
  export interface SessionBranchOptions {
@@ -87,17 +91,26 @@ export interface SessionBranchOptions {
87
91
  baseBranch: string;
88
92
  token: string;
89
93
  repoFullName: string;
94
+ cloneUrl?: string;
95
+ authUsername?: string;
90
96
  /** A pull-request card's session starts on the PR head instead of the base tip. */
91
97
  pullRequestNumber?: number;
98
+ /** A GitLab merge-request card's session starts on the MR head instead of the base tip. */
99
+ mergeRequestNumber?: number;
92
100
  }
93
101
  /** Check out a session's branch inside its isolated repository clone. */
94
102
  export declare function checkoutSessionBranch(sandbox: ExecutableSandbox, workdir: string, options: SessionBranchOptions): Promise<void>;
95
- /**
96
- * Validate a git ref (branch) name. Server-side defense-in-depth: only allow a
97
- * conservative character set so a branch can never be built into a shell
98
- * command in a way that escapes quoting. Mirrors the route-layer check.
99
- */
100
- export declare function isValidGitRef(value: unknown): value is string;
103
+ /** Refresh an existing GitLab review checkout without exposing its credential to the agent. */
104
+ export declare function refreshMergeRequestCheckout(sandbox: ExecutableSandbox, workdir: string, input: {
105
+ branch: string;
106
+ mergeRequestNumber: number;
107
+ expectedHeadSha: string;
108
+ access: RepositoryAccess;
109
+ }): Promise<{
110
+ headSha: string;
111
+ changed: boolean;
112
+ }>;
113
+ export { isValidGitRef };
101
114
  /** Identity used to author commits inside the sandbox. */
102
115
  export interface GitIdentity {
103
116
  name?: string | null;
@@ -114,31 +127,18 @@ export declare function resolveGitIdentity(identity: GitIdentity): {
114
127
  name: string;
115
128
  email: string;
116
129
  };
117
- /**
118
- * Configure `user.name` / `user.email` for the given repo working tree inside
119
- * the sandbox so commits are authored correctly. Values are shell-quoted.
120
- */
130
+ /** Configure repository-local commit identity through direct Git argv calls. */
121
131
  export declare function configureGitIdentity(sandbox: ExecutableSandbox, workdir: string, identity: GitIdentity): Promise<void>;
122
132
  /**
123
- * Temporarily rewrite `origin` to a tokenized URL, run `fn` (e.g. a push), and
124
- * **always** scrub the remote back to the tokenless URL afterwards. The token
125
- * therefore only ever lives in the remote URL for the duration of the
126
- * operation and is never left in the VM's git config.
127
- *
128
- * Once the tokenized URL is installed a failed scrub may leave the token
129
- * persisted, so it is always surfaced: on its own after a successful `fn`,
130
- * appended to `fn`'s own error otherwise — `fn`'s error is never replaced.
131
- * Only a failed set-url (the token never reached the remote) downgrades the
132
- * scrub to best-effort.
133
+ * Push a branch back to GitHub with credentials scoped to the Git process.
134
+ * The token never enters argv, a repository URL, or persistent configuration.
133
135
  */
134
- export declare function withInstallToken<T>(sandbox: ExecutableSandbox, workdir: string, repoFullName: string, token: string, fn: () => Promise<T>): Promise<T>;
136
+ export declare function pushBranch(sandbox: ExecutableSandbox, workdir: string, branch: string, token: string, repoFullName: string): Promise<void>;
135
137
  /**
136
- * Push a branch back to GitHub from inside the sandbox using a short-lived
137
- * installation token. The branch is ref-validated, the token is injected only
138
- * into the remote URL via `withInstallToken`, and egress failures are
139
- * classified into actionable errors.
138
+ * Push the active session branch through the provider-neutral repository
139
+ * access contract without persisting or exposing provider credentials.
140
140
  */
141
- export declare function pushBranch(sandbox: ExecutableSandbox, workdir: string, branch: string, token: string, repoFullName: string): Promise<void>;
141
+ export declare function pushRepositoryBranch(sandbox: ExecutableSandbox, workdir: string, branch: string, access: RepositoryAccess, repoFullName: string): Promise<void>;
142
142
  export interface CommitResult {
143
143
  /** True when a commit was created; false when there was nothing to commit. */
144
144
  committed: boolean;
@@ -151,7 +151,7 @@ export interface CommitResult {
151
151
  *
152
152
  * @param sandbox the live sandbox containing the checkout
153
153
  * @param workdir the session workdir to commit in
154
- * @param message the commit message (quoted; arbitrary text is safe)
154
+ * @param message the commit message (passed as one argv value)
155
155
  * @param identity authorship identity for the commit
156
156
  */
157
157
  export declare function commitAll(sandbox: ExecutableSandbox, workdir: string, message: string, identity: GitIdentity): Promise<CommitResult>;
@@ -189,12 +189,11 @@ export interface CreatePullRequestResult {
189
189
  /**
190
190
  * Open a pull request from inside the sandbox via `gh pr create`. The token is
191
191
  * passed only through a per-invocation `GH_TOKEN` env scoped to the single `gh`
192
- * process (never persisted), all arguments are shell-quoted, and the resulting
193
- * PR URL is parsed from stdout.
192
+ * process (never persisted), all arguments are passed as structured argv, and
193
+ * the resulting PR URL is parsed from stdout.
194
194
  *
195
195
  * @param sandbox live sandbox containing the checkout
196
196
  * @param workdir the worktree (or repo) path the PR head branch is checked out in
197
197
  */
198
198
  export declare function createPullRequest(sandbox: ExecutableSandbox, workdir: string, { token, base, head, title, body }: CreatePullRequestArgs): Promise<CreatePullRequestResult>;
199
- export {};
200
199
  //# sourceMappingURL=sandbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../src/integrations/github/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAChG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAG/F,KAAK,oBAAoB,GAAG,IAAI,CAAC,0BAA0B,CAAC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