@yanzc/claude-pro 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/package.json +1 -1
- package/src/api.js +59 -8
- package/src/codex/client.js +7 -0
- package/src/commands.js +44 -10
- package/src/gateway.js +48 -0
- package/src/peers.js +157 -156
- package/src/tools/effort.js +1 -1
- package/src/tools/peers.js +3 -1
- package/src/ui/repl.js +1459 -1450
package/src/tools/effort.js
CHANGED
|
@@ -25,7 +25,7 @@ Do not raise it for routine work, and do not switch back and forth: the prompt c
|
|
|
25
25
|
async call(input) {
|
|
26
26
|
const level = String(input.level || '').trim().toLowerCase();
|
|
27
27
|
if (!EFFORT_LEVELS.includes(level)) return { isError: true, content: `Unknown effort "${input.level}". Use one of: ${EFFORT_LEVELS.join(', ')}.` };
|
|
28
|
-
const shown = () => config.effort || defaultEffort(config.mainModel.id) || 'the model default';
|
|
28
|
+
const shown = () => config.effort || defaultEffort(config.mainModel.id, config) || 'the model default';
|
|
29
29
|
const before = shown();
|
|
30
30
|
if (level === before) return { content: `The effort is already ${level}.` };
|
|
31
31
|
config.effortBoost = null;
|
package/src/tools/peers.js
CHANGED
|
@@ -22,7 +22,9 @@ export const ListPeersTool = {
|
|
|
22
22
|
|
|
23
23
|
export const MessagePeerTool = {
|
|
24
24
|
name: 'MessagePeer',
|
|
25
|
-
description: `Send a task or a question to another claude-pro session running on this machine (ListPeers lists them). The other session's agent works on it in its own conversation and directory, and the final text of its answer comes back to you later as a <peer-message kind="reply"> message: you do not wait for it here. Use it to delegate work that belongs to another session's project or context, or to ask it something only it knows. Write the message so that it stands on its own: the other agent has not seen your conversation
|
|
25
|
+
description: `Send a task or a question to another claude-pro session running on this machine (ListPeers lists them). The other session's agent works on it in its own conversation and directory, and the final text of its answer comes back to you later as a <peer-message kind="reply"> message: you do not wait for it here. Use it to delegate work that belongs to another session's project or context, or to ask it something only it knows. Write the message so that it stands on its own: the other agent has not seen your conversation.
|
|
26
|
+
|
|
27
|
+
Send it once and wait for the answer: do not send reminders or "please report" follow-ups while the other session works. Messages that arrive while it is busy are handled together after what it is doing, so they only add to its work; the answer comes by itself when it is done.`,
|
|
26
28
|
input_schema: {
|
|
27
29
|
type: 'object',
|
|
28
30
|
properties: {
|