agent-canvas 0.1.19 → 0.1.20

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.
@@ -6,9 +6,10 @@ import { handleWatch } from "./lib/commands/watch.ts";
6
6
  import { handleDaemon } from "./lib/commands/daemon.ts";
7
7
  import { handleInstall } from "./lib/commands/install.ts";
8
8
  import { handleInstructions } from "./lib/commands/instructions.ts";
9
+ import { VERSION } from "./lib/config.ts";
9
10
 
10
11
  function printUsage() {
11
- console.error(`agent-canvas — Interactive visual canvas for Claude Code
12
+ console.log(`agent-canvas v${VERSION} — Interactive visual canvas for Claude Code
12
13
 
13
14
  Commands:
14
15
  agent-canvas install [local|global] Install skill for Claude Code
@@ -28,6 +29,11 @@ Environment:
28
29
  async function main() {
29
30
  const args = process.argv.slice(2);
30
31
 
32
+ if (args[0] === "--version" || args[0] === "-v") {
33
+ console.log(VERSION);
34
+ return;
35
+ }
36
+
31
37
  if (args.length === 0 || args[0] === "--help" || args[0] === "-h") {
32
38
  printUsage();
33
39
  process.exit(args.length === 0 ? 1 : 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-canvas",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Interactive visual canvas for Claude Code — rich annotatable documents in the browser",
5
5
  "bin": {
6
6
  "agent-canvas": "bin/agent-canvas.js"