@getengram/cli 0.6.0 → 0.7.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 (208) hide show
  1. package/LICENSE +112 -0
  2. package/README.md +1 -1
  3. package/dist/commands/auth.d.ts.map +1 -1
  4. package/dist/commands/auth.js +38 -11
  5. package/dist/commands/auth.js.map +1 -1
  6. package/dist/commands/conversations.d.ts.map +1 -1
  7. package/dist/commands/conversations.js +8 -2
  8. package/dist/commands/conversations.js.map +1 -1
  9. package/dist/commands/exclude.d.ts.map +1 -1
  10. package/dist/commands/exclude.js +73 -21
  11. package/dist/commands/exclude.js.map +1 -1
  12. package/dist/commands/import.d.ts +30 -3
  13. package/dist/commands/import.d.ts.map +1 -1
  14. package/dist/commands/import.js +374 -45
  15. package/dist/commands/import.js.map +1 -1
  16. package/dist/commands/login.d.ts.map +1 -1
  17. package/dist/commands/login.js +144 -29
  18. package/dist/commands/login.js.map +1 -1
  19. package/dist/commands/search.js +2 -2
  20. package/dist/commands/search.js.map +1 -1
  21. package/dist/commands/status.d.ts +16 -0
  22. package/dist/commands/status.d.ts.map +1 -0
  23. package/dist/commands/status.js +51 -0
  24. package/dist/commands/status.js.map +1 -0
  25. package/dist/commands/store.d.ts.map +1 -1
  26. package/dist/commands/store.js +19 -3
  27. package/dist/commands/store.js.map +1 -1
  28. package/dist/commands/upgrade.d.ts +24 -0
  29. package/dist/commands/upgrade.d.ts.map +1 -1
  30. package/dist/commands/upgrade.js +64 -15
  31. package/dist/commands/upgrade.js.map +1 -1
  32. package/dist/commands/usage.d.ts +44 -0
  33. package/dist/commands/usage.d.ts.map +1 -1
  34. package/dist/commands/usage.js +79 -19
  35. package/dist/commands/usage.js.map +1 -1
  36. package/dist/commands/vault.d.ts +11 -2
  37. package/dist/commands/vault.d.ts.map +1 -1
  38. package/dist/commands/vault.js +372 -53
  39. package/dist/commands/vault.js.map +1 -1
  40. package/dist/config-file.d.ts +74 -0
  41. package/dist/config-file.d.ts.map +1 -0
  42. package/dist/config-file.js +152 -0
  43. package/dist/config-file.js.map +1 -0
  44. package/dist/config-guard.d.ts +96 -0
  45. package/dist/config-guard.d.ts.map +1 -0
  46. package/dist/config-guard.js +184 -0
  47. package/dist/config-guard.js.map +1 -0
  48. package/dist/config.d.ts +48 -4
  49. package/dist/config.d.ts.map +1 -1
  50. package/dist/config.js +101 -12
  51. package/dist/config.js.map +1 -1
  52. package/dist/daemon/as-root.d.ts +46 -0
  53. package/dist/daemon/as-root.d.ts.map +1 -0
  54. package/dist/daemon/as-root.js +64 -0
  55. package/dist/daemon/as-root.js.map +1 -0
  56. package/dist/daemon/backoff.d.ts +26 -0
  57. package/dist/daemon/backoff.d.ts.map +1 -0
  58. package/dist/daemon/backoff.js +37 -0
  59. package/dist/daemon/backoff.js.map +1 -0
  60. package/dist/daemon/codex-parser.d.ts +38 -4
  61. package/dist/daemon/codex-parser.d.ts.map +1 -1
  62. package/dist/daemon/codex-parser.js +111 -23
  63. package/dist/daemon/codex-parser.js.map +1 -1
  64. package/dist/daemon/command-path.d.ts +13 -0
  65. package/dist/daemon/command-path.d.ts.map +1 -0
  66. package/dist/daemon/command-path.js +35 -0
  67. package/dist/daemon/command-path.js.map +1 -0
  68. package/dist/daemon/commands.d.ts +153 -3
  69. package/dist/daemon/commands.d.ts.map +1 -1
  70. package/dist/daemon/commands.js +2775 -235
  71. package/dist/daemon/commands.js.map +1 -1
  72. package/dist/daemon/db.d.ts +255 -27
  73. package/dist/daemon/db.d.ts.map +1 -1
  74. package/dist/daemon/db.js +749 -53
  75. package/dist/daemon/db.js.map +1 -1
  76. package/dist/daemon/exclusions.d.ts +23 -3
  77. package/dist/daemon/exclusions.d.ts.map +1 -1
  78. package/dist/daemon/exclusions.js +91 -21
  79. package/dist/daemon/exclusions.js.map +1 -1
  80. package/dist/daemon/homebrew.d.ts +26 -0
  81. package/dist/daemon/homebrew.d.ts.map +1 -0
  82. package/dist/daemon/homebrew.js +43 -0
  83. package/dist/daemon/homebrew.js.map +1 -0
  84. package/dist/daemon/instance.d.ts +427 -0
  85. package/dist/daemon/instance.d.ts.map +1 -0
  86. package/dist/daemon/instance.js +1201 -0
  87. package/dist/daemon/instance.js.map +1 -0
  88. package/dist/daemon/key-source.d.ts +41 -0
  89. package/dist/daemon/key-source.d.ts.map +1 -0
  90. package/dist/daemon/key-source.js +89 -0
  91. package/dist/daemon/key-source.js.map +1 -0
  92. package/dist/daemon/launch.d.ts +56 -0
  93. package/dist/daemon/launch.d.ts.map +1 -0
  94. package/dist/daemon/launch.js +153 -0
  95. package/dist/daemon/launch.js.map +1 -0
  96. package/dist/daemon/launchd.d.ts +215 -0
  97. package/dist/daemon/launchd.d.ts.map +1 -0
  98. package/dist/daemon/launchd.js +527 -0
  99. package/dist/daemon/launchd.js.map +1 -0
  100. package/dist/daemon/login-start.d.ts +2 -0
  101. package/dist/daemon/login-start.d.ts.map +1 -0
  102. package/dist/daemon/login-start.js +25 -0
  103. package/dist/daemon/login-start.js.map +1 -0
  104. package/dist/daemon/ownership.d.ts +123 -0
  105. package/dist/daemon/ownership.d.ts.map +1 -0
  106. package/dist/daemon/ownership.js +245 -0
  107. package/dist/daemon/ownership.js.map +1 -0
  108. package/dist/daemon/package-runner.d.ts +28 -0
  109. package/dist/daemon/package-runner.d.ts.map +1 -0
  110. package/dist/daemon/package-runner.js +113 -0
  111. package/dist/daemon/package-runner.js.map +1 -0
  112. package/dist/daemon/parser.d.ts +50 -5
  113. package/dist/daemon/parser.d.ts.map +1 -1
  114. package/dist/daemon/parser.js +224 -47
  115. package/dist/daemon/parser.js.map +1 -1
  116. package/dist/daemon/powershell.d.ts +25 -0
  117. package/dist/daemon/powershell.d.ts.map +1 -0
  118. package/dist/daemon/powershell.js +30 -0
  119. package/dist/daemon/powershell.js.map +1 -0
  120. package/dist/daemon/preflight.d.ts +0 -17
  121. package/dist/daemon/preflight.d.ts.map +1 -1
  122. package/dist/daemon/preflight.js +32 -6
  123. package/dist/daemon/preflight.js.map +1 -1
  124. package/dist/daemon/prune.d.ts +101 -0
  125. package/dist/daemon/prune.d.ts.map +1 -0
  126. package/dist/daemon/prune.js +287 -0
  127. package/dist/daemon/prune.js.map +1 -0
  128. package/dist/daemon/queue-error.d.ts +47 -0
  129. package/dist/daemon/queue-error.d.ts.map +1 -0
  130. package/dist/daemon/queue-error.js +59 -0
  131. package/dist/daemon/queue-error.js.map +1 -0
  132. package/dist/daemon/root-daemon.d.ts +60 -0
  133. package/dist/daemon/root-daemon.d.ts.map +1 -0
  134. package/dist/daemon/root-daemon.js +86 -0
  135. package/dist/daemon/root-daemon.js.map +1 -0
  136. package/dist/daemon/scoop.d.ts +52 -0
  137. package/dist/daemon/scoop.d.ts.map +1 -0
  138. package/dist/daemon/scoop.js +84 -0
  139. package/dist/daemon/scoop.js.map +1 -0
  140. package/dist/daemon/scrubber.d.ts +456 -0
  141. package/dist/daemon/scrubber.d.ts.map +1 -0
  142. package/dist/daemon/scrubber.js +994 -0
  143. package/dist/daemon/scrubber.js.map +1 -0
  144. package/dist/daemon/status.d.ts +306 -11
  145. package/dist/daemon/status.d.ts.map +1 -1
  146. package/dist/daemon/status.js +568 -43
  147. package/dist/daemon/status.js.map +1 -1
  148. package/dist/daemon/supervise.d.ts +78 -0
  149. package/dist/daemon/supervise.d.ts.map +1 -0
  150. package/dist/daemon/supervise.js +121 -0
  151. package/dist/daemon/supervise.js.map +1 -0
  152. package/dist/daemon/supervisor.d.ts +18 -0
  153. package/dist/daemon/supervisor.d.ts.map +1 -0
  154. package/dist/daemon/supervisor.js +56 -0
  155. package/dist/daemon/supervisor.js.map +1 -0
  156. package/dist/daemon/syncer.d.ts +382 -21
  157. package/dist/daemon/syncer.d.ts.map +1 -1
  158. package/dist/daemon/syncer.js +1448 -178
  159. package/dist/daemon/syncer.js.map +1 -1
  160. package/dist/daemon/systemd.d.ts +109 -0
  161. package/dist/daemon/systemd.d.ts.map +1 -0
  162. package/dist/daemon/systemd.js +363 -0
  163. package/dist/daemon/systemd.js.map +1 -0
  164. package/dist/daemon/types.d.ts +58 -6
  165. package/dist/daemon/types.d.ts.map +1 -1
  166. package/dist/daemon/vault-changed.d.ts +29 -0
  167. package/dist/daemon/vault-changed.d.ts.map +1 -0
  168. package/dist/daemon/vault-changed.js +47 -0
  169. package/dist/daemon/vault-changed.js.map +1 -0
  170. package/dist/daemon/vault-key-missing.d.ts +70 -0
  171. package/dist/daemon/vault-key-missing.d.ts.map +1 -0
  172. package/dist/daemon/vault-key-missing.js +125 -0
  173. package/dist/daemon/vault-key-missing.js.map +1 -0
  174. package/dist/daemon/watcher.d.ts +87 -4
  175. package/dist/daemon/watcher.d.ts.map +1 -1
  176. package/dist/daemon/watcher.js +286 -36
  177. package/dist/daemon/watcher.js.map +1 -1
  178. package/dist/daemon/worker-main.js +363 -51
  179. package/dist/daemon/worker-main.js.map +1 -1
  180. package/dist/daemon/worker.js +19 -1
  181. package/dist/daemon/worker.js.map +1 -1
  182. package/dist/import-resume.d.ts +163 -0
  183. package/dist/import-resume.d.ts.map +1 -0
  184. package/dist/import-resume.js +267 -0
  185. package/dist/import-resume.js.map +1 -0
  186. package/dist/index.js +242 -33
  187. package/dist/index.js.map +1 -1
  188. package/dist/message-bounds.d.ts +52 -0
  189. package/dist/message-bounds.d.ts.map +1 -0
  190. package/dist/message-bounds.js +157 -0
  191. package/dist/message-bounds.js.map +1 -0
  192. package/dist/output.d.ts +14 -0
  193. package/dist/output.d.ts.map +1 -1
  194. package/dist/output.js +33 -5
  195. package/dist/output.js.map +1 -1
  196. package/dist/private-files.d.ts +126 -0
  197. package/dist/private-files.d.ts.map +1 -0
  198. package/dist/private-files.js +372 -0
  199. package/dist/private-files.js.map +1 -0
  200. package/dist/server-url.d.ts +31 -0
  201. package/dist/server-url.d.ts.map +1 -0
  202. package/dist/server-url.js +47 -0
  203. package/dist/server-url.js.map +1 -0
  204. package/dist/vault-key.d.ts +122 -0
  205. package/dist/vault-key.d.ts.map +1 -0
  206. package/dist/vault-key.js +273 -0
  207. package/dist/vault-key.js.map +1 -0
  208. package/package.json +11 -12
