@clawos-dev/clawd 0.2.248 → 0.2.249
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/cli.cjs +13 -3
- package/dist/dispatch/mcp-server.cjs +12 -3
- package/dist/share-md-viewer-error.html +1 -1
- package/dist/share-md-viewer.html +13 -13
- package/dist/share-ui/assets/{guest-DeJiT1im.js → guest-DsrUx2Ku.js} +123 -123
- package/dist/share-ui/assets/guest-k2RPEdy5.css +32 -0
- package/dist/share-ui/guest.html +2 -2
- package/package.json +1 -1
- package/dist/share-ui/assets/guest-E3E4Ik_Z.css +0 -32
package/dist/cli.cjs
CHANGED
|
@@ -5132,12 +5132,21 @@ var init_schemas = __esm({
|
|
|
5132
5132
|
SessionListArgs = external_exports.object({
|
|
5133
5133
|
/** true = 只返回 mirror(originOwnerPrincipalId 非空,即「我在朋友 daemon 上创建」的本机存证)。 */
|
|
5134
5134
|
originOnly: external_exports.boolean().optional(),
|
|
5135
|
+
/**
|
|
5136
|
+
* 按 own persona 窄化(2026-07-21 self-persona-sessions 追加):只留
|
|
5137
|
+
* `s.ownerPersonaId === args.ownerPersonaId` 的 sessions。
|
|
5138
|
+
* - mirror 行(`ownerPersonaId` 恒 null)天然排除
|
|
5139
|
+
* - 与 `originOnly=true` 同传恒返 0
|
|
5140
|
+
* - 老 daemon 不识别时忽略字段返回全量,客户端消费侧本就自带过滤/截断,天然向后兼容
|
|
5141
|
+
*/
|
|
5142
|
+
ownerPersonaId: external_exports.string().min(1).optional(),
|
|
5135
5143
|
/** 按 updatedAt desc(list 的既有排序)截断前 N 条。 */
|
|
5136
5144
|
limit: external_exports.number().int().positive().optional(),
|
|
5137
5145
|
/**
|
|
5138
|
-
* 分页起点(2026-07-18 android-tasks-tab 迭代追加):originOnly 过滤后、
|
|
5139
|
-
*
|
|
5140
|
-
*
|
|
5146
|
+
* 分页起点(2026-07-18 android-tasks-tab 迭代追加):originOnly / ownerPersonaId 过滤后、
|
|
5147
|
+
* limit 截断前跳过前 N 条。与 limit 组合 = updatedAt desc 序上的一页。响应带 total
|
|
5148
|
+
* (过滤后总数,见 handler)供客户端判 hasMore。老 daemon 不识别时忽略 → 回全量,
|
|
5149
|
+
* 客户端按全量兼容。
|
|
5141
5150
|
*/
|
|
5142
5151
|
offset: external_exports.number().int().nonnegative().optional()
|
|
5143
5152
|
});
|
|
@@ -54227,6 +54236,7 @@ function buildSessionHandlers(deps) {
|
|
|
54227
54236
|
const narrow = (sessions) => {
|
|
54228
54237
|
let out = sessions;
|
|
54229
54238
|
if (args.originOnly) out = out.filter((s) => s.originOwnerPrincipalId != null);
|
|
54239
|
+
if (args.ownerPersonaId) out = out.filter((s) => s.ownerPersonaId === args.ownerPersonaId);
|
|
54230
54240
|
const total = out.length;
|
|
54231
54241
|
const offset = args.offset ?? 0;
|
|
54232
54242
|
if (offset > 0 || args.limit != null) {
|
|
@@ -21770,12 +21770,21 @@ var SessionCreateArgs = external_exports.object({
|
|
|
21770
21770
|
var SessionListArgs = external_exports.object({
|
|
21771
21771
|
/** true = 只返回 mirror(originOwnerPrincipalId 非空,即「我在朋友 daemon 上创建」的本机存证)。 */
|
|
21772
21772
|
originOnly: external_exports.boolean().optional(),
|
|
21773
|
+
/**
|
|
21774
|
+
* 按 own persona 窄化(2026-07-21 self-persona-sessions 追加):只留
|
|
21775
|
+
* `s.ownerPersonaId === args.ownerPersonaId` 的 sessions。
|
|
21776
|
+
* - mirror 行(`ownerPersonaId` 恒 null)天然排除
|
|
21777
|
+
* - 与 `originOnly=true` 同传恒返 0
|
|
21778
|
+
* - 老 daemon 不识别时忽略字段返回全量,客户端消费侧本就自带过滤/截断,天然向后兼容
|
|
21779
|
+
*/
|
|
21780
|
+
ownerPersonaId: external_exports.string().min(1).optional(),
|
|
21773
21781
|
/** 按 updatedAt desc(list 的既有排序)截断前 N 条。 */
|
|
21774
21782
|
limit: external_exports.number().int().positive().optional(),
|
|
21775
21783
|
/**
|
|
21776
|
-
* 分页起点(2026-07-18 android-tasks-tab 迭代追加):originOnly 过滤后、
|
|
21777
|
-
*
|
|
21778
|
-
*
|
|
21784
|
+
* 分页起点(2026-07-18 android-tasks-tab 迭代追加):originOnly / ownerPersonaId 过滤后、
|
|
21785
|
+
* limit 截断前跳过前 N 条。与 limit 组合 = updatedAt desc 序上的一页。响应带 total
|
|
21786
|
+
* (过滤后总数,见 handler)供客户端判 hasMore。老 daemon 不识别时忽略 → 回全量,
|
|
21787
|
+
* 客户端按全量兼容。
|
|
21779
21788
|
*/
|
|
21780
21789
|
offset: external_exports.number().int().nonnegative().optional()
|
|
21781
21790
|
});
|