@crowdedkingdoms/crowdyjs 18.22.0 → 18.23.0-dev.1

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 (75) hide show
  1. package/README.md +56 -15
  2. package/dist/crowdy-dsh/bridge.d.ts +72 -3
  3. package/dist/crowdy-dsh/bridge.d.ts.map +1 -1
  4. package/dist/crowdy-dsh/bridge.js +243 -12
  5. package/dist/crowdy-dsh/game-paths.d.ts +8 -0
  6. package/dist/crowdy-dsh/game-paths.d.ts.map +1 -0
  7. package/dist/crowdy-dsh/game-paths.js +20 -0
  8. package/dist/crowdy-dsh/pane.d.ts +18 -1
  9. package/dist/crowdy-dsh/pane.d.ts.map +1 -1
  10. package/dist/crowdy-dsh/pane.js +86 -2
  11. package/dist/crowdy-dsh/protocol.d.ts +165 -2
  12. package/dist/crowdy-dsh/protocol.d.ts.map +1 -1
  13. package/dist/crowdy-dsh/protocol.js +24 -1
  14. package/dist/crowdy-studio/controller.d.ts +100 -0
  15. package/dist/crowdy-studio/controller.d.ts.map +1 -1
  16. package/dist/crowdy-studio/controller.js +363 -1
  17. package/dist/crowdy-studio/dom-shell.d.ts +11 -0
  18. package/dist/crowdy-studio/dom-shell.d.ts.map +1 -1
  19. package/dist/crowdy-studio/dom-shell.js +182 -0
  20. package/dist/crowdy-studio/draft/github-draft-store.d.ts +143 -0
  21. package/dist/crowdy-studio/draft/github-draft-store.d.ts.map +1 -0
  22. package/dist/crowdy-studio/draft/github-draft-store.js +477 -0
  23. package/dist/crowdy-studio/draft/hash.d.ts +12 -0
  24. package/dist/crowdy-studio/draft/hash.d.ts.map +1 -0
  25. package/dist/crowdy-studio/draft/hash.js +25 -0
  26. package/dist/crowdy-studio/draft/index.d.ts +6 -0
  27. package/dist/crowdy-studio/draft/index.d.ts.map +1 -0
  28. package/dist/crowdy-studio/draft/index.js +5 -0
  29. package/dist/crowdy-studio/draft/overlay-storage.d.ts +48 -0
  30. package/dist/crowdy-studio/draft/overlay-storage.d.ts.map +1 -0
  31. package/dist/crowdy-studio/draft/overlay-storage.js +94 -0
  32. package/dist/crowdy-studio/draft/paths.d.ts +20 -0
  33. package/dist/crowdy-studio/draft/paths.d.ts.map +1 -0
  34. package/dist/crowdy-studio/draft/paths.js +54 -0
  35. package/dist/crowdy-studio/draft/types.d.ts +137 -0
  36. package/dist/crowdy-studio/draft/types.d.ts.map +1 -0
  37. package/dist/crowdy-studio/draft/types.js +29 -0
  38. package/dist/crowdy-studio/editor.d.ts +2 -0
  39. package/dist/crowdy-studio/editor.d.ts.map +1 -1
  40. package/dist/crowdy-studio/embed/panel.d.ts +8 -0
  41. package/dist/crowdy-studio/embed/panel.d.ts.map +1 -1
  42. package/dist/crowdy-studio/embed/panel.js +2 -0
  43. package/dist/crowdy-studio/github/index.d.ts +1 -1
  44. package/dist/crowdy-studio/github/index.d.ts.map +1 -1
  45. package/dist/crowdy-studio/github/transport.d.ts +59 -0
  46. package/dist/crowdy-studio/github/transport.d.ts.map +1 -1
  47. package/dist/crowdy-studio/github/transport.js +30 -1
  48. package/dist/crowdy-studio/index.d.ts +1 -0
  49. package/dist/crowdy-studio/index.d.ts.map +1 -1
  50. package/dist/crowdy-studio/index.js +1 -0
  51. package/dist/crowdy-studio/models.d.ts +1 -1
  52. package/dist/crowdy-studio/models.d.ts.map +1 -1
  53. package/dist/crowdy-studio/monaco-editor.d.ts.map +1 -1
  54. package/dist/crowdy-studio/monaco-editor.js +16 -0
  55. package/dist/crowdy-studio/mount.d.ts +2 -0
  56. package/dist/crowdy-studio/mount.d.ts.map +1 -1
  57. package/dist/crowdy-studio/mount.js +2 -0
  58. package/dist/crowdy-studio/repository-tree.d.ts +14 -0
  59. package/dist/crowdy-studio/repository-tree.d.ts.map +1 -0
  60. package/dist/crowdy-studio/repository-tree.js +45 -0
  61. package/dist/crowdy-studio/styles.d.ts +1 -1
  62. package/dist/crowdy-studio/styles.d.ts.map +1 -1
  63. package/dist/crowdy-studio/styles.js +1 -0
  64. package/dist/crowdy-studio/textarea-editor.d.ts.map +1 -1
  65. package/dist/crowdy-studio/textarea-editor.js +10 -4
  66. package/dist/default-origin.d.ts +6 -6
  67. package/dist/default-origin.d.ts.map +1 -1
  68. package/dist/default-origin.js +6 -6
  69. package/dist/generated/graphql-schema.d.ts +84 -2
  70. package/dist/generated/graphql-schema.d.ts.map +1 -1
  71. package/dist/generated/graphql-schema.js +9 -1
  72. package/dist/index.d.ts +1 -1
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +1 -1
  75. package/package.json +1 -1
