@qzhuli/qzhuli-cli 0.4.0 → 0.4.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/cmd.js +1 -1
- package/package.json +1 -1
- package/skills/qzhuli-cli/SKILL.md +11 -8
package/dist/cmd.js
CHANGED
|
@@ -14807,7 +14807,7 @@ async function main() {
|
|
|
14807
14807
|
${t("cli.banner")}` : t("cli.banner");
|
|
14808
14808
|
program.addHelpText("beforeAll", `${banner}
|
|
14809
14809
|
`);
|
|
14810
|
-
program.name("qz").version(`v${"0.4.
|
|
14810
|
+
program.name("qz").version(`v${"0.4.2"}`, "-v, --version", t("options.version")).helpOption("-h, --help", t("options.help")).option("-q, --jq <expr>", t("options.jq")).option("--dry-run", t("options.dryRun"));
|
|
14811
14811
|
program.usage("<command> [subcommand] [options]");
|
|
14812
14812
|
program.hook("preAction", () => {
|
|
14813
14813
|
const opts = program.opts();
|
package/package.json
CHANGED
|
@@ -32,8 +32,10 @@ Concise operating manual for the `qz` command.
|
|
|
32
32
|
|
|
33
33
|
When ANY of the following applies, STOP and ask the user first:
|
|
34
34
|
|
|
35
|
-
- **
|
|
36
|
-
and ask
|
|
35
|
+
- **Multiple options from any query**: `user search`, `friend list`, `conversation search`, `friend profile` or similar
|
|
36
|
+
commands return multiple candidates — show all options with clear identifiers (name, Q助号, UID) and ask which one
|
|
37
|
+
to use.
|
|
38
|
+
- **Ambiguous search results**: `status: "needs_resolution"` — show options and ask.
|
|
37
39
|
- **Friend operations**: Before `user add`, show the target profile and confirm.
|
|
38
40
|
- **Relation changes**: Before `relation set`, show the current value and the new value, then confirm.
|
|
39
41
|
- **Message sending**: Before `message send`, show the target conversation, recipient, and message content.
|
|
@@ -122,19 +124,20 @@ login/logout, and preference writes.
|
|
|
122
124
|
| Clear credentials | `qz auth logout` |
|
|
123
125
|
| Show preferences | `qz config` |
|
|
124
126
|
| Update preferences | `qz config [--locale en\|zh] [--debug\|--no-debug]` |
|
|
125
|
-
| Search user (Q助号) | `qz user search <
|
|
126
|
-
| Search user (UID) | `qz user search <
|
|
127
|
+
| Search user (Q助号) | `qz user search <q-number>` |
|
|
128
|
+
| Search user (UID) | `qz user search <uid> --uid` |
|
|
127
129
|
| Add friend (Q助号) | `qz user add <q-number>` |
|
|
128
130
|
| List friends | `qz friend list` |
|
|
129
|
-
| Resolve profile (nickname) | `qz friend profile <
|
|
130
|
-
| Resolve profile (UID) | `qz friend profile <
|
|
131
|
-
| Resolve profile (remark) | `qz friend profile <
|
|
131
|
+
| Resolve profile (nickname) | `qz friend profile <nickname>` |
|
|
132
|
+
| Resolve profile (UID) | `qz friend profile <uid> --uid` |
|
|
133
|
+
| Resolve profile (remark) | `qz friend profile <remark> --remark` |
|
|
132
134
|
| Read relation | `qz relation get <uid>` |
|
|
133
135
|
| Update relation | `qz relation set <uid> [-r, --remark <name>] [-t, --type <type>]` |
|
|
134
136
|
| List conversations | `qz conversation list [--limit <n>] [--offset <n>]` |
|
|
135
137
|
| Get conversation profile | `qz conversation profile <conversation-id> [--type <n>]` |
|
|
136
138
|
| Create conversation | `qz conversation create <uid> --agent-id <id>` |
|
|
137
|
-
| Search
|
|
139
|
+
| Search conversations (Q助号) | `qz conversation search <q-number>` |
|
|
140
|
+
| Search conversations (UID) | `qz conversation search <uid> --uid` |
|
|
138
141
|
| Send message | `qz message send <conversation-id> <target-cid> <content>` |
|
|
139
142
|
| Read message history | `qz message history <conversation-id> [--from <id>] [--direction newer\|older] [--limit <n>]` |
|
|
140
143
|
| Sync cache | `qz cache sync` |
|