@ampersend_ai/ampersend-sdk 0.0.22 → 0.0.26

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 (119) hide show
  1. package/dist/ampersend/agent-client.d.ts +81 -0
  2. package/dist/ampersend/agent-client.d.ts.map +1 -0
  3. package/dist/ampersend/agent-client.js +104 -0
  4. package/dist/ampersend/agent-client.js.map +1 -0
  5. package/dist/ampersend/agent.d.ts +118 -0
  6. package/dist/ampersend/agent.d.ts.map +1 -0
  7. package/dist/ampersend/agent.js +109 -0
  8. package/dist/ampersend/agent.js.map +1 -0
  9. package/dist/ampersend/approval.js.map +1 -1
  10. package/dist/ampersend/client.d.ts +32 -8
  11. package/dist/ampersend/client.d.ts.map +1 -1
  12. package/dist/ampersend/client.js +81 -3
  13. package/dist/ampersend/client.js.map +1 -1
  14. package/dist/ampersend/curated-agent.d.ts +94 -94
  15. package/dist/ampersend/curated-agent.d.ts.map +1 -1
  16. package/dist/ampersend/curated-agent.js +41 -41
  17. package/dist/ampersend/curated-agent.js.map +1 -1
  18. package/dist/ampersend/index.d.ts +2 -0
  19. package/dist/ampersend/index.d.ts.map +1 -1
  20. package/dist/ampersend/index.js +4 -0
  21. package/dist/ampersend/index.js.map +1 -1
  22. package/dist/ampersend/management.d.ts +23 -59
  23. package/dist/ampersend/management.d.ts.map +1 -1
  24. package/dist/ampersend/management.js +6 -8
  25. package/dist/ampersend/management.js.map +1 -1
  26. package/dist/ampersend/marketplace.d.ts +20 -14
  27. package/dist/ampersend/marketplace.d.ts.map +1 -1
  28. package/dist/ampersend/marketplace.js +23 -49
  29. package/dist/ampersend/marketplace.js.map +1 -1
  30. package/dist/ampersend/treasurer.d.ts +4 -0
  31. package/dist/ampersend/treasurer.d.ts.map +1 -1
  32. package/dist/ampersend/treasurer.js +2 -2
  33. package/dist/ampersend/treasurer.js.map +1 -1
  34. package/dist/ampersend/types.d.ts +215 -310
  35. package/dist/ampersend/types.d.ts.map +1 -1
  36. package/dist/ampersend/types.js +146 -119
  37. package/dist/ampersend/types.js.map +1 -1
  38. package/dist/ampersend/zod-bridge.d.ts +4 -5
  39. package/dist/ampersend/zod-bridge.d.ts.map +1 -1
  40. package/dist/ampersend/zod-bridge.js +35 -19
  41. package/dist/ampersend/zod-bridge.js.map +1 -1
  42. package/dist/cli/ampersend.js +45 -2
  43. package/dist/cli/ampersend.js.map +1 -1
  44. package/dist/cli/commands/agent.d.ts +24 -0
  45. package/dist/cli/commands/agent.d.ts.map +1 -0
  46. package/dist/cli/commands/agent.js +166 -0
  47. package/dist/cli/commands/agent.js.map +1 -0
  48. package/dist/cli/commands/card.d.ts +128 -0
  49. package/dist/cli/commands/card.d.ts.map +1 -0
  50. package/dist/cli/commands/card.js +404 -0
  51. package/dist/cli/commands/card.js.map +1 -0
  52. package/dist/cli/commands/config.d.ts +1 -1
  53. package/dist/cli/commands/config.d.ts.map +1 -1
  54. package/dist/cli/commands/config.js +31 -42
  55. package/dist/cli/commands/config.js.map +1 -1
  56. package/dist/cli/commands/fetch.d.ts +77 -2
  57. package/dist/cli/commands/fetch.d.ts.map +1 -1
  58. package/dist/cli/commands/fetch.js +210 -129
  59. package/dist/cli/commands/fetch.js.map +1 -1
  60. package/dist/cli/commands/fund.d.ts +3 -0
  61. package/dist/cli/commands/fund.d.ts.map +1 -0
  62. package/dist/cli/commands/fund.js +22 -0
  63. package/dist/cli/commands/fund.js.map +1 -0
  64. package/dist/cli/commands/marketplace.d.ts +6 -0
  65. package/dist/cli/commands/marketplace.d.ts.map +1 -1
  66. package/dist/cli/commands/marketplace.js +27 -8
  67. package/dist/cli/commands/marketplace.js.map +1 -1
  68. package/dist/cli/commands/setup.d.ts +4 -1
  69. package/dist/cli/commands/setup.d.ts.map +1 -1
  70. package/dist/cli/commands/setup.js +66 -41
  71. package/dist/cli/commands/setup.js.map +1 -1
  72. package/dist/cli/commands/version.d.ts +3 -0
  73. package/dist/cli/commands/version.d.ts.map +1 -0
  74. package/dist/cli/commands/version.js +12 -0
  75. package/dist/cli/commands/version.js.map +1 -0
  76. package/dist/cli/config.d.ts +225 -45
  77. package/dist/cli/config.d.ts.map +1 -1
  78. package/dist/cli/config.js +426 -115
  79. package/dist/cli/config.js.map +1 -1
  80. package/dist/index.d.ts +2 -0
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +1 -0
  83. package/dist/index.js.map +1 -1
  84. package/dist/mcp/proxy/cli.js +1 -0
  85. package/dist/mcp/proxy/cli.js.map +1 -1
  86. package/dist/mcp/proxy/factory.d.ts +2 -0
  87. package/dist/mcp/proxy/factory.d.ts.map +1 -1
  88. package/dist/mcp/proxy/factory.js +10 -1
  89. package/dist/mcp/proxy/factory.js.map +1 -1
  90. package/dist/mcp/proxy/server/init.js +1 -1
  91. package/dist/mcp/proxy/server/init.js.map +1 -1
  92. package/dist/mcp/proxy/server/server.d.ts +3 -1
  93. package/dist/mcp/proxy/server/server.d.ts.map +1 -1
  94. package/dist/mcp/proxy/server/server.js +5 -2
  95. package/dist/mcp/proxy/server/server.js.map +1 -1
  96. package/dist/mcp/proxy/types.d.ts +7 -0
  97. package/dist/mcp/proxy/types.d.ts.map +1 -1
  98. package/dist/mcp/proxy/types.js.map +1 -1
  99. package/dist/version.d.ts +3 -1
  100. package/dist/version.d.ts.map +1 -1
  101. package/dist/version.js +3 -1
  102. package/dist/version.js.map +1 -1
  103. package/dist/x402/http/factory.d.ts +2 -0
  104. package/dist/x402/http/factory.d.ts.map +1 -1
  105. package/dist/x402/http/factory.js +1 -0
  106. package/dist/x402/http/factory.js.map +1 -1
  107. package/dist/x402/index.d.ts +2 -0
  108. package/dist/x402/index.d.ts.map +1 -1
  109. package/dist/x402/index.js +2 -0
  110. package/dist/x402/index.js.map +1 -1
  111. package/dist/x402/siwx.d.ts +55 -0
  112. package/dist/x402/siwx.d.ts.map +1 -0
  113. package/dist/x402/siwx.js +122 -0
  114. package/dist/x402/siwx.js.map +1 -0
  115. package/dist/x402/wallets/smart-account/cosigned.d.ts +9 -2
  116. package/dist/x402/wallets/smart-account/cosigned.d.ts.map +1 -1
  117. package/dist/x402/wallets/smart-account/cosigned.js +13 -4
  118. package/dist/x402/wallets/smart-account/cosigned.js.map +1 -1
  119. package/package.json +3 -2
