expandai 0.0.1 → 0.0.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.
@@ -32,114 +32,123 @@ declare const ApiClient_base: Effect.Service.Class<ApiClient, "@expandai/cli/Api
32
32
  };
33
33
  readonly payload: {
34
34
  readonly url: string;
35
+ readonly search?: {
36
+ readonly query: string;
37
+ readonly maxResults?: number | null | undefined;
38
+ readonly minScore?: number | null | undefined;
39
+ } | null | undefined;
35
40
  readonly include?: {
36
- readonly html?: boolean | {
37
- readonly [x: string]: unknown;
41
+ readonly response?: {
42
+ readonly includeHeaders?: boolean | null | undefined;
38
43
  } | null | undefined;
44
+ readonly meta?: boolean | null | undefined;
39
45
  readonly markdown?: boolean | {
40
46
  readonly [x: string]: unknown;
41
47
  } | null | undefined;
48
+ readonly json?: boolean | null | undefined;
49
+ readonly appendix?: boolean | null | undefined;
50
+ readonly links?: boolean | {
51
+ readonly sameDomainOnly?: boolean | null | undefined;
52
+ readonly includePatterns?: readonly string[] | null | undefined;
53
+ readonly excludePatterns?: readonly string[] | null | undefined;
54
+ } | null | undefined;
42
55
  readonly screenshot?: boolean | {
43
56
  readonly fullPage?: boolean | null | undefined;
44
57
  } | null | undefined;
58
+ readonly html?: boolean | {
59
+ readonly [x: string]: unknown;
60
+ } | null | undefined;
45
61
  readonly summary?: boolean | {
46
62
  readonly prompt?: string | null | undefined;
47
63
  } | null | undefined;
48
- readonly links?: boolean | {
49
- readonly skipEmptyText?: boolean | null | undefined;
50
- readonly includeNavigation?: boolean | null | undefined;
51
- } | null | undefined;
52
- readonly meta?: boolean | null | undefined;
53
- readonly response?: boolean | null | undefined;
54
- readonly json?: boolean | null | undefined;
55
- readonly appendix?: boolean | null | undefined;
56
- } | null | undefined;
57
- readonly search?: {
58
- readonly query: string;
59
- readonly maxResults?: number | null | undefined;
60
- readonly minScore?: number | null | undefined;
61
64
  } | null | undefined;
62
65
  readonly browserConfig?: {
63
66
  readonly scrollFullPage?: boolean | null | undefined;
64
67
  } | null | undefined;
65
68
  };
66
- }) => Effect.Effect<string, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
69
+ }) => Effect.Effect<string, import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
67
70
  readonly fetchFetchResult: (options: {
68
71
  readonly params: {
69
72
  readonly include?: string | null | undefined;
70
73
  };
71
74
  readonly payload: {
72
75
  readonly url: string;
76
+ readonly search?: {
77
+ readonly query: string;
78
+ readonly maxResults?: number | null | undefined;
79
+ readonly minScore?: number | null | undefined;
80
+ } | null | undefined;
73
81
  readonly include?: {
74
- readonly html?: boolean | {
75
- readonly [x: string]: unknown;
82
+ readonly response?: {
83
+ readonly includeHeaders?: boolean | null | undefined;
76
84
  } | null | undefined;
85
+ readonly meta?: boolean | null | undefined;
77
86
  readonly markdown?: boolean | {
78
87
  readonly [x: string]: unknown;
79
88
  } | null | undefined;
89
+ readonly json?: boolean | null | undefined;
90
+ readonly appendix?: boolean | null | undefined;
91
+ readonly links?: boolean | {
92
+ readonly sameDomainOnly?: boolean | null | undefined;
93
+ readonly includePatterns?: readonly string[] | null | undefined;
94
+ readonly excludePatterns?: readonly string[] | null | undefined;
95
+ } | null | undefined;
80
96
  readonly screenshot?: boolean | {
81
97
  readonly fullPage?: boolean | null | undefined;
82
98
  } | null | undefined;
99
+ readonly html?: boolean | {
100
+ readonly [x: string]: unknown;
101
+ } | null | undefined;
83
102
  readonly summary?: boolean | {
84
103
  readonly prompt?: string | null | undefined;
85
104
  } | null | undefined;
86
- readonly links?: boolean | {
87
- readonly skipEmptyText?: boolean | null | undefined;
88
- readonly includeNavigation?: boolean | null | undefined;
89
- } | null | undefined;
90
- readonly meta?: boolean | null | undefined;
91
- readonly response?: boolean | null | undefined;
92
- readonly json?: boolean | null | undefined;
93
- readonly appendix?: boolean | null | undefined;
94
- } | null | undefined;
95
- readonly search?: {
96
- readonly query: string;
97
- readonly maxResults?: number | null | undefined;
98
- readonly minScore?: number | null | undefined;
99
105
  } | null | undefined;
100
106
  readonly browserConfig?: {
101
107
  readonly scrollFullPage?: boolean | null | undefined;
102
108
  } | null | undefined;
103
109
  };
104
- }) => Effect.Effect<import("@expandai/sdk/FetchJson").FetchObjectModeResultWithJson, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
110
+ }) => Effect.Effect<import("@expandai/sdk/FetchJson").FetchObjectModeResultWithJson, import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
105
111
  readonly fetchFetchJson: (options: {
106
112
  readonly params: {
107
113
  readonly include?: string | null | undefined;
108
114
  };
109
115
  readonly payload: {
110
116
  readonly url: string;
117
+ readonly search?: {
118
+ readonly query: string;
119
+ readonly maxResults?: number | null | undefined;
120
+ readonly minScore?: number | null | undefined;
121
+ } | null | undefined;
111
122
  readonly include?: {
112
- readonly html?: boolean | {
113
- readonly [x: string]: unknown;
123
+ readonly response?: {
124
+ readonly includeHeaders?: boolean | null | undefined;
114
125
  } | null | undefined;
126
+ readonly meta?: boolean | null | undefined;
115
127
  readonly markdown?: boolean | {
116
128
  readonly [x: string]: unknown;
117
129
  } | null | undefined;
130
+ readonly json?: boolean | null | undefined;
131
+ readonly appendix?: boolean | null | undefined;
132
+ readonly links?: boolean | {
133
+ readonly sameDomainOnly?: boolean | null | undefined;
134
+ readonly includePatterns?: readonly string[] | null | undefined;
135
+ readonly excludePatterns?: readonly string[] | null | undefined;
136
+ } | null | undefined;
118
137
  readonly screenshot?: boolean | {
119
138
  readonly fullPage?: boolean | null | undefined;
120
139
  } | null | undefined;
140
+ readonly html?: boolean | {
141
+ readonly [x: string]: unknown;
142
+ } | null | undefined;
121
143
  readonly summary?: boolean | {
122
144
  readonly prompt?: string | null | undefined;
123
145
  } | null | undefined;
124
- readonly links?: boolean | {
125
- readonly skipEmptyText?: boolean | null | undefined;
126
- readonly includeNavigation?: boolean | null | undefined;
127
- } | null | undefined;
128
- readonly meta?: boolean | null | undefined;
129
- readonly response?: boolean | null | undefined;
130
- readonly json?: boolean | null | undefined;
131
- readonly appendix?: boolean | null | undefined;
132
- } | null | undefined;
133
- readonly search?: {
134
- readonly query: string;
135
- readonly maxResults?: number | null | undefined;
136
- readonly minScore?: number | null | undefined;
137
146
  } | null | undefined;
138
147
  readonly browserConfig?: {
139
148
  readonly scrollFullPage?: boolean | null | undefined;
140
149
  } | null | undefined;
141
150
  };
142
- }) => Effect.Effect<import("@expandai/sdk/FetchJson").FetchObjectModeResultWithJson, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
151
+ }) => Effect.Effect<import("@expandai/sdk/FetchJson").FetchObjectModeResultWithJson, import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
143
152
  readonly fetchFetchSearch: (options: {
144
153
  readonly search: {
145
154
  readonly query: string;
@@ -148,68 +157,68 @@ declare const ApiClient_base: Effect.Service.Class<ApiClient, "@expandai/cli/Api
148
157
  };
149
158
  readonly snapshotId: string;
150
159
  readonly include?: {
151
- readonly html?: boolean | {
152
- readonly [x: string]: unknown;
160
+ readonly response?: {
161
+ readonly includeHeaders?: boolean | null | undefined;
153
162
  } | null | undefined;
163
+ readonly meta?: boolean | null | undefined;
154
164
  readonly markdown?: boolean | {
155
165
  readonly [x: string]: unknown;
156
166
  } | null | undefined;
157
- readonly screenshot?: boolean | {
158
- readonly fullPage?: boolean | null | undefined;
159
- } | null | undefined;
160
- readonly summary?: boolean | {
161
- readonly prompt?: string | null | undefined;
162
- } | null | undefined;
167
+ readonly json?: boolean | null | undefined;
168
+ readonly appendix?: boolean | null | undefined;
163
169
  readonly links?: boolean | {
164
170
  readonly sameDomainOnly?: boolean | null | undefined;
165
171
  readonly includePatterns?: readonly string[] | null | undefined;
166
172
  readonly excludePatterns?: readonly string[] | null | undefined;
167
173
  } | null | undefined;
168
- readonly meta?: boolean | null | undefined;
169
- readonly response?: {
170
- readonly includeHeaders?: boolean | null | undefined;
174
+ readonly screenshot?: boolean | {
175
+ readonly fullPage?: boolean | null | undefined;
176
+ } | null | undefined;
177
+ readonly html?: boolean | {
178
+ readonly [x: string]: unknown;
179
+ } | null | undefined;
180
+ readonly summary?: boolean | {
181
+ readonly prompt?: string | null | undefined;
171
182
  } | null | undefined;
172
- readonly json?: boolean | null | undefined;
173
- readonly appendix?: boolean | null | undefined;
174
183
  } | null | undefined;
175
- }) => Effect.Effect<import("@expandai/sdk/FetchJson").FetchSnapshotSearchResultWithJson, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
184
+ }) => Effect.Effect<import("@expandai/sdk/FetchJson").FetchSnapshotSearchResultWithJson, import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
176
185
  readonly fetchBatched: (options: {
177
186
  readonly urls: readonly [string, ...string[]];
178
187
  readonly include?: {
179
- readonly html?: boolean | {
180
- readonly [x: string]: unknown;
188
+ readonly response?: {
189
+ readonly includeHeaders?: boolean | null | undefined;
181
190
  } | null | undefined;
191
+ readonly meta?: boolean | null | undefined;
182
192
  readonly markdown?: boolean | {
183
193
  readonly [x: string]: unknown;
184
194
  } | null | undefined;
185
- readonly screenshot?: boolean | {
186
- readonly fullPage?: boolean | null | undefined;
187
- } | null | undefined;
188
- readonly summary?: boolean | {
189
- readonly prompt?: string | null | undefined;
190
- } | null | undefined;
195
+ readonly json?: boolean | null | undefined;
196
+ readonly appendix?: boolean | null | undefined;
191
197
  readonly links?: boolean | {
192
198
  readonly sameDomainOnly?: boolean | null | undefined;
193
199
  readonly includePatterns?: readonly string[] | null | undefined;
194
200
  readonly excludePatterns?: readonly string[] | null | undefined;
195
201
  } | null | undefined;
196
- readonly meta?: boolean | null | undefined;
197
- readonly response?: {
198
- readonly includeHeaders?: boolean | null | undefined;
202
+ readonly screenshot?: boolean | {
203
+ readonly fullPage?: boolean | null | undefined;
204
+ } | null | undefined;
205
+ readonly html?: boolean | {
206
+ readonly [x: string]: unknown;
207
+ } | null | undefined;
208
+ readonly summary?: boolean | {
209
+ readonly prompt?: string | null | undefined;
199
210
  } | null | undefined;
200
- readonly json?: boolean | null | undefined;
201
- readonly appendix?: boolean | null | undefined;
202
211
  } | null | undefined;
203
212
  readonly browserConfig?: {
204
213
  readonly scrollFullPage?: boolean | null | undefined;
205
214
  } | null | undefined;
206
- }) => Effect.Effect<Generated.BatchedRun, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
215
+ }) => Effect.Effect<Generated.BatchedRun, import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
207
216
  readonly fetchGetBatched: (id: string, options: {
208
217
  readonly include?: string | null | undefined;
209
218
  readonly limit?: string | null | undefined;
210
219
  readonly offset?: string | null | undefined;
211
- }) => Effect.Effect<Generated.BatchedStatus, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
212
- }, never, HttpClient.HttpClient | ConfigManager | BrowserOAuthService>;
220
+ }) => Effect.Effect<Generated.BatchedStatus, import("./Config.js").ConfigNotWritable | import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | OAuthTokenExpired | import("effect/ConfigError").ConfigError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./BrowserOAuth.js").BrowserOAuthRequestFailed | ApiRequestFailed | OAuthAuthMethodChanged, never>;
221
+ }, never, ConfigManager | BrowserOAuthService | HttpClient.HttpClient>;
213
222
  }>;