@@ -0,0 +1,215 @@
1
+ import { type Stats } from "node:fs";
2
+ export declare const PLIST_LABEL = "app.getengram.daemon";
3
+ export declare const PLIST_VERSION = 2;
4
+ export declare function plistDir(): string;
5
+ export declare function plistPath(): string;
6
+ export interface PlistPaths {
7
+ /** Node, through any links. */
8
+ node: string;
9
+ /** This build's dist/daemon/worker.js. */
10
+ worker: string;
11
+ /**
12
+ * ~/.engram/daemon.log: the job's output goes there. Null for none, while
13
+ * it can't be written (engram#679): launchd doesn't start a job whose log
14
+ * it can't open, ever, and the daemon doesn't need one to capture.
15
+ */
16
+ log: string | null;
17
+ home: string;
18
+ /** The PATH the daemon runs with. */
19
+ path: string;
20
+ }
21
+ /**
22
+ * A value as the text of a <string>, which launchd reads back exactly
23
+ * (engram#616): `&`, `<` and `>` escaped, as macOS's own plist writer
24
+ * escapes them. A raw `<` made a plist launchd couldn't load, so start at
25
+ * login quietly did nothing; a raw `&`, one launchd loads but plutil and
26
+ * every other tool that reads plists through CoreFoundation refuses.
27
+ *
28
+ * A control character is refused instead, as in a systemd unit: XML 1.0
29
+ * forbids most of them. Exported for tests.
30
+ */
31
+ export declare function xmlText(s: string): string;
32
+ /**
33
+ * The plist for the paths given. Pure: tests pass made-up paths.
34
+ *
35
+ * KeepAlive SuccessfulExit=false: a daemon that crashes is started again,
36
+ * one that stops (`engram stop`, or another daemon already running) is not.
37
+ * HOME is the CLI's own. launchd hands a job a bare PATH
38
+ * (/usr/bin:/bin:/usr/sbin:/sbin), without npm, which the ABI self-heal in
39
+ * preflight.ts runs (`npm rebuild better-sqlite3`): the caller puts Node's
40
+ * own directory, where npm is, first.
41
+ */
42
+ export declare function generatePlist(p: PlistPaths): string;
43
+ /**
44
+ * The paths in a plist exactly as generatePlist() writes one; null for any
45
+ * other text. Exported for tests.
46
+ *
47
+ * Not read as a plist in general, because no reader here could read one as
48
+ * launchd does: launchd parses plists with libxpc's own reader, not with
49
+ * CoreFoundation's, which plutil and the rest of macOS use, and the two
50
+ * disagree on much of what isn't plain XML. libxpc takes a raw `&` as it
51
+ * is, for one, where CoreFoundation refuses the file. What generatePlist()
52
+ * writes is plain XML, which both read back as the paths it was made from.
53
+ */
54
+ export declare function pathsIn(text: string): PlistPaths | null;
55
+ /**
56
+ * launchd won't load an agent that others can write, or that someone other
57
+ * than the user or root owns. Unknowable without POSIX owners (Windows, in
58
+ * tests). Exported for tests.
59
+ */
60
+ export declare function refusedByLaunchd(st: Pick<Stats, "mode" | "uid">): boolean;
61
+ export type PlistState = {
62
+ kind: "none";
63
+ } | {
64
+ kind: "ours";
65
+ /**
66
+ * launchd may not start the daemon from it: it won't load it (others
67
+ * can write it), it isn't as this CLI writes one of its version, the
68
+ * Node or the worker it names is gone (Node switched or removed, the
69
+ * CLI moved), or the log it names can't be written (engram#679).
70
+ */
71
+ broken: boolean;
72
+ /** Its version; 1 for a plist from before the stamp. */
73
+ version: number;
74
+ /**
75
+ * An older CLI wrote it: an older version, or one that names Node or
76
+ * the worker in a Homebrew version, which the next `brew upgrade`
77
+ * removes (engram#652). Or it names no log, and the log can be
78
+ * written again (engram#679). Or the worker it names is in a package
79
+ * runner's cache, which can be cleared at any time (engram#665).
80
+ * `engram start` and auto-capture rewrite it, from a CLI that isn't.
81
+ */
82
+ outdated: boolean;
83
+ };
84
+ /**
85
+ * The plist at plistPath(). The label is Engram's, so whatever is there is
86
+ * ours to repair.
87
+ */
88
+ export declare function readPlist(): PlistState;
89
+ /**
90
+ * Makes ~/Library/LaunchAgents the user's again (engram#678). The folder
91
+ * only: the other agents in it are theirs to look at, and Engram needs no
92
+ * more than to write in it.
93
+ */
94
+ export declare const LAUNCH_AGENTS_FIX = "sudo chown \"$(id -un)\" ~/Library/LaunchAgents";
95
+ export interface LaunchAgentsCheck {
96
+ /** The effective uid: undefined where there is none (Windows). */
97
+ euid?: number;
98
+ /** Who owns `path`, through a symlink: null when nothing is there, or it can't be looked at. */
99
+ ownerOf?: (path: string) => number | null;
100
+ /** Whether this process can make, rename and remove files in the folder `path`. */
101
+ canWriteIn?: (path: string) => boolean;
102
+ }
103
+ /**
104
+ * ~/Library/LaunchAgents is another user's, and Engram can't write in it
105
+ * (engram#678, engram#715): whether that user is root. Run with sudo, a CLI
106
+ * from before engram#653 made the folder as root when it wasn't there yet:
107
+ * macOS keeps HOME under sudo. The plist can't be written, replaced or
108
+ * removed then, as each is a change to the folder. Null when the folder is
109
+ * the user's, isn't there, or can be written in all the same.
110
+ *
111
+ * A plist that root owns, in the user's own folder, is no problem: launchd
112
+ * loads one (refusedByLaunchd), and it is replaced and removed like any
113
+ * other.
114
+ */
115
+ export declare function launchAgentsNotYours({ euid, ownerOf, canWriteIn, }?: LaunchAgentsCheck): {
116
+ root: boolean;
117
+ } | null;
118
+ /**
119
+ * Write the plist in one step: a temporary file beside it, renamed over it,
120
+ * so launchd never reads half of one. 0644: launchd won't load an agent that
121
+ * others can write. A link in its place is replaced, not written through.
122
+ */
123
+ export declare function writePlistFile(text: string): void;
124
+ /** launchctl, from an absolute directory on PATH; null when there is none. */
125
+ export declare function launchctlPath(): string | null;
126
+ /**
127
+ * The job in launchd's system domain, where it runs as root (engram#680).
128
+ * `launchctl load` run as root loads a plist there, wherever the plist is:
129
+ * `sudo engram install` did, and `sudo engram start` reloading a stale
130
+ * plist, before engram#653.
131
+ */
132
+ export declare const SYSTEM_JOB = "system/app.getengram.daemon";
133
+ /** How to unload SYSTEM_JOB, which stops the daemon it runs. */
134
+ export declare const SYSTEM_JOB_UNLOAD = "sudo launchctl bootout system/app.getengram.daemon";
135
+ /** Engram's job in launchd's system domain: `pid`, the daemon it runs, null when none runs. */
136
+ export interface SystemJob {
137
+ pid: number | null;
138
+ }
139
+ /**
140
+ * The system-domain job in `launchctl print` output, when it was loaded
141
+ * from `plist`: this user's own plist, so its daemon runs in their
142
+ * ~/.engram. A job loaded from anywhere else isn't this user's. The job's
143
+ * own keys are indented by one tab; what is nested in them, by more.
144
+ * Pure: the tests pass made-up output.
145
+ */
146
+ export declare function parseSystemJob(output: string, plist: string): SystemJob | null;
147
+ /**
148
+ * Engram's job in launchd's system domain, loaded from this user's plist;
149
+ * null when there is none, or it can't be told. `launchctl print` needs no
150
+ * root to look. macOS only.
151
+ */
152
+ export declare function systemJob(): SystemJob | null;
153
+ /** The PID of the daemon launchd runs for the agent; null when there is none. */
154
+ export declare function agentPid(): number | null;
155
+ /** launchd has the job loaded: it is in the user's session now. */
156
+ export declare function agentLoaded(): boolean;
157
+ /**
158
+ * Whether `launchctl print-disabled` output has the job switched off: true
159
+ * for `"<label>" => disabled` (`=> true` on older macOS), false for enabled,
160
+ * or for a job it doesn't list, which launchd was never told to switch off.
161
+ * null when it can't tell: no "disabled services" list, or a value it
162
+ * doesn't know for the job. Only the label itself counts, never one that
163
+ * starts with it.
164
+ * Exported for tests.
165
+ */
166
+ export declare function disabledIn(output: string, label?: string): boolean | null;
167
+ /**
168
+ * launchd has the job switched off: with `launchctl disable`, or `unload -w`.
169
+ * It then loads it at no login, and won't bootstrap it, until it is switched
170
+ * back on, and it remembers that after the plist is gone (engram#654). null
171
+ * when launchctl couldn't say.
172
+ */
173
+ export declare function agentDisabled(): boolean | null;
174
+ /**
175
+ * Switch the job back on in launchd, for `engram install` only: the user
176
+ * asking for start at login (engram#654). Whether launchd took it.
177
+ */
178
+ export declare function enableAgent(): boolean;
179
+ /**
180
+ * Load the agent: launchd starts the daemon now and at every login. bootstrap
181
+ * where macOS has it; `load` where that fails, as on older ones. Neither
182
+ * loads a job the user switched off. `turnOn`: `load -w`, which switches it
183
+ * back on too: for `engram install` only, never a repair or auto-capture
184
+ * (engram#654). The error when it couldn't.
185
+ */
186
+ export declare function loadAgent({ turnOn }?: {
187
+ turnOn?: boolean;
188
+ }): string | null;
189
+ /**
190
+ * Have launchd start the daemon now: `launchctl kickstart`, which runs the
191
+ * job whatever its launch conditions, as after `engram stop`, whose exit 0
192
+ * KeepAlive doesn't restart (engram#641). launchd starts the daemon again
193
+ * after a crash then, as it does the one it starts at login. A job that
194
+ * runs already is left running: never `-k`, which would kill it first. The
195
+ * error when launchd wouldn't.
196
+ */
197
+ export declare function kickstartAgent(): string | null;
198
+ /**
199
+ * Unload the agent, which stops a daemon launchd runs for it. Quiet when it
200
+ * isn't loaded. Whether launchctl took the bootout, or the unload after it:
201
+ * false when it took neither, as when the job isn't loaded, when launchd
202
+ * refuses, or when bootout gives up waiting for the daemon to exit
203
+ * ("Operation now in progress") and launchd lets go of the job after.
204
+ */
205
+ export declare function unloadAgent(): boolean;
206
+ /**
207
+ * Load the plist as it is now. launchd keeps the job it loaded, whatever the
208
+ * file says since, until the job is unloaded; and it can still be letting go
209
+ * of one when bootout returns, when a bootstrap straight after fails.
210
+ * `turnOn`: as for loadAgent. The error when it couldn't load it.
211
+ */
212
+ export declare function reloadAgent({ turnOn }?: {
213
+ turnOn?: boolean;
214
+ }): string | null;
215
+ //# sourceMappingURL=launchd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launchd.d.ts","sourceRoot":"","sources":["../../src/daemon/launchd.ts"],"names":[],"mappings":"AAEA,OAAO,EAWL,KAAK,KAAK,EACX,MAAM,SAAS,CAAC;AAajB,eAAO,MAAM,WAAW,yBAAyB,CAAC;AAWlD,eAAO,MAAM,aAAa,IAAI,CAAC;AAW/B,wBAAgB,QAAQ,IAAI,MAAM,CAEjC;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAOD;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAIzC;AAED;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