@rubytech/create-maxy-code 0.1.337 → 0.1.338

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-code",
3
- "version": "0.1.337",
3
+ "version": "0.1.338",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy-code": "./dist/index.js"
@@ -8546,9 +8546,8 @@ function createWebchatRoutes(deps) {
8546
8546
  }
8547
8547
  if (explicitTarget && target !== void 0) {
8548
8548
  const t = readTargetOwner(target);
8549
- if (t.found && !ownedByRequester(t.owner, requesterUserId, primaryUserId)) {
8550
- console.error(`[webchat:inbound] op=send-refused key=session:${target.slice(0, 8)} reason=foreign-target requester=${requesterUserId ? requesterUserId.slice(0, 8) : "none"}`);
8551
- return c.json({ error: "session not found" }, 404);
8549
+ if (t.found && t.owner !== null && t.owner !== requesterUserId) {
8550
+ console.log(`[webchat:inbound] op=cross-admin-send key=${target.slice(0, 8)} owner=${t.owner.slice(0, 8)} requester=${requesterUserId ? requesterUserId.slice(0, 8) : "none"}`);
8552
8551
  }
8553
8552
  }
8554
8553
  if (target !== void 0) {
@@ -8716,9 +8715,8 @@ ${note}` : note;
8716
8715
  return c.json({ error: "invalid session id" }, 400);
8717
8716
  }
8718
8717
  const owned = readTargetOwner(target);
8719
- if (owned.found && !ownedByRequester(owned.owner, requesterUserId, primaryUserId)) {
8720
- console.error(`[webchat:inbound] op=session-target-foreign key=session:${target.slice(0, 8)} requester=${requesterUserId ? requesterUserId.slice(0, 8) : "none"}`);
8721
- return c.json({ error: "session not found" }, 404);
8718
+ if (owned.found && owned.owner !== null && owned.owner !== requesterUserId) {
8719
+ console.log(`[webchat:inbound] op=cross-admin-view key=${target.slice(0, 8)} owner=${owned.owner.slice(0, 8)} requester=${requesterUserId ? requesterUserId.slice(0, 8) : "none"}`);
8722
8720
  }
8723
8721
  const { projectDir: projectDir2, channel } = locateSession(target);
8724
8722
  let resolvedProjectDir = projectDir2;