@@ -1,94 +1,276 @@
1
+ import { Schema } from "effect";
1
2
  import { type ConfigStatus, type JsonEnvelope } from "./envelope.ts";
3
+ /**
4
+ * Resolved credentials for an authenticated command. Tries env vars first
5
+ * (so a deploy can override without touching the local config file), then
6
+ * the active context in the config file written by `setup` / `config set`.
7
+ */
8
+ export interface ResolvedCredentials {
9
+ agentAccount: `0x${string}`;
10
+ agentKey: `0x${string}`;
11
+ apiUrl?: string;
12
+ }
13
+ /**
14
+ * Shared by every CLI command that needs to talk to the API as an agent.
15
+ * Returns an `err` envelope when the local config isn't ready, so the
16
+ * caller can print it and exit.
17
+ */
18
+ export declare function loadCredentials(opts?: ContextSelector): {
19
+ ok: true;
20
+ credentials: ResolvedCredentials;
21
+ } | {
22
+ ok: false;
23
+ error: JsonEnvelope<never>;
24
+ };
2
25
  export declare const CONFIG_FILE: string;
3
26
  export type { ConfigStatus };
4
27
  /** Default API URL (production) */
5
28
  export declare const DEFAULT_API_URL = "https://api.ampersend.ai";
6
- /** Pending approval stored in config */
29
+ /**
30
+ * Cached Laso Bearer token for `card details`/`list`, so a warm read costs
31
+ * nothing. Stamped with the identity (`agentKey`) and `apiUrl` it was minted
32
+ * under: `readLasoToken` treats it as absent if either no longer matches the
33
+ * active context (covers env-var overrides) or it has expired. Self-correcting,
34
+ * so the identity/URL write paths only need to drop it, not re-thread it.
35
+ *
36
+ * Lives inside the context it was minted under, so switching the active context
37
+ * (`config use`) keeps each context's token intact without any explicit drop.
38
+ *
39
+ * Schema is the source of truth; the `LasoToken` type is derived from it so the
40
+ * two can't drift (the same pattern as the schemas in `src/ampersend/`).
41
+ */
42
+ declare const LasoTokenSchema: Schema.Struct<{
43
+ readonly idToken: Schema.String;
44
+ readonly expiresAt: Schema.String;
45
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
46
+ readonly apiUrl: Schema.optional<Schema.String>;
47
+ }>;
48
+ export type LasoToken = typeof LasoTokenSchema.Type;
49
+ /**
50
+ * A named identity in the config. A context is either:
51
+ * - `ready`: resolved, carrying an active key + on-chain account (+ optional
52
+ * per-context apiUrl and cached lasoToken).
53
+ * - `pending`: an in-flight `setup start` — a generated key plus the approval
54
+ * token and its local expiry, but no account yet. `setup finish`
55
+ * promotes it to `ready`.
56
+ *
57
+ * Each context carries its own `apiUrl`, so e.g. a sandbox and a prod context
58
+ * can coexist pointed at different environments.
59
+ */
60
+ declare const ReadyContextSchema: Schema.Struct<{
61
+ readonly status: Schema.Literal<"ready">;
62
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
63
+ readonly agentAccount: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
64
+ readonly createdAt: Schema.String;
65
+ readonly apiUrl: Schema.optional<Schema.String>;
66
+ readonly lasoToken: Schema.optional<Schema.Struct<{
67
+ readonly idToken: Schema.String;
68
+ readonly expiresAt: Schema.String;
69
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
70
+ readonly apiUrl: Schema.optional<Schema.String>;
71
+ }>>;
72
+ }>;
73
+ declare const PendingContextSchema: Schema.Struct<{
74
+ readonly status: Schema.Literal<"pending">;
75
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
76
+ readonly token: Schema.String;
77
+ readonly expiresAt: Schema.String;
78
+ readonly createdAt: Schema.String;
79
+ readonly apiUrl: Schema.optional<Schema.String>;
80
+ }>;
81
+ declare const ContextSchema: Schema.Union<readonly [Schema.Struct<{
82
+ readonly status: Schema.Literal<"ready">;
83
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
84
+ readonly agentAccount: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
85
+ readonly createdAt: Schema.String;
86
+ readonly apiUrl: Schema.optional<Schema.String>;
87
+ readonly lasoToken: Schema.optional<Schema.Struct<{
88
+ readonly idToken: Schema.String;
89
+ readonly expiresAt: Schema.String;
90
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
91
+ readonly apiUrl: Schema.optional<Schema.String>;
92
+ }>>;
93
+ }>, Schema.Struct<{
94
+ readonly status: Schema.Literal<"pending">;
95
+ readonly agentKey: Schema.TemplateLiteral<readonly [Schema.Literal<"0x">, Schema.String]>;
96
+ readonly token: Schema.String;
97
+ readonly expiresAt: Schema.String;
98
+ readonly createdAt: Schema.String;
99
+ readonly apiUrl: Schema.optional<Schema.String>;
100
+ }>]>;
101
+ export type ReadyContext = typeof ReadyContextSchema.Type;
102
+ export type PendingContext = typeof PendingContextSchema.Type;
103
+ export type Context = typeof ContextSchema.Type;
104
+ /** Stored configuration V2 — the multi-context model. */
105
+ export interface StoredConfigV2 {
106
+ version: 2;
107
+ activeContext?: string;
108
+ contexts: Record<string, Context>;
109
+ }
110
+ /** Current stored config type */
111
+ export type StoredConfig = StoredConfigV2;
112
+ /** Pending approval payload passed to `startContext` by `setup start`. */
7
113
  export interface PendingApproval {
8
114
  token: string;
9
115
  agentKey: `0x${string}`;
10
116
  expiresAt: string;
11
117
  }
