@levelcode/sdk 0.0.2 → 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/CHANGELOG.md CHANGED
@@ -49,7 +49,7 @@ Types updates.
49
49
 
50
50
  ### Added
51
51
 
52
- - You can now get an API key from the [LevelCode website](https://www.levelcode.com/profile?tab=api-keys)!
52
+ - You can now get an API key from the [LevelCode website](https://www.levelcode.vercel.app/profile?tab=api-keys)!
53
53
  - You can provide your own custom tools!
54
54
 
55
55
  ### Updated
package/README.md CHANGED
@@ -10,7 +10,7 @@ npm install @levelcode/sdk
10
10
 
11
11
  ## Prerequisites
12
12
 
13
- - Create a LevelCode account and get your [LevelCode API key here](https://www.levelcode.com/api-keys).
13
+ - Create a LevelCode account and get your [LevelCode API key here](https://www.levelcode.vercel.app/api-keys).
14
14
 
15
15
  ## Usage
16
16
 
@@ -22,14 +22,14 @@ import { LevelCodeClient } from '@levelcode/sdk'
22
22
  async function main() {
23
23
  const client = new LevelCodeClient({
24
24
  // You need to pass in your own API key here.
25
- // Get one here: https://www.levelcode.com/api-keys
25
+ // Get one here: https://www.levelcode.vercel.app/api-keys
26
26
  apiKey: process.env.LEVELCODE_API_KEY,
27
27
  cwd: process.cwd(),
28
28
  })
29
29
 
30
30
  // First run
31
31
  const runState1 = await client.run({
32
- // The agent id. Any agent on the store (https://levelcode.com/store)
32
+ // The agent id. Any agent on the store (https://levelcode.vercel.app/store)
33
33
  agent: 'levelcode/base@0.0.16',
34
34
  prompt: 'Create a simple calculator class',
35
35
  handleEvent: (event) => {
@@ -66,7 +66,7 @@ import type { AgentDefinition } from '@levelcode/sdk'
66
66
  async function main() {
67
67
  const client = new LevelCodeClient({
68
68
  // Note: You need to pass in your own API key.
69
- // Get it here: https://www.levelcode.com/profile?tab=api-keys
69
+ // Get it here: https://www.levelcode.vercel.app/profile?tab=api-keys
70
70
  apiKey: process.env.LEVELCODE_API_KEY,
71
71
  // Optional directory agent runs from (if applicable).
72
72
  cwd: process.cwd(),