chatroom-cli 1.144.4 → 1.145.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.
package/dist/index.js CHANGED
@@ -76569,15 +76569,16 @@ ${getInterRoleHandoffRule()}
76569
76569
  1. Recover the review target and focus from the injected task and the \`<handoff-templates>\` brief. If the target is not explicit, ask the {ENTRY_POINT_ROLE} through the handoff; do not guess a range.
76570
76570
  2. Inspect the target: the diff or commits, the changed files, and the surrounding code they depend on. Read the actual files; do not review from summaries.
76571
76571
  3. Look for correctness bugs, security issues, missing or weak tests, unclear ownership or error handling, dead code, duplication, and type drift. Stay within the stated focus when one is given.
76572
- 4. Audit authentication and authorization for every backend endpoint in review scope. An endpoint is any exported Convex query, mutation, or action, HTTP route, or API handler that the target adds or changes, plus any such endpoint the changed code calls or exposes. For each endpoint, check:
76572
+ 4. Assess readability and comment quality in every review, regardless of the stated focus. Check that names and structure are clear, that the code follows the language's idioms and the conventions of the neighbouring code, and that comments explain intent or the reason for a choice rather than restating the code or going stale. Report each readability or comment issue under the \`standards\` axis, cite the convention or neighbouring code it departs from, and give the exact rename, restructure, or rewritten comment as the suggested fix. Use \`minor\` for an issue that makes the code harder to follow or a comment that misleads the next reader, and \`nit\` for a style-only point. Append \`(judgement)\` when no documented standard or existing convention settles the call. Do not report a style the neighbouring code does not follow.
76573
+ 5. Audit authentication and authorization for every backend endpoint in review scope. An endpoint is any exported Convex query, mutation, or action, HTTP route, or API handler that the target adds or changes, plus any such endpoint the changed code calls or exposes. For each endpoint, check:
76573
76574
  - **Authentication:** the endpoint establishes the caller's identity before it reads or writes data, using the shared auth helper the sibling endpoints use. It does not trust a caller-supplied user id, role, or team id as proof of identity.
76574
76575
  - **Authorization:** the endpoint checks that the authenticated caller may act on the specific resource the request names (for example chatroom membership, ownership, or role) before it returns data or changes state. A login check alone is not sufficient.
76575
76576
  - **Coverage:** no code path returns or changes data before its check runs. An internal helper that skips checks may be called only from endpoints that already performed them.
76576
76577
  - **Intent:** an endpoint without a check is acceptable only when the code or the spec states why it is public. Otherwise report it.
76577
76578
  Report each missing or wrong check as a \`defect\` axis issue. Use severity \`blocker\` when the gap exposes or changes another user's data, and \`major\` otherwise. Cite the endpoint's file and line. List any endpoint in scope that you did not read under \`## Not reviewed\`.
76578
- 5. Label every issue with a severity (\`blocker\`, \`major\`, \`minor\`, \`nit\`) and cite the file and line. Only report what you observed; mark anything unverified as such.
76579
- 6. Follow the injected \`<handoff-templates>\` review report exactly, in its order.
76580
- 7. Hand the report to \`{ENTRY_POINT_ROLE}\` with the normal command, then stop:
76579
+ 6. Label every issue with a severity (\`blocker\`, \`major\`, \`minor\`, \`nit\`) and cite the file and line. Only report what you observed; mark anything unverified as such.
76580
+ 7. Follow the injected \`<handoff-templates>\` review report exactly, in its order.
76581
+ 8. Hand the report to \`{ENTRY_POINT_ROLE}\` with the normal command, then stop:
76581
76582
 
76582
76583
  \`\`\`bash
76583
76584
  chatroom handoff --chatroom-id="<chatroom-id>" --role="reviewer" --next-role="{ENTRY_POINT_ROLE}"
@@ -124322,4 +124323,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
124322
124323
  });
124323
124324
  program2.parse();
124324
124325
 
124325
- //# debugId=E81786B5A51D9FFC64756E2164756E21
124326
+ //# debugId=3A144ADC7036C79764756E2164756E21