@privateclaw/privateclaw 0.1.25 → 0.1.27
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 +33 -5
- package/dist/bot-mode-topics.d.ts +7 -0
- package/dist/bot-mode-topics.js +236 -0
- package/dist/bot-mode-topics.js.map +1 -0
- package/dist/bridges/openclaw-agent-bridge.js +10 -2
- package/dist/bridges/openclaw-agent-bridge.js.map +1 -1
- package/dist/cli.js +69 -6
- package/dist/cli.js.map +1 -1
- package/dist/provider.d.ts +4 -1
- package/dist/provider.js +328 -218
- package/dist/provider.js.map +1 -1
- package/dist/setup.d.ts +86 -0
- package/dist/setup.js +501 -0
- package/dist/setup.js.map +1 -0
- package/dist/text.d.ts +3 -0
- package/dist/text.js +3 -0
- package/dist/text.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/bot-mode-topics.test.ts +39 -0
- package/src/bot-mode-topics.ts +248 -0
- package/src/bridges/openclaw-agent-bridge.test.ts +59 -0
- package/src/bridges/openclaw-agent-bridge.ts +11 -2
- package/src/cli.ts +92 -4
- package/src/provider.test.ts +489 -1
- package/src/provider.ts +451 -271
- package/src/setup.test.ts +187 -0
- package/src/setup.ts +814 -0
- package/src/text.ts +16 -0
- package/src/types.ts +2 -0
package/src/text.ts
CHANGED
|
@@ -47,6 +47,11 @@ export const PRIVATECLAW_CLI_PAIR_DESCRIPTION = formatBilingualInline(
|
|
|
47
47
|
"Start a local PrivateClaw session and render the pairing QR code in the terminal.",
|
|
48
48
|
);
|
|
49
49
|
|
|
50
|
+
export const PRIVATECLAW_CLI_SETUP_DESCRIPTION = formatBilingualInline(
|
|
51
|
+
"安装/启用本地 OpenClaw 的 PrivateClaw 插件,并立刻开始配对。",
|
|
52
|
+
"Install/enable the local OpenClaw PrivateClaw plugin and start pairing immediately.",
|
|
53
|
+
);
|
|
54
|
+
|
|
50
55
|
export const PRIVATECLAW_CLI_SESSIONS_DESCRIPTION = formatBilingualInline(
|
|
51
56
|
"列出当前活动中的 PrivateClaw 会话及参与者。",
|
|
52
57
|
"List the active PrivateClaw sessions and their participants.",
|
|
@@ -97,6 +102,17 @@ export const PRIVATECLAW_CLI_GROUP_OPTION_DESCRIPTION = formatBilingualInline(
|
|
|
97
102
|
"Allow multiple PrivateClaw app clients to join the same session.",
|
|
98
103
|
);
|
|
99
104
|
|
|
105
|
+
export const PRIVATECLAW_CLI_SINGLE_OPTION_DESCRIPTION = formatBilingualInline(
|
|
106
|
+
"强制创建单独会话,而不是群聊。",
|
|
107
|
+
"Force a single chat instead of a group chat.",
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
export const PRIVATECLAW_CLI_DURATION_OPTION_DESCRIPTION =
|
|
111
|
+
formatBilingualInline(
|
|
112
|
+
"会话时长预设:30m, 2h, 4h, 8h, 24h, 1w, 1mo, 1y, permanent。",
|
|
113
|
+
"Session duration preset: 30m, 2h, 4h, 8h, 24h, 1w, 1mo, 1y, permanent.",
|
|
114
|
+
);
|
|
115
|
+
|
|
100
116
|
export const PRIVATECLAW_CLI_PRINT_ONLY_OPTION_DESCRIPTION =
|
|
101
117
|
formatBilingualInline(
|
|
102
118
|
"仅打印邀请信息和二维码,然后立即退出。",
|
package/src/types.ts
CHANGED
|
@@ -132,6 +132,7 @@ export interface ProviderSessionState {
|
|
|
132
132
|
lastGroupActivityAt?: string;
|
|
133
133
|
botModeIdleAnchorAt?: string;
|
|
134
134
|
botModeLastIdlePromptAt?: string;
|
|
135
|
+
botModeLastIdleTopicId?: string;
|
|
135
136
|
pendingRenewal?: {
|
|
136
137
|
expiresAt: string;
|
|
137
138
|
sentAt: string;
|
|
@@ -159,6 +160,7 @@ export interface PrivateClawProviderSessionHandoff {
|
|
|
159
160
|
lastGroupActivityAt?: string;
|
|
160
161
|
botModeIdleAnchorAt?: string;
|
|
161
162
|
botModeLastIdlePromptAt?: string;
|
|
163
|
+
botModeLastIdleTopicId?: string;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
export interface PrivateClawProviderHandoffState {
|