exoagent 0.0.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.
- package/LICENSE.md +21 -0
- package/README.md +66 -0
- package/dist/chunk-VBDAOXYI-BhoIkhUn.mjs +831 -0
- package/dist/code-mode-runtime.mjs +2519 -0
- package/dist/index.d.mts +426 -0
- package/dist/index.mjs +3597 -0
- package/dist/nodefs-C8H-6XZ_.mjs +26 -0
- package/dist/opfs-ahp-Dy9HQOrY.mjs +367 -0
- package/dist/rpc-toolset-test-helpers.d.mts +245 -0
- package/dist/rpc-toolset-test-helpers.mjs +11723 -0
- package/package.json +84 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-PRESENT Ryan Rasti <https://github.com/ryanrasti>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# exoagent
|
|
2
|
+
|
|
3
|
+
The OS kernel to safely unleash your agents.
|
|
4
|
+
|
|
5
|
+
**[Try the challenge](https://exoagent.io/challenge)** — Two agents, same LLM, same prompt injection vulnerability. $1,000 in BTC if you can hack the one protected by ExoAgent (coming soon!).
|
|
6
|
+
|
|
7
|
+
## The Problem
|
|
8
|
+
|
|
9
|
+
Today's agent frameworks give LLMs raw access to tools. The "security model" is hoping the prompt works.
|
|
10
|
+
|
|
11
|
+
- **Authorization is broken** — Tool calls inherit user permissions. Your agent gets your credentials — all of them.
|
|
12
|
+
- **Interfaces are opaque** — `execute_sql("SELECT * FROM users")` — policy can't see what's inside.
|
|
13
|
+
- **No central data policy** — Each tool enforces its own rules. No holistic view. No real guarantees.
|
|
14
|
+
|
|
15
|
+
## The Fix
|
|
16
|
+
|
|
17
|
+
Security as a system invariant, not a polite suggestion.
|
|
18
|
+
|
|
19
|
+
- **Object-capability tools** — Instead of flat tools, pass your agents dynamic objects with strict security guarantees
|
|
20
|
+
- **Semantic interfaces** — Rich, secure interaction starting with SQL
|
|
21
|
+
- **Central policy** — Declare & enforce what data can flow where
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install exoagent
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import { Database, RpcToolset, tool } from 'exoagent'
|
|
33
|
+
|
|
34
|
+
class User extends db.Table('users').as('user') {
|
|
35
|
+
id = this.column('id')
|
|
36
|
+
name = this.column('name')
|
|
37
|
+
email = this.column('email')
|
|
38
|
+
|
|
39
|
+
@tool()
|
|
40
|
+
orders() {
|
|
41
|
+
return Order.on(order => order.userId['='](this.id)).from()
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Agent can only access what you've exposed
|
|
46
|
+
class MyAgent extends RpcToolset {
|
|
47
|
+
@tool()
|
|
48
|
+
users() {
|
|
49
|
+
return User.on(user => user.id['='](this.currentUserId)).from()
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Roadmap
|
|
55
|
+
|
|
56
|
+
- [ ] Additional SQL support
|
|
57
|
+
- [ ] Policy engine — information flow control to declare & enforce what data can flow where
|
|
58
|
+
- [ ] Python port
|
|
59
|
+
|
|
60
|
+
## Documentation
|
|
61
|
+
|
|
62
|
+
Coming soon.
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
[MIT](./LICENSE) License © [Ryan Rasti](https://github.com/ryanrasti)
|