codex-map 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 hasanuzzamanbe
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Codex Map
2
+
3
+ Visual dashboard for inspecting and mapping your Codex CLI setup.
4
+
5
+ `codex-map` makes `~/.codex` and project overlays visible:
6
+
7
+ - Browse session history and copy `codex resume <id>` instantly
8
+ - Compare global skills and project-local `.codex/skills` side by side
9
+ - Inspect `config.toml`, trusted projects, MCP servers, plugins, and `AGENTS.md`
10
+ - Export a full JSON scan or a smaller bundle for sharing with teammates
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ npm install -g codex-map
16
+ ```
17
+
18
+ Or run it without installing:
19
+
20
+ ```bash
21
+ npx codex-map
22
+ ```
23
+
24
+ Then open `http://localhost:3131`.
25
+
26
+ ## Local Development
27
+
28
+ ```bash
29
+ npm install
30
+ npm run dev
31
+ ```
32
+
33
+ ## What It Reads
34
+
35
+ - `~/.codex/config.toml`
36
+ - `~/.codex/skills/`
37
+ - `~/.codex/history.jsonl`
38
+ - `~/.codex/session_index.jsonl`
39
+ - `~/.codex/sessions/`
40
+ - `~/.codex/.tmp/plugins/plugins/*/.codex-plugin/plugin.json`
41
+ - Project-local `AGENTS.md`, `.codex/skills/`, and `.mcp.json`
package/bin/cli.js ADDED
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+
3
+ 'use strict';
4
+
5
+ const path = require('path');
6
+
7
+ process.chdir(path.resolve(__dirname, '..'));
8
+
9
+ const args = process.argv.slice(2);
10
+ let customPort = null;
11
+
12
+ for (let i = 0; i < args.length; i += 1) {
13
+ if ((args[i] === '--port' || args[i] === '-p') && args[i + 1]) {
14
+ customPort = parseInt(args[i + 1], 10);
15
+ break;
16
+ }
17
+
18
+ const match = args[i].match(/^--port=(\d+)$/);
19
+ if (match) {
20
+ customPort = parseInt(match[1], 10);
21
+ break;
22
+ }
23
+ }
24
+
25
+ if (args.includes('--help') || args.includes('-h')) {
26
+ console.log(`
27
+ Codex Map — Visual dashboard for your Codex CLI setup
28
+
29
+ Usage:
30
+ codex-map Start the dashboard (default port 3131)
31
+ codex-map -p 8080 Start on a custom port
32
+ codex-map --help Show help
33
+ codex-map --version Show version
34
+
35
+ Options:
36
+ -p, --port <number> Port to listen on (default: 3131)
37
+ -h, --help Show help
38
+ -v, --version Show version
39
+ `);
40
+ process.exit(0);
41
+ }
42
+
43
+ if (args.includes('--version') || args.includes('-v')) {
44
+ const pkg = require('../package.json');
45
+ console.log(pkg.version);
46
+ process.exit(0);
47
+ }
48
+
49
+ if (customPort) process.env.PORT = String(customPort);
50
+
51
+ require('../server.js');
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "codex-map",
3
+ "version": "0.1.0",
4
+ "description": "Visual dashboard for inspecting and mapping your Codex CLI setup",
5
+ "main": "server.js",
6
+ "bin": {
7
+ "codex-map": "bin/cli.js"
8
+ },
9
+ "scripts": {
10
+ "start": "node server.js",
11
+ "dev": "node --watch server.js"
12
+ },
13
+ "files": [
14
+ "bin/",
15
+ "public/",
16
+ "server.js",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "keywords": [
21
+ "codex",
22
+ "codex-cli",
23
+ "codex-map",
24
+ "dashboard",
25
+ "skills",
26
+ "mcp",
27
+ "agents",
28
+ "sessions",
29
+ "openai"
30
+ ],
31
+ "license": "MIT",
32
+ "dependencies": {
33
+ "@iarna/toml": "^2.2.5",
34
+ "chokidar": "^3.6.0",
35
+ "express": "^4.18.2",
36
+ "gray-matter": "^4.0.3"
37
+ },
38
+ "engines": {
39
+ "node": ">=18.0.0"
40
+ }
41
+ }