12
- /** Stored configuration V1 */
13
- export interface StoredConfigV1 {
14
- version: 1;
15
- agentKey?: `0x${string}`;
16
- agentAccount?: `0x${string}`;
17
- apiUrl?: string;
18
- pendingApproval?: PendingApproval;
19
- }
20
- /** Current stored config type */
21
- export type StoredConfig = StoredConfigV1;
22
- /** Runtime configuration with derived fields */
23
- export interface RuntimeConfig {
24
- agentKey?: `0x${string}`;
25
- agentAccount?: `0x${string}`;
26
- apiUrl?: string;
27
- pendingApproval?: PendingApproval;
28
- status: ConfigStatus;
118
+ /** A context with its name, as returned by lookups. */
119
+ export interface NamedContext {
120
+ name: string;
121
+ context: Context;
29
122
  }
30
123
  /**
31
- * Read config file if it exists.
124
+ * Read config file if it exists, normalized to the V2 context model.
32
125
  * Returns null if the file is missing or corrupt.
33
126
  */
34
- export declare function readConfig(): StoredConfig | null;
127
+ export declare function readConfig(): StoredConfigV2 | null;
35
128
  /**
36
- * Write config file with secure permissions
129
+ * Write config file with secure permissions. Always writes V2 and prunes
130
+ * expired pending contexts on the way out.
37
131
  */
38
- export declare function writeConfig(config: Omit<StoredConfig, "version">): void;
132
+ export declare function writeConfig(config: Omit<StoredConfigV2, "version">): void;
133
+ /**
134
+ * Per-invocation context selection. A `--context <name>` flag wins; otherwise
135
+ * `AMPERSEND_CONTEXT`; otherwise the persisted `activeContext`. Carried by every
136
+ * command so it can target a non-active context without switching.
137
+ */
138
+ export interface ContextSelector {
139
+ context?: string | undefined;
140
+ }
39
141
  /**
40
- * Get runtime config with status
142
+ * The context name to use this invocation: `--context` flag > `AMPERSEND_CONTEXT`
143
+ * env > persisted `activeContext`. Returns undefined if none resolves.
41
144
  */
42
- export declare function getRuntimeConfig(): RuntimeConfig | null;
145
+ export declare function resolveContextName(opts?: ContextSelector): string | undefined;
43
146
  /**
44
- * Get configuration status for error messages
147
+ * The selected context (name + value) after applying flag/env/active precedence,
148
+ * or null if no config file exists or the resolved name has no context.
45
149
  */
46
- export declare function getConfigStatus(): {
150
+ export declare function getSelectedContext(opts?: ContextSelector): NamedContext | null;
151
+ /**
152
+ * Effective API URL for unauthenticated calls and setup flows.
153
+ * Precedence: AMPERSEND_API_URL (hard bypass) > selected context's apiUrl > default.
154
+ */
155
+ export declare function getActiveApiUrl(opts?: ContextSelector): string;
156
+ /**
157
+ * Per-context status for the selected context, for error messages and `status`.
158
+ */
159
+ export declare function getConfigStatus(opts?: ContextSelector): {
47
160
  status: ConfigStatus;
48
161
  };
49
162
  /**
50
163
  * Check if a pending approval has expired locally.
51
164
  */
52
- export declare function isPendingExpired(pending: PendingApproval): boolean;
165
+ export declare function isPendingExpired(pending: {
166
+ expiresAt: string;
167
+ }): boolean;
53
168
  /**
54
169
  * Compute the expiration ISO string for a new approval (now + 30min).
55
170
  */
56
171
  export declare function computeApprovalExpiry(): string;
57
172
  /**
58
- * Set active config directly using "agentKey:::agentAccount" format.
59
- * Replaces the old `config init` + `config set-agent` flow.
173
+ * Production = the default URL, or no URL at all. Auto-derived context names get
174
+ * the URL host prepended only for non-production environments.
175
+ */
176
+ export declare function isProductionUrl(apiUrl: string | undefined): boolean;
177
+ /**
178
+ * Auto-derive a context name from the agent key when `--context` is omitted.
179
+ * The base is `ctx-<4 hex of key address>`; non-production URLs prepend the host
180
+ * so contexts targeting different environments stay distinct (e.g.
181
+ * `api.sandbox.ampersend.ai-ctx-1a2b`). Not guaranteed unique on its own —
182
+ * callers go through `uniqueContextName` to disambiguate.
183
+ */
184
+ export declare function autoContextName(apiUrl: string | undefined, keyAddress: string): string;
185
+ /**
186
+ * An auto-derived context name guaranteed free in `config`. Appends `-2`, `-3`,
187
+ * … if the base name (or a prior counter) is already taken.
60
188
  */
61
- export declare function setConfig(secret: string): JsonEnvelope<{
189
+ export declare function uniqueContextName(config: StoredConfigV2, apiUrl: string | undefined, keyAddress: string): string;
190
+ /**
191
+ * Set a context's identity directly using "agentKey:::agentAccount" format and
192
+ * make it active. With `--context <name>` the identity is written to that named
193
+ * context (creating or overwriting it); without one, a fresh auto-named context
194
+ * is minted. A context's `apiUrl` is fixed at creation — `setConfig` only sets
195
+ * it on a brand-new context, never edits an existing one's URL.
196
+ */
197
+ export declare function setConfig(secret: string, opts?: {
198
+ name?: string | undefined;
199
+ apiUrl?: string | undefined;
200
+ }): JsonEnvelope<{
62
201
  agentKeyAddress: string;
63
202
  agentAccount: string;
203
+ context: string;
64
204
  status: ConfigStatus;
65
205
  }>;
66
206
  /**
67
- * Set API URL in config. Pass undefined to clear (revert to production default).
207
+ * Switch the active context without re-running setup. Errors if the name is
208
+ * unknown.
68
209
  */
69
- export declare function setApiUrl(apiUrl: string | undefined): JsonEnvelope<{
70
- apiUrl: string;
210
+ export declare function useContext(name: string): JsonEnvelope<{
211
+ context: string;
212
+ status: ConfigStatus;
71
213
  }>;
72
214
  /**
73
- * Store a pending approval in config.
74
- * Called by `setup start`.
215
+ * Delete a context. If it was the active one, the active selection is cleared.
216
+ * Errors if the name is unknown.
75
217
  */
76
- export declare function storePendingApproval(pending: PendingApproval): void;
218
+ export declare function removeContext(name: string): JsonEnvelope<{
219
+ context: string;
220
+ wasActive: boolean;
221
+ }>;
77
222
  /**
78
- * Clear pending approval from config.
223
+ * Create a `pending` context from a freshly-requested approval.
224
+ * Called by `setup start`. Makes it active unless `detach` is set.
79
225
  */
80
- export declare function clearPendingApproval(): void;
226
+ export declare function startContext(name: string, pending: PendingApproval, opts?: {
227
+ apiUrl?: string | undefined;
228
+ detach?: boolean | undefined;
229
+ }): void;
81
230
  /**
82
- * Promote a pending approval to active config.
83
- * Called by `setup finish` when the approval is resolved.
231
+ * Promote a `pending` context to `ready` (key stays, account filled in).
232
+ * Called by `setup finish`. Makes the context active.
84
233
  */
85
- export declare function promotePending(agentAccount: `0x${string}`): JsonEnvelope<{
234
+ export declare function finishContext(name: string, agentAccount: `0x${string}`): JsonEnvelope<{
86
235
  agentKeyAddress: string;
87
236
  agentAccount: string;
237
+ context: string;
88
238
  status: ConfigStatus;
89
239
  }>;
240
+ /**
241
+ * Remove a pending context (e.g. when an approval is rejected). No-op if the
242
+ * context is missing or no longer pending.
243
+ */
244
+ export declare function clearPendingContext(name: string): void;
245
+ /**
246
+ * Cache a Laso Bearer token on the selected context, preserving the rest of the
247
+ * config. The token is stamped with the identity/URL it was minted under so
248
+ * `readLasoToken` can reject it after an env-var or context change.
249
+ *
250
+ * No-op when the selected context isn't a ready one (e.g. env-only credentials):
251
+ * the config file is the only cache, and we don't create one just to hold a token.
252
+ */
253
+ export declare function storeLasoToken(token: LasoToken, opts?: ContextSelector): void;
254
+ /**
255
+ * Read the selected context's cached Laso token, or null if there's no usable
256
+ * one. Treated as absent when: no token cached, expired, or its stamped
257
+ * `agentKey`/`apiUrl` no longer match the active credentials (covers env-var
258
+ * overrides). Self-correcting by construction.
259
+ */
260
+ export declare function readLasoToken(active: ResolvedCredentials, opts?: ContextSelector): LasoToken | null;
90
261
  /** Configuration source */
91
262
  export type CredentialSource = "env" | "file" | "none";
263
+ /** Summary of a single context for `config status`. */
264
+ export interface ContextSummary {
265
+ name: string;
266
+ status: ConfigStatus;
267
+ active: boolean;
268
+ createdAt: string;
269
+ agentKeyAddress?: string;
270
+ agentAccount?: string;
271
+ apiUrl?: string;
272
+ pendingExpired?: boolean;
273
+ }
92
274
  /** Data returned by getStatus */
93
275
  export interface StatusData {
94
276
  status: ConfigStatus;
@@ -97,10 +279,8 @@ export interface StatusData {
97
279
  agentKeyAddress?: string;
98
280
  agentAccount?: string;
99
281
  apiUrl?: string;
100
- pendingApproval?: {
101
- agentKeyAddress: string;
102
- expired: boolean;
103
- };
282
+ activeContext?: string;
283
+ contexts?: Array<ContextSummary>;
104
284
  }
105
285
  /**
106
286
  * Get current configuration status.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AASA,OAAO,EAAW,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAI7E,eAAO,MAAM,WAAW,QAAkC,CAAA;AAS1D,YAAY,EAAE,YAAY,EAAE,CAAA;AAE5B,mCAAmC;AACnC,eAAO,MAAM,eAAe,6BAA6B,CAAA;AAEzD,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,8BAA8B;AAC9B,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,CAAC,CAAA;IACV,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAA;IACxB,YAAY,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