@ghl-ai/aw 0.1.38-beta.6 → 0.1.38-beta.7

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.
@@ -3,6 +3,7 @@ import { join } from 'node:path';
3
3
  import { getSupportedHarnessPhaseEntries } from '../hook-manifest.mjs';
4
4
  import {
5
5
  buildDelegatingPhaseScript,
6
+ buildNodeSilentPhaseScript,
6
7
  buildRegistryDelegatingPhaseScript,
7
8
  buildReservedPhaseScript,
8
9
  } from './shared-phase-scripts.mjs';
@@ -110,10 +111,9 @@ const CODEX_HOME_PHASE_BLUEPRINTS = {
110
111
  scriptName: 'aw-stop.sh',
111
112
  scriptMarker: '# aw-managed: codex-global-stop',
112
113
  buildScriptContent() {
113
- return buildReservedPhaseScript({
114
+ return buildNodeSilentPhaseScript({
114
115
  marker: this.scriptMarker,
115
- phase: 'Stop',
116
- harnessLabel: 'Codex home routing',
116
+ targetPath: '$HOME/.aw-ecc/scripts/hooks/capabilities/telemetry/telemetry-stop.js',
117
117
  });
118
118
  },
119
119
  buildEntry(command) {
@@ -54,6 +54,23 @@ exit 0
54
54
  `;
55
55
  }
56
56
 
57
+ export function buildNodeSilentPhaseScript({
58
+ marker,
59
+ targetPath,
60
+ }) {
61
+ return `#!/usr/bin/env bash
62
+ ${marker}
63
+ set -euo pipefail
64
+
65
+ TARGET="${targetPath}"
66
+ if [[ -f "$TARGET" ]]; then
67
+ node "$TARGET" > /dev/null
68
+ fi
69
+
70
+ exit 0
71
+ `;
72
+ }
73
+
57
74
  export function buildReservedPhaseScript({
58
75
  marker,
59
76
  phase,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.38-beta.6",
3
+ "version": "0.1.38-beta.7",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {