@axiom-lattice/gateway 2.1.61 → 2.1.63
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +18 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/controllers/skills.ts +9 -0
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiom-lattice/gateway",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.63",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"pg": "^8.11.0",
|
|
40
40
|
"redis": "^5.0.1",
|
|
41
41
|
"uuid": "^9.0.1",
|
|
42
|
-
"@axiom-lattice/core": "2.1.
|
|
43
|
-
"@axiom-lattice/pg-stores": "1.0.
|
|
42
|
+
"@axiom-lattice/core": "2.1.57",
|
|
43
|
+
"@axiom-lattice/pg-stores": "1.0.47",
|
|
44
44
|
"@axiom-lattice/protocols": "2.1.30",
|
|
45
45
|
"@axiom-lattice/queue-redis": "1.0.29"
|
|
46
46
|
},
|
|
@@ -111,6 +111,9 @@ export async function createSkill(
|
|
|
111
111
|
if (error.message?.includes("already exists")) {
|
|
112
112
|
return reply.status(409).send({ success: false, message: error.message });
|
|
113
113
|
}
|
|
114
|
+
if (error.message?.includes("built-in skill")) {
|
|
115
|
+
return reply.status(403).send({ success: false, message: error.message });
|
|
116
|
+
}
|
|
114
117
|
if (error.message?.includes("must equal name") || error.message?.includes("Invalid skill name")) {
|
|
115
118
|
return reply.status(400).send({ success: false, message: error.message });
|
|
116
119
|
}
|
|
@@ -134,6 +137,9 @@ export async function updateSkill(
|
|
|
134
137
|
|
|
135
138
|
return { success: true, message: "Successfully updated skill", data: serializeSkill(skill) };
|
|
136
139
|
} catch (error: any) {
|
|
140
|
+
if (error.message?.includes("built-in skill")) {
|
|
141
|
+
return reply.status(403).send({ success: false, message: error.message });
|
|
142
|
+
}
|
|
137
143
|
if (error.message?.includes("Invalid skill name")) {
|
|
138
144
|
return reply.status(400).send({ success: false, message: error.message });
|
|
139
145
|
}
|
|
@@ -155,6 +161,9 @@ export async function deleteSkill(
|
|
|
155
161
|
|
|
156
162
|
return { success: true, message: "Successfully deleted skill" };
|
|
157
163
|
} catch (error: any) {
|
|
164
|
+
if (error.message?.includes("built-in skill")) {
|
|
165
|
+
return reply.status(403).send({ success: false, message: error.message });
|
|
166
|
+
}
|
|
158
167
|
return reply.status(500).send({ success: false, message: `Failed to delete skill: ${error.message}` });
|
|
159
168
|
}
|
|
160
169
|
}
|
package/src/index.ts
CHANGED
|
@@ -214,7 +214,7 @@ export interface LatticeGatewayConfig {
|
|
|
214
214
|
function getConfiguredSandboxProvider(): ReturnType<typeof createSandboxProvider> {
|
|
215
215
|
const sandboxProviderType =
|
|
216
216
|
(process.env.SANDBOX_PROVIDER_TYPE as CreateSandboxProviderConfig["type"] | undefined) ||
|
|
217
|
-
"microsandbox";
|
|
217
|
+
"microsandbox-remote";
|
|
218
218
|
|
|
219
219
|
return createSandboxProvider({
|
|
220
220
|
type: sandboxProviderType,
|