vellum-cli 0.3.1 → 0.3.2
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/dist/index.js +53 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -643,6 +643,53 @@ async function pushCommand(argv) {
|
|
|
643
643
|
}
|
|
644
644
|
return 0;
|
|
645
645
|
}
|
|
646
|
+
// package.json
|
|
647
|
+
var package_default = {
|
|
648
|
+
name: "vellum-cli",
|
|
649
|
+
version: "0.3.2",
|
|
650
|
+
description: "The vellum CLI — publish agent-authored HTML artifacts to a Vellum server.",
|
|
651
|
+
type: "module",
|
|
652
|
+
license: "MIT",
|
|
653
|
+
bin: {
|
|
654
|
+
vellum: "dist/index.js"
|
|
655
|
+
},
|
|
656
|
+
files: [
|
|
657
|
+
"dist",
|
|
658
|
+
"README.md"
|
|
659
|
+
],
|
|
660
|
+
engines: {
|
|
661
|
+
node: ">=18"
|
|
662
|
+
},
|
|
663
|
+
keywords: [
|
|
664
|
+
"vellum",
|
|
665
|
+
"cli",
|
|
666
|
+
"html",
|
|
667
|
+
"artifacts",
|
|
668
|
+
"agents"
|
|
669
|
+
],
|
|
670
|
+
publishConfig: {
|
|
671
|
+
access: "public"
|
|
672
|
+
},
|
|
673
|
+
scripts: {
|
|
674
|
+
start: "bun run src/index.ts",
|
|
675
|
+
build: "bun build src/index.ts --target=node --format=esm --outfile=dist/index.js",
|
|
676
|
+
prepack: "bun run build",
|
|
677
|
+
release: "bun publish --access public",
|
|
678
|
+
typecheck: "tsc -p tsconfig.json --noEmit"
|
|
679
|
+
},
|
|
680
|
+
devDependencies: {
|
|
681
|
+
"@vellum/core": "workspace:*"
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
// src/version.ts
|
|
686
|
+
var VERSION = package_default.version;
|
|
687
|
+
|
|
688
|
+
// src/commands/version.ts
|
|
689
|
+
async function versionCommand(_argv) {
|
|
690
|
+
console.log(VERSION);
|
|
691
|
+
return 0;
|
|
692
|
+
}
|
|
646
693
|
|
|
647
694
|
// src/commands/whoami.ts
|
|
648
695
|
import { parseArgs as parseArgs7 } from "node:util";
|
|
@@ -695,6 +742,7 @@ Commands:
|
|
|
695
742
|
markup Pin a comment to a passage of a document
|
|
696
743
|
archive Archive a page (read-only, hidden from the gallery)
|
|
697
744
|
unarchive Restore an archived page to live
|
|
745
|
+
version Print the installed CLI version
|
|
698
746
|
|
|
699
747
|
Run 'vellum <command> --help' for command-specific options.`;
|
|
700
748
|
var commands = {
|
|
@@ -705,7 +753,8 @@ var commands = {
|
|
|
705
753
|
list: listCommand,
|
|
706
754
|
markup: markupCommand,
|
|
707
755
|
archive: archiveCommand,
|
|
708
|
-
unarchive: unarchiveCommand
|
|
756
|
+
unarchive: unarchiveCommand,
|
|
757
|
+
version: versionCommand
|
|
709
758
|
};
|
|
710
759
|
async function main() {
|
|
711
760
|
const [, , cmd, ...rest] = process.argv;
|
|
@@ -713,6 +762,9 @@ async function main() {
|
|
|
713
762
|
console.log(HELP7);
|
|
714
763
|
return cmd ? 0 : 1;
|
|
715
764
|
}
|
|
765
|
+
if (cmd === "-v" || cmd === "--version") {
|
|
766
|
+
return versionCommand(rest);
|
|
767
|
+
}
|
|
716
768
|
const handler = commands[cmd];
|
|
717
769
|
if (!handler) {
|
|
718
770
|
console.error(`Unknown command: ${cmd}
|