214
223
  /**
215
224
  * Resolves outgoing API auth per call. When the current request scope carries
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../src/ApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAyC,MAAM,kBAAkB,CAAA;AAGpF,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAA4B,MAAM,EAAiC,MAAM,EAAE,MAAM,QAAQ,CAAA;AAChG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAe,iBAAiB,EAAE,MAAM,aAAa,CAAA;;;;;;AAG3E;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,qBAEpC;IACD,IAAI,OAAO,WAEV;CACD;;;;AAcD,cAAM,sBAAuB,SAAQ,4BAA2C,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DzG;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,cAwJ7B;CAAG"}
1
+ {"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../src/ApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAyC,MAAM,kBAAkB,CAAA;AAGpF,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAA4B,MAAM,EAAiC,MAAM,EAAE,MAAM,QAAQ,CAAA;AAChG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAe,iBAAiB,EAAE,MAAM,aAAa,CAAA;;;;;;AAG3E;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,qBAEpC;IACD,IAAI,OAAO,WAEV;CACD;;;;AAcD,cAAM,sBAAuB,SAAQ,4BAA2C,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DzG;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,cAwJ7B;CAAG"}
@@ -11,13 +11,13 @@ declare const Authentication_base: Effect.Service.Class<Authentication, "@expand
11
11
  readonly effect: Effect.Effect<{
12
12
  readonly login: () => Effect.Effect<void, unknown, import("@effect/platform/Terminal").Terminal>;
13
13
  readonly whoami: () => Effect.Effect<void, import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError, never>;
14
- readonly logout: () => Effect.Effect<void, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("@effect/platform/Error").PlatformError | import("./Install/Domain.js").McpParseError | import("./Install/Domain.js").McpWriteError | import("@effect/platform/Terminal").QuitException, import("@effect/platform/Terminal").Terminal>;
14
+ readonly logout: () => Effect.Effect<void, import("./Config.js").ConfigNotWritable | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./Install/Domain.js").McpParseError | import("./Install/Domain.js").McpWriteError | import("@effect/platform/Terminal").QuitException, import("@effect/platform/Terminal").Terminal>;
15
15
  }, never, ConfigManager | BrowserOAuthService | Uninstall>;
16
16
  }>;
17
17
  export declare class Authentication extends Authentication_base {
18
18
  }
19
19
  export declare const LoginCommand: Command.Command<"login", Authentication | import("@effect/platform/Terminal").Terminal, unknown, {}>;
20
20
  export declare const WhoamiCommand: Command.Command<"whoami", Authentication, import("./Config.js").ConfigParseError | import("./Config.js").NotAuthenticated | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError, {}>;
21
- export declare const LogoutCommand: Command.Command<"logout", Authentication | import("@effect/platform/Terminal").Terminal, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable | import("@effect/platform/Error").PlatformError | import("./Install/Domain.js").McpParseError | import("./Install/Domain.js").McpWriteError | import("@effect/platform/Terminal").QuitException, {}>;
21
+ export declare const LogoutCommand: Command.Command<"logout", Authentication | import("@effect/platform/Terminal").Terminal, import("./Config.js").ConfigNotWritable | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError | import("./Install/Domain.js").McpParseError | import("./Install/Domain.js").McpWriteError | import("@effect/platform/Terminal").QuitException, {}>;
22
22
  export {};
23
23
  //# sourceMappingURL=Authentication.d.ts.map
@@ -89,9 +89,9 @@ declare const BrowserOAuthService_base: Effect.Service.Class<BrowserOAuthService
89
89
  readonly effect: Effect.Effect<{
90
90
  readonly exchangeCode: (args_0: ExchangeCodeInput) => Effect.Effect<TokenResponse, import("./Config.js").ConfigParseError | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | BrowserOAuthRequestFailed, never>;
91
91
  readonly refreshToken: (refreshToken: string) => Effect.Effect<TokenResponse, import("./Config.js").ConfigParseError | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError | BrowserOAuthRequestFailed, never>;
92
- readonly saveToken: (tokenResponse: TokenResponse) => Effect.Effect<void, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable, never>;
92
+ readonly saveToken: (tokenResponse: TokenResponse) => Effect.Effect<void, import("./Config.js").ConfigNotWritable | import("effect/ParseResult").ParseError, never>;
93
93
  readonly login: <R>(openAuthorizeUrl: (authorizeUrl: URL) => Effect.Effect<void, unknown, R>) => Effect.Effect<undefined, unknown, R>;
94
- }, never, HttpClient.HttpClient | ConfigManager>;
94
+ }, never, ConfigManager | HttpClient.HttpClient>;
95
95
  }>;
96
96
  export declare class BrowserOAuthService extends BrowserOAuthService_base {
97
97
  }
@@ -33,13 +33,13 @@ declare const ExpandCliConfig_base: Schema.Class<ExpandCliConfig, {
33
33
  readonly apiUrl?: URL | undefined;
34
34
  } & {
35
35
  readonly authMethod?: {
36
- readonly _tag: "ApiKey";
37
36
  readonly apiKey: import("effect/Redacted").Redacted<string & import("effect/Brand").Brand<"ApiKey">>;
37
+ readonly _tag: "ApiKey";
38
38
  } | {
39
- readonly _tag: "OAuth";
40
39
  readonly accessToken: import("effect/Redacted").Redacted<string>;
41
40
  readonly refreshToken?: import("effect/Redacted").Redacted<string> | undefined;
42
41
  readonly expiresAt: DateTime.Utc;
42
+ readonly _tag: "OAuth";
43
43
  } | undefined;
44
44
  }, {}, {}>;
45
45
  export declare class ExpandCliConfig extends ExpandCliConfig_base {
@@ -83,18 +83,18 @@ declare const ConfigManager_base: Effect.Service.Class<ConfigManager, "@expandai
83
83
  readonly loadConfig: () => Effect.Effect<{
84
84
  apiUrl: URL;
85
85
  authMethod: NonNullable<{
86
- readonly _tag: "ApiKey";
87
86
  readonly apiKey: import("effect/Redacted").Redacted<string & import("effect/Brand").Brand<"ApiKey">>;
87
+ readonly _tag: "ApiKey";
88
88
  } | {
89
- readonly _tag: "OAuth";
90
89
  readonly accessToken: import("effect/Redacted").Redacted<string>;
91
90
  readonly refreshToken?: import("effect/Redacted").Redacted<string> | undefined;
92
91
  readonly expiresAt: DateTime.Utc;
92
+ readonly _tag: "OAuth";
93
93
  } | undefined>;
94
94
  }, ConfigParseError | NotAuthenticated | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError, never>;
95
- readonly saveConfig: (config: ExpandCliConfig) => Effect.Effect<void, import("effect/ParseResult").ParseError | ConfigNotWritable, never>;
96
- readonly updateConfig: (patch: Partial<ExpandCliConfig>) => Effect.Effect<void, import("effect/ParseResult").ParseError | ConfigNotWritable, never>;
97
- readonly clearConfig: () => Effect.Effect<void, import("effect/ParseResult").ParseError | ConfigNotWritable, never>;
95
+ readonly saveConfig: (config: ExpandCliConfig) => Effect.Effect<void, ConfigNotWritable | import("effect/ParseResult").ParseError, never>;
96
+ readonly updateConfig: (patch: Partial<ExpandCliConfig>) => Effect.Effect<void, ConfigNotWritable | import("effect/ParseResult").ParseError, never>;
97
+ readonly clearConfig: () => Effect.Effect<void, ConfigNotWritable | import("effect/ParseResult").ParseError, never>;
98
98
  readonly getApiUrl: () => Effect.Effect<URL, ConfigParseError | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError, never>;
99
99
  readonly getPlaygroundHost: () => Effect.Effect<string, import("effect/ConfigError").ConfigError, never>;
100
100
  }, import("effect/ConfigError").ConfigError, FileSystem.FileSystem | Path.Path>;
@@ -78,8 +78,8 @@ declare const DeviceAuthService_base: Effect.Service.Class<DeviceAuthService, "@
78
78
  readonly effect: Effect.Effect<{
79
79
  readonly requestDeviceCode: () => Effect.Effect<DeviceCodeResponse, import("@effect/platform/HttpBody").HttpBodyError | DeviceAuthRequestFailed, never>;
80
80
  readonly pollForToken: (deviceCode: string, interval: Duration.Duration, expiresIn: Duration.Duration) => Effect.Effect<TokenResponse, DeviceAuthRequestFailed | DeviceAuthorizationDenied | DeviceAuthorizationExpired, never>;
81
- readonly saveToken: (tokenResponse: TokenResponse) => Effect.Effect<void, import("effect/ParseResult").ParseError | import("./Config.js").ConfigNotWritable, never>;
82
- }, import("./Config.js").ConfigParseError | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError, HttpClient.HttpClient | ConfigManager>;
81
+ readonly saveToken: (tokenResponse: TokenResponse) => Effect.Effect<void, import("./Config.js").ConfigNotWritable | import("effect/ParseResult").ParseError, never>;
82
+ }, import("./Config.js").ConfigParseError | import("effect/ConfigError").ConfigError | import("@effect/platform/Error").PlatformError, ConfigManager | HttpClient.HttpClient>;
83
83
  }>;
84
84
  export declare class DeviceAuthService extends DeviceAuthService_base {
85
85
  }
@@ -69,13 +69,13 @@ declare const CitedSearchResult_base: S.Class<CitedSearchResult, {
69
69
  readonly meta?: {
70
70
  readonly durationMs: number;
71
71
  readonly sources: readonly {
72
+ readonly durationMs: number;
72
73
  readonly source: "markdown" | "appendix" | "statejson";
73
74
  readonly chunkCount: number;
74
75
  readonly batchCount: number;
75
76
  readonly ranker: "zeroentropy" | "local_lexical";
76
77
  readonly fallback: boolean;
77
- readonly fallbackReason?: "timeout" | "error" | undefined;
78
- readonly durationMs: number;
78
+ readonly fallbackReason?: "error" | "timeout" | undefined;
79
79
  }[];
80
80
  } | undefined;
81
81
  } & {
@@ -120,22 +120,13 @@ declare const CitedObjectModeResult_base: S.Class<CitedObjectModeResult, {
120
120
  nullable: true;
121
121
  }>;
122
122
  }>, never, {
123
- readonly markdown: string;
124
- } & {
125
123
  readonly meta: {
124
+ readonly description?: string | undefined;
126
125
  readonly url: string;
127
126
  readonly markdown?: {
128
127
  readonly url: string;
129
128
  readonly moreTokens: number;
130
129
  } | undefined;
131
- readonly appendix?: {
132
- readonly url: string;
133
- readonly links: {
134
- readonly sameDomain: number;
135
- readonly external: number;
136
- };
137
- } | undefined;
138
- readonly description?: string | undefined;
139
130
  readonly version: 1;
140
131
  readonly capturedAt: string;
141
132
  readonly snapshotId: string;
@@ -150,33 +141,42 @@ declare const CitedObjectModeResult_base: S.Class<CitedObjectModeResult, {
150
141
  readonly updatedAt?: string | undefined;
151
142
  readonly image?: string | undefined;
152
143
  readonly paginationNext?: string | undefined;
144
+ readonly appendix?: {
145
+ readonly url: string;
146
+ readonly links: {
147
+ readonly sameDomain: number;
148
+ readonly external: number;
149
+ };
150
+ } | undefined;
153
151
  readonly stateJson?: {
154
152
  readonly moreTokens: number;
155
153
  } | undefined;
156
154
  readonly blocked?: string | undefined;
157
155
  readonly loadingStatus?: string | undefined;
158
156
  };
157
+ } & {
158
+ readonly markdown: string;
159
159
  } & {
160
160
  readonly json: readonly {
161
161
  readonly keys?: readonly string[] | undefined;
162
+ readonly method?: string | undefined;
162
163
  readonly url?: string | undefined;
163
164
  readonly moreTokens?: number | undefined;
164
165
  readonly id: number;
165
166
  readonly kind: "inline" | "network";
166
167
  readonly role: "ld+json" | "next-data" | "nuxt" | "apollo-state" | "initial-state" | "application-json" | "script-tag" | "data-attribute" | "network-json" | "network-response" | "other";
167
168
  readonly score: number;
168
- readonly method?: string | undefined;
169
169
  }[];
170
170
  } & {
171
171
  readonly data?: {
172
172
  readonly search?: CitedSearchResult | undefined;
173
173
  readonly assets?: readonly {
174
+ readonly sha256: string;
174
175
  readonly id: string;
175
176
  readonly kind: "data-url";
176
177
  readonly placeholder: string;
177
178
  readonly archiveKey: string;
178
179
  readonly mimeType: string;
179
- readonly sha256: string;
180
180
  readonly bytes: number;
181
181
  }[] | undefined;
182
182
  readonly captureTelemetry?: {
@@ -187,7 +187,6 @@ declare const CitedObjectModeResult_base: S.Class<CitedObjectModeResult, {
187
187
  readonly rolloutApplied: boolean;
188
188
  readonly preparedSessionHit?: boolean | undefined;
189
189
  readonly nativePoolHit?: boolean | undefined;
190
- readonly preparedPageHit?: boolean | undefined;
191
190
  readonly nativePoolCapacity?: number | undefined;
192
191
  readonly nativePoolProfile?: string | undefined;
193
192
  readonly poolHit?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Citations.d.ts","sourceRoot":"","sources":["../../../../src/Mcp/tools/Citations.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC/G,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpC,qBAAa,YAAa,SAAQ,iBAUhC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAIrC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,qBAAsB,SAAQ,0BAYzC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,yBAA0B,SAAQ,8BAM7C;CAAG;AAyBL,wEAAwE;AACxE,wBAAgB,sBAAsB,CACrC,MAAM,EAAE,6BAA6B,EACrC,YAAY,EAAE,MAAM,GAClB,qBAAqB,CAkBvB;AAED,mGAAmG;AACnG,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,iCAAiC,EACzC,IAAI,EAAE,MAAM,GACV,yBAAyB,CAQ3B"}
1
+ {"version":3,"file":"Citations.d.ts","sourceRoot":"","sources":["../../../../src/Mcp/tools/Citations.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC/G,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpC,qBAAa,YAAa,SAAQ,iBAUhC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAIrC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,qBAAsB,SAAQ,0BAYzC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,yBAA0B,SAAQ,8BAM7C;CAAG;AAyBL,wEAAwE;AACxE,wBAAgB,sBAAsB,CACrC,MAAM,EAAE,6BAA6B,EACrC,YAAY,EAAE,MAAM,GAClB,qBAAqB,CAkBvB;AAED,mGAAmG;AACnG,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,iCAAiC,EACzC,IAAI,EAAE,MAAM,GACV,yBAAyB,CAQ3B"}
@@ -53,9 +53,9 @@ declare const FetchParams_base: Schema.Class<FetchParams, {
53
53
  default: () => true;
54
54
  }>;
55
55
  }>, never, {
56
- readonly url: string;
57
- } & {
58
56
  readonly search?: FetchSearchParams | undefined;
57
+ } & {
58
+ readonly url: string;
59
59
  } & {
60
60
  readonly includeMeta?: boolean | undefined;
61
61
  } & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expandai",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "private": false,
6
6
  "description": "Unified CLI and MCP server for ExpandAI",
7
7
  "author": "ExpandAI",
@@ -29,7 +29,10 @@
29
29
  "types": "./build/dts/index.d.ts",
30
30
  "import": "./build/esm/index.js"
31
31
  },
32
- "./*": "./src/*.ts"
32
+ "./*": {
33
+ "types": "./build/dts/*.d.ts",
34
+ "import": "./build/esm/*.js"
35
+ }
33
36
  },
34
37
  "scripts": {
35
38
  "dev": "tsx --watch src/main.ts",
@@ -51,7 +54,7 @@
51
54
  "@effect/cli": "0.75.1",
52
55
  "@effect/platform": "0.96.1",
53
56
  "@effect/platform-node": "0.106.0",
54
- "@expandai/sdk": "0.17.1",
57
+ "@expandai/sdk": "0.17.2",
55
58
  "effect": "3.21.2",
56
59
  "open": "^11.0.0",
57
60
  "smol-toml": "^1.6.1"