@cursor/july 0.1.45 → 0.1.47

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 (149) hide show
  1. package/AGENTS.md +4 -2
  2. package/README.md +3 -1
  3. package/dist/channels/github/api.d.ts +25 -0
  4. package/dist/channels/github/api.d.ts.map +1 -1
  5. package/dist/channels/github/api.js +48 -0
  6. package/dist/channels/github/cursor-account.d.ts +7 -0
  7. package/dist/channels/github/cursor-account.d.ts.map +1 -1
  8. package/dist/channels/github/cursor-account.js +18 -0
  9. package/dist/channels/github/defaults.d.ts +1 -1
  10. package/dist/channels/github/defaults.js +1 -1
  11. package/dist/channels/github/github-channel.d.ts.map +1 -1
  12. package/dist/channels/github/github-channel.js +2 -2
  13. package/dist/channels/github/progress.d.ts +6 -5
  14. package/dist/channels/github/progress.d.ts.map +1 -1
  15. package/dist/channels/github/progress.js +58 -16
  16. package/dist/channels/github/state.d.ts +11 -0
  17. package/dist/channels/github/state.d.ts.map +1 -1
  18. package/dist/channels/github/state.js +1 -1
  19. package/dist/channels/github/types.d.ts +3 -3
  20. package/dist/docs/404.html +2 -2
  21. package/dist/docs/ab.html +3 -3
  22. package/dist/docs/assets/{app.fHnNXEJ6.js → app.IEXEim5m.js} +1 -1
  23. package/dist/docs/assets/chunks/@localSearchIndexroot.D7w61u6Y.js +1 -0
  24. package/dist/docs/assets/chunks/{VPLocalSearchBox.Cf6ghfFY.js → VPLocalSearchBox.78s6nqsH.js} +1 -1
  25. package/dist/docs/assets/chunks/{theme.B_5-VLe8.js → theme.DroGdz_Q.js} +2 -2
  26. package/dist/docs/assets/{guides_github.md.DSg0j9qj.js → guides_github.md.B8QKtIpw.js} +7 -6
  27. package/dist/docs/assets/{guides_github.md.DSg0j9qj.lean.js → guides_github.md.B8QKtIpw.lean.js} +1 -1
  28. package/dist/docs/assets/{reference_agent-config.md.XRpxctsA.js → reference_agent-config.md.DHkkvcEZ.js} +4 -4
  29. package/dist/docs/assets/{reference_agent-config.md.XRpxctsA.lean.js → reference_agent-config.md.DHkkvcEZ.lean.js} +1 -1
  30. package/dist/docs/assets/{reference_hooks.md.4cbRRIIu.js → reference_hooks.md.DJE5DXcT.js} +1 -1
  31. package/dist/docs/assets/{storage.md.DcGSnIxX.js → storage.md.CJYd5YmN.js} +2 -2
  32. package/dist/docs/assets/{storage.md.DcGSnIxX.lean.js → storage.md.CJYd5YmN.lean.js} +1 -1
  33. package/dist/docs/building-with-agents.html +3 -3
  34. package/dist/docs/concepts.html +3 -3
  35. package/dist/docs/deployment.html +3 -3
  36. package/dist/docs/evals.html +3 -3
  37. package/dist/docs/example-agents/approval-buddy.html +3 -3
  38. package/dist/docs/example-agents/benny.html +3 -3
  39. package/dist/docs/example-agents/bugbot.html +3 -3
  40. package/dist/docs/example-agents/codebase-wiki.html +3 -3
  41. package/dist/docs/example-agents/codeowners-review.html +3 -3
  42. package/dist/docs/example-agents/concierge.html +3 -3
  43. package/dist/docs/example-agents/fsd.html +3 -3
  44. package/dist/docs/example-agents/index.html +3 -3
  45. package/dist/docs/example-agents/knowledge-base.html +3 -3
  46. package/dist/docs/example-agents/oncall.html +3 -3
  47. package/dist/docs/example-agents/security-reviewer.html +3 -3
  48. package/dist/docs/example-agents/slack-agent.html +3 -3
  49. package/dist/docs/example-agents/weather-agent.html +3 -3
  50. package/dist/docs/guides/agent-to-agent.html +3 -3
  51. package/dist/docs/guides/cloud-runtime.html +3 -3
  52. package/dist/docs/guides/github.html +10 -9
  53. package/dist/docs/guides/human-in-the-loop.html +3 -3
  54. package/dist/docs/guides/mcp-oauth.html +3 -3
  55. package/dist/docs/guides/opentelemetry.html +3 -3
  56. package/dist/docs/guides/slack.html +3 -3
  57. package/dist/docs/guides/webhooks.html +3 -3
  58. package/dist/docs/hashmap.json +1 -1
  59. package/dist/docs/hillclimbing.html +3 -3
  60. package/dist/docs/index.html +3 -3
  61. package/dist/docs/quickstart.html +3 -3
  62. package/dist/docs/reference/agent-config.html +6 -6
  63. package/dist/docs/reference/artifacts.html +3 -3
  64. package/dist/docs/reference/channels.html +3 -3
  65. package/dist/docs/reference/cli.html +3 -3
  66. package/dist/docs/reference/connections.html +3 -3
  67. package/dist/docs/reference/hooks.html +5 -5
  68. package/dist/docs/reference/http-api.html +3 -3
  69. package/dist/docs/reference/instructions.html +3 -3
  70. package/dist/docs/reference/playground.html +3 -3
  71. package/dist/docs/reference/project-layout.html +3 -3
  72. package/dist/docs/reference/prompt.html +3 -3
  73. package/dist/docs/reference/schedules.html +3 -3
  74. package/dist/docs/reference/sessions.html +3 -3
  75. package/dist/docs/reference/skills.html +3 -3
  76. package/dist/docs/reference/subagents.html +3 -3
  77. package/dist/docs/reference/tools.html +3 -3
  78. package/dist/docs/scaffolding-agents.html +3 -3
  79. package/dist/docs/storage.html +5 -5
  80. package/dist/docs/templates/triage.html +3 -3
  81. package/dist/docs/troubleshooting.html +3 -3
  82. package/dist/index.d.ts +1 -1
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +1 -1
  85. package/dist/internal/auth.d.ts +4 -0
  86. package/dist/internal/auth.d.ts.map +1 -1
  87. package/dist/internal/auth.js +7 -0
  88. package/dist/internal/durable-session-store.d.ts +35 -23
  89. package/dist/internal/durable-session-store.d.ts.map +1 -1
  90. package/dist/internal/durable-session-store.js +71 -26
  91. package/dist/internal/ledger-serving.d.ts +135 -67
  92. package/dist/internal/ledger-serving.d.ts.map +1 -1
  93. package/dist/internal/ledger-serving.js +326 -107
  94. package/dist/internal/sdk-runner.d.ts +21 -0
  95. package/dist/internal/sdk-runner.d.ts.map +1 -1
  96. package/dist/internal/sdk-runner.js +34 -1
  97. package/dist/internal/server.d.ts.map +1 -1
  98. package/dist/internal/server.js +9 -4
  99. package/dist/internal/session-engine.d.ts +18 -17
  100. package/dist/internal/session-engine.d.ts.map +1 -1
  101. package/dist/internal/session-engine.js +60 -27
  102. package/dist/kv/memory-kv.d.ts +8 -0
  103. package/dist/kv/memory-kv.d.ts.map +1 -1
  104. package/dist/kv/memory-kv.js +8 -0
  105. package/dist/ledger/janitor.d.ts +60 -0
  106. package/dist/ledger/janitor.d.ts.map +1 -0
  107. package/dist/ledger/janitor.js +137 -0
  108. package/dist/ledger/session-ledger.d.ts +132 -43
  109. package/dist/ledger/session-ledger.d.ts.map +1 -1
  110. package/dist/ledger/session-ledger.js +282 -50
  111. package/dist/ledger.d.ts +9 -8
  112. package/dist/ledger.d.ts.map +1 -1
  113. package/dist/ledger.js +7 -7
  114. package/dist/playground/assets/{index-Dces8BDp.js → index-BgUHfe3L.js} +32 -32
  115. package/dist/playground/assets/index-uFaeqVZS.css +1 -0
  116. package/dist/playground/index.html +2 -2
  117. package/dist/storage-backends/cursor-hosted.d.ts +5 -0
  118. package/dist/storage-backends/cursor-hosted.d.ts.map +1 -1
  119. package/dist/storage-backends/cursor-hosted.js +6 -0
  120. package/dist/types.d.ts +19 -8
  121. package/dist/types.d.ts.map +1 -1
  122. package/docs/guides/github.md +23 -18
  123. package/docs/reference/agent-config.md +31 -36
  124. package/docs/reference/hooks.md +1 -1
  125. package/docs/storage.md +26 -9
  126. package/package.json +1 -1
  127. package/src/channels/github/api.ts +122 -0
  128. package/src/channels/github/cursor-account.ts +23 -0
  129. package/src/channels/github/defaults.ts +1 -1
  130. package/src/channels/github/github-channel.ts +5 -1
  131. package/src/channels/github/progress.ts +84 -19
  132. package/src/channels/github/state.ts +14 -0
  133. package/src/channels/github/types.ts +3 -3
  134. package/src/index.ts +1 -0
  135. package/src/internal/auth.ts +10 -0
  136. package/src/internal/durable-session-store.ts +66 -27
  137. package/src/internal/ledger-serving.ts +439 -148
  138. package/src/internal/sdk-runner.ts +46 -1
  139. package/src/internal/server.ts +17 -3
  140. package/src/internal/session-engine.ts +95 -37
  141. package/src/kv/memory-kv.ts +8 -0
  142. package/src/ledger/janitor.ts +193 -0
  143. package/src/ledger/session-ledger.ts +372 -68
  144. package/src/ledger.ts +21 -6
  145. package/src/storage-backends/cursor-hosted.ts +17 -2
  146. package/src/types.ts +19 -8
  147. package/dist/docs/assets/chunks/@localSearchIndexroot.BMT0xM4I.js +0 -1
  148. package/dist/playground/assets/index-CZH9EFvO.css +0 -1
  149. /package/dist/docs/assets/{reference_hooks.md.4cbRRIIu.lean.js → reference_hooks.md.DJE5DXcT.lean.js} +0 -0
