doubao-cli 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doubao-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Programmatic control for local Doubao desktop sessions on macOS",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -6,7 +6,7 @@ import { cdpStatus } from './cdp.mjs';
6
6
  import { openConversation, readConversation, sendMessage } from './automation.mjs';
7
7
 
8
8
  const DEFAULT_APP = '/Applications/Doubao.app';
9
- const CLI_VERSION = '0.2.0';
9
+ const CLI_VERSION = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
10
10
 
11
11
  const HELP = `Usage:
12
12
  doubao status [--profile <name>] [--json]