@pharaoh-so/mcp 0.3.33 → 0.3.35
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/lifecycle.d.ts +0 -10
- package/dist/lifecycle.js +0 -13
- package/inspect-tools.json +37 -0
- package/package.json +1 -1
package/dist/lifecycle.d.ts
CHANGED
|
@@ -28,13 +28,3 @@ export declare function tryMidSessionRefresh(creds: Credentials, server: string)
|
|
|
28
28
|
* appropriate message and creds-file state per the classified action.
|
|
29
29
|
*/
|
|
30
30
|
export declare function handleRefreshFailure(action: RefreshFailureAction, message: string): never;
|
|
31
|
-
/**
|
|
32
|
-
* Print a re-auth prompt and exit.
|
|
33
|
-
*
|
|
34
|
-
* Used for terminal lifecycle states where no refresh is possible:
|
|
35
|
-
* - Missing credentials file (first-time run, post-logout)
|
|
36
|
-
* - A fresh access token is rejected mid-session AFTER a successful refresh
|
|
37
|
-
* (deleteCredentials is called explicitly before this in that case so the
|
|
38
|
-
* next spawn sees a cold-start rather than looping on stale creds)
|
|
39
|
-
*/
|
|
40
|
-
export declare function exitForReauth(reason: string): never;
|
package/dist/lifecycle.js
CHANGED
|
@@ -45,16 +45,3 @@ export function handleRefreshFailure(action, message) {
|
|
|
45
45
|
printLines(`Pharaoh: refresh failed (${action}) — ${message}`, "Credentials preserved; next startup will retry.", "");
|
|
46
46
|
process.exit(1);
|
|
47
47
|
}
|
|
48
|
-
/**
|
|
49
|
-
* Print a re-auth prompt and exit.
|
|
50
|
-
*
|
|
51
|
-
* Used for terminal lifecycle states where no refresh is possible:
|
|
52
|
-
* - Missing credentials file (first-time run, post-logout)
|
|
53
|
-
* - A fresh access token is rejected mid-session AFTER a successful refresh
|
|
54
|
-
* (deleteCredentials is called explicitly before this in that case so the
|
|
55
|
-
* next spawn sees a cold-start rather than looping on stale creds)
|
|
56
|
-
*/
|
|
57
|
-
export function exitForReauth(reason) {
|
|
58
|
-
printLines(`Pharaoh: ${reason}.`, "Run this command to authenticate:", ` ${NPX_COMMAND}`, "");
|
|
59
|
-
process.exit(1);
|
|
60
|
-
}
|
package/inspect-tools.json
CHANGED
|
@@ -243,6 +243,43 @@
|
|
|
243
243
|
"taskSupport": "forbidden"
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
+
{
|
|
247
|
+
"name": "get_unused_code",
|
|
248
|
+
"description": "Find code nothing runs: functions no production entry point (endpoint, CLI command, cron job, event handler, worker, entry file) reaches. Pass `functions` to check whether specific functions are wired in.\n\nCALL THIS WHEN:\n• Cleaning up or refactoring a module: find what's dead before touching it\n• Before deleting a function: confirm nothing reaches it\n• After pushing new code: confirm the new functions are reachable from an entry point\n\nRETURNS:\n• Dead: unreached, named in no other file, and no production file imports its file. Safe to delete.\n• Possibly unused: unreached, but named in other files (string dispatch, dynamic loading) or its file is imported. Listed with the files that name it; check before deleting.\n• Used only by tests: exported functions only test files reference.\nWith `functions`: each one's status, and the call path from an entry point when it's reachable.",
|
|
249
|
+
"inputSchema": {
|
|
250
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
251
|
+
"type": "object",
|
|
252
|
+
"properties": {
|
|
253
|
+
"repo": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"description": "Repository name — one of your connected repos."
|
|
256
|
+
},
|
|
257
|
+
"module": {
|
|
258
|
+
"description": "Limit to one module",
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"functions": {
|
|
262
|
+
"description": "Function names to check instead of listing everything unused",
|
|
263
|
+
"maxItems": 20,
|
|
264
|
+
"type": "array",
|
|
265
|
+
"items": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"required": [
|
|
271
|
+
"repo"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"annotations": {
|
|
275
|
+
"title": "Unused Code",
|
|
276
|
+
"readOnlyHint": true,
|
|
277
|
+
"destructiveHint": false
|
|
278
|
+
},
|
|
279
|
+
"execution": {
|
|
280
|
+
"taskSupport": "forbidden"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
246
283
|
{
|
|
247
284
|
"name": "pharaoh_account",
|
|
248
285
|
"description": "Your Pharaoh plan, live repo and refreshes.\n\nPick one action and provide its fields; invalid combinations are rejected.\n\n• status: each workspace's plan and live repo, the upgrade link, the setup page\n• set_free_repo { repo }: change a free workspace's live repo\n• refresh_repo { repo, full? }: re-map one live repo now\n\nCALL THIS WHEN:\n• You want to know what plan you're on or which repo is live\n• A repo doesn't answer because it isn't live, or you want to switch which one is\n• You want to upgrade so every repo is live, or manage billing\n• You want a repo's graph refreshed before its next push\n\nFlag reference:\n full = force a full remap, bypassing the incremental diff.",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pharaoh-so/mcp",
|
|
3
3
|
"mcpName": "so.pharaoh/pharaoh",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.35",
|
|
5
5
|
"description": "MCP proxy for Pharaoh — maps codebases into queryable knowledge graphs for AI agents. Enables Claude Code in headless environments (VPS, SSH, CI) via device flow auth.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|