@bondedhq/shared 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +17 -2
- package/dist/abis.d.ts +8639 -0
- package/dist/abis.js +11234 -0
- package/dist/actuarial.d.ts +158 -0
- package/dist/actuarial.js +210 -0
- package/dist/agent-url.d.ts +172 -0
- package/dist/agent-url.js +248 -0
- package/dist/agent.d.ts +184 -0
- package/dist/agent.js +133 -0
- package/dist/allowances.d.ts +54 -0
- package/dist/allowances.js +68 -0
- package/dist/bounty-example.d.ts +6 -0
- package/dist/bounty-example.js +23 -0
- package/dist/bounty-spec.d.ts +36 -0
- package/dist/bounty-spec.js +111 -0
- package/dist/canonical.d.ts +8 -0
- package/dist/canonical.js +44 -0
- package/dist/chains.d.ts +58 -0
- package/dist/chains.js +123 -0
- package/dist/deployments.d.ts +32 -0
- package/dist/deployments.js +41 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +33 -0
- package/dist/leaderboard.d.ts +105 -0
- package/dist/leaderboard.js +85 -0
- package/dist/llm.d.ts +121 -0
- package/dist/llm.js +105 -0
- package/dist/mandate-rules.d.ts +54 -0
- package/dist/mandate-rules.js +69 -0
- package/dist/module-install.d.ts +145 -0
- package/dist/module-install.js +133 -0
- package/dist/notifications.d.ts +48 -0
- package/dist/notifications.js +45 -0
- package/dist/observed-rates.d.ts +125 -0
- package/dist/observed-rates.js +158 -0
- package/dist/problems.d.ts +44 -0
- package/dist/problems.js +148 -0
- package/dist/quote.d.ts +123 -0
- package/dist/quote.js +167 -0
- package/dist/report-fixes.d.ts +89 -0
- package/dist/report-fixes.js +159 -0
- package/dist/runner.d.ts +376 -0
- package/dist/runner.js +353 -0
- package/dist/schemas/attack.d.ts +121 -0
- package/dist/schemas/attack.js +142 -0
- package/dist/schemas/attestation.d.ts +284 -0
- package/dist/schemas/attestation.js +175 -0
- package/dist/schemas/common.d.ts +22 -0
- package/dist/schemas/common.js +53 -0
- package/dist/schemas/mandate-commitment.d.ts +13 -0
- package/dist/schemas/mandate-commitment.js +37 -0
- package/dist/schemas/mandate.d.ts +170 -0
- package/dist/schemas/mandate.js +113 -0
- package/dist/self-serve.d.ts +133 -0
- package/dist/self-serve.js +110 -0
- package/dist/sentinel-cascade.d.ts +64 -0
- package/dist/sentinel-cascade.js +64 -0
- package/dist/sentinel.d.ts +133 -0
- package/dist/sentinel.js +101 -0
- package/dist/suggested-mandate.d.ts +81 -0
- package/dist/suggested-mandate.js +112 -0
- package/dist/tee.d.ts +61 -0
- package/dist/tee.js +93 -0
- package/dist/tiers.d.ts +19 -0
- package/dist/tiers.js +23 -0
- package/dist/troubleshooting-doc.d.ts +11 -0
- package/dist/troubleshooting-doc.js +46 -0
- package/package.json +59 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ddboy19912
|
|
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
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @bondedhq/shared
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Schemas, contract ABIs, chain configs and signing types shared by Bonded's contracts, Arena, API,
|
|
4
|
+
SDK and runner.
|
|
5
|
+
|
|
6
|
+
- **Agent contract**: the tools an agent under test can call (`AGENT_TOOLS`, their JSON schemas),
|
|
7
|
+
`ArenaAgent`, `AgentTask` and `ToolResult`.
|
|
8
|
+
- **Agent URL protocol** (also at `@bondedhq/shared/agent-url`, without the ABIs): the messages the
|
|
9
|
+
gateway POSTs to an agent's URL, and signing and verifying them (`signAgentUrlRequest`,
|
|
10
|
+
`verifyAgentUrlRequest`, `AgentUrlReplayGuard`).
|
|
11
|
+
- **Runner protocol**: the messages between the Arena Gateway and `@bondedhq/runner` (zod schemas),
|
|
12
|
+
and the environment a runner gives an agent (`episodeEnv`).
|
|
13
|
+
- **Mandates and attestations**: `EvmMandate`, `mandateHash`, the attestation's EIP-712 types.
|
|
14
|
+
- **ABIs** for the Bonded contracts, generated from the Foundry build.
|
|
15
|
+
- **Chains and deployments**: the networks Bonded runs on and its contract addresses there.
|
|
16
|
+
|
|
17
|
+
ESM only, Node 22 or later. See the [Bonded repository](https://github.com/ddboy19912/bonded) for
|
|
18
|
+
the protocol and its documentation.
|