@workit-dev/mcp 2.27.2 → 2.27.5
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 +9 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20084,6 +20084,11 @@ var HOST_SESSION_VARS = [
|
|
|
20084
20084
|
(env) => env.CODEX_INTERNAL_ORIGINATOR_OVERRIDE === "Codex Desktop" || env.CODEX_ELECTRON_RESOURCES_PATH ? "codex_desktop" : "codex_cli"
|
|
20085
20085
|
]
|
|
20086
20086
|
];
|
|
20087
|
+
var STAMPING_HOSTS = new Set([
|
|
20088
|
+
"claude_code",
|
|
20089
|
+
"codex_cli",
|
|
20090
|
+
"codex_desktop"
|
|
20091
|
+
]);
|
|
20087
20092
|
var family = (host) => host?.replace(/_(?:cli|desktop)$/, "") ?? null;
|
|
20088
20093
|
function hostSessionFromEnv(env) {
|
|
20089
20094
|
const value = (key) => env[key]?.trim() || null;
|
|
@@ -25946,15 +25951,13 @@ function sessionTrust(cwd, row) {
|
|
|
25946
25951
|
const session = row.actor.session;
|
|
25947
25952
|
if (!session || row.self === true)
|
|
25948
25953
|
return null;
|
|
25954
|
+
const binding = session.includes(":") ? issuedBinding(cwd, session) : null;
|
|
25955
|
+
if (binding === "token" && row.sessionBound !== true)
|
|
25956
|
+
return "unbound_session";
|
|
25949
25957
|
const source = typeof row.sessionSource === "string" ? row.sessionSource : "env";
|
|
25950
25958
|
const host = row.actor.host;
|
|
25951
25959
|
const issuedOnly = source === "flag" ? host !== "cli" : source === "env" && session.includes(":") && !SHELL_VOUCHED_HOSTS.has(host);
|
|
25952
|
-
|
|
25953
|
-
return null;
|
|
25954
|
-
const binding = issuedBinding(cwd, session);
|
|
25955
|
-
if (binding === null)
|
|
25956
|
-
return "unissued_session";
|
|
25957
|
-
return binding === "token" && row.sessionBound !== true ? "unbound_session" : null;
|
|
25960
|
+
return issuedOnly && binding === null ? "unissued_session" : null;
|
|
25958
25961
|
}
|
|
25959
25962
|
function trustReasons(cwd, row) {
|
|
25960
25963
|
if (row.integrity === "unverified")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workit-dev/mcp",
|
|
3
|
-
"version": "2.27.
|
|
3
|
+
"version": "2.27.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit shared MCP transport for the eight task and policy operation families",
|
|
6
6
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
47
|
-
"@workit-dev/core": "^2.27.
|
|
47
|
+
"@workit-dev/core": "^2.27.5",
|
|
48
48
|
"zod": "4.6.7"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|