agentlang 0.0.12 → 0.0.13
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/README.md +2 -19
- package/out/extension/main.cjs +250 -250
- package/out/extension/main.cjs.map +2 -2
- package/out/language/main.cjs +504 -784
- package/out/language/main.cjs.map +4 -4
- package/out/runtime/agents/impl/anthropic.d.ts +26 -0
- package/out/runtime/agents/impl/anthropic.d.ts.map +1 -0
- package/out/runtime/agents/impl/anthropic.js +106 -0
- package/out/runtime/agents/impl/anthropic.js.map +1 -0
- package/out/runtime/agents/impl/openai.d.ts +22 -0
- package/out/runtime/agents/impl/openai.d.ts.map +1 -1
- package/out/runtime/agents/impl/openai.js +83 -4
- package/out/runtime/agents/impl/openai.js.map +1 -1
- package/out/runtime/agents/registry.d.ts.map +1 -1
- package/out/runtime/agents/registry.js +49 -5
- package/out/runtime/agents/registry.js.map +1 -1
- package/out/runtime/jsmodules.js +1 -1
- package/out/runtime/jsmodules.js.map +1 -1
- package/package.json +8 -10
- package/src/runtime/agents/impl/anthropic.ts +166 -0
- package/src/runtime/agents/impl/openai.ts +124 -4
- package/src/runtime/agents/registry.ts +51 -4
- package/src/runtime/jsmodules.ts +1 -1
- package/out/cli/docs.d.ts +0 -2
- package/out/cli/docs.d.ts.map +0 -1
- package/out/cli/docs.js +0 -236
- package/out/cli/docs.js.map +0 -1
- package/out/cli/openapi-docs.yml +0 -695
- package/out/index.d.ts +0 -19
- package/out/index.d.ts.map +0 -1
- package/out/index.js +0 -25
- package/out/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ The AgentLang language specification, its compiler and runtime are open source.
|
|
|
13
13
|
|
|
14
14
|
AgentLang runtime has native integration with databases, vector databases, auth stores, etc. AgentLang programs run on the JVM and can make use of any of the thousands of existing Node and other JavaScript libraries out there.
|
|
15
15
|
|
|
16
|
-
AgentLang comes with all the modern tooling
|
|
16
|
+
AgentLang comes with all the modern tooling and dependency management needed to build production-grade agents and apps.
|
|
17
17
|
|
|
18
18
|
</div>
|
|
19
19
|
|
|
@@ -23,13 +23,12 @@ Agents are a built-in language construct - developers can choose from one of the
|
|
|
23
23
|
|
|
24
24
|
## Runtime Support
|
|
25
25
|
|
|
26
|
-
AgentLang
|
|
26
|
+
AgentLang runs on Node.js for development and execution.
|
|
27
27
|
|
|
28
28
|
### Prerequisites
|
|
29
29
|
|
|
30
30
|
- Node.js 20+ (CI runs on 20.x, local development often uses 24.x)
|
|
31
31
|
- Note: Some functions may behave differently between versions (e.g., array methods on iterators)
|
|
32
|
-
- [Deno](https://deno.land/) 1.35.0 or later (optional, for Deno-based workflows)
|
|
33
32
|
|
|
34
33
|
## Quick Start
|
|
35
34
|
|
|
@@ -51,23 +50,7 @@ npm test
|
|
|
51
50
|
|
|
52
51
|
> **Note**: If pnpm shows build script warnings, run `pnpm approve-builds` and approve esbuild and sqlite3.
|
|
53
52
|
|
|
54
|
-
## Using Deno
|
|
55
53
|
|
|
56
|
-
When working with Deno, use these npm scripts:
|
|
57
|
-
|
|
58
|
-
```shell
|
|
59
|
-
# Build with Deno
|
|
60
|
-
npm run build:deno
|
|
61
|
-
|
|
62
|
-
# Watch mode with Deno
|
|
63
|
-
npm run watch:deno
|
|
64
|
-
|
|
65
|
-
# Run tests with Deno
|
|
66
|
-
npm run test:deno
|
|
67
|
-
|
|
68
|
-
# Run deno REPL examples
|
|
69
|
-
npm run repl -- --app example/erp/app.json
|
|
70
|
-
```
|
|
71
54
|
|
|
72
55
|
## CLI Usage
|
|
73
56
|
|