@axiom-lattice/gateway 2.1.62 → 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 +9 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/controllers/skills.ts +9 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/gateway@2.1.
|
|
2
|
+
> @axiom-lattice/gateway@2.1.63 build /home/runner/work/agentic/agentic/packages/gateway
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --clean --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
You need to set the output format to "esm" for "import.meta" to work correctly.
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
[32mCJS[39m [1mdist/index.js [22m[32m190.
|
|
22
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
23
|
-
[32mCJS[39m ⚡️ Build success in
|
|
24
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
25
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
26
|
-
[32mESM[39m ⚡️ Build success in
|
|
21
|
+
[32mCJS[39m [1mdist/index.js [22m[32m190.64 KB[39m
|
|
22
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m408.15 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 351ms
|
|
24
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m187.34 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m408.73 KB[39m
|
|
26
|
+
[32mESM[39m ⚡️ Build success in 351ms
|
|
27
27
|
[34mDTS[39m Build start
|
|
28
|
-
[32mDTS[39m ⚡️ Build success in
|
|
28
|
+
[32mDTS[39m ⚡️ Build success in 13363ms
|
|
29
29
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.76 KB[39m
|
|
30
30
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.76 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1399,6 +1399,9 @@ async function createSkill(request, reply) {
|
|
|
1399
1399
|
if (error.message?.includes("already exists")) {
|
|
1400
1400
|
return reply.status(409).send({ success: false, message: error.message });
|
|
1401
1401
|
}
|
|
1402
|
+
if (error.message?.includes("built-in skill")) {
|
|
1403
|
+
return reply.status(403).send({ success: false, message: error.message });
|
|
1404
|
+
}
|
|
1402
1405
|
if (error.message?.includes("must equal name") || error.message?.includes("Invalid skill name")) {
|
|
1403
1406
|
return reply.status(400).send({ success: false, message: error.message });
|
|
1404
1407
|
}
|
|
@@ -1415,6 +1418,9 @@ async function updateSkill(request, reply) {
|
|
|
1415
1418
|
}
|
|
1416
1419
|
return { success: true, message: "Successfully updated skill", data: serializeSkill(skill) };
|
|
1417
1420
|
} catch (error) {
|
|
1421
|
+
if (error.message?.includes("built-in skill")) {
|
|
1422
|
+
return reply.status(403).send({ success: false, message: error.message });
|
|
1423
|
+
}
|
|
1418
1424
|
if (error.message?.includes("Invalid skill name")) {
|
|
1419
1425
|
return reply.status(400).send({ success: false, message: error.message });
|
|
1420
1426
|
}
|
|
@@ -1430,6 +1436,9 @@ async function deleteSkill(request, reply) {
|
|
|
1430
1436
|
}
|
|
1431
1437
|
return { success: true, message: "Successfully deleted skill" };
|
|
1432
1438
|
} catch (error) {
|
|
1439
|
+
if (error.message?.includes("built-in skill")) {
|
|
1440
|
+
return reply.status(403).send({ success: false, message: error.message });
|
|
1441
|
+
}
|
|
1433
1442
|
return reply.status(500).send({ success: false, message: `Failed to delete skill: ${error.message}` });
|
|
1434
1443
|
}
|
|
1435
1444
|
}
|