lane-sdk 0.2.8 → 0.2.9

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.

Potentially problematic release.


This version of lane-sdk might be problematic. Click here for more details.

@@ -0,0 +1,10 @@
1
+ import type { Router } from 'express';
2
+ import type { SupabaseClient } from '@supabase/supabase-js';
3
+
4
+ export interface AgentRouteDeps {
5
+ db: SupabaseClient;
6
+ logLevel?: 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
7
+ }
8
+
9
+ export declare function createAllAgentRoutes(deps: AgentRouteDeps): Router;
10
+ export declare function initAgentServices(deps: AgentRouteDeps): Promise<void>;
@@ -0,0 +1,10 @@
1
+ import type { Router } from 'express';
2
+ import type { SupabaseClient } from '@supabase/supabase-js';
3
+
4
+ export interface AgentRouteDeps {
5
+ db: SupabaseClient;
6
+ logLevel?: 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
7
+ }
8
+
9
+ export declare function createAllAgentRoutes(deps: AgentRouteDeps): Router;
10
+ export declare function initAgentServices(deps: AgentRouteDeps): Promise<void>;
@@ -8422,7 +8422,7 @@ function getContainer(db, logLevel) {
8422
8422
  function createAllAgentRoutes({ db, logLevel }) {
8423
8423
  const router = express.Router();
8424
8424
  const { container, logger } = getContainer(db, logLevel);
8425
- router.get("/health", async (_req, res) => {
8425
+ const healthHandler = async (_req, res) => {
8426
8426
  const health = await container.healthCheck();
8427
8427
  const statusCode = health.healthy ? 200 : 503;
8428
8428
  res.status(statusCode).json({
@@ -8430,7 +8430,9 @@ function createAllAgentRoutes({ db, logLevel }) {
8430
8430
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
8431
8431
  services: health.services
8432
8432
  });
8433
- });
8433
+ };
8434
+ router.get("/health", healthHandler);
8435
+ router.get("/api/health", healthHandler);
8434
8436
  router.get("/SKILL.md", (_req, res) => {
8435
8437
  try {
8436
8438
  const skillPath = resolve(process.cwd(), "SKILL.md");