@clawos-dev/clawd 0.2.131 → 0.2.132
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 +4 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -42823,12 +42823,14 @@ function buildAppBuilderHandlers(deps) {
|
|
|
42823
42823
|
publishJob: withPublishJobStatus(p2)
|
|
42824
42824
|
};
|
|
42825
42825
|
}
|
|
42826
|
-
const listProjects = async (
|
|
42826
|
+
const listProjects = async (frame, _client, ctx) => {
|
|
42827
|
+
const f = frame;
|
|
42827
42828
|
let metas;
|
|
42828
42829
|
if (ctx?.principal.kind === "owner" && deps.usersRoot && deps.getStore) {
|
|
42829
42830
|
metas = await listAllUsersProjects();
|
|
42830
42831
|
} else {
|
|
42831
|
-
|
|
42832
|
+
const sessionId = typeof f.sessionId === "string" ? f.sessionId : void 0;
|
|
42833
|
+
metas = await resolveStore({ ctx, sessionId }).list();
|
|
42832
42834
|
}
|
|
42833
42835
|
return { response: { projects: metas.map(toProjectWithStatus) } };
|
|
42834
42836
|
};
|