fullcourtdefense-cli 1.7.24 → 1.7.25
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/commands/hook.js +5 -1
- package/dist/version.json +1 -1
- package/package.json +1 -1
package/dist/commands/hook.js
CHANGED
|
@@ -393,6 +393,10 @@ function mcpServerName(p) {
|
|
|
393
393
|
* `perServerAgentName`, so ONE per-agent policy matches the same server across every runtime.
|
|
394
394
|
* The client is still reported separately as `agentClient` metadata for optional per-runtime
|
|
395
395
|
* constraints. Non-MCP events keep the collapsed per-developer IDE-runtime identity.
|
|
396
|
+
*
|
|
397
|
+
* The IDE-runtime identity is MACHINE-FREE (`<client>-<username>`, e.g. `cursor-boazl`):
|
|
398
|
+
* safeIdentityPart strips the `@hostname` part, so the same user's IDE on two laptops is
|
|
399
|
+
* ONE agent. Machine attribution stays in the separate `machineName` metadata field.
|
|
396
400
|
*/
|
|
397
401
|
function agentNameForCall(event, p, client = 'cursor') {
|
|
398
402
|
if (event === 'mcp') {
|
|
@@ -400,7 +404,7 @@ function agentNameForCall(event, p, client = 'cursor') {
|
|
|
400
404
|
if (server)
|
|
401
405
|
return `${safeIdentityPart(developerId())}-${safeIdentityPart(server)}`;
|
|
402
406
|
}
|
|
403
|
-
return `${client}-${developerId()}`;
|
|
407
|
+
return `${client}-${safeIdentityPart(developerId())}`;
|
|
404
408
|
}
|
|
405
409
|
/** Cursor conversation/session id when present, else a stable per-machine id. */
|
|
406
410
|
function sessionId(p) {
|
package/dist/version.json
CHANGED