@darkhunt-security/endpoint-codex 0.9.2 → 0.9.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "darkhunt-guard",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "hooks": "./hooks/hooks.json",
5
5
  "description": "Darkhunt endpoint plugin for Codex CLI \u2014 full session trace capture and PreToolUse guardrails.",
6
6
  "author": {
package/README.md CHANGED
@@ -44,6 +44,18 @@ to write. Enrolment writes them; a pasted config cannot. Run this once after pas
44
44
  `/darkhunt-guard:status` reports the launchers, so you never have to take this on trust —
45
45
  a machine missing them looks perfectly configured everywhere else and captures nothing.
46
46
 
47
+ ## Upgrade
48
+
49
+ ```
50
+ codex plugin add darkhunt-guard@darkhunt
51
+ ```
52
+
53
+ Re-adding re-resolves the published version. The new one loads on your **next** Codex
54
+ CLI session, and the launchers need no attention — they resolve the newest installed
55
+ version at run time. `/darkhunt-guard:status` prints the version actually running,
56
+ which is the only reliable answer: an update that resolved against a registry without
57
+ the new version reports success and changes nothing.
58
+
47
59
  ## What it captures
48
60
 
49
61
  The session transcript, mapped to spans: user and assistant messages, thinking blocks,
@@ -2,6 +2,11 @@
2
2
  import { createRequire as __dhCreateRequire } from 'node:module';
3
3
  const require = __dhCreateRequire(import.meta.url);
4
4
 
5
+ // adapters/codex/bin/status.mjs
6
+ import { readFileSync as readFileSync7 } from "node:fs";
7
+ import { dirname, join as join11 } from "node:path";
8
+ import { fileURLToPath } from "node:url";
9
+
5
10
  // packages/core/dist/config/local.js
6
11
  import { existsSync, readFileSync, statSync } from "node:fs";
7
12
  import { join as join3 } from "node:path";
@@ -1380,6 +1385,13 @@ try {
1380
1385
  const s = status("codex", codexTranscript);
1381
1386
  const n = (x) => x.toLocaleString();
1382
1387
  console.log(`darkhunt endpoint status \u2014 codex`);
1388
+ const root = join11(dirname(fileURLToPath(import.meta.url)), "..", "..");
1389
+ let installed = "unknown";
1390
+ try {
1391
+ installed = JSON.parse(readFileSync7(join11(root, "package.json"), "utf8")).version;
1392
+ } catch {
1393
+ }
1394
+ console.log(` plugin ${installed} ${root}`);
1383
1395
  console.log(` profile ${s.profile} -> ${s.baseUrl}`);
1384
1396
  console.log(` tenant ${s.tenantId} workspace ${s.workspaceId}`);
1385
1397
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkhunt-security/endpoint-codex",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "type": "module",
5
5
  "description": "Darkhunt endpoint adapter for Codex CLI: hook codec, rollout transcript mapper, plugin manifest.",
6
6
  "bin": {