lane-sdk 0.1.12 → 0.2.1

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.
@@ -1,36 +1,10 @@
1
- import express from 'express';
2
- import { SupabaseClient } from '@supabase/supabase-js';
1
+ import type { Router } from 'express';
2
+ import type { SupabaseClient } from '@supabase/supabase-js';
3
3
 
4
- declare enum LogLevel {
5
- DEBUG = 0,
6
- INFO = 1,
7
- WARN = 2,
8
- ERROR = 3,
9
- FATAL = 4
4
+ export interface AgentRouteDeps {
5
+ db: SupabaseClient;
6
+ logLevel?: 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
10
7
  }
11
8
 
12
- interface AgentRouteDeps {
13
- db: SupabaseClient;
14
- logLevel?: keyof typeof LogLevel;
15
- }
16
- /**
17
- * Create all agent routes as an Express Router.
18
- *
19
- * Mounts:
20
- * - /health (public — service health check)
21
- * - /SKILL.md (public — MCP skill file)
22
- * - /agent/discovery/* (public)
23
- * - /agent/auth/* (public)
24
- * - /agent/onboarding/* (protected)
25
- * - /agent/* (protected — apiKeyAuth, rateLimit, hmacVerify, audit)
26
- * - /api/sdk/onboarding (public sessions)
27
- * - /api/sdk/* (deprecated legacy routes)
28
- */
29
- declare function createAllAgentRoutes({ db, logLevel }: AgentRouteDeps): express.Router;
30
- /**
31
- * Initialize all services in the container.
32
- * Call this once at startup before handling requests.
33
- */
34
- declare function initAgentServices({ db, logLevel }: AgentRouteDeps): Promise<void>;
35
-
36
- export { type AgentRouteDeps, createAllAgentRoutes, initAgentServices };
9
+ export declare function createAllAgentRoutes(deps: AgentRouteDeps): Router;
10
+ export declare function initAgentServices(deps: AgentRouteDeps): Promise<void>;
@@ -1,36 +1,10 @@
1
- import express from 'express';
2
- import { SupabaseClient } from '@supabase/supabase-js';
1
+ import type { Router } from 'express';
2
+ import type { SupabaseClient } from '@supabase/supabase-js';
3
3
 
4
- declare enum LogLevel {
5
- DEBUG = 0,
6
- INFO = 1,
7
- WARN = 2,
8
- ERROR = 3,
9
- FATAL = 4
4
+ export interface AgentRouteDeps {
5
+ db: SupabaseClient;
6
+ logLevel?: 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
10
7
  }
11
8
 
12
- interface AgentRouteDeps {
13
- db: SupabaseClient;
14
- logLevel?: keyof typeof LogLevel;
15
- }
16
- /**
17
- * Create all agent routes as an Express Router.
18
- *
19
- * Mounts:
20
- * - /health (public — service health check)
21
- * - /SKILL.md (public — MCP skill file)
22
- * - /agent/discovery/* (public)
23
- * - /agent/auth/* (public)
24
- * - /agent/onboarding/* (protected)
25
- * - /agent/* (protected — apiKeyAuth, rateLimit, hmacVerify, audit)
26
- * - /api/sdk/onboarding (public sessions)
27
- * - /api/sdk/* (deprecated legacy routes)
28
- */
29
- declare function createAllAgentRoutes({ db, logLevel }: AgentRouteDeps): express.Router;
30
- /**
31
- * Initialize all services in the container.
32
- * Call this once at startup before handling requests.
33
- */
34
- declare function initAgentServices({ db, logLevel }: AgentRouteDeps): Promise<void>;
35
-
36
- export { type AgentRouteDeps, createAllAgentRoutes, initAgentServices };
9
+ export declare function createAllAgentRoutes(deps: AgentRouteDeps): Router;
10
+ export declare function initAgentServices(deps: AgentRouteDeps): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lane-sdk",
3
- "version": "0.1.12",
3
+ "version": "0.2.1",
4
4
  "description": "Add wallets and payments to your AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -61,7 +61,7 @@
61
61
  "SKILL.md"
62
62
  ],
63
63
  "scripts": {
64
- "build": "cp SKILL.md public/SKILL.md && tsup",
64
+ "build": "cp SKILL.md public/SKILL.md && tsup && cp server/routes/export.d.ts dist/server/routes/export.d.ts && cp server/routes/export.d.ts dist/server/routes/export.d.cts",
65
65
  "dev": "tsup --watch",
66
66
  "test": "vitest run",
67
67
  "test:watch": "vitest",