@agentvalet/register 0.4.17 → 0.4.18

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -952,7 +952,8 @@ async function registerAgent2(params, apiKey) {
952
952
  });
953
953
  if (!response.ok) {
954
954
  const error = await response.json().catch(() => ({}));
955
- throw new Error(`Agent registration failed: ${response.status} ${error.error ?? ""}`);
955
+ const detail = error.detail ? ` \u2014 ${error.detail}` : "";
956
+ throw new Error(`Agent registration failed: ${response.status} ${error.error ?? ""}${detail}`);
956
957
  }
957
958
  return response.json();
958
959
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvalet/register",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "Self-register AI agents with AgentValet",
5
5
  "type": "module",
6
6
  "bin": {