@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/gateway@2.1.62 build /home/runner/work/agentic/agentic/packages/gateway
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
  CLI 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
- CJS dist/index.js 190.23 KB
22
- CJS dist/index.js.map 407.38 KB
23
- CJS ⚡️ Build success in 335ms
24
- ESM dist/index.mjs 186.93 KB
25
- ESM dist/index.mjs.map 407.95 KB
26
- ESM ⚡️ Build success in 343ms
21
+ CJS dist/index.js 190.64 KB
22
+ CJS dist/index.js.map 408.15 KB
23
+ CJS ⚡️ Build success in 351ms
24
+ ESM dist/index.mjs 187.34 KB
25
+ ESM dist/index.mjs.map 408.73 KB
26
+ ESM ⚡️ Build success in 351ms
27
27
  DTS Build start
28
- DTS ⚡️ Build success in 12523ms
28
+ DTS ⚡️ Build success in 13363ms
29
29
  DTS dist/index.d.ts 3.76 KB
30
30
  DTS dist/index.d.mts 3.76 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.63
4
+
5
+ ### Patch Changes
6
+
7
+ - df6bc19: add create-skill default
8
+ - Updated dependencies [df6bc19]
9
+ - @axiom-lattice/core@2.1.57
10
+ - @axiom-lattice/pg-stores@1.0.47
11
+
3
12
  ## 2.1.62
4
13
 
5
14
  ### Patch Changes
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
  }