@qzhuli/qzhuli-cli 0.4.1 → 0.4.3
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
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.3"}`, "-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
|
@@ -150,15 +150,18 @@ function main() {
|
|
|
150
150
|
targets.push({ cfg, isProject: opts.project });
|
|
151
151
|
} else {
|
|
152
152
|
const detected = detectAgents();
|
|
153
|
-
const fallback = AGENT_PATHS.find(a => a.name === 'claude-code');
|
|
154
153
|
if (detected.length === 0) {
|
|
155
|
-
|
|
154
|
+
const fallback = AGENT_PATHS.find(a => a.name === 'claude-code');
|
|
155
|
+
if (fallback) targets.push({ cfg: fallback, isProject: false });
|
|
156
156
|
} else {
|
|
157
157
|
for (const name of detected) {
|
|
158
158
|
const cfg = AGENT_PATHS.find(a => a.name === name);
|
|
159
159
|
if (cfg) targets.push({ cfg, isProject: false });
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
// Always install to agents as a universal fallback
|
|
163
|
+
const universal = AGENT_PATHS.find(a => a.name === 'agents');
|
|
164
|
+
if (universal) targets.push({ cfg: universal, isProject: false });
|
|
162
165
|
}
|
|
163
166
|
|
|
164
167
|
let installed = 0;
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -94,6 +94,11 @@ function install() {
|
|
|
94
94
|
const detectedAgents = detectAgents();
|
|
95
95
|
const targets = detectedAgents.length > 0 ? detectedAgents : ['claude-code'];
|
|
96
96
|
|
|
97
|
+
// Always install to agents as a universal fallback
|
|
98
|
+
if (!targets.includes('agents')) {
|
|
99
|
+
targets.push('agents');
|
|
100
|
+
}
|
|
101
|
+
|
|
97
102
|
const results = [];
|
|
98
103
|
const updated = [];
|
|
99
104
|
|
package/scripts/skill-agent.mjs
CHANGED
|
@@ -37,6 +37,8 @@ export const AGENT_PATHS = [
|
|
|
37
37
|
{ name: 'trae', global: '~/.trae/skills', project: '.trae/skills' },
|
|
38
38
|
{ name: 'augment', global: '~/.augment/skills', project: '.augment/skills' },
|
|
39
39
|
{ name: 'zed', global: '~/.config/zed/skills', project: '.zed/skills' },
|
|
40
|
+
// Universal fallback — always installed regardless of agent detection
|
|
41
|
+
{ name: 'agents', global: '~/.agents/skills', project: '.agents/skills' },
|
|
40
42
|
];
|
|
41
43
|
|
|
42
44
|
export const SKILL_NAME = 'qzhuli-cli';
|
|
@@ -124,19 +124,20 @@ login/logout, and preference writes.
|
|
|
124
124
|
| Clear credentials | `qz auth logout` |
|
|
125
125
|
| Show preferences | `qz config` |
|
|
126
126
|
| Update preferences | `qz config [--locale en\|zh] [--debug\|--no-debug]` |
|
|
127
|
-
| Search user (Q助号) | `qz user search <
|
|
128
|
-
| Search user (UID) | `qz user search <
|
|
127
|
+
| Search user (Q助号) | `qz user search <q-number>` |
|
|
128
|
+
| Search user (UID) | `qz user search <uid> --uid` |
|
|
129
129
|
| Add friend (Q助号) | `qz user add <q-number>` |
|
|
130
130
|
| List friends | `qz friend list` |
|
|
131
|
-
| Resolve profile (nickname) | `qz friend profile <
|
|
132
|
-
| Resolve profile (UID) | `qz friend profile <
|
|
133
|
-
| 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` |
|
|
134
134
|
| Read relation | `qz relation get <uid>` |
|
|
135
135
|
| Update relation | `qz relation set <uid> [-r, --remark <name>] [-t, --type <type>]` |
|
|
136
136
|
| List conversations | `qz conversation list [--limit <n>] [--offset <n>]` |
|
|
137
137
|
| Get conversation profile | `qz conversation profile <conversation-id> [--type <n>]` |
|
|
138
138
|
| Create conversation | `qz conversation create <uid> --agent-id <id>` |
|
|
139
|
-
| Search
|
|
139
|
+
| Search conversations (Q助号) | `qz conversation search <q-number>` |
|
|
140
|
+
| Search conversations (UID) | `qz conversation search <uid> --uid` |
|
|
140
141
|
| Send message | `qz message send <conversation-id> <target-cid> <content>` |
|
|
141
142
|
| Read message history | `qz message history <conversation-id> [--from <id>] [--direction newer\|older] [--limit <n>]` |
|
|
142
143
|
| Sync cache | `qz cache sync` |
|