@darkhunt-security/endpoint-codex 0.9.4 → 0.9.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "darkhunt-guard",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
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": {
@@ -18371,7 +18371,7 @@ var SessionEmitter = class {
18371
18371
  const root = this.ensureTrace(record.ts);
18372
18372
  const parentTrace = record.parentUuid ? this.owners.get(record.parentUuid) : void 0;
18373
18373
  let owner = parentTrace ?? root;
18374
- if (record.isSidechain && owner === root) {
18374
+ if (record.isSidechain && owner === root && this.options.agentId === void 0) {
18375
18375
  owner = this.seeded(["subagent", record.uuid], () => this.client.trace({
18376
18376
  name: "subagent",
18377
18377
  sessionId: this.options.sessionId,
@@ -18371,7 +18371,7 @@ var SessionEmitter = class {
18371
18371
  const root = this.ensureTrace(record.ts);
18372
18372
  const parentTrace = record.parentUuid ? this.owners.get(record.parentUuid) : void 0;
18373
18373
  let owner = parentTrace ?? root;
18374
- if (record.isSidechain && owner === root) {
18374
+ if (record.isSidechain && owner === root && this.options.agentId === void 0) {
18375
18375
  owner = this.seeded(["subagent", record.uuid], () => this.client.trace({
18376
18376
  name: "subagent",
18377
18377
  sessionId: this.options.sessionId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkhunt-security/endpoint-codex",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "type": "module",
5
5
  "description": "Darkhunt endpoint adapter for Codex CLI: hook codec, rollout transcript mapper, plugin manifest.",
6
6
  "bin": {