@tplog/zendcli 1.1.5 → 1.3.0

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 (4) hide show
  1. package/README.md +33 -12
  2. package/dist/zend +0 -0
  3. package/package.json +5 -13
  4. package/dist/cli.js +0 -3821
package/README.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # zendcli
2
2
 
3
- Minimal Zendesk CLI for listing tickets and reading ticket comment threads.
3
+ Minimal Zendesk CLI for listing tickets and reading ticket comment timelines.
4
+
5
+ `zend comments` returns a slim timeline optimized for terminal review and LLM summarization. By default it includes both public and private comments and emits only:
6
+
7
+ - `author`
8
+ - `time`
9
+ - `visibility` (`public` or `private`)
10
+ - `body`
4
11
 
5
12
  ## Install
6
13
 
@@ -30,7 +37,7 @@ This is the recommended option for temporary or CI usage.
30
37
 
31
38
  ```bash
32
39
  export ZENDESK_SUBDOMAIN="your-subdomain"
33
- export ZENDESK_EMAIL="foo@example.com"
40
+ export ZENDESK_EMAIL="user@example.com"
34
41
  export ZENDESK_API_TOKEN="your_zendesk_api_token"
35
42
  ```
36
43
 
@@ -40,22 +47,36 @@ Environment variables take precedence over the config file.
40
47
 
41
48
  ```bash
42
49
  zend --help
43
- zend tickets --help
50
+ zend ticket --help
44
51
  zend email --help
45
52
  zend follower --help
46
53
  zend comments --help
47
- zend tickets --limit 10
48
- zend tickets --status open --limit 20
49
- zend email foo@example.com
50
- zend email foo@example.com --status unresolved
51
- zend email foo@example.com --status open,pending
52
- zend follower
53
- zend follower foo@example.com --limit 3
54
+ zend 12345
55
+ zend ticket 12345 --raw
56
+ zend email user@example.com
57
+ zend email user@example.com --status unresolved
58
+ zend email user@example.com --status open,pending
59
+ zend follower user@example.com --limit 3
54
60
  zend comments 12345
55
- zend comments 12345 --type public
56
- zend comments 12345 --json
61
+ zend comments 12345 --visibility public
62
+ zend comments 12345 --visibility private --sort desc
57
63
  ```
58
64
 
65
+ ### Comments output shape
66
+
67
+ ```json
68
+ [
69
+ {
70
+ "author": "Support Agent",
71
+ "time": "2026-03-13T06:19:57Z",
72
+ "visibility": "public",
73
+ "body": "Reply text..."
74
+ }
75
+ ]
76
+ ```
77
+
78
+ Use `--visibility public` or `--visibility private` to filter the timeline.
79
+
59
80
  ## Development workflow
60
81
 
61
82
  ### Daily development
package/dist/zend ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tplog/zendcli",
3
- "version": "1.1.5",
4
- "description": "Minimal Zendesk CLI for tickets and comments",
3
+ "version": "1.3.0",
4
+ "description": "Minimal Zendesk CLI for tickets and comments (Rust)",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/tplog/zendcli.git"
@@ -11,22 +11,14 @@
11
11
  "url": "https://github.com/tplog/zendcli/issues"
12
12
  },
13
13
  "bin": {
14
- "zend": "dist/cli.js"
14
+ "zend": "dist/zend"
15
15
  },
16
16
  "files": [
17
17
  "dist/"
18
18
  ],
19
19
  "scripts": {
20
- "build": "rm -rf dist && npx esbuild src/cli.ts --bundle --platform=node --format=cjs --outfile=dist/cli.js && node -e \"const f='dist/cli.js';const fs=require('fs');fs.writeFileSync(f,'#!/usr/bin/env node\\n'+fs.readFileSync(f,'utf8'))\"",
20
+ "build": "cargo build --release && mkdir -p dist && cp target/release/zend dist/zend",
21
21
  "prepublishOnly": "npm run build",
22
- "start": "node dist/cli.js"
23
- },
24
- "devDependencies": {
25
- "esbuild": "^0.25.0",
26
- "typescript": "^5.7.0",
27
- "@types/node": "^22.0.0"
28
- },
29
- "dependencies": {
30
- "commander": "^14.0.3"
22
+ "test": "cargo test"
31
23
  }
32
24
  }