@ghostpaw/email 0.2.0 → 0.2.2
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 +38 -4
- package/SKILL.md +283 -0
- package/dist/cli.js +8884 -0
- package/dist/index.d.cts +1 -483
- package/dist/index.d.ts +1 -483
- package/package.json +8 -3
package/dist/index.d.cts
CHANGED
|
@@ -1837,489 +1837,7 @@ declare const emailTools: ({
|
|
|
1837
1837
|
}>;
|
|
1838
1838
|
})[];
|
|
1839
1839
|
|
|
1840
|
-
declare function getEmailToolByName(name: string):
|
|
1841
|
-
name: string;
|
|
1842
|
-
description: string;
|
|
1843
|
-
sideEffects: "read";
|
|
1844
|
-
inputSchema: {
|
|
1845
|
-
type: "object";
|
|
1846
|
-
required: string[];
|
|
1847
|
-
properties: {
|
|
1848
|
-
view: {
|
|
1849
|
-
type: "string";
|
|
1850
|
-
enum: string[];
|
|
1851
|
-
description: string;
|
|
1852
|
-
};
|
|
1853
|
-
folder: {
|
|
1854
|
-
type: "string";
|
|
1855
|
-
description: string;
|
|
1856
|
-
};
|
|
1857
|
-
uid: {
|
|
1858
|
-
type: "integer";
|
|
1859
|
-
description: string;
|
|
1860
|
-
};
|
|
1861
|
-
threadId: {
|
|
1862
|
-
type: "string";
|
|
1863
|
-
description: string;
|
|
1864
|
-
};
|
|
1865
|
-
partPath: {
|
|
1866
|
-
type: "string";
|
|
1867
|
-
description: string;
|
|
1868
|
-
};
|
|
1869
|
-
limit: {
|
|
1870
|
-
type: "integer";
|
|
1871
|
-
description: string;
|
|
1872
|
-
};
|
|
1873
|
-
unreadOnly: {
|
|
1874
|
-
type: "boolean";
|
|
1875
|
-
description: string;
|
|
1876
|
-
};
|
|
1877
|
-
refresh: {
|
|
1878
|
-
type: "boolean";
|
|
1879
|
-
description: string;
|
|
1880
|
-
};
|
|
1881
|
-
query?: never;
|
|
1882
|
-
mode?: never;
|
|
1883
|
-
since?: never;
|
|
1884
|
-
before?: never;
|
|
1885
|
-
hasAttachments?: never;
|
|
1886
|
-
action?: never;
|
|
1887
|
-
input?: never;
|
|
1888
|
-
uids?: never;
|
|
1889
|
-
destination?: never;
|
|
1890
|
-
labels?: never;
|
|
1891
|
-
path?: never;
|
|
1892
|
-
oldPath?: never;
|
|
1893
|
-
newPath?: never;
|
|
1894
|
-
folders?: never;
|
|
1895
|
-
bodies?: never;
|
|
1896
|
-
};
|
|
1897
|
-
};
|
|
1898
|
-
handler(ctx: EmailToolContext, input: {
|
|
1899
|
-
view: "folders";
|
|
1900
|
-
refresh?: boolean;
|
|
1901
|
-
} | {
|
|
1902
|
-
view: "queue";
|
|
1903
|
-
folder?: string;
|
|
1904
|
-
unreadOnly?: boolean;
|
|
1905
|
-
limit?: number;
|
|
1906
|
-
refresh?: boolean;
|
|
1907
|
-
} | {
|
|
1908
|
-
view: "thread";
|
|
1909
|
-
threadId: string;
|
|
1910
|
-
} | {
|
|
1911
|
-
view: "message";
|
|
1912
|
-
folder: string;
|
|
1913
|
-
uid: number;
|
|
1914
|
-
} | {
|
|
1915
|
-
view: "attachment";
|
|
1916
|
-
folder: string;
|
|
1917
|
-
uid: number;
|
|
1918
|
-
partPath?: string;
|
|
1919
|
-
} | {
|
|
1920
|
-
view: "eml";
|
|
1921
|
-
folder: string;
|
|
1922
|
-
uid: number;
|
|
1923
|
-
}): Promise<{
|
|
1924
|
-
outcome: "success";
|
|
1925
|
-
summary: string;
|
|
1926
|
-
entities: {
|
|
1927
|
-
kind: "mailbox";
|
|
1928
|
-
id: string;
|
|
1929
|
-
title: string;
|
|
1930
|
-
}[];
|
|
1931
|
-
nextSteps: string[];
|
|
1932
|
-
} | {
|
|
1933
|
-
outcome: "success";
|
|
1934
|
-
summary: string;
|
|
1935
|
-
entities: {
|
|
1936
|
-
kind: "message";
|
|
1937
|
-
id: string;
|
|
1938
|
-
title: string;
|
|
1939
|
-
}[];
|
|
1940
|
-
nextSteps: string[];
|
|
1941
|
-
} | {
|
|
1942
|
-
outcome: "success";
|
|
1943
|
-
summary: string;
|
|
1944
|
-
entities: {
|
|
1945
|
-
kind: "thread";
|
|
1946
|
-
id: string;
|
|
1947
|
-
title: string;
|
|
1948
|
-
}[];
|
|
1949
|
-
nextSteps: string[];
|
|
1950
|
-
} | {
|
|
1951
|
-
outcome: "success";
|
|
1952
|
-
summary: string;
|
|
1953
|
-
entities: {
|
|
1954
|
-
kind: "attachment";
|
|
1955
|
-
id: string;
|
|
1956
|
-
title: string;
|
|
1957
|
-
}[];
|
|
1958
|
-
nextSteps: string[];
|
|
1959
|
-
} | {
|
|
1960
|
-
outcome: "error";
|
|
1961
|
-
summary: string;
|
|
1962
|
-
entities: never[];
|
|
1963
|
-
nextSteps: string[];
|
|
1964
|
-
}>;
|
|
1965
|
-
} | {
|
|
1966
|
-
name: string;
|
|
1967
|
-
description: string;
|
|
1968
|
-
sideEffects: "read";
|
|
1969
|
-
inputSchema: {
|
|
1970
|
-
type: "object";
|
|
1971
|
-
required: string[];
|
|
1972
|
-
properties: {
|
|
1973
|
-
query: {
|
|
1974
|
-
type: "string";
|
|
1975
|
-
description: string;
|
|
1976
|
-
};
|
|
1977
|
-
folder: {
|
|
1978
|
-
type: "string";
|
|
1979
|
-
description: string;
|
|
1980
|
-
};
|
|
1981
|
-
mode: {
|
|
1982
|
-
type: "string";
|
|
1983
|
-
enum: string[];
|
|
1984
|
-
description: string;
|
|
1985
|
-
};
|
|
1986
|
-
since: {
|
|
1987
|
-
type: "string";
|
|
1988
|
-
description: string;
|
|
1989
|
-
};
|
|
1990
|
-
before: {
|
|
1991
|
-
type: "string";
|
|
1992
|
-
description: string;
|
|
1993
|
-
};
|
|
1994
|
-
hasAttachments: {
|
|
1995
|
-
type: "boolean";
|
|
1996
|
-
description: string;
|
|
1997
|
-
};
|
|
1998
|
-
unreadOnly: {
|
|
1999
|
-
type: "boolean";
|
|
2000
|
-
description: string;
|
|
2001
|
-
};
|
|
2002
|
-
limit: {
|
|
2003
|
-
type: "integer";
|
|
2004
|
-
description: string;
|
|
2005
|
-
};
|
|
2006
|
-
view?: never;
|
|
2007
|
-
uid?: never;
|
|
2008
|
-
threadId?: never;
|
|
2009
|
-
partPath?: never;
|
|
2010
|
-
refresh?: never;
|
|
2011
|
-
action?: never;
|
|
2012
|
-
input?: never;
|
|
2013
|
-
uids?: never;
|
|
2014
|
-
destination?: never;
|
|
2015
|
-
labels?: never;
|
|
2016
|
-
path?: never;
|
|
2017
|
-
oldPath?: never;
|
|
2018
|
-
newPath?: never;
|
|
2019
|
-
folders?: never;
|
|
2020
|
-
bodies?: never;
|
|
2021
|
-
};
|
|
2022
|
-
};
|
|
2023
|
-
handler(ctx: EmailToolContext, input: {
|
|
2024
|
-
query: string;
|
|
2025
|
-
folder?: string;
|
|
2026
|
-
mode?: "local" | "remote";
|
|
2027
|
-
since?: string;
|
|
2028
|
-
before?: string;
|
|
2029
|
-
hasAttachments?: boolean;
|
|
2030
|
-
unreadOnly?: boolean;
|
|
2031
|
-
limit?: number;
|
|
2032
|
-
}): Promise<{
|
|
2033
|
-
outcome: "success";
|
|
2034
|
-
summary: string;
|
|
2035
|
-
entities: {
|
|
2036
|
-
kind: "message";
|
|
2037
|
-
id: string;
|
|
2038
|
-
title: string;
|
|
2039
|
-
}[];
|
|
2040
|
-
nextSteps: string[];
|
|
2041
|
-
} | {
|
|
2042
|
-
outcome: "error";
|
|
2043
|
-
summary: string;
|
|
2044
|
-
entities: never[];
|
|
2045
|
-
nextSteps: string[];
|
|
2046
|
-
}>;
|
|
2047
|
-
} | {
|
|
2048
|
-
name: string;
|
|
2049
|
-
description: string;
|
|
2050
|
-
sideEffects: "external";
|
|
2051
|
-
inputSchema: {
|
|
2052
|
-
type: "object";
|
|
2053
|
-
required: string[];
|
|
2054
|
-
properties: {
|
|
2055
|
-
action: {
|
|
2056
|
-
type: "string";
|
|
2057
|
-
enum: string[];
|
|
2058
|
-
};
|
|
2059
|
-
folder: {
|
|
2060
|
-
type: "string";
|
|
2061
|
-
description: string;
|
|
2062
|
-
};
|
|
2063
|
-
uid: {
|
|
2064
|
-
type: "integer";
|
|
2065
|
-
description: string;
|
|
2066
|
-
};
|
|
2067
|
-
input: {
|
|
2068
|
-
type: "object";
|
|
2069
|
-
description: string;
|
|
2070
|
-
};
|
|
2071
|
-
view?: never;
|
|
2072
|
-
threadId?: never;
|
|
2073
|
-
partPath?: never;
|
|
2074
|
-
limit?: never;
|
|
2075
|
-
unreadOnly?: never;
|
|
2076
|
-
refresh?: never;
|
|
2077
|
-
query?: never;
|
|
2078
|
-
mode?: never;
|
|
2079
|
-
since?: never;
|
|
2080
|
-
before?: never;
|
|
2081
|
-
hasAttachments?: never;
|
|
2082
|
-
uids?: never;
|
|
2083
|
-
destination?: never;
|
|
2084
|
-
labels?: never;
|
|
2085
|
-
path?: never;
|
|
2086
|
-
oldPath?: never;
|
|
2087
|
-
newPath?: never;
|
|
2088
|
-
folders?: never;
|
|
2089
|
-
bodies?: never;
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
handler(ctx: EmailToolContext, input: {
|
|
2093
|
-
action: "send";
|
|
2094
|
-
input: ComposeInput;
|
|
2095
|
-
} | {
|
|
2096
|
-
action: "reply";
|
|
2097
|
-
folder: string;
|
|
2098
|
-
uid: number;
|
|
2099
|
-
input: ReplyInput;
|
|
2100
|
-
} | {
|
|
2101
|
-
action: "forward";
|
|
2102
|
-
folder: string;
|
|
2103
|
-
uid: number;
|
|
2104
|
-
input: ForwardInput;
|
|
2105
|
-
} | {
|
|
2106
|
-
action: "save_draft";
|
|
2107
|
-
input: ComposeInput;
|
|
2108
|
-
} | {
|
|
2109
|
-
action: "update_draft";
|
|
2110
|
-
uid: number;
|
|
2111
|
-
input: ComposeInput;
|
|
2112
|
-
} | {
|
|
2113
|
-
action: "send_draft";
|
|
2114
|
-
uid: number;
|
|
2115
|
-
}): Promise<{
|
|
2116
|
-
outcome: "success";
|
|
2117
|
-
summary: string;
|
|
2118
|
-
entities: {
|
|
2119
|
-
kind: "message";
|
|
2120
|
-
id: string;
|
|
2121
|
-
title: string;
|
|
2122
|
-
}[];
|
|
2123
|
-
nextSteps: string[];
|
|
2124
|
-
} | {
|
|
2125
|
-
outcome: "error";
|
|
2126
|
-
summary: string;
|
|
2127
|
-
entities: never[];
|
|
2128
|
-
nextSteps: string[];
|
|
2129
|
-
}>;
|
|
2130
|
-
} | {
|
|
2131
|
-
name: string;
|
|
2132
|
-
description: string;
|
|
2133
|
-
sideEffects: "write";
|
|
2134
|
-
inputSchema: {
|
|
2135
|
-
type: "object";
|
|
2136
|
-
required: string[];
|
|
2137
|
-
properties: {
|
|
2138
|
-
action: {
|
|
2139
|
-
type: "string";
|
|
2140
|
-
enum: string[];
|
|
2141
|
-
};
|
|
2142
|
-
folder: {
|
|
2143
|
-
type: "string";
|
|
2144
|
-
description: string;
|
|
2145
|
-
};
|
|
2146
|
-
uids: {
|
|
2147
|
-
type: "array";
|
|
2148
|
-
items: {
|
|
2149
|
-
type: "integer";
|
|
2150
|
-
};
|
|
2151
|
-
description: string;
|
|
2152
|
-
};
|
|
2153
|
-
destination: {
|
|
2154
|
-
type: "string";
|
|
2155
|
-
description: string;
|
|
2156
|
-
};
|
|
2157
|
-
labels: {
|
|
2158
|
-
type: "array";
|
|
2159
|
-
items: {
|
|
2160
|
-
type: "string";
|
|
2161
|
-
};
|
|
2162
|
-
description: string;
|
|
2163
|
-
};
|
|
2164
|
-
path: {
|
|
2165
|
-
type: "string";
|
|
2166
|
-
description: string;
|
|
2167
|
-
};
|
|
2168
|
-
oldPath: {
|
|
2169
|
-
type: "string";
|
|
2170
|
-
description: string;
|
|
2171
|
-
};
|
|
2172
|
-
newPath: {
|
|
2173
|
-
type: "string";
|
|
2174
|
-
description: string;
|
|
2175
|
-
};
|
|
2176
|
-
view?: never;
|
|
2177
|
-
uid?: never;
|
|
2178
|
-
threadId?: never;
|
|
2179
|
-
partPath?: never;
|
|
2180
|
-
limit?: never;
|
|
2181
|
-
unreadOnly?: never;
|
|
2182
|
-
refresh?: never;
|
|
2183
|
-
query?: never;
|
|
2184
|
-
mode?: never;
|
|
2185
|
-
since?: never;
|
|
2186
|
-
before?: never;
|
|
2187
|
-
hasAttachments?: never;
|
|
2188
|
-
input?: never;
|
|
2189
|
-
folders?: never;
|
|
2190
|
-
bodies?: never;
|
|
2191
|
-
};
|
|
2192
|
-
};
|
|
2193
|
-
handler(ctx: EmailToolContext, input: {
|
|
2194
|
-
action: "mark_read" | "mark_unread" | "star" | "unstar" | "mark_answered";
|
|
2195
|
-
folder: string;
|
|
2196
|
-
uids: number[];
|
|
2197
|
-
} | {
|
|
2198
|
-
action: "copy" | "move";
|
|
2199
|
-
folder: string;
|
|
2200
|
-
uids: number[];
|
|
2201
|
-
destination: string;
|
|
2202
|
-
} | {
|
|
2203
|
-
action: "archive" | "trash" | "junk";
|
|
2204
|
-
folder: string;
|
|
2205
|
-
uids: number[];
|
|
2206
|
-
} | {
|
|
2207
|
-
action: "not_junk";
|
|
2208
|
-
folder: string;
|
|
2209
|
-
uids: number[];
|
|
2210
|
-
destination?: string;
|
|
2211
|
-
} | {
|
|
2212
|
-
action: "set_labels" | "add_labels" | "remove_labels";
|
|
2213
|
-
folder: string;
|
|
2214
|
-
uids: number[];
|
|
2215
|
-
labels: string[];
|
|
2216
|
-
} | {
|
|
2217
|
-
action: "create_folder";
|
|
2218
|
-
path: string;
|
|
2219
|
-
} | {
|
|
2220
|
-
action: "rename_folder";
|
|
2221
|
-
oldPath: string;
|
|
2222
|
-
newPath: string;
|
|
2223
|
-
} | {
|
|
2224
|
-
action: "delete_folder" | "subscribe_folder" | "unsubscribe_folder";
|
|
2225
|
-
path: string;
|
|
2226
|
-
}): Promise<{
|
|
2227
|
-
outcome: "success";
|
|
2228
|
-
summary: string;
|
|
2229
|
-
entities: {
|
|
2230
|
-
kind: "message";
|
|
2231
|
-
id: string;
|
|
2232
|
-
title: string;
|
|
2233
|
-
}[];
|
|
2234
|
-
nextSteps: never[];
|
|
2235
|
-
} | {
|
|
2236
|
-
outcome: "success";
|
|
2237
|
-
summary: string;
|
|
2238
|
-
entities: {
|
|
2239
|
-
kind: "mailbox";
|
|
2240
|
-
id: string;
|
|
2241
|
-
title: string;
|
|
2242
|
-
}[];
|
|
2243
|
-
nextSteps: string[];
|
|
2244
|
-
} | {
|
|
2245
|
-
outcome: "error";
|
|
2246
|
-
summary: string;
|
|
2247
|
-
entities: never[];
|
|
2248
|
-
nextSteps: string[];
|
|
2249
|
-
}>;
|
|
2250
|
-
} | {
|
|
2251
|
-
name: string;
|
|
2252
|
-
description: string;
|
|
2253
|
-
sideEffects: "external";
|
|
2254
|
-
inputSchema: {
|
|
2255
|
-
type: "object";
|
|
2256
|
-
required: string[];
|
|
2257
|
-
properties: {
|
|
2258
|
-
action: {
|
|
2259
|
-
type: "string";
|
|
2260
|
-
enum: string[];
|
|
2261
|
-
};
|
|
2262
|
-
folders: {
|
|
2263
|
-
type: "array";
|
|
2264
|
-
items: {
|
|
2265
|
-
type: "string";
|
|
2266
|
-
};
|
|
2267
|
-
description: string;
|
|
2268
|
-
};
|
|
2269
|
-
bodies: {
|
|
2270
|
-
type: "string";
|
|
2271
|
-
enum: string[];
|
|
2272
|
-
description: string;
|
|
2273
|
-
};
|
|
2274
|
-
view?: never;
|
|
2275
|
-
folder?: never;
|
|
2276
|
-
uid?: never;
|
|
2277
|
-
threadId?: never;
|
|
2278
|
-
partPath?: never;
|
|
2279
|
-
limit?: never;
|
|
2280
|
-
unreadOnly?: never;
|
|
2281
|
-
refresh?: never;
|
|
2282
|
-
query?: never;
|
|
2283
|
-
mode?: never;
|
|
2284
|
-
since?: never;
|
|
2285
|
-
before?: never;
|
|
2286
|
-
hasAttachments?: never;
|
|
2287
|
-
input?: never;
|
|
2288
|
-
uids?: never;
|
|
2289
|
-
destination?: never;
|
|
2290
|
-
labels?: never;
|
|
2291
|
-
path?: never;
|
|
2292
|
-
oldPath?: never;
|
|
2293
|
-
newPath?: never;
|
|
2294
|
-
};
|
|
2295
|
-
};
|
|
2296
|
-
handler(ctx: EmailToolContext, input: {
|
|
2297
|
-
action: "connect" | "disconnect" | "reconnect";
|
|
2298
|
-
} | {
|
|
2299
|
-
action: "sync";
|
|
2300
|
-
folders?: string[];
|
|
2301
|
-
bodies?: "none" | "missing" | "all";
|
|
2302
|
-
} | {
|
|
2303
|
-
action: "refresh_folders";
|
|
2304
|
-
} | {
|
|
2305
|
-
action: "watch";
|
|
2306
|
-
folders?: string[];
|
|
2307
|
-
}): Promise<{
|
|
2308
|
-
outcome: "success";
|
|
2309
|
-
summary: string;
|
|
2310
|
-
entities: {
|
|
2311
|
-
kind: "mailbox";
|
|
2312
|
-
id: string;
|
|
2313
|
-
title: string;
|
|
2314
|
-
}[];
|
|
2315
|
-
nextSteps: string[];
|
|
2316
|
-
} | {
|
|
2317
|
-
outcome: "error";
|
|
2318
|
-
summary: string;
|
|
2319
|
-
entities: never[];
|
|
2320
|
-
nextSteps: string[];
|
|
2321
|
-
}>;
|
|
2322
|
-
} | undefined;
|
|
1840
|
+
declare function getEmailToolByName(name: string): EmailToolDefinition<unknown> | undefined;
|
|
2323
1841
|
|
|
2324
1842
|
type index$1_EmailToolContext = EmailToolContext;
|
|
2325
1843
|
type index$1_EmailToolDefinition<TInput = unknown> = EmailToolDefinition<TInput>;
|