clay-server 2.15.0-beta.4 → 2.15.0

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.
Files changed (2) hide show
  1. package/lib/project.js +6 -6
  2. package/package.json +1 -1
package/lib/project.js CHANGED
@@ -1300,7 +1300,7 @@ function createProjectContext(opts) {
1300
1300
 
1301
1301
  // For mate projects, check which files are promoted and include common files from other mates
1302
1302
  if (isMate) {
1303
- var mateCtx = matesModule.buildMateCtx(opts.ownerId || null);
1303
+ var mateCtx = matesModule.buildMateCtx(projectOwnerId);
1304
1304
  var thisMateId = path.basename(cwd);
1305
1305
  // Tag promoted files
1306
1306
  for (var pi = 0; pi < files.length; pi++) {
@@ -1326,7 +1326,7 @@ function createProjectContext(opts) {
1326
1326
  var filePath;
1327
1327
  if (msg.common && msg.ownMateId && isMate) {
1328
1328
  // Reading a common file from another mate
1329
- var mateCtx = matesModule.buildMateCtx(opts.ownerId || null);
1329
+ var mateCtx = matesModule.buildMateCtx(projectOwnerId);
1330
1330
  try {
1331
1331
  var content = matesModule.readCommonKnowledgeFile(mateCtx, msg.ownMateId, safeName);
1332
1332
  sendTo(ws, { type: "knowledge_content", name: safeName, content: content, common: true, ownMateId: msg.ownMateId });
@@ -1366,7 +1366,7 @@ function createProjectContext(opts) {
1366
1366
  files.sort(function (a, b) { return b.mtime - a.mtime; });
1367
1367
  // Tag files for mate projects
1368
1368
  if (isMate) {
1369
- var mateCtx = matesModule.buildMateCtx(opts.ownerId || null);
1369
+ var mateCtx = matesModule.buildMateCtx(projectOwnerId);
1370
1370
  var thisMateId = path.basename(cwd);
1371
1371
  for (var pi = 0; pi < files.length; pi++) {
1372
1372
  files[pi].common = false;
@@ -1402,7 +1402,7 @@ function createProjectContext(opts) {
1402
1402
  files.sort(function (a, b) { return b.mtime - a.mtime; });
1403
1403
  // Tag files for mate projects
1404
1404
  if (isMate) {
1405
- var mateCtx = matesModule.buildMateCtx(opts.ownerId || null);
1405
+ var mateCtx = matesModule.buildMateCtx(projectOwnerId);
1406
1406
  var thisMateId = path.basename(cwd);
1407
1407
  for (var pi = 0; pi < files.length; pi++) {
1408
1408
  files[pi].common = false;
@@ -1421,7 +1421,7 @@ function createProjectContext(opts) {
1421
1421
  if (msg.type === "knowledge_promote") {
1422
1422
  if (!isMate || !msg.name) return;
1423
1423
  var safeName = path.basename(msg.name);
1424
- var mateCtx = matesModule.buildMateCtx(opts.ownerId || null);
1424
+ var mateCtx = matesModule.buildMateCtx(projectOwnerId);
1425
1425
  var thisMateId = path.basename(cwd);
1426
1426
  var mate = matesModule.getMate(mateCtx, thisMateId);
1427
1427
  var mateName = (mate && mate.name) || null;
@@ -1435,7 +1435,7 @@ function createProjectContext(opts) {
1435
1435
  if (msg.type === "knowledge_depromote") {
1436
1436
  if (!isMate || !msg.name) return;
1437
1437
  var safeName = path.basename(msg.name);
1438
- var mateCtx = matesModule.buildMateCtx(opts.ownerId || null);
1438
+ var mateCtx = matesModule.buildMateCtx(projectOwnerId);
1439
1439
  var thisMateId = path.basename(cwd);
1440
1440
  matesModule.depromoteKnowledge(mateCtx, thisMateId, safeName);
1441
1441
  sendTo(ws, { type: "knowledge_depromoted", name: safeName });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.15.0-beta.4",
3
+ "version": "2.15.0",
4
4
  "description": "Web UI for Claude Code. Any device. Push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",