lurqrun 0.0.3 → 0.0.4

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/dist/index.d.ts CHANGED
@@ -35,6 +35,10 @@ type Confidence = 'proven' | 'emerging' | 'promising' | 'unproven';
35
35
  type Runtime = 'browser' | 'node' | 'both';
36
36
  /** Result of co-installing two package versions in the sandbox (compat matrix). */
37
37
  type CompatStatus = 'compatible' | 'conflict';
38
+ /** Coarse post-install result an agent reports back via `report_outcome` — never
39
+ * source code, just whether the recommended package installed / compiled /
40
+ * passed tests, or failed. Feeds the recommendation→outcome flywheel (§3.1). */
41
+ type BuildSignal = 'installed' | 'compiled' | 'tests_passed' | 'failed';
38
42
  /** Sandbox verdict surfaced to agents: did this version actually install + load? */
39
43
  interface BuildVerified {
40
44
  version: string;
@@ -141,6 +145,11 @@ interface EvaluateOutput {
141
145
  summary: string | null;
142
146
  usageGuide: UsageGuide | null;
143
147
  repoUrl: string | null;
148
+ /** If this package is superseded, the recommended migration target (§1.2). */
149
+ replacedBy?: {
150
+ name: string;
151
+ reason: string;
152
+ } | null;
144
153
  /** Latest sandbox verdict for this package, if one has been run. */
145
154
  buildVerified?: BuildVerified | null;
146
155
  }
@@ -169,7 +178,7 @@ declare const SERVER_NAME = "lurq";
169
178
  * Keep in sync with package.json "name". */
170
179
  declare const PACKAGE_NAME = "lurqrun";
171
180
  /** Keep in sync with package.json "version". */
172
- declare const VERSION = "0.0.2";
181
+ declare const VERSION = "0.0.4";
173
182
  /** Default hosted endpoint the install wizard writes into agent configs. The
174
183
  * marketing site is `lurq.run`; the MCP service lives on the `api.` subdomain.
175
184
  * Overridable per-invocation with `lurq install --url …` or `LURQ_ENDPOINT`. */
@@ -200,9 +209,11 @@ declare const EnvSchema: z.ZodObject<{
200
209
  EMBEDDING_PROVIDER: z.ZodDefault<z.ZodEnum<["openai", "local"]>>;
201
210
  EMBEDDING_API_KEY: z.ZodOptional<z.ZodString>;
202
211
  EMBEDDING_MODEL: z.ZodDefault<z.ZodString>;
212
+ EMBEDDING_BASE_URL: z.ZodDefault<z.ZodString>;
203
213
  SUMMARY_PROVIDER: z.ZodDefault<z.ZodEnum<["openai", "none"]>>;
204
214
  SUMMARY_API_KEY: z.ZodOptional<z.ZodString>;
205
215
  SUMMARY_MODEL: z.ZodDefault<z.ZodString>;
216
+ SUMMARY_BASE_URL: z.ZodDefault<z.ZodString>;
206
217
  LURQ_SYNC_CONCURRENCY: z.ZodDefault<z.ZodNumber>;
207
218
  LOG_LEVEL: z.ZodDefault<z.ZodEnum<["error", "warn", "info", "debug"]>>;
208
219
  PORT: z.ZodDefault<z.ZodNumber>;
@@ -212,13 +223,23 @@ declare const EnvSchema: z.ZodObject<{
212
223
  LURQ_IP_RATE_LIMIT_MAX: z.ZodDefault<z.ZodNumber>;
213
224
  /** Rate-limit window, milliseconds (applies to both limiters). */
214
225
  LURQ_RATE_LIMIT_WINDOW_MS: z.ZodDefault<z.ZodNumber>;
226
+ /** Bearer token guarding `/metrics`. Unset → the endpoint is disabled (404). */
227
+ LURQ_METRICS_TOKEN: z.ZodOptional<z.ZodString>;
228
+ /** Shared secret for self-serve key issuance (`POST /keys`). The Clerk-
229
+ * authenticated web app presents it to mint a key for a signed-in user. Unset
230
+ * → the endpoint is disabled (404). Keep it server-side, never in the client. */
231
+ LURQ_ISSUER_SECRET: z.ZodOptional<z.ZodString>;
215
232
  LURQ_ENDPOINT: z.ZodOptional<z.ZodString>;
216
233
  LURQ_API_KEY: z.ZodOptional<z.ZodString>;
234
+ E2B_API_KEY: z.ZodOptional<z.ZodString>;
235
+ E2B_TEMPLATE: z.ZodOptional<z.ZodString>;
217
236
  }, "strip", z.ZodTypeAny, {
218
237
  EMBEDDING_PROVIDER: "openai" | "local";
219
238
  EMBEDDING_MODEL: string;
239
+ EMBEDDING_BASE_URL: string;
220
240
  SUMMARY_PROVIDER: "openai" | "none";
221
241
  SUMMARY_MODEL: string;
242
+ SUMMARY_BASE_URL: string;
222
243
  LURQ_SYNC_CONCURRENCY: number;
223
244
  LOG_LEVEL: "info" | "error" | "warn" | "debug";
224
245
  PORT: number;
@@ -229,25 +250,35 @@ declare const EnvSchema: z.ZodObject<{
229
250
  GITHUB_TOKEN?: string | undefined;
230
251
  EMBEDDING_API_KEY?: string | undefined;
231
252
  SUMMARY_API_KEY?: string | undefined;
253
+ LURQ_METRICS_TOKEN?: string | undefined;
254
+ LURQ_ISSUER_SECRET?: string | undefined;
232
255
  LURQ_ENDPOINT?: string | undefined;
233
256
  LURQ_API_KEY?: string | undefined;
257
+ E2B_API_KEY?: string | undefined;
258
+ E2B_TEMPLATE?: string | undefined;
234
259
  }, {
235
260
  DATABASE_URL?: string | undefined;
236
261
  GITHUB_TOKEN?: string | undefined;
237
262
  EMBEDDING_PROVIDER?: "openai" | "local" | undefined;
238
263
  EMBEDDING_API_KEY?: string | undefined;
239
264
  EMBEDDING_MODEL?: string | undefined;
265
+ EMBEDDING_BASE_URL?: string | undefined;
240
266
  SUMMARY_PROVIDER?: "openai" | "none" | undefined;
241
267
  SUMMARY_API_KEY?: string | undefined;
242
268
  SUMMARY_MODEL?: string | undefined;
269
+ SUMMARY_BASE_URL?: string | undefined;
243
270
  LURQ_SYNC_CONCURRENCY?: number | undefined;
244
271
  LOG_LEVEL?: "info" | "error" | "warn" | "debug" | undefined;
245
272
  PORT?: number | undefined;
246
273
  LURQ_RATE_LIMIT_MAX?: number | undefined;
247
274
  LURQ_IP_RATE_LIMIT_MAX?: number | undefined;
248
275
  LURQ_RATE_LIMIT_WINDOW_MS?: number | undefined;
276
+ LURQ_METRICS_TOKEN?: string | undefined;
277
+ LURQ_ISSUER_SECRET?: string | undefined;
249
278
  LURQ_ENDPOINT?: string | undefined;
250
279
  LURQ_API_KEY?: string | undefined;
280
+ E2B_API_KEY?: string | undefined;
281
+ E2B_TEMPLATE?: string | undefined;
251
282
  }>;
252
283
  type Config = z.infer<typeof EnvSchema>;
253
284
  declare class ConfigError extends Error {
@@ -278,4 +309,4 @@ declare const logger: {
278
309
 
279
310
  declare function buildProgram(): Command;
280
311
 
281
- export { API_KEY_PREFIX, type Advisory, type AdvisorySeverity, type BuildVerified, CACHE_TTL, CATEGORIES, type Candidate, type Category, type CategorySource, type CompatConflict, type CompatOutput, type CompatStatus, type Confidence, type Config, ConfigError, DEFAULT_ENDPOINT, type DependencyRanges, type DiscoverySource, type DiscoveryStatus, EMBEDDING_DIM, type EvaluateOutput, FRONTEND_CATEGORIES, PACKAGE_NAME, type PeerMeta, type RiskLevel, type Runtime, SERVER_NAME, STALENESS_DAYS, type ScoreBreakdown, type UsageGuide, VERSION, type VerifyOutput, buildProgram, getConfig, isCategory, isFrontendCategory, loadEnv, logger, requireConfig };
312
+ export { API_KEY_PREFIX, type Advisory, type AdvisorySeverity, type BuildSignal, type BuildVerified, CACHE_TTL, CATEGORIES, type Candidate, type Category, type CategorySource, type CompatConflict, type CompatOutput, type CompatStatus, type Confidence, type Config, ConfigError, DEFAULT_ENDPOINT, type DependencyRanges, type DiscoverySource, type DiscoveryStatus, EMBEDDING_DIM, type EvaluateOutput, FRONTEND_CATEGORIES, PACKAGE_NAME, type PeerMeta, type RiskLevel, type Runtime, SERVER_NAME, STALENESS_DAYS, type ScoreBreakdown, type UsageGuide, VERSION, type VerifyOutput, buildProgram, getConfig, isCategory, isFrontendCategory, loadEnv, logger, requireConfig };