@protobase/server 0.53.2 → 0.53.3
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,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { queryProblem } from "../error-handler.js";
|
|
3
|
-
import { QueryError } from "@protobase/query";
|
|
1
|
+
import { problemOf } from "../error-handler.js";
|
|
4
2
|
//#region src/assistant/record-tool-args.ts
|
|
5
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* A refusal the model can act on (no such resource, not allowed, a bad filter, a record a database constraint rejects)
|
|
5
|
+
* is its to read, as the REST API's problem words it; anything else fails the call.
|
|
6
|
+
*/
|
|
6
7
|
const refused = (error) => {
|
|
7
|
-
const problem =
|
|
8
|
-
if (problem
|
|
8
|
+
const problem = problemOf(error);
|
|
9
|
+
if (problem && problem.status < 500) return JSON.stringify({
|
|
9
10
|
error: problem.slug,
|
|
10
11
|
message: problem.detail
|
|
11
12
|
});
|
package/dist/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/server",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.3",
|
|
4
4
|
"description": "The Protobase REST API as a Hono app, with Better Auth sign-in.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@better-auth/passkey": "^1.7.12",
|
|
41
41
|
"@better-auth/sso": "^1.7.12",
|
|
42
42
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
43
|
-
"@protobase/layout": "0.53.
|
|
44
|
-
"@protobase/query": "0.53.
|
|
45
|
-
"@protobase/schema": "0.53.
|
|
43
|
+
"@protobase/layout": "0.53.3",
|
|
44
|
+
"@protobase/query": "0.53.3",
|
|
45
|
+
"@protobase/schema": "0.53.3",
|
|
46
46
|
"@react-email/render": "^2.1.0",
|
|
47
47
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
48
48
|
"@sentry/core": "^11.7.0",
|