@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.
- package/package.json +1 -1
- package/scaffold-patches/packages/app-core/src/api/automations-compat-routes.ts +924 -0
- package/templates/fullstack-app/plugins/plugin-tokagent-billing/package.json +1 -1
- package/templates/fullstack-app/plugins/plugin-tokagent-billing/src/__tests__/routes/estimate-routes.test.ts +5 -2
- package/templates/fullstack-app/plugins/plugin-tokagent-billing/src/dashboard/app.js +896 -19
- package/templates/fullstack-app/plugins/plugin-tokagent-billing/src/dashboard/index.html +280 -94
- package/templates/fullstack-app/plugins/plugin-tokagent-billing/src/dashboard/style.css +969 -235
- package/templates/fullstack-app/plugins/plugin-tokagent-billing/src/routes/keys-routes.ts +170 -0
- package/templates-manifest.json +1 -1
|
@@ -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("
|
|
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 () => {
|