package/README.md CHANGED
@@ -12,19 +12,23 @@ gameplay, minted per app through `client.portal`.
12
12
 
13
13
  Start here:
14
14
 
15
- - [SDK guide](https://docs.crowdedkingdoms.com/crowdyjs/readme) — the canonical
15
+ - [SDK guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/readme) — the canonical
16
16
  walkthrough of everything in this README.
17
- - [Build a game](https://docs.crowdedkingdoms.com/build-a-game/intro) — a
17
+ - [Build a game](https://docs.dev.crowdedkingdoms.com/build-a-game/intro) — a
18
18
  hands-on tutorial from sign-in to a playable voxel game.
19
- - [Platform overview](https://docs.crowdedkingdoms.com/overview/client-workflow)
19
+ - [Platform overview](https://docs.dev.crowdedkingdoms.com/overview/client-workflow)
20
20
  — how a client session flows through the platform.
21
21
 
22
22
  ## Install
23
23
 
24
24
  ```bash
25
- npm install @crowdedkingdoms/crowdyjs
25
+ npm install @crowdedkingdoms/crowdyjs@dev
26
26
  ```
27
27
 
28
+ This README is the `dev` branch's: it documents the release on the `dev` dist-tag
29
+ (`npm view @crowdedkingdoms/crowdyjs dist-tags`), and its links go to the dev docs site. A
30
+ plain `npm install` resolves `latest`, the production release, which has no `client.exec`.
31
+
28
32
  **Server compatibility.** A release selects fields the Game API it was built against has,
29
33
  so it needs that Game API or newer; promote the Game API before the SDK on each tier.
30
34
 
@@ -196,8 +200,8 @@ Notes:
196
200
  - Use `client.auth.setToken(token)` to seed a token externally (e.g. when
197
201
  restoring auth from a non-default storage).
198
202
 
199
- Deeper reading: [Portals & app-scoped tokens](https://docs.crowdedkingdoms.com/management-api/portals-and-app-tokens)
200
- and [Sign in](https://docs.crowdedkingdoms.com/management-api/authentication).
203
+ Deeper reading: [Portals & app-scoped tokens](https://docs.dev.crowdedkingdoms.com/management-api/portals-and-app-tokens)
204
+ and [Sign in](https://docs.dev.crowdedkingdoms.com/management-api/authentication).
201
205
 
202
206
  ### Org-managed players
203
207
 
@@ -330,7 +334,7 @@ never told about, so a native refresh without it is a re-placement.
330
334
  | `client.playerWallet` | Player spend: balance, ledger, hourly charges, spend caps, card setup, auto-recharge. A ck-exec mod's compute is billed here, to its owner. |
331
335
  | `client.marketplace` | Player-authorized grid claims (`claimGridOwnership`, `claimGridChunk`, `releaseClaimedGrid`, requests and invites) and studio moderation of player code (admission queue, listing administration, claim policy). Mods publish and install through `client.exec`. |
332
336
  | `client.crowdyStudio` | Cloud project, personal-library, and common-file APIs for Crowdy Studio: target-scoped files, metadata/module names, optimistic revisions, copy-by-value imports, atomic saves. |
333
- | `client.crowdyStudioGitHub` | Optional GitHub repository for a Crowdy Studio project: status, `bind` (push the project in, or take the repository), `unbind`, `refresh`, `layout`, `tree`, `getFile`, commit-guarded `putFile` / `deleteFile`. While bound the repository is the working tree and every Studio save commits; the project's `files` are the server's mirror at `github.sha`. Never required. |
337
+ | `client.crowdyStudioGitHub` | Optional GitHub repository for a Crowdy Studio project: status, `bind` (push the project in, or take the repository), `unbind`, `refresh`, `layout` (with `kind`: a mod or a Construct game), `tree`, `getFile`, batched `getFiles`, commit-guarded `putFile` / `deleteFile`, and `commitFiles` (many changes as one commit). While bound the repository is the working tree and every Studio save commits; the project's `files` are the server's mirror at `github.sha`. Never required. |
334
338
  | `client.udp` | UDP proxy subscriptions + spatial mutations (`sendActorUpdate`, `sendVoxelUpdate`, `sendAudioPacket`, `sendVideoPacket` / `sendVideoFrame`, `sendTextPacket`, `sendClientEvent`, `sendSingleActorMessage`, `sendChannelMessage`, `sendRangedChannelMessage`). |
335
339
  | `client.realtime` | Connection status, manual `connect()` / `disconnect()`, `onStatus()` listener. |
336
340
  | `client.refreshGameplayToken()` | Safely rotates an active game client's app token (see [Token refresh](#token-refresh-during-gameplay)). |
@@ -394,7 +398,7 @@ query AppForRouting($appId: BigInt!) {
394
398
  `CrowdyClient` with `httpUrl: gameApiUrl` (and the matching `wsUrl`) holding
395
399
  that app's app-scoped token, then drive gameplay through that client. Apps
396
400
  with no `gameApiUrl` keep working against the default `httpUrl` you
397
- configured. See [Loading an app's Game API](https://docs.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
401
+ configured. See [Loading an app's Game API](https://docs.dev.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
398
402
 
399
403
  ## Realtime notifications
400
404
 
@@ -830,7 +834,7 @@ reach your bundle. Reads are synchronous snapshots and writes happen on
830
834
  WebSocket events (not `requestAnimationFrame`), so render loops read freely
831
835
  and a backgrounded tab keeps ingesting updates; pass `workerTicker()` to also
832
836
  keep timer-driven sends at full rate while hidden. See the
833
- [World Stores guide](https://docs.crowdedkingdoms.com/crowdyjs/stores).
837
+ [World Stores guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/stores).
834
838
 
835
839
  ## Game Kit
836
840
 
@@ -908,7 +912,7 @@ The protocol is held to ck-exec's golden record of the starters
908
912
  (`test/unit/fixtures/kit-protocol.json`): every module call and topic in it is replayed in
909
913
  `test/unit/game-kit.test.mjs`. The blueprints, `kit.deploy`, the engines and the model-backed
910
914
  helpers went with the game model in 18.0.0; the hub modules replace them. See the
911
- [Game Kit docs](https://docs.crowdedkingdoms.com/game-kit/intro) and
915
+ [Game Kit docs](https://docs.dev.crowdedkingdoms.com/game-kit/intro) and
912
916
  [MIGRATION.md](MIGRATION.md).
913
917
 
914
918
  ## ck-exec
@@ -972,7 +976,7 @@ Integers above 2^53 decode as `number` and lose precision unless you pass
972
976
  `{ decode: { useBigInt64: true } }`. A call's whole numbers outside 32 bits (a timestamp in
973
977
  milliseconds, a player id) go out as 64-bit integers (18.11.0; before, as floats, which a
974
978
  hub's integer fields refuse). The wire format is in the
975
- [ck-exec docs](https://docs.crowdedkingdoms.com/exec/intro).
979
+ [ck-exec docs](https://docs.dev.crowdedkingdoms.com/exec/intro).
976
980
 
977
981
  ### A mod's CLIENT half
978
982
 
@@ -1043,7 +1047,7 @@ counts what was dropped); `invoke` sends at most 256 KiB each way and is refused
1043
1047
  module is not running. `NOT_FOUND` holds a CLIENT half back 15 s and `RATE_LIMITED` 60 s. The
1044
1048
  grid's owner is asked about their own CLIENT halves like anyone; answer yes in `confirm` when
1045
1049
  `prompt.authorId` is the player. See
1046
- [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves).
1050
+ [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves).
1047
1051
 
1048
1052
  ## Hosting a game on Crowdy Games
1049
1053
 
@@ -1162,8 +1166,8 @@ CLIENT project needs ck-api `v2.25.1` or later. A CLIENT crate still on the lega
1162
1166
  `mountCrowdyStudio` and the controller take `mods: client.exec`. Crowdy Studio runs nothing
1163
1167
  on legacy player compute since 18.0.0.
1164
1168
 
1165
- See [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.crowdedkingdoms.com/exec/mods)
1166
- and [Embed Crowdy Studio in your game](https://docs.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
1169
+ See [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.dev.crowdedkingdoms.com/exec/mods)
1170
+ and [Embed Crowdy Studio in your game](https://docs.dev.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
1167
1171
 
1168
1172
  ### The Studio agent (DeepSeek Harness in the browser)
1169
1173
 
@@ -1233,6 +1237,43 @@ its `sandbox="allow-scripts allow-same-origin"` does not isolate it from the
1233
1237
  page; that CSP is the control. See the
1234
1238
  [`@crowdedkingdoms/crowdy-dsh` README on npm](https://www.npmjs.com/package/@crowdedkingdoms/crowdy-dsh).
1235
1239
 
1240
+ ### The game editor (a Construct game's repository)
1241
+
1242
+ When the open project is bound to a game generated from the Construct
1243
+ template, the API reports it as such (`crowdyStudioGitHubLayout.kind ===
1244
+ 'CONSTRUCT_GAME'`) and Studio edits the game itself instead of mod crates,
1245
+ provided the host gives the controller a draft store:
1246
+
1247
+ ```ts
1248
+ import { GitHubDraftStore, IndexedDbDraftOverlayStorage } from '@crowdedkingdoms/crowdyjs/crowdy-studio';
1249
+
1250
+ const storage = new IndexedDbDraftOverlayStorage();
1251
+ const studio = createCrowdyStudioEmbed({
1252
+ // ...
1253
+ draftStore: ({ appId, projectId, githubSha }) =>
1254
+ new GitHubDraftStore({ transport: game.crowdyStudioGitHub, appId, projectId, baseCommitSha: githubSha, storage }),
1255
+ });
1256
+ // A Live code link names the project; open it first.
1257
+ studio.toggle({ gridId, targetPermissions, projectId });
1258
+ ```
1259
+
1260
+ The draft is the game's working copy until the player commits. Everything
1261
+ reads it: the Files pane (dirty files marked, discard per file), the editor,
1262
+ the agent (in game mode), and whatever the game hot-reloads from it. Versions
1263
+ are git blob ids, so an untouched file carries its GitHub blob id. The hosted
1264
+ store keeps edits in IndexedDB on the game's own origin and reads the bound
1265
+ branch through `crowdyStudioGitHub.tree` and `getFiles` (100 paths a call);
1266
+ **Commit** (or the agent's `commit_game_files`, which the player confirms in
1267
+ the pane) publishes the draft as ONE commit through `commitFiles`; an agent's
1268
+ commit carries exactly the files the player approved, and is refused as stale
1269
+ if one of them changed while they decided. When the
1270
+ branch moved meanwhile, the store rebases every edit that does not collide and
1271
+ lists the rest as conflicts the player settles (keep mine / take theirs). A
1272
+ game that runs a local dev server can implement `DraftStore` over its checkout
1273
+ instead. The page answers the agent's draft requests and its `preview_status`
1274
+ (through the host's `dshHost.previewStatus`), and boots the harness in game
1275
+ mode, rebooting it when the open project changes editor.
1276
+
1236
1277
  ## Errors
1237
1278
 
1238
1279
  Transport and protocol failures throw structured error classes:
@@ -1354,7 +1395,7 @@ no other repositories and no network access required:
1354
1395
  `src/generated/graphql-schema.ts`, the generated schema types.
1355
1396
 
1356
1397
  Schema refresh is explicit, from the published
1357
- [SDL](https://docs.crowdedkingdoms.com/schema/game-api.graphql):
1398
+ [SDL](https://docs.dev.crowdedkingdoms.com/schema/game-api.graphql):
1358
1399
 
1359
1400
  ```bash
1360
1401
  npm run schema:sync:prod
@@ -25,7 +25,7 @@
25
25
  */
26
26
  import type { CrowdyStudioController } from '../crowdy-studio/controller.js';
27
27
  import type { PlayerHostAdapterV1 } from '../player-host/types.js';
28
- import { type DshGridContext, type DshGridProgramStatus, type DshScreenshotResult } from './protocol.js';
28
+ import { type DshGridContext, type DshGridProgramStatus, type DshPreviewStatus, type DshScreenshotResult, type DshStudioMode } from './protocol.js';
29
29
  import type { CrowdyStudioDshTransport, CrowdyStudioModelCatalogEntry } from './transport.js';
30
30
  /** What the game supplies so the model can see and act. */
31
31
  export interface CrowdyStudioDshHost {
@@ -46,6 +46,28 @@ export interface CrowdyStudioDshHost {
46
46
  playerHost?: Pick<PlayerHostAdapterV1, 'observe'>;
47
47
  /** Recent `crowdy::log` lines from the CLIENT module and browser runtime errors. */
48
48
  clientLogs?(): readonly string[];
49
+ /**
50
+ * Where the game serves its playbook: markdown pages the agent reads with
51
+ * `read_playbook`, and `skills/index.json` naming the skills the game offers
52
+ * in the game editor (`[{ name, description, page }]`). Relative values
53
+ * resolve against this page. Omit when the game ships none.
54
+ */
55
+ playbookBase?: string;
56
+ /**
57
+ * Game editor: whether the world took the draft. Resolves with the result of
58
+ * the remount for `afterRevision` (or the latest), waiting up to `timeoutMs`.
59
+ * Omit when the game cannot report it; `preview_status` then says so.
60
+ */
61
+ previewStatus?(input: {
62
+ afterRevision?: number;
63
+ timeoutMs: number;
64
+ }): Promise<DshPreviewStatus>;
65
+ /**
66
+ * Ask ck-api whether this player may draft or deploy live. The API refuses
67
+ * when Allow Live Modding is off. Omit and the dock's deploy is not gated
68
+ * here; the construct supplies it.
69
+ */
70
+ authorizeLiveModding?(action: 'draft_test' | 'deploy_live'): Promise<void>;
49
71
  /**
50
72
  * Grid capability (bridge v4, DN-10). With it the agent can read the grid
51
73
  * the open project is bound to and run a JS grid program from a project
@@ -78,6 +100,12 @@ export interface StudioDshBridgeOptions {
78
100
  getToken(): string | null;
79
101
  /** GraphQL endpoint the harness reads/writes project files through. */
80
102
  graphqlUrl: string;
103
+ /**
104
+ * Force the editor the harness boots. Omitted, the bridge follows the
105
+ * controller: `game` when the open project is a Construct game with a draft
106
+ * store (`repositoryMode`), `mod` otherwise.
107
+ */
108
+ studioMode?: DshStudioMode;
81
109
  host?: CrowdyStudioDshHost;
82
110
  /** Longest screenshot side, in pixels. */
83
111
  maxCaptureSide?: number;
@@ -92,11 +120,27 @@ export interface StudioDshBridgeOptions {
92
120
  projectName: string;
93
121
  mode: 'draft' | 'live';
94
122
  }): Promise<boolean>;
95
- /** Called when the worker changed a project file, after the controller reloaded. */
123
+ /**
124
+ * Ask the player, on the page, whether the agent may commit the draft: the
125
+ * files and the agent's message. Resolves `true` to commit. Without it
126
+ * `draft.commit` is refused, for the same reason as a live deploy: the
127
+ * approval inside the harness UI is not visible to the page.
128
+ */
129
+ confirmCommit?(summary: {
130
+ projectName: string;
131
+ message: string;
132
+ files: string[];
133
+ deleted: string[];
134
+ }): Promise<boolean>;
135
+ /** Called when the worker changed a project file (mod editor), after the controller reloaded. */
96
136
  onFileChanged?(change: {
97
137
  target: 'SERVER' | 'CLIENT';
98
138
  path: string;
99
139
  }): void;
140
+ /** Called after the agent changed the game draft. */
141
+ onDraftChanged?(change: {
142
+ paths: string[];
143
+ }): void;
100
144
  onWarning?(message: string): void;
101
145
  onStatus?(status: StudioDshBridgeStatus): void;
102
146
  }
@@ -139,8 +183,20 @@ export declare class StudioDshBridge {
139
183
  private status;
140
184
  /** One live-deploy question at a time: a second request must not replace the first prompt. */
141
185
  private liveDeployPending;
186
+ /** One commit question at a time, for the same reason. */
187
+ private commitPending;
188
+ /** The editor this boot mounted; fixed until the harness reboots. */
189
+ private mode;
190
+ /** The draft store whose changes are forwarded as `page.draftChanged`. */
191
+ private watchedDraft;
192
+ private draftUnsubscribe;
193
+ private skills;
142
194
  constructor(options: StudioDshBridgeOptions);
143
195
  get currentStatus(): StudioDshBridgeStatus;
196
+ /** The editor the harness was booted with (`game` edits the bound Construct game). */
197
+ get studioMode(): DshStudioMode;
198
+ /** The editor the controller wants now; differs from {@link studioMode} when the harness must reboot. */
199
+ desiredStudioMode(): DshStudioMode;
144
200
  /** The models the harness was booted with. */
145
201
  get catalog(): readonly CrowdyStudioModelCatalogEntry[];
146
202
  /**
@@ -162,6 +218,11 @@ export declare class StudioDshBridge {
162
218
  /** Re-send the token (the page refreshed it). */
163
219
  tokenChanged(): void;
164
220
  private bootMessage;
221
+ /**
222
+ * Sessions of the two editors never share a store: a game session restored
223
+ * into a mod boot would talk about files and tools that are not there.
224
+ */
225
+ private persistScope;
165
226
  private openChannel;
166
227
  private hello;
167
228
  private emit;
@@ -170,13 +231,21 @@ export declare class StudioDshBridge {
170
231
  private handle;
171
232
  private onWorkerEvent;
172
233
  private dispatch;
234
+ private requireDraft;
235
+ /** The commit gate: the player sees the files and the agent's message, and says yes on the page. */
236
+ private commitDraft;
237
+ /** The skills the game offers in the game editor, from `<playbookBase>skills/index.json`. */
238
+ private listSkills;
239
+ private readPlaybook;
173
240
  private gridHost;
174
241
  private build;
175
242
  private runtimeStatus;
176
243
  private screenshot;
177
244
  private watchController;
245
+ /** Forward every change of the open game draft, the agent's own writes included. */
246
+ private watchDraft;
178
247
  private setStatus;
179
248
  }
180
249
  /** Render the harness settings that point its native adapter at the metered endpoint. */
181
- export declare function renderSettingsYaml(modelBaseUrl: string, models: readonly CrowdyStudioModelCatalogEntry[]): string;
250
+ export declare function renderSettingsYaml(modelBaseUrl: string, models: readonly CrowdyStudioModelCatalogEntry[], mode?: DshStudioMode): string;
182
251
  //# sourceMappingURL=bridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge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