@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 +1 -1
- package/README.md +4 -4
- package/dist/index.cjs +1658 -192
- package/dist/index.cjs.map +30 -17
- package/dist/index.d.ts +3443 -0
- package/dist/index.mjs +1658 -192
- package/dist/index.mjs.map +30 -17
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/x64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/dist/wasm/tree-sitter-c-sharp.wasm +0 -0
- package/dist/wasm/tree-sitter-cpp.wasm +0 -0
- package/dist/wasm/tree-sitter-go.wasm +0 -0
- package/dist/wasm/tree-sitter-java.wasm +0 -0
- package/dist/wasm/tree-sitter-javascript.wasm +0 -0
- package/dist/wasm/tree-sitter-python.wasm +0 -0
- package/dist/wasm/tree-sitter-ruby.wasm +0 -0
- package/dist/wasm/tree-sitter-rust.wasm +0 -0
- package/dist/wasm/tree-sitter-tsx.wasm +0 -0
- package/dist/wasm/tree-sitter-typescript.wasm +0 -0
- package/dist/wasm/tree-sitter.wasm +0 -0
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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(),
|