Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixelvault-cli",
"version": "0.23.0",
"version": "0.23.1",
"description": "CLI for PixelVault — agent-first media hosting for images, PDFs, and video",
"type": "module",
"bin": {
Expand Down
5 changes: 4 additions & 1 deletion src/commands/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const EVENT_ALIASES = {
"export.failed": "export.failed",
"video.optimization.completed": "video.optimization.completed",
"video.optimization.failed": "video.optimization.failed",
"video.enrichment.completed": "video.enrichment.completed",
"video.enrichment.failed": "video.enrichment.failed",
} as const;
type WebhookEvent = (typeof EVENT_ALIASES)[keyof typeof EVENT_ALIASES];

Expand Down Expand Up @@ -50,7 +52,8 @@ function parseEvents(value: string | undefined): WebhookEvent[] | undefined {
if (!event) {
throw new CliError(
`Unknown webhook event ${part}. Use media.created, media.deleted, image.description.completed, ` +
"image.description.failed, export.completed, export.failed, video.optimization.completed, or video.optimization.failed.",
"image.description.failed, export.completed, export.failed, video.optimization.completed, " +
"video.optimization.failed, video.enrichment.completed, or video.enrichment.failed.",
1,
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface ApiError {
// this channel (server reads X-PixelVault-Client at register/device-login — see
// pixelvault docs/specs/lead-attribution.md). Keep the version in sync with
// package.json on release (tests/lib/version.test.ts fails if they drift).
export const VERSION = "0.23.0";
export const VERSION = "0.23.1";
const CLIENT_ID = `pixelvault-cli/${VERSION}`;

/** CliError carrying the API's machine-readable error details. */
Expand Down
4 changes: 2 additions & 2 deletions tests/commands/webhooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("webhooks commands", () => {
args: {
url: "https://hooks.example.com/pv",
description: "social",
events: "media.created,media.created",
events: "video.enrichment.completed,video.enrichment.completed,video.enrichment.failed",
json: false,
},
});
Expand All @@ -74,7 +74,7 @@ describe("webhooks commands", () => {
body: JSON.stringify({
url: "https://hooks.example.com/pv",
description: "social",
events: ["media.created"],
events: ["video.enrichment.completed", "video.enrichment.failed"],
}),
}),
);
Expand Down
Loading