@aabadin/project-memory-context 0.2.5 → 0.2.6

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.
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from 'node:child_process';
3
+ import { dirname, resolve } from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+
6
+ const __dirname = dirname(fileURLToPath(import.meta.url));
7
+ const PACKAGE_ROOT = resolve(__dirname, '..');
8
+
9
+ const GRAPH_EXPLORER_PATH = resolve(PACKAGE_ROOT, '../pmc-graph-explorer/server.mjs');
10
+
11
+ const child = spawn(process.execPath, [GRAPH_EXPLORER_PATH], {
12
+ stdio: 'inherit',
13
+ detached: true,
14
+ shell: true,
15
+ });
16
+
17
+ child.unref();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aabadin/project-memory-context",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Portable project memory context CLI — bootstraps semantic enrichment workflows for any AI coding agent.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "type": "module",
@@ -12,7 +12,8 @@
12
12
  },
13
13
  "bin": {
14
14
  "pmc": "bin/pmc.mjs",
15
- "pmc-query-server": "mcp/pmc-query-server.mjs"
15
+ "pmc-query-server": "mcp/pmc-query-server.mjs",
16
+ "pmc-view-context": "bin/pmc-view-context.mjs"
16
17
  },
17
18
  "scripts": {
18
19
  "test": "node --test tests/*.test.mjs",
@@ -26,6 +27,7 @@
26
27
  "plugin/",
27
28
  "src/",
28
29
  "templates/",
30
+ "tools/pmc-graph-explorer/",
29
31
  "README.md",
30
32
  "LICENSE"
31
33
  ],
@@ -19,6 +19,7 @@ const COMMANDS = new Map([
19
19
  ['sanitize', 'cli/sanitize.mjs'],
20
20
  ['setup', 'cli/setup.mjs'],
21
21
  ['status', 'cli/status.mjs'],
22
+ ['view-context', 'bin/pmc-view-context.mjs'],
22
23
  ]);
23
24
 
24
25
  function usageText() {
@@ -109,6 +109,7 @@ async function installOpencode({ projectRoot, packageRoot, placeholders, globalC
109
109
  'opencode/commands/doctor.md',
110
110
  'opencode/commands/init-project.md',
111
111
  'opencode/commands/retry-errors.md',
112
+ 'opencode/commands/view-context.md',
112
113
  ];
113
114
 
114
115
  for (const tpl of commandTemplates) {
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: view-context
3
+ description: Open the PMC Graph Explorer web UI to visualize the enrichment graph with active context highlighting.
4
+ argument-hint: ""
5
+ allowed-tools:
6
+ - Bash
7
+ ---
8
+
9
+ <objective>
10
+ Open the PMC Graph Explorer to visualize the enrichment graph. The server runs on port 3001 and shows nodes consulted via /get-context with a cyan glow.
11
+ </objective>
12
+
13
+ <execution>
14
+ Start the graph explorer server:
15
+
16
+ ```bash
17
+ npx @aabadin/project-memory-context view-context
18
+ ```
19
+
20
+ Or if PMC is installed globally:
21
+
22
+ ```bash
23
+ pmc-view-context
24
+ ```
25
+
26
+ Then open http://localhost:3001 in your browser.
27
+ </execution>