@davidwoods/skylight-mcp 1.22.0 → 1.24.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.
- package/README.md +32 -2
- package/dist/lib-writes.d.ts +223 -0
- package/dist/lib-writes.d.ts.map +1 -0
- package/dist/lib-writes.js +625 -0
- package/dist/lib-writes.js.map +1 -0
- package/dist/lib.d.ts +32 -2
- package/dist/lib.d.ts.map +1 -1
- package/dist/lib.js +37 -2
- package/dist/lib.js.map +1 -1
- package/dist/utils/series.d.ts +45 -0
- package/dist/utils/series.d.ts.map +1 -0
- package/dist/utils/series.js +181 -0
- package/dist/utils/series.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -624,7 +624,7 @@ const skylight = createSkylight({
|
|
|
624
624
|
const events = await skylight.calendar.events({ from: "2026-11-09", to: "2026-11-15" });
|
|
625
625
|
```
|
|
626
626
|
|
|
627
|
-
Read methods
|
|
627
|
+
Read methods: `calendar.events`, `calendar.sources`, `profiles.list`, `labels.list`, `chores.list`, `meals.sittings`, `meals.recipes`, `meals.categories`, `lists.list`, `lists.items`. They return plain objects, never raw Skylight records: no emails, event uids, calendar or account ids, or subscription feed addresses (a feed shows only its host; an email-shaped calendar label is replaced). Event ids are opaque: a repeating event's occurrence ids change after a time edit, so do not store or compare them. One write: `calendar.previewCreate` and `calendar.create` (see "Creating events" below).
|
|
628
628
|
|
|
629
629
|
Behaviour an importer should plan for:
|
|
630
630
|
- `chores.list` takes one day (`{ date }`) or a range (`{ from, to }`, both included, at most 31 days), plus an optional `profile`. A repeating chore appears once per day it falls on, and each item's `date` is that day. The range is not yet verified against live Skylight.
|
|
@@ -635,7 +635,37 @@ Behaviour an importer should plan for:
|
|
|
635
635
|
- If a refreshed credential cannot be written to your store, the call fails with `CredentialSaveError` (an `AuthenticationError`, `code` `CREDENTIAL_SAVE_FAILED`). Refresh tokens rotate, so the old one in your store is already spent: treat it as signed out and sign in again. The error never includes your store's own message.
|
|
636
636
|
- The library writes no per-request log lines. Errors and warnings still go to `console.error`.
|
|
637
637
|
|
|
638
|
-
What is not there, on purpose:
|
|
638
|
+
What is not there, on purpose: event updates and deletes (planned next), other writes, messages, source-calendar and feed management, and any function that takes a URL or a feed address (sign-in lives in the separate setup entry below, which accepts exactly one address: the Skylight redirect you paste). There is no host or fetch option; the API host is fixed in code and an unknown option is refused. Only the package root and `/setup` are importable (deep imports such as `dist/api/client.js` fail). The library holds a live sign-in, so it stops accidents and token leaks, not a malicious importer. Verified read-only against a real frame on 2026-11-09 (chores and list items were empty that day).
|
|
639
|
+
|
|
640
|
+
### Writing events (experimental)
|
|
641
|
+
|
|
642
|
+
```ts
|
|
643
|
+
const entry = { title: "Dentist", start: "2026-12-03T15:00", end: "2026-12-03T16:00", profileIds: ["123"], calendar: "456" };
|
|
644
|
+
const preview = await skylight.calendar.previewCreate(entry); // changes nothing; show it, get a yes
|
|
645
|
+
const event = await skylight.calendar.create(entry); // same arguments; returns the stored event
|
|
646
|
+
|
|
647
|
+
// later, from a read: id, the date it was read on, and its version
|
|
648
|
+
const ref = { id: event.id, date: "2026-12-03", version: event.version };
|
|
649
|
+
await skylight.calendar.previewUpdate({ ...ref, changes: { title: "Dentist (moved)" } });
|
|
650
|
+
await skylight.calendar.update({ ...ref, changes: { title: "Dentist (moved)" } }); // returns the event under its id after the change
|
|
651
|
+
await skylight.calendar.delete({ ...ref, scope: "one" }); // scope only for a repeating event
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
- Two functions, identical arguments. Both run the same check against fresh reads (profiles, labels, calendars), so the preview cannot drift from the write. `create` checks again, writes once, then reads the event back and resolves only when the read-back shows every field as asked.
|
|
655
|
+
- `calendar` is required: `"skylight"` for Skylight's own calendar (shows on Skylight only), or the `id` of a calendar from `calendar.sources()` whose `writable` is true: a Google calendar this account can edit. Skylight writes the event through to Google, where everyone who shares that calendar sees it, with that calendar's default reminders. The calendar's address and account are looked up inside the call and never returned.
|
|
656
|
+
- Times are wall-clock in the frame's time zone: `start` and `end` as `YYYY-MM-DDTHH:MM`, no offset or `Z`. A time the clocks skip is refused; an ambiguous time (the repeated hour) is read as the earlier one. All day: `allDay: true`, `start` as `YYYY-MM-DD`, `end` left out (one day). The preview shows the times as they will be sent (ISO with the frame's offset).
|
|
657
|
+
- Optional: `location` (500 characters), `notes` (5,000), `profileIds` (from `profiles.list()`), `labelIds` (from `labels.list()`; a label a synced calendar writes to is refused, Skylight assigns it itself). Title: one line, 200 characters. These limits are the library's; Skylight's own are not known.
|
|
658
|
+
- Repeating: `repeat: { every: "day" | "week" | "month" | "year", interval?, monthlyOn?: "date" | "weekday", until?: "YYYY-MM-DD", count? }`. Daily and weekly need an end (`until` or `count`); monthly and yearly may be open-ended (a birthday, a bill). Weekly repeats on the start's weekday; monthly on the start's day (`"date"`, e.g. the 15th) or its weekday (`"weekday"`, e.g. the 3rd Tuesday, as the Skylight app offers); yearly on the start's date. The preview's `repeat` gives the rule in words, the first dates and what is skipped, and `warnings` says so in a sentence: Skylight skips months without the day (a series on the 31st has no February, April, June, September or November occurrence) and years without Feb 29; nothing is moved. Show the warning with the preview. Multi-day all-day events are not supported yet.
|
|
659
|
+
- Update and delete take `{ id, date, version }` from a read. `version` is a fingerprint of the event's fields (including notes and the rule); if the event changed since that read, the call is refused with `stale` and nothing is written. Skylight has no conditional write, so a change landing between the library's re-read and its write is not caught.
|
|
660
|
+
- A repeating event's occurrence needs `scope`: update `"one"` (it becomes its own event with a new id) or `"all"`; Skylight refuses "this and following" for an edit. Delete `"one"`, `"future"` (this and every later one) or `"all"` (the whole series, including occurrences edited on their own). A one-off event, or an occurrence already edited on its own (`detached: true`), takes no scope. A missing or wrong scope is refused, never guessed.
|
|
661
|
+
- On a series, update changes only the title, people, labels and the time of day (start and end on the same date); location, notes and all-day on a series are refused as not verified. A one-off event can change any field. People and labels not mentioned stay as they are, including the label Skylight puts on a Google calendar's events.
|
|
662
|
+
- `update` resolves with the event as read back under its id after the change: an occurrence's id embeds its start time, so a time edit changes it, and a scope-`"one"` edit makes a new event. `delete` resolves `{ deleted: true, id, scope }` once the event is gone from that date.
|
|
663
|
+
- Verified live on 2026-11-16 on Skylight's calendar and a linked Google calendar: monthly (by date and by weekday), weekly and yearly series; scope-one and whole-series edits; deletes with every scope; deleting an occurrence edited on its own; a stale version refused. All test events deleted afterwards.
|
|
664
|
+
- More codes: `invalid_repeat`, `not_found` (no event with that id on that date), `stale`, `not_editable` (a subscribed calendar or an event Skylight locks), `scope_required`, `scope_not_allowed`.
|
|
665
|
+
- Errors are plain `Error`s with `name` `"SkylightWriteError"` and a `code`; check `name` and `code`, not `instanceof` (the root exports no classes). Input: `bad_input`, `invalid_title`, `invalid_time`, `end_before_start`, `unknown_profile`, `unknown_label`, `label_not_assignable` (each with `ids`), `unknown_calendar`, `calendar_not_writable`, `unsupported`. The write: `skylight_refused` (Skylight said no, with `status`; nothing was written), `outcome_unknown` (a network or server error after sending: it may or may not exist, read before retrying), `not_confirmed` (accepted, with `eventId`, but the read-back did not show it as asked within about 2 seconds; Skylight's list can lag, so read before retrying). Messages are the library's own; Skylight's response text is never included. A sign-in failure stays an `AuthenticationError`.
|
|
666
|
+
- After `create` resolves, a read of that day through the library shows the event (the read-back used the same list). On a Google calendar Skylight adds that calendar's own label to the event, and (seen live) writes it to Google during the create call itself; the library does not check Google.
|
|
667
|
+
- Verified on a real frame on 2026-11-16: a create on Skylight's calendar with a profile, and a create on a linked Google calendar that then showed in Google Calendar with the same title and times. Both test events were deleted afterwards.
|
|
668
|
+
- Nothing de-duplicates: two `create` calls make two events. Debounce taps in your app.
|
|
639
669
|
|
|
640
670
|
### Signing in from your own app (setup entry, experimental)
|
|
641
671
|
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event writes for the library entry (experimental). Stage 1: create a one-off event.
|
|
3
|
+
*
|
|
4
|
+
* Every write is two functions with identical arguments: a preview that changes nothing and a
|
|
5
|
+
* commit. Both call the same plan function, so the checks cannot drift: the commit re-runs
|
|
6
|
+
* every check against fresh reads (the calendar can change between the two calls), then writes,
|
|
7
|
+
* then reads back.
|
|
8
|
+
*
|
|
9
|
+
* Errors for input and for the write itself are plain Errors with `name` "SkylightWriteError"
|
|
10
|
+
* and a stable `code`. Their messages are the library's own wording: Skylight's response text is
|
|
11
|
+
* never included (the HTTP client puts it in its own error messages, so every write error is
|
|
12
|
+
* mapped here). Sign-in errors pass through unchanged (`AuthenticationError`).
|
|
13
|
+
*
|
|
14
|
+
* Nothing here returns a calendar address, an account id or an email: the Google calendar is
|
|
15
|
+
* chosen by its `calendar.sources()` id and resolved inside the call.
|
|
16
|
+
*/
|
|
17
|
+
import type { CalendarEventResource, CreateCalendarEventRequest, SourceCalendarResource } from "./api/types.js";
|
|
18
|
+
import { type SeriesInput } from "./utils/series.js";
|
|
19
|
+
export type WriteErrorCode = "bad_input" | "invalid_title" | "invalid_time" | "end_before_start" | "unknown_profile" | "unknown_label" | "label_not_assignable" | "unknown_calendar" | "calendar_not_writable" | "unsupported" | "invalid_repeat" | "not_found" | "stale" | "not_editable" | "scope_required" | "scope_not_allowed" | "skylight_refused" | "outcome_unknown" | "not_confirmed";
|
|
20
|
+
export interface SkylightWriteError extends Error {
|
|
21
|
+
name: "SkylightWriteError";
|
|
22
|
+
code: WriteErrorCode;
|
|
23
|
+
/** HTTP status, for `skylight_refused` only. */
|
|
24
|
+
status?: number;
|
|
25
|
+
/** The id Skylight gave the event, for `not_confirmed` only. */
|
|
26
|
+
eventId?: string;
|
|
27
|
+
/** The ids that were not accepted, for `unknown_profile`, `unknown_label` and `label_not_assignable`. */
|
|
28
|
+
ids?: string[];
|
|
29
|
+
}
|
|
30
|
+
export declare function writeError(code: WriteErrorCode, message: string, extra?: {
|
|
31
|
+
status?: number;
|
|
32
|
+
eventId?: string;
|
|
33
|
+
ids?: string[];
|
|
34
|
+
}): SkylightWriteError;
|
|
35
|
+
/**
|
|
36
|
+
* A new one-off event. Times are wall-clock in the frame's time zone: no offset, no "Z".
|
|
37
|
+
* - Timed: `start` and `end` are "YYYY-MM-DDTHH:MM"; `end` after `start`.
|
|
38
|
+
* - All day: `allDay: true`, `start` is "YYYY-MM-DD", and `end` is left out or the same date
|
|
39
|
+
* (one day; multi-day all-day events are not supported yet).
|
|
40
|
+
* `calendar` is required: "skylight" for Skylight's own calendar (shows on Skylight only), or the
|
|
41
|
+
* `id` of a Google calendar from `calendar.sources()` whose `writable` is true (Skylight writes it
|
|
42
|
+
* through to Google, where everyone who shares that calendar sees it).
|
|
43
|
+
*/
|
|
44
|
+
export interface CreateEventInput {
|
|
45
|
+
title: string;
|
|
46
|
+
start: string;
|
|
47
|
+
end?: string;
|
|
48
|
+
allDay?: boolean;
|
|
49
|
+
location?: string;
|
|
50
|
+
notes?: string;
|
|
51
|
+
/** Profile ids from `profiles.list()`. */
|
|
52
|
+
profileIds?: string[];
|
|
53
|
+
/** Label ids from `labels.list()`. A label a synced calendar writes to is refused. */
|
|
54
|
+
labelIds?: string[];
|
|
55
|
+
calendar: string;
|
|
56
|
+
/**
|
|
57
|
+
* Make it a repeating series. `every`: "day", "week", "month" or "year"; `interval` (default 1);
|
|
58
|
+
* monthly `monthlyOn`: "date" (the start's day, default) or "weekday" (e.g. the 3rd Tuesday, from
|
|
59
|
+
* the start); end with `until` (YYYY-MM-DD) or `count`. Daily and weekly need an end; monthly and
|
|
60
|
+
* yearly may be open-ended. Weekly repeats on the start's weekday only.
|
|
61
|
+
*/
|
|
62
|
+
repeat?: SeriesInput;
|
|
63
|
+
}
|
|
64
|
+
/** Exactly what a create would write, in library terms. Times are as they will be sent (ISO with the frame's offset, or dates for all day). */
|
|
65
|
+
export interface CreatePreview {
|
|
66
|
+
action: "create";
|
|
67
|
+
title: string;
|
|
68
|
+
start: string;
|
|
69
|
+
end: string;
|
|
70
|
+
allDay: boolean;
|
|
71
|
+
location: string | null;
|
|
72
|
+
notes: string | null;
|
|
73
|
+
profileIds: string[];
|
|
74
|
+
profiles: string[];
|
|
75
|
+
labelIds: string[];
|
|
76
|
+
labels: string[];
|
|
77
|
+
calendar: {
|
|
78
|
+
id: string;
|
|
79
|
+
label: string;
|
|
80
|
+
kind: "skylight" | "google";
|
|
81
|
+
};
|
|
82
|
+
timezone: string;
|
|
83
|
+
/** For a series: the rule in words, its first dates, and months or years it skips. Null for a one-off. */
|
|
84
|
+
repeat: {
|
|
85
|
+
rule: string;
|
|
86
|
+
first: string[];
|
|
87
|
+
skipped: string[];
|
|
88
|
+
last: string | null;
|
|
89
|
+
} | null;
|
|
90
|
+
/** Things the person may not expect, e.g. months a monthly rule skips. Show them with the preview. */
|
|
91
|
+
warnings: string[];
|
|
92
|
+
}
|
|
93
|
+
/** True when the library can create on this source: a Google calendar this account can write to. */
|
|
94
|
+
export declare function sourceWritable(cal: SourceCalendarResource): boolean;
|
|
95
|
+
interface CreatePlan {
|
|
96
|
+
preview: CreatePreview;
|
|
97
|
+
body: CreateCalendarEventRequest;
|
|
98
|
+
/** For the read-back. */
|
|
99
|
+
startDate: string;
|
|
100
|
+
endDate: string;
|
|
101
|
+
startMs: number;
|
|
102
|
+
endMs: number;
|
|
103
|
+
categoryIds: string[];
|
|
104
|
+
source: "skylight" | "google";
|
|
105
|
+
/** FREQ of a series, for the read-back; null for a one-off. */
|
|
106
|
+
freq: string | null;
|
|
107
|
+
}
|
|
108
|
+
/** The one check behind previewCreate and create. Reads categories and calendars fresh every time. */
|
|
109
|
+
export declare function planCreate(input: unknown, timeZone: string): Promise<CreatePlan>;
|
|
110
|
+
/**
|
|
111
|
+
* Create, then read back. Returns the stored record only when the read-back shows every field as
|
|
112
|
+
* asked; otherwise throws `not_confirmed` with the id Skylight gave (the event may still appear:
|
|
113
|
+
* Skylight's list can lag a write).
|
|
114
|
+
*/
|
|
115
|
+
export declare function commitCreate(input: unknown, timeZone: string, categoryIdsOf: (e: CalendarEventResource) => string[]): Promise<CalendarEventResource>;
|
|
116
|
+
/** The version of an event as read: changes when its title, times, all-day, location, notes, people, labels or rule change. */
|
|
117
|
+
export declare function eventVersion(event: CalendarEventResource, categoryIdsOf: (e: CalendarEventResource) => string[]): string;
|
|
118
|
+
/** What a read returned for one event: the id, the date it was read on, and its version. */
|
|
119
|
+
export interface EventRef {
|
|
120
|
+
id: string;
|
|
121
|
+
date: string;
|
|
122
|
+
version: string;
|
|
123
|
+
}
|
|
124
|
+
export interface UpdateEventInput extends EventRef {
|
|
125
|
+
/** Repeating events only: "one" (this occurrence; it becomes its own event) or "all" (the whole series). */
|
|
126
|
+
scope?: "one" | "all";
|
|
127
|
+
/**
|
|
128
|
+
* What to change; anything left out stays. One-off events (and occurrences already edited on their
|
|
129
|
+
* own): any field. A series: title, profileIds, labelIds, and start with end on the same date (time
|
|
130
|
+
* of day only). Times as for create.
|
|
131
|
+
*/
|
|
132
|
+
changes: {
|
|
133
|
+
title?: string;
|
|
134
|
+
start?: string;
|
|
135
|
+
end?: string;
|
|
136
|
+
allDay?: boolean;
|
|
137
|
+
location?: string;
|
|
138
|
+
notes?: string;
|
|
139
|
+
profileIds?: string[];
|
|
140
|
+
labelIds?: string[];
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
export interface DeleteEventInput extends EventRef {
|
|
144
|
+
/** Repeating events only: "one", "future" (this and every later one) or "all" (the whole series). */
|
|
145
|
+
scope?: "one" | "future" | "all";
|
|
146
|
+
}
|
|
147
|
+
/** The event as read before the change, in library terms. Produced by the caller's projection. */
|
|
148
|
+
export type EventProjection<T> = (event: CalendarEventResource) => Promise<T>;
|
|
149
|
+
export interface UpdatePreview<T> {
|
|
150
|
+
action: "update";
|
|
151
|
+
/** The event as it is now. */
|
|
152
|
+
event: T;
|
|
153
|
+
scope: "one" | "all" | null;
|
|
154
|
+
/** The fields that will be written, in library terms (times as they will be sent). */
|
|
155
|
+
changes: {
|
|
156
|
+
title?: string;
|
|
157
|
+
start?: string;
|
|
158
|
+
end?: string;
|
|
159
|
+
allDay?: boolean;
|
|
160
|
+
location?: string | null;
|
|
161
|
+
notes?: string | null;
|
|
162
|
+
profileIds?: string[];
|
|
163
|
+
labelIds?: string[];
|
|
164
|
+
};
|
|
165
|
+
/** What the change reaches, in words. */
|
|
166
|
+
effect: string;
|
|
167
|
+
/** True when the event is on a Google calendar: the change reaches Google for everyone who shares it. */
|
|
168
|
+
google: boolean;
|
|
169
|
+
warnings: string[];
|
|
170
|
+
}
|
|
171
|
+
export interface DeletePreview<T> {
|
|
172
|
+
action: "delete";
|
|
173
|
+
event: T;
|
|
174
|
+
scope: "one" | "future" | "all" | null;
|
|
175
|
+
effect: string;
|
|
176
|
+
google: boolean;
|
|
177
|
+
}
|
|
178
|
+
interface Found {
|
|
179
|
+
event: CalendarEventResource;
|
|
180
|
+
kind: "one-off" | "series" | "detached";
|
|
181
|
+
google: boolean;
|
|
182
|
+
}
|
|
183
|
+
interface UpdatePlan {
|
|
184
|
+
found: Found;
|
|
185
|
+
scope: "one" | "all" | null;
|
|
186
|
+
body: Record<string, unknown>;
|
|
187
|
+
changes: UpdatePreview<unknown>["changes"];
|
|
188
|
+
effect: string;
|
|
189
|
+
/** What the read-back must see. */
|
|
190
|
+
expect: {
|
|
191
|
+
title?: string;
|
|
192
|
+
startMs?: number;
|
|
193
|
+
endMs?: number;
|
|
194
|
+
allDay?: boolean;
|
|
195
|
+
location?: string | null;
|
|
196
|
+
notes?: string | null;
|
|
197
|
+
categoryIds: string[];
|
|
198
|
+
readDates: string[];
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
/** The one check behind previewUpdate and update. */
|
|
202
|
+
export declare function planUpdate(input: unknown, timeZone: string, categoryIdsOf: (e: CalendarEventResource) => string[]): Promise<UpdatePlan>;
|
|
203
|
+
/**
|
|
204
|
+
* Update, then read back. Resolves with the event as stored, under its id after the change: an edit
|
|
205
|
+
* of one occurrence makes a new event, and a time edit of a series changes every occurrence's id.
|
|
206
|
+
*/
|
|
207
|
+
export declare function commitUpdate(input: unknown, timeZone: string, categoryIdsOf: (e: CalendarEventResource) => string[]): Promise<CalendarEventResource>;
|
|
208
|
+
interface DeletePlan {
|
|
209
|
+
found: Found;
|
|
210
|
+
scope: "one" | "future" | "all" | null;
|
|
211
|
+
effect: string;
|
|
212
|
+
date: string;
|
|
213
|
+
}
|
|
214
|
+
/** The one check behind previewDelete and delete. */
|
|
215
|
+
export declare function planDelete(input: unknown, timeZone: string, categoryIdsOf: (e: CalendarEventResource) => string[]): Promise<DeletePlan>;
|
|
216
|
+
/** Delete, then read the date back until the event is gone. */
|
|
217
|
+
export declare function commitDelete(input: unknown, timeZone: string, categoryIdsOf: (e: CalendarEventResource) => string[]): Promise<{
|
|
218
|
+
deleted: true;
|
|
219
|
+
id: string;
|
|
220
|
+
scope: DeletePlan["scope"];
|
|
221
|
+
}>;
|
|
222
|
+
export {};
|
|
223
|
+
//# sourceMappingURL=lib-writes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib-writes.d.ts","sourceRoot":"","sources":["../src/lib-writes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,OAAO,KAAK,EAAE,qBAAqB,EAAoB,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAElI,OAAO,EAA2B,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE9E,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,sBAAsB,GACtB,kBAAkB,GAClB,uBAAuB,GACvB,aAAa,GACb,gBAAgB,GAChB,WAAW,GACX,OAAO,GACP,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,CAAC;AAEpB,MAAM,WAAW,kBAAmB,SAAQ,KAAK;IAC/C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;I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