@@ -1,100 +1,168 @@
1
1
  /**
2
- * Ledger-mode serving seam (`serving: "ledger"` on `defineAgent`):
3
- * coordination only, no inbox. Every engine `send` acquires the session
4
- * lease before its turn runs and commits (head+1, lease released) after
5
- * it completes, so cross-pod mutual exclusion, generation fencing, and
6
- * the committed head sequence are real.
2
+ * Ledger-mode serving seam (`serving: "ledger"` on `defineAgent`): an event
3
+ * pump that routes every engine `send` through the KV session ledger
4
+ * instead of starting turns directly.
7
5
  *
8
- * **Durability trade-off (deliberate):** there is no durable mailbox.
9
- * An event that arrives while the lease is held does NOT park in the
10
- * store the delivering pod waits *in-process*: local concurrent sends
11
- * serialize on a per-session promise chain (no claim spinning), and a
12
- * lease held by another pod is waited out with bounded claim retries. A
13
- * crash therefore loses the in-flight event exactly as resident serving
14
- * does. A dead pod's lease simply expires (~30s TTL); the next delivery
15
- * claims at generation+1 no janitor is needed because nothing is
16
- * parked.
6
+ * Delivery: ensureSession (continuation key, as today) principal gate
7
+ * (an existing session rejects a sender that is not its principal BEFORE
8
+ * anything is parked; mirrors the resident `samePrincipal` check)
9
+ * appendEvent (payload + CAS the source ack point moves after this)
10
+ * claim drain run the drained turns through the resident engine path →
11
+ * commit (heartbeats while turns run) repeat while the commit reports
12
+ * pending. A deliver that finds the lease held walks away (the holder's
13
+ * commit sees the append); the janitor recovers sessions whose holder
14
+ * died. A foreign-principal envelope that reaches the mailbox anyway is
15
+ * consumed and committed away at drain (warn log), never replayed.
17
16
  *
18
- * Re-entrancy caveat (same shape as resident `waitForCompletion`): a
19
- * send issued from *inside* a running turn against the same session
20
- * chains behind that turn's serve, so awaiting its resolution from the
21
- * turn would deadlock. Fire-and-forget such sends.
17
+ * v1 scope: the mailbox envelope carries `message`, `auth`, `title`,
18
+ * `state`, `mode`, `purpose`, and the isolation-relevant per-send
19
+ * overrides `workspaceDir` and `cloud` the two options
20
+ * `resolveSessionRuntime` and harness-cwd selection read. Dropping
21
+ * those is a sandbox escape, not a feature gap: without them a drained
22
+ * GitHub/Slack turn falls back to the local runtime with the default
23
+ * harness cwd, so untrusted channel content drives tools on the serve
24
+ * host instead of the cloud VM / channel worktree. `coalesceSourceTs`
25
+ * (when present) is used as the drain-ordering `sourceTs`. Deferred
26
+ * (documented, not silently faked — deliver logs a warning naming what
27
+ * it dropped): `workspaceFiles` and per-turn `images` (content
28
+ * injection, and their base64 payloads can blow the mailbox blob past
29
+ * hosted KV value caps), `sdkAgentId` seeding, and `admission`
30
+ * semantics (both `"preempt"` and Slack `"coalesce"` nudge bookkeeping
31
+ * — ledger draining already serializes turns, but nothing is
32
+ * interrupted or coalesced through the mailbox).
22
33
  */
23
34
  import type { SessionLedger } from "../ledger/session-ledger.js";
24
- import type { ChannelSession, SendMessageOptions } from "../types.js";
25
- /** Wait between claim retries while another holder has the lease. */
26
- export declare const CLAIM_RETRY_DELAY_MS = 250;
27
- /**
28
- * Give up waiting for the lease after this long — two full lease TTLs,
29
- * so a dead holder's expiry (~30s) is always survived with margin.
30
- */
31
- export declare const CLAIM_WAIT_TIMEOUT_MS: number;
32
- /** The `send` options a ledger delivery carries to the resident turn. */
33
- export type LedgerDeliverOptions = SendMessageOptions & {
34
- mode?: "chat" | "task";
35
- };
36
- /** One delivery handed back to the engine's resident path. */
37
- export interface LedgerTurnRequest {
35
+ import type { AgentCloudOptions, AuthContext, ChannelSession, JsonValue, SendMessageOptions, SessionPurpose } from "../types.js";
36
+ /** The JSON payload stored in `mailbox/<sessionId>/<eventId>`. */
37
+ export interface LedgerDeliveryEnvelope {
38
38
  channelId: string;
39
39
  continuationToken: string;
40
40
  message: string;
41
- options: LedgerDeliverOptions;
41
+ auth: AuthContext | null;
42
+ title?: string;
43
+ state?: JsonValue;
44
+ mode?: "chat" | "task";
45
+ purpose?: SessionPurpose;
46
+ /**
47
+ * Isolation-relevant per-send overrides, reapplied on the resident
48
+ * send at drain. Absent on envelopes parked by earlier builds — the
49
+ * drain then behaves as those builds did (agent-default runtime/cwd).
50
+ */
51
+ workspaceDir?: string;
52
+ cloud?: AgentCloudOptions;
42
53
  }
54
+ /** The `send` options the envelope can carry through the mailbox. */
55
+ export type LedgerDeliverOptions = SendMessageOptions & {
56
+ mode?: "chat" | "task";
57
+ };
43
58
  export interface LedgerServingOptions {
44
59
  ledger: SessionLedger;
45
60
  /**
46
- * Run one delivery as a resident-path turn (the engine's `send` with
47
- * the internal ledger-delivery flag). Must resolve once the turn is
48
- * admitted; the pump awaits `waitForCompletion` itself.
61
+ * Run one drained event as a resident-path turn (the engine's `send`
62
+ * with the internal `fromLedgerPump` flag). Must resolve once the turn
63
+ * is admitted; the pump awaits `waitForCompletion` itself.
49
64
  */
50
- deliverTurn: (request: LedgerTurnRequest) => Promise<ChannelSession>;
65
+ deliverTurn: (envelope: LedgerDeliveryEnvelope) => Promise<ChannelSession>;
66
+ /** Engine continuation lookup (local index + lazy storage restore). */
67
+ findSession: (channelId: string, continuationToken: string) => Promise<ChannelSession | undefined>;
51
68
  logger?: (line: string) => void;
52
- /** Lease heartbeat cadence while the turn runs (default 10s). */
69
+ /** Lease heartbeat cadence while turns run (default 10s). */
53
70
  heartbeatIntervalMs?: number;
54
- /** Claim retry cadence while the lease is held (default 250ms). */
55
- claimRetryDelayMs?: number;
56
- /** Give-up bound for lease waiting (default 2× lease TTL). */
57
- claimWaitTimeoutMs?: number;
71
+ /** Janitor scan cadence (default `DEFAULT_JANITOR_INTERVAL_MS`). */
72
+ janitorIntervalMs?: number;
58
73
  clock?: () => number;
59
- /** Injectable wait (tests use short real delays; keep them tiny). */
60
- sleep?: (ms: number) => Promise<void>;
61
74
  }
62
75
  export declare class LedgerServing {
63
76
  private readonly ledger;
64
77
  private readonly deliverTurn;
78
+ private readonly findSession;
65
79
  private readonly logger;
66
80
  private readonly heartbeatIntervalMs;
67
- private readonly claimRetryDelayMs;
68
- private readonly claimWaitTimeoutMs;
69
81
  private readonly clock;
70
- private readonly sleep;
71
- /**
72
- * Per-ledger-session in-process serialization: local concurrent sends
73
- * queue here instead of spinning claim retries against our own lease.
74
- */
75
- private readonly chains;
82
+ private readonly janitor;
83
+ /** One pump per ledger session — the in-process face of the lease. */
84
+ private readonly pumps;
85
+ /** Fire-and-forget re-pump checks, awaited on close. */
86
+ private readonly background;
76
87
  constructor(options: LedgerServingOptions);
77
- /** Settle every queued and in-flight delivery. */
88
+ /** Start the janitor loop (recovers expired-lease sessions). */
89
+ start(): void;
90
+ /** Stop the janitor and settle in-flight pumps and re-pump checks. */
78
91
  close(): Promise<void>;
79
92
  /**
80
- * Ledger-mode `send`: resolve the session identity, wait for the
81
- * lease (in-process queue first, then cross-pod claim retries), run
82
- * the turn, commit. Resolves with the engine session handle after the
83
- * commit released the lease.
93
+ * Ledger-mode `send`: append the message to the session mailbox, then
94
+ * serve pending events (or walk away if another holder is already
95
+ * serving them). Resolves with the engine session handle once one
96
+ * exists the ack point is the durable append, not turn completion —
97
+ * so HTTP create/follow-up can return a session id while the holder is
98
+ * still in flight. When this process wins the claim, the pump keeps
99
+ * draining in the background; callers that need the turn to finish use
100
+ * `waitForCompletion` (and the lease releases on the pump's commit).
101
+ * When another holder is serving the session and no engine session
102
+ * exists on this pod, the delivery is still a success — the event is
103
+ * durably parked and the holder's commit (or the janitor) drains it —
104
+ * so the resolved handle is a parked stand-in carrying the durable
105
+ * session identity.
84
106
  */
85
107
  deliver(channelId: string, message: string, options: LedgerDeliverOptions): Promise<ChannelSession>;
86
- /** Chain a delivery behind the session's in-flight ones. */
87
- private enqueue;
88
- /** claim (waiting) → resident turn → commit-release. */
89
- private serveOne;
90
108
  /**
91
- * Claim the lease, waiting out another holder with bounded retries.
92
- * The common waits are short: our own pod's deliveries never reach
93
- * here concurrently (the in-process chain serializes them), so a held
94
- * lease means another pod is serving usually for one turn or died
95
- * (expiry unblocks us at ~30s).
109
+ * The stand-in handle for a delivery whose event is parked while
110
+ * another holder serves the session: real durable identity, no local
111
+ * turn. `waitForCompletion` resolves immediately the parked event's
112
+ * turn runs on the holder, so there is nothing local to await (the
113
+ * same contract as a coalesced send, whose outcome is not its own
114
+ * message's turn). The event stream and re-keying live wherever the
115
+ * turn runs, so both fail loudly here.
116
+ */
117
+ private parkedSession;
118
+ /**
119
+ * Return a handle as soon as the engine session exists, without waiting
120
+ * for the pump to commit. If the pump settles without creating a
121
+ * session (walk-away, or a throw before admit), surface that: rethrow
122
+ * a failed claimant turn, otherwise the parked stand-in.
123
+ */
124
+ private resolveDeliverHandle;
125
+ /**
126
+ * Drain ordering: prefer the real source time over this pod's receipt
127
+ * time. `coalesceSourceTs` is a Slack-style seconds string
128
+ * (`"1712345678.000100"`); normalize sub-epoch-ms values to ms so they
129
+ * stay comparable with the `Date.now()` fallback.
130
+ */
131
+ private resolveSourceTs;
132
+ /**
133
+ * One warning per delivery naming the send options the mailbox does not
134
+ * replay — better a loud line than an author silently losing images or
135
+ * admission semantics on a ledger-mode agent.
136
+ */
137
+ private warnOnDroppedOptions;
138
+ /**
139
+ * Serve a session's pending events. When a pump is already running the
140
+ * caller walks away (the holder's commit re-reads pending) — except
141
+ * that the holder's *final* commit may have released before this
142
+ * append landed, so a re-check is chained behind it. Deliver never
143
+ * awaits this promise for its full lifetime: awaiting a new pump would
144
+ * block HTTP until the turn committed, and awaiting a running pump
145
+ * would deadlock a send issued from inside one of its turns.
146
+ */
147
+ private servePending;
148
+ /** Claim-or-defer entry used after an append and after a pump settles. */
149
+ private runPump;
150
+ /** Janitor hand-off: the claim already happened, just run the turns. */
151
+ private serveClaimed;
152
+ /**
153
+ * Re-pump after the previous holder settled, covering the release window
154
+ * where an append landed after that holder's final commit.
155
+ */
156
+ private repumpIfPending;
157
+ /** Register a pump in the per-session map for its lifetime. */
158
+ private track;
159
+ /**
160
+ * The drain → turn → commit loop for a held lease. Heartbeats extend the
161
+ * lease while turns run; a fenced heartbeat (or fenced commit) means a
162
+ * new holder took over — discard without committing; the new holder
163
+ * re-drains (at-least-once actuation, exactly-once ledger apply).
96
164
  */
97
- private claimWithWait;
165
+ private runClaimedTurns;
98
166
  }
99
167
  /** Mint the lease holder id for this process. */
100
168
  export declare function newLedgerPodId(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"ledger-serving.d.ts","sourceRoot":"","sources":["../../src/internal/ledger-serving.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMjE,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtE,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAyB,CAAC;AAE9D,yEAAyE;AACzE,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,aAAa,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IACrE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC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