@tokagent/tokagentos 2.0.24 → 2.0.29

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokagent/plugin-tokagent-billing",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "elizaOS plugin: Web3 credit-billing routes and middleware for the tokagentos LLM gateway.",
5
5
  "type": "module",
6
6
  "publishConfig": { "access": "public" },
@@ -219,10 +219,13 @@ describe("POST /v1/messages/count_tokens", () => {
219
219
  describe("GET /v1/price", () => {
220
220
  const handler = findHandler("GET", "/v1/price");
221
221
 
222
- it("returns 401 when not authenticated", async () => {
222
+ it("is public (no auth required) — TON/USD is a read-only oracle", async () => {
223
+ // /v1/price was deliberately made public so the dashboard can show the
224
+ // TON/USD rate to logged-out visitors. Asserting 401 here was a stale
225
+ // expectation from the original auth-gated design.
223
226
  const res = makeRes();
224
227
  await handler({}, res, fakeRuntime);
225
- expect(res.statusCode).toBe(401);
228
+ expect(res.statusCode).not.toBe(401);
226
229
  });
227
230
 
228
231
  it("returns fixed price when fixedTonUsd is set", async () => {