wechat-clawbot 1.3.0 → 1.3.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/README.md +27 -14
- package/README.zh.md +27 -14
- package/lib/backlog.d.ts +17 -0
- package/lib/backlog.d.ts.map +1 -1
- package/lib/backlog.js +61 -0
- package/lib/backlog.js.map +1 -1
- package/lib/bridge.d.ts +46 -0
- package/lib/bridge.d.ts.map +1 -1
- package/lib/bridge.js +201 -11
- package/lib/bridge.js.map +1 -1
- package/lib/client.js +282 -28
- package/lib/codex-rpc.js +1 -1
- package/lib/config.js +1 -1
- package/lib/config.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/mac-alarms.d.ts.map +1 -1
- package/lib/mac-alarms.js +8 -6
- package/lib/mac-alarms.js.map +1 -1
- package/lib/mac-calendar.d.ts.map +1 -1
- package/lib/mac-calendar.js +5 -4
- package/lib/mac-calendar.js.map +1 -1
- package/lib/mcp-server.js +1 -1
- package/lib/memory-auto.d.ts +26 -0
- package/lib/memory-auto.d.ts.map +1 -1
- package/lib/memory-auto.js +55 -0
- package/lib/memory-auto.js.map +1 -1
- package/lib/permissions.d.ts +164 -0
- package/lib/permissions.d.ts.map +1 -0
- package/lib/permissions.js +549 -0
- package/lib/permissions.js.map +1 -0
- package/package.json +5 -6
- package/wechat-clawbot-INSTALL.md +45 -16
package/lib/memory-auto.js
CHANGED
|
@@ -92,6 +92,61 @@ function mightContainFact(text) {
|
|
|
92
92
|
+ `|我${ADV}(?:喜欢|偏好|习惯|不喜欢|讨厌|不能|不会|可以|平时|通常|一般|主要|希望|以后|每次|每周|每月|每天)`
|
|
93
93
|
+ `|(?:以后|每次|每周|每月|每天|请以后|尽量不要|不要再|请记得|别忘了)|咱|自己)`).test(cleaned);
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Effort ids, cheapest first. This is pi-ai's level order, which DSH's own
|
|
97
|
+
* adapters also follow, plus `none`: OpenAI's name for "no reasoning", which
|
|
98
|
+
* server-supplied effort lists may use.
|
|
99
|
+
*/
|
|
100
|
+
const EFFORT_ORDER = ["off", "none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
101
|
+
/** Output budget when thinking is off: the answer is one line of JSON. */
|
|
102
|
+
const ANSWER_BUDGET = 400;
|
|
103
|
+
/**
|
|
104
|
+
* Output budget when the route cannot stop the model thinking. Thinking and the
|
|
105
|
+
* answer share it.
|
|
106
|
+
* - At its lowest effort a model thinks a few dozen to a few hundred tokens.
|
|
107
|
+
* With only 400 it can spend them all and send no answer.
|
|
108
|
+
* - Some adapters reserve a fixed thinking budget per effort and refuse any
|
|
109
|
+
* maxTokens that is not larger. Antigravity's reaches about 10,000.
|
|
110
|
+
* Unused budget costs nothing. The model's own output limit still caps it.
|
|
111
|
+
*/
|
|
112
|
+
const THINKING_BUDGET = 16384;
|
|
113
|
+
/**
|
|
114
|
+
* The reasoning effort and output budget for one classifier call, chosen from
|
|
115
|
+
* what the route's model reports (`resolveModelInfo(...).reasoning`).
|
|
116
|
+
*
|
|
117
|
+
* The classifier needs no deliberation, so it asks for the least thinking the
|
|
118
|
+
* route allows:
|
|
119
|
+
* - The route lists `off`: turn thinking off and keep the small budget.
|
|
120
|
+
* - It does not: use the cheapest effort it lists, with room for that
|
|
121
|
+
* thinking. Examples are DeepSeek V4.1 Flash on OpenCode Go, Kimi K3.1 and
|
|
122
|
+
* GLM, none of which can stop thinking.
|
|
123
|
+
* - It reports no reasoning at all: name no effort, because the host rejects
|
|
124
|
+
* ANY effort for such a model, `off` included.
|
|
125
|
+
*
|
|
126
|
+
* Until 2026-11 the classifier always asked for `off`. The host refuses an
|
|
127
|
+
* effort the model does not list (UNSUPPORTED_REASONING_EFFORT), so on routes
|
|
128
|
+
* without `off` every classification failed. From 2026-10-19, when the bot moved
|
|
129
|
+
* to DeepSeek V4.1 Flash on OpenCode Go, nothing was captured.
|
|
130
|
+
*/
|
|
131
|
+
export function judgeCallControls(reasoning, maxOutput) {
|
|
132
|
+
// Never ask for more than the model's own output limit (`defaultMaxTokens`,
|
|
133
|
+
// present when the deployment declares one).
|
|
134
|
+
const cap = (budget) => typeof maxOutput === "number" && Number.isFinite(maxOutput) && maxOutput >= 1
|
|
135
|
+
? Math.min(budget, Math.floor(maxOutput))
|
|
136
|
+
: budget;
|
|
137
|
+
if (reasoning === undefined)
|
|
138
|
+
return { maxTokens: cap(THINKING_BUDGET) };
|
|
139
|
+
const ids = (reasoning.efforts ?? []).map((effort) => String(effort.id));
|
|
140
|
+
if (ids.includes("off"))
|
|
141
|
+
return { reasoningEffort: "off", maxTokens: cap(ANSWER_BUDGET) };
|
|
142
|
+
// An id outside EFFORT_ORDER is used only when the route lists none of the
|
|
143
|
+
// known ones. Then the route's first id wins, because every adapter seen so
|
|
144
|
+
// far lists its cheapest level first.
|
|
145
|
+
const cheapest = EFFORT_ORDER.find((id) => ids.includes(id)) ?? ids[0];
|
|
146
|
+
return cheapest === undefined
|
|
147
|
+
? { maxTokens: cap(THINKING_BUDGET) }
|
|
148
|
+
: { reasoningEffort: cheapest, maxTokens: cap(THINKING_BUDGET) };
|
|
149
|
+
}
|
|
95
150
|
/** Build the classification prompt for one candidate message. */
|
|
96
151
|
function judgePrompt(cleaned) {
|
|
97
152
|
return (`判断下面的用户消息是否包含"值得长期记住的个人信息"(身份/偏好/习惯/长期成立的重要事实)。` +
|
package/lib/memory-auto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-auto.js","sourceRoot":"","sources":["../src/memory-auto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,wCAAwC;AACxC;;;;;;;;GAQG;AACH,MAAM,QAAQ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AC;QAC7B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;YAAE,SAAS;QACtC,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,MAAM;YAAE,SAAS;QACtB,IAAI,iBAAiB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YACnD,KAAK,IAAI,CAAC,CAAC;YACX,MAAM,CAAC,IAAI,CAAC,8BAA8B,MAAM,CAAC,IAAI,QAAQ,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;QACjF,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,yDAAyD;AACzD,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
import type { Context } from "@deepseek-ai/cordis";
|
|
3
|
+
export declare const PERMISSIONS_PATH = "/plugins/clawbot/permissions";
|
|
4
|
+
export declare const PERMISSIONS_SETTINGS_PATH = "/plugins/clawbot/permissions/open-settings";
|
|
5
|
+
export declare const PERMISSIONS_REVEAL_PATH = "/plugins/clawbot/permissions/reveal";
|
|
6
|
+
export type RunResult = {
|
|
7
|
+
code: number;
|
|
8
|
+
stdout: string;
|
|
9
|
+
stderr: string;
|
|
10
|
+
};
|
|
11
|
+
/** Runs a program with an argument list (never a shell), in DSH's environment unless given one. A program that could not start answers code -1. */
|
|
12
|
+
export type Runner = (cmd: string, args: string[], timeoutMs?: number, env?: NodeJS.ProcessEnv) => Promise<RunResult>;
|
|
13
|
+
export declare const runProgram: Runner;
|
|
14
|
+
/** DSH's own program, the way the system names it (symlinks resolved: Homebrew's bin/node is a link into its Cellar). */
|
|
15
|
+
export declare function ownProgram(): string;
|
|
16
|
+
export type Found = {
|
|
17
|
+
kind: "app";
|
|
18
|
+
path: string;
|
|
19
|
+
} | {
|
|
20
|
+
kind: "program";
|
|
21
|
+
path: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: "unknown";
|
|
24
|
+
reason: string;
|
|
25
|
+
};
|
|
26
|
+
/** The app a program belongs to: the OUTERMOST bundle, so an app's helpers (Code Helper.app …) count as the app. */
|
|
27
|
+
export declare function appBundleOf(program: string): string | undefined;
|
|
28
|
+
/** What the Ruby above prints: `<responsible pid>\t<its program>`. */
|
|
29
|
+
export declare function parseResponsible(out: string): {
|
|
30
|
+
pid: number;
|
|
31
|
+
path: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* DSH's environment without the owner's Ruby settings. A shell set up for a
|
|
35
|
+
* newer Ruby hands DSH options the system's Ruby 2.6 refuses to start with
|
|
36
|
+
* (RUBYOPT=-W:no-deprecated, --yjit) or that print ahead of the answer (-v),
|
|
37
|
+
* and RUBYLIB can put another fiddle in front of the system's.
|
|
38
|
+
*/
|
|
39
|
+
export declare function rubyEnvironment(env?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
40
|
+
/** `why` hears what went wrong when there is no answer: the reason the walk is used instead. */
|
|
41
|
+
export declare function askResponsible(run: Runner, self: number, why?: (reason: string) => void): Promise<{
|
|
42
|
+
pid: number;
|
|
43
|
+
path: string;
|
|
44
|
+
} | undefined>;
|
|
45
|
+
/** The system's answer as the card names it: the app whose program it is, or the program itself. */
|
|
46
|
+
export declare function fromResponsible(program: string): Found;
|
|
47
|
+
export type Proc = {
|
|
48
|
+
pid: number;
|
|
49
|
+
ppid: number;
|
|
50
|
+
command: string;
|
|
51
|
+
};
|
|
52
|
+
/** `ps -axo pid=,ppid=,comm=`. On macOS `comm` is argv[0] — usually the full path (spaces and all), a bare `node` when run through `#!/usr/bin/env node`. */
|
|
53
|
+
export declare function parseProcessTable(text: string): Map<number, Proc>;
|
|
54
|
+
/** PIDs launchd runs as this user's jobs (`launchctl list`): LaunchAgents, and each app LaunchServices opened. */
|
|
55
|
+
export declare function parseLaunchdJobs(text: string): Set<number>;
|
|
56
|
+
/**
|
|
57
|
+
* Walk up from DSH to what started it, when the system could not be asked.
|
|
58
|
+
* Right for the usual cases, a guess for the rest — the system's answer is
|
|
59
|
+
* the one to trust (askResponsible).
|
|
60
|
+
*
|
|
61
|
+
* The first app on the way up (Terminal above the shell above `dsh web`, DSH
|
|
62
|
+
* Desktop above its host) is taken for it; DSH's own program is not looked at
|
|
63
|
+
* — node run from inside some app's bundle, typed into Terminal, is still
|
|
64
|
+
* Terminal's. Reaching launchd without an app: a launchd job running DSH (or a
|
|
65
|
+
* shell that runs DSH) leaves the access with DSH's own program; anything else
|
|
66
|
+
* cannot be told from here (tmux, screen, SSH, a restarted DSH, a starter that
|
|
67
|
+
* has exited).
|
|
68
|
+
*/
|
|
69
|
+
export declare function findLauncher(table: Map<number, Proc>, self: number, jobs: Set<number>, own?: string): Found;
|
|
70
|
+
export type Signing = "apple" | "developer" | "local" | "adhoc" | "unsigned" | "unknown";
|
|
71
|
+
/**
|
|
72
|
+
* Who signed a program, from what `codesign -dv --verbose=2` prints (on
|
|
73
|
+
* stderr). What matters is whether the system will know the next version as
|
|
74
|
+
* the same program: ad-hoc and unsigned ones are known by their exact bytes,
|
|
75
|
+
* so every update loses the access.
|
|
76
|
+
*/
|
|
77
|
+
export declare function parseSigning(text: string): Signing;
|
|
78
|
+
/** "system": macOS said so; "walk": read off the process tree (see findLauncher). */
|
|
79
|
+
export type Via = "system" | "walk";
|
|
80
|
+
export type LauncherInfo =
|
|
81
|
+
/**
|
|
82
|
+
* `name`: the app's own name. `localName`: the one System Settings shows in Chinese, when it differs (终端 for
|
|
83
|
+
* Terminal). `file`: the bundle as Finder lists it (DSHWhale.app for 「DSH小鲸鱼」). `dsh`: the app exists to run DSH.
|
|
84
|
+
*/
|
|
85
|
+
{
|
|
86
|
+
kind: "app";
|
|
87
|
+
path: string;
|
|
88
|
+
name: string;
|
|
89
|
+
localName?: string;
|
|
90
|
+
file: string;
|
|
91
|
+
bundleId?: string;
|
|
92
|
+
signing: Signing;
|
|
93
|
+
dsh: boolean;
|
|
94
|
+
via: Via;
|
|
95
|
+
}
|
|
96
|
+
/** `own`: it is DSH's own program (node run by launchd, or started by something that disclaims it). */
|
|
97
|
+
| {
|
|
98
|
+
kind: "program";
|
|
99
|
+
path: string;
|
|
100
|
+
name: string;
|
|
101
|
+
signing: Signing;
|
|
102
|
+
own: boolean;
|
|
103
|
+
via: Via;
|
|
104
|
+
} | {
|
|
105
|
+
kind: "unknown";
|
|
106
|
+
reason: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Folders whose files only open once the owner allows it in a dialog, the way
|
|
110
|
+
* the system's own folder checks go (see fullDiskProbes): Desktop, Documents,
|
|
111
|
+
* Downloads, iCloud Drive, the Photos library under Pictures, and other disks.
|
|
112
|
+
*/
|
|
113
|
+
export declare function inGuardedFolder(file: string, home?: string): boolean;
|
|
114
|
+
export declare function describeLauncher(found: Found, run: Runner, via?: Via, own?: string): Promise<LauncherInfo>;
|
|
115
|
+
/**
|
|
116
|
+
* Who DSH's access is held against. Asked of the system first; read off the
|
|
117
|
+
* process tree when that fails. Found once per DSH process and kept on
|
|
118
|
+
* globalThis, so the plugin's in-place reloads keep it too: the system's
|
|
119
|
+
* answer cannot change while the process lives. The walk can lose its answer
|
|
120
|
+
* (quit and reopen the whale and DSH carries on under launchd, its starter no
|
|
121
|
+
* longer above it), so the plugin also asks as it starts, and asks again only
|
|
122
|
+
* while the answer is unknown.
|
|
123
|
+
*/
|
|
124
|
+
export declare function detectLauncher(run?: Runner, self?: number): Promise<LauncherInfo>;
|
|
125
|
+
export type Access = "granted" | "denied" | "unknown";
|
|
126
|
+
/**
|
|
127
|
+
* Folders only Full Disk Access opens, none of which ever brings up a dialog:
|
|
128
|
+
* without the access they answer "Operation not permitted" and that is all.
|
|
129
|
+
* (Downloads, Desktop, Documents and the Photos library are the opposite —
|
|
130
|
+
* touching one is what puts the dialog on screen — so they are never probed.)
|
|
131
|
+
* The first that answers decides. The system TCC folder is there on every
|
|
132
|
+
* macOS with Full Disk Access (10.14 on); the rest are spares.
|
|
133
|
+
*/
|
|
134
|
+
export declare function fullDiskProbes(home?: string): string[];
|
|
135
|
+
/** Through a new process DSH starts — the way the bot's commands reach files. */
|
|
136
|
+
export declare function probeFullDisk(run?: Runner, dirs?: string[]): Promise<Access>;
|
|
137
|
+
/** In DSH's own process — the way its file tools (read, glob, grep) reach files. EPERM is the system's refusal; EACCES is only file modes. */
|
|
138
|
+
export declare function probeFullDiskHere(dirs?: string[]): Access;
|
|
139
|
+
/** The page of System Settings with the Full Disk Access list. System Settings (macOS 13, Darwin 22) names it by its extension. */
|
|
140
|
+
export declare function fullDiskSettingsUrl(release?: string): string;
|
|
141
|
+
export type FolderGuard = "on" | "off" | "audit" | "unknown";
|
|
142
|
+
/**
|
|
143
|
+
* `(Get-MpPreference).EnableControlledFolderAccess`: 1 blocks writes into the
|
|
144
|
+
* protected folders, 2 only records them; 3 and 4 are about raw disk sectors,
|
|
145
|
+
* not folders.
|
|
146
|
+
*/
|
|
147
|
+
export declare function parseFolderGuard(out: string): FolderGuard;
|
|
148
|
+
export declare function parseDefender(out: string): FolderGuard;
|
|
149
|
+
/** Asked of Windows Security at most every five minutes, one PowerShell at a time: it takes a second or two to start. */
|
|
150
|
+
export declare function readFolderGuard(run?: Runner, now?: number): Promise<FolderGuard>;
|
|
151
|
+
/** For tests: forget who started DSH and what Windows Security said. */
|
|
152
|
+
export declare function resetPermissionCaches(): void;
|
|
153
|
+
export declare function permissionStatus(run?: Runner, platform?: NodeJS.Platform): Promise<Record<string, unknown>>;
|
|
154
|
+
/** GET /plugins/clawbot/permissions — this machine's page only: it names programs and paths. */
|
|
155
|
+
export declare function handlePermissionStatus(req: IncomingMessage, res: ServerResponse, run?: Runner, platform?: NodeJS.Platform): Promise<void>;
|
|
156
|
+
/**
|
|
157
|
+
* POST …/open-settings and …/reveal — the card's buttons. They open things on
|
|
158
|
+
* the computer DSH runs on, for the card's own request only
|
|
159
|
+
* (cardRequestAllowed). What is shown in Finder is what this process found by
|
|
160
|
+
* itself, never a path from the request.
|
|
161
|
+
*/
|
|
162
|
+
export declare function handlePermissionAction(what: "settings" | "reveal", req: IncomingMessage, res: ServerResponse, run?: Runner, platform?: NodeJS.Platform): Promise<void>;
|
|
163
|
+
export declare function registerPermissionRoutes(ctx: Context): void;
|
|
164
|
+
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../src/permissions.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAKnD,eAAO,MAAM,gBAAgB,iCAAiC,CAAC;AAC/D,eAAO,MAAM,yBAAyB,+CAA+C,CAAC;AACtF,eAAO,MAAM,uBAAuB,wCAAwC,CAAC;AAI7E,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AACzE,mJAAmJ;AACnJ,MAAM,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;AAEtH,eAAO,MAAM,UAAU,EAAE,MAarB,CAAC;AAEL,yHAAyH;AACzH,wBAAgB,UAAU,IAAI,MAAM,CAMnC;AAID,MAAM,MAAM,KAAK,GACb;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,E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