@agent-nexus/csreg 0.1.7 → 0.1.8

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.
@@ -625,7 +625,11 @@ async function pushSingle(resolved) {
625
625
  }
626
626
  if (!uploadResponse.ok) {
627
627
  spin.fail("Upload failed.");
628
- throw new CliError(`Upload failed with status ${uploadResponse.status}.`, [
628
+ const errorBody = await uploadResponse.text();
629
+ const codeMatch = errorBody.match(/<Code>([^<]+)<\/Code>/);
630
+ const msgMatch = errorBody.match(/<Message>([^<]+)<\/Message>/);
631
+ const detail = codeMatch ? `S3 error: ${codeMatch[1]}${msgMatch ? ` \u2014 ${msgMatch[1]}` : ""}` : `Status ${uploadResponse.status}`;
632
+ throw new CliError(`Upload failed: ${detail}`, [
629
633
  "Try again. If the problem persists, contact support."
630
634
  ]);
631
635
  }
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  success,
20
20
  validateCommand,
21
21
  warn
22
- } from "./chunk-VTCXMN4H.js";
22
+ } from "./chunk-Z27YSJYQ.js";
23
23
 
24
24
  // src/index.ts
25
25
  import { Command as Command11 } from "commander";
@@ -266,7 +266,7 @@ var releaseCommand = new Command6("release").description("Bump the version in SK
266
266
  writeFileSync2(skillPath, updated, "utf-8");
267
267
  info(`Updated version to ${newVersion}`);
268
268
  }
269
- const { pushCommand: pushCommand2 } = await import("./push-7P5F2O6O.js");
269
+ const { pushCommand: pushCommand2 } = await import("./push-NOK3Z7EW.js");
270
270
  await pushCommand2.parseAsync([dir], { from: "user" });
271
271
  } catch (err) {
272
272
  handleError(err);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pushCommand
3
- } from "./chunk-VTCXMN4H.js";
3
+ } from "./chunk-Z27YSJYQ.js";
4
4
  export {
5
5
  pushCommand
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-nexus/csreg",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "CLI for Claude Skills Registry",
5
5
  "license": "MIT",
6
6
  "type": "module",