lane-sdk 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +10 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Lane Agent SDK
2
2
 
3
- > `npm install lane` — Add wallets and payments to your AI agents.
3
+ > `npm install lane-sdk-sdk` — Add wallets and payments to your AI agents.
4
4
 
5
5
  Lane is the payment infrastructure for AI agents. It lets agent developers give their agents the ability to discover merchants, manage payment methods, and complete purchases — all through a type-safe SDK, 14 MCP tools, and a CLI.
6
6
 
7
7
  ```ts
8
- import Lane from 'lane'
8
+ import Lane from 'lane-sdk'
9
9
 
10
10
  const lane = Lane.fromApiKey(process.env.LANE_KEY!)
11
11
 
@@ -296,7 +296,7 @@ This is the core flow when an AI agent discovers a merchant and makes a purchase
296
296
 
297
297
  ```bash
298
298
  # Install
299
- npm install lane
299
+ npm install lane-sdk
300
300
 
301
301
  # Authenticate (opens browser)
302
302
  npx lane login
@@ -314,7 +314,7 @@ npx lane pay --recipient replicate.com --amount 20.00
314
314
  ### Programmatic Usage
315
315
 
316
316
  ```ts
317
- import Lane from 'lane'
317
+ import Lane from 'lane-sdk'
318
318
 
319
319
  // Option 1: Async config resolution (constructor > env > credentials file)
320
320
  const lane = await Lane.create()
@@ -499,7 +499,7 @@ Or add to your `claude_desktop_config.json`:
499
499
  ### Programmatic MCP Server
500
500
 
501
501
  ```ts
502
- import { Lane, LaneMCPServer } from 'lane'
502
+ import { Lane, LaneMCPServer } from 'lane-sdk'
503
503
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
504
504
 
505
505
  const lane = Lane.fromApiKey(process.env.LANE_API_KEY!)
@@ -574,7 +574,7 @@ Tier 4: Fallback — Standard card payment via PSP
574
574
  The router considers merchant capabilities, card brand, VIC token availability, and budget constraints:
575
575
 
576
576
  ```ts
577
- import { PaymentRouter, MerchantRegistry } from 'lane'
577
+ import { PaymentRouter, MerchantRegistry } from 'lane-sdk'
578
578
 
579
579
  const registry = new MerchantRegistry()
580
580
  registry.register({
@@ -677,14 +677,14 @@ Additional merchants are synced from the Lane backend on startup or via the sync
677
677
  Card PANs **never** touch Lane servers. All card data is tokenized through [VGS](https://www.verygoodsecurity.com/) (Very Good Security):
678
678
 
679
679
  ```ts
680
- import { VGSOutboundProxy, detectCardBrand, luhnCheck } from 'lane'
680
+ import { VGSOutboundProxy, detectCardBrand, luhnCheck } from 'lane-sdk'
681
681
 
682
682
  // Card utilities
683
683
  detectCardBrand('4111111111111111') // 'visa'
684
684
  luhnCheck('4111111111111111') // true
685
685
 
686
686
  // Generate secure card collection form
687
- import { generateCollectPage } from 'lane'
687
+ import { generateCollectPage } from 'lane-sdk'
688
688
  const html = generateCollectPage({
689
689
  vaultId: 'tnt...',
690
690
  environment: 'sandbox',
@@ -698,7 +698,7 @@ const html = generateCollectPage({
698
698
  Every SDK request is signed with HMAC-SHA256:
699
699
 
700
700
  ```ts
701
- import { HMACSignature, verifyWebhookSignature } from 'lane'
701
+ import { HMACSignature, verifyWebhookSignature } from 'lane-sdk'
702
702
 
703
703
  // Verify incoming webhook
704
704
  const isValid = verifyWebhookSignature(
@@ -1003,7 +1003,7 @@ Request → JSON Parser → CORS → API Key Auth → Rate Limit → HMAC Verify
1003
1003
  Three payment processor adapters with priority-based failover:
1004
1004
 
1005
1005
  ```ts
1006
- import { PSPRegistry, StripeAdapter, WorldpayAdapter, CyberSourceAdapter } from 'lane'
1006
+ import { PSPRegistry, StripeAdapter, WorldpayAdapter, CyberSourceAdapter } from 'lane-sdk'
1007
1007
 
1008
1008
  const registry = new PSPRegistry()
1009
1009
  registry.register(new StripeAdapter(config), 1) // Primary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lane-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Add wallets and payments to your AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",