@privateclaw/privateclaw 0.1.40 → 0.1.41
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 +14 -8
- package/dist/cli.js +7 -2
- package/dist/cli.js.map +1 -1
- package/dist/setup.d.ts +19 -3
- package/dist/setup.js +206 -85
- package/dist/setup.js.map +1 -1
- package/dist/text.d.ts +2 -0
- package/dist/text.js +3 -0
- package/dist/text.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
- package/src/cli.ts +7 -1
- package/src/openclaw-plugin.test.ts +2 -0
- package/src/session-control.test.ts +2 -1
- package/src/setup.test.ts +109 -4
- package/src/setup.ts +340 -128
- package/src/text.test.ts +6 -1
- package/src/text.ts +11 -0
package/src/text.test.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
appendPrivateClawAppInstallFooter,
|
|
5
5
|
buildPrivateClawCommandErrorMessage,
|
|
6
6
|
PRIVATECLAW_APP_INSTALL_FOOTER_LINES,
|
|
7
|
+
PRIVATECLAW_DESKTOP_GITHUB_RELEASES_URL,
|
|
7
8
|
} from "./text.js";
|
|
8
9
|
|
|
9
10
|
test("appendPrivateClawAppInstallFooter appends concise store links", () => {
|
|
@@ -11,9 +12,11 @@ test("appendPrivateClawAppInstallFooter appends concise store links", () => {
|
|
|
11
12
|
assert.match(text, /App Store/i);
|
|
12
13
|
assert.match(text, /Google Play/i);
|
|
13
14
|
assert.match(text, /Google Group/i);
|
|
15
|
+
assert.match(text, /GitHub Releases/i);
|
|
16
|
+
assert.ok(text.includes(PRIVATECLAW_DESKTOP_GITHUB_RELEASES_URL));
|
|
14
17
|
assert.ok(
|
|
15
18
|
text.endsWith(PRIVATECLAW_APP_INSTALL_FOOTER_LINES.at(-1) ?? ""),
|
|
16
|
-
"footer should end with the
|
|
19
|
+
"footer should end with the desktop GitHub Releases note",
|
|
17
20
|
);
|
|
18
21
|
});
|
|
19
22
|
|
|
@@ -23,4 +26,6 @@ test("buildPrivateClawCommandErrorMessage also appends store links", () => {
|
|
|
23
26
|
assert.match(text, /App Store/i);
|
|
24
27
|
assert.match(text, /Google Play/i);
|
|
25
28
|
assert.match(text, /Google Group/i);
|
|
29
|
+
assert.match(text, /GitHub Releases/i);
|
|
30
|
+
assert.ok(text.includes(PRIVATECLAW_DESKTOP_GITHUB_RELEASES_URL));
|
|
26
31
|
});
|
package/src/text.ts
CHANGED
|
@@ -15,6 +15,8 @@ export const PRIVATECLAW_ANDROID_CLOSED_TESTING_PLAY_URL =
|
|
|
15
15
|
"https://play.google.com/store/apps/details?id=gg.ai.privateclaw";
|
|
16
16
|
export const PRIVATECLAW_ANDROID_CLOSED_TESTING_GROUP_URL =
|
|
17
17
|
"https://groups.google.com/g/gg-studio-ai-products";
|
|
18
|
+
export const PRIVATECLAW_DESKTOP_GITHUB_RELEASES_URL =
|
|
19
|
+
"https://github.com/topcheer/PrivateClaw/releases";
|
|
18
20
|
|
|
19
21
|
export const PRIVATECLAW_APP_INSTALL_FOOTER_LINES = [
|
|
20
22
|
formatBilingualInline(
|
|
@@ -29,6 +31,10 @@ export const PRIVATECLAW_APP_INSTALL_FOOTER_LINES = [
|
|
|
29
31
|
`Android 需先加入 Google Group:${PRIVATECLAW_ANDROID_CLOSED_TESTING_GROUP_URL}`,
|
|
30
32
|
`Join the Google Group first for Android closed testing: ${PRIVATECLAW_ANDROID_CLOSED_TESTING_GROUP_URL}`,
|
|
31
33
|
),
|
|
34
|
+
formatBilingualInline(
|
|
35
|
+
`桌面版 GitHub Releases(Windows / macOS / Linux,请选择 app-v*):${PRIVATECLAW_DESKTOP_GITHUB_RELEASES_URL}`,
|
|
36
|
+
`Desktop GitHub Releases (Windows / macOS / Linux, look for app-v*): ${PRIVATECLAW_DESKTOP_GITHUB_RELEASES_URL}`,
|
|
37
|
+
),
|
|
32
38
|
];
|
|
33
39
|
|
|
34
40
|
export function appendPrivateClawAppInstallFooter(text: string): string {
|
|
@@ -142,6 +148,11 @@ export const PRIVATECLAW_CLI_RELAY_OPTION_DESCRIPTION = formatBilingualInline(
|
|
|
142
148
|
"Temporarily override the relay base URL for this command.",
|
|
143
149
|
);
|
|
144
150
|
|
|
151
|
+
export const PRIVATECLAW_CLI_CONFIG_OPTION_DESCRIPTION = formatBilingualInline(
|
|
152
|
+
"临时指定 OpenClaw 配置文件路径;setup 里的 OpenClaw 子命令会自动同步 state dir。",
|
|
153
|
+
"Temporarily point setup at a specific OpenClaw config file; the OpenClaw subcommands also inherit the matching state dir automatically.",
|
|
154
|
+
);
|
|
155
|
+
|
|
145
156
|
export const PRIVATECLAW_CLI_GROUP_OPTION_DESCRIPTION = formatBilingualInline(
|
|
146
157
|
"允许多个 PrivateClaw 客户端加入同一个会话。",
|
|
147
158
|
"Allow multiple PrivateClaw app clients to join the same session.",
|