@ghl-ai/aw 0.1.42-beta.44 → 0.1.42-beta.46

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/ecc.mjs CHANGED
@@ -12,7 +12,7 @@ import { applyStoredStartupPreferences } from "./startup.mjs";
12
12
 
13
13
  const AW_ECC_REPO_SSH = "git@github.com:shreyansh-ghl/aw-ecc.git";
14
14
  const AW_ECC_REPO_HTTPS = "https://github.com/shreyansh-ghl/aw-ecc.git";
15
- export const AW_ECC_TAG = "v1.4.41-beta.7";
15
+ export const AW_ECC_TAG = "v1.4.41-beta.9";
16
16
 
17
17
  const MARKETPLACE_NAME = "aw-marketplace";
18
18
  const PLUGIN_KEY = `aw@${MARKETPLACE_NAME}`;
@@ -13,6 +13,10 @@ function buildCodexCommand(scriptName) {
13
13
  return `bash "$HOME/.codex/hooks/${scriptName}"`;
14
14
  }
15
15
 
16
+ function buildLegacyCodexCommand(scriptName) {
17
+ return `bash -lc 'bash "$HOME/.codex/hooks/${scriptName}"'`;
18
+ }
19
+
16
20
  const CODEX_HOME_PHASE_BLUEPRINTS = {
17
21
  SessionStart: {
18
22
  scriptName: 'aw-session-start.sh',
@@ -111,7 +115,8 @@ ${this.scriptMarker}
111
115
  set -euo pipefail
112
116
 
113
117
  # AW PostToolUse phase for Codex — usage telemetry.
114
- # Codex tool_name is always "Bash" only PR and aw-push detection works.
118
+ # Codex exposes PostToolUse for Bash commands only; telemetry derives
119
+ # tool_error and Bash-based fallback skill signals from the payload.
115
120
  TELEMETRY_HOOK="$HOME/.aw-ecc/scripts/hooks/aw-usage-post-tool-use.js"
116
121
  if [[ -f "$TELEMETRY_HOOK" ]]; then
117
122
  exec node "$TELEMETRY_HOOK"
@@ -140,7 +145,8 @@ ${this.scriptMarker}
140
145
  set -euo pipefail
141
146
 
142
147
  # AW Stop phase for Codex — usage telemetry.
143
- # Codex Stop has last_assistant_message, stop_hook_active no token usage.
148
+ # Codex Stop exposes response boundary fields; token usage is recovered
149
+ # from transcript_path by the shared telemetry parser.
144
150
  TELEMETRY_HOOK="$HOME/.aw-ecc/scripts/hooks/aw-usage-stop.js"
145
151
  if [[ -f "$TELEMETRY_HOOK" ]]; then
146
152
  exec node "$TELEMETRY_HOOK"
@@ -212,5 +218,9 @@ export function isManagedCodexHomeEntry(entry, definitionOrPhase) {
212
218
  }
213
219
 
214
220
  return Array.isArray(entry?.hooks)
215
- && entry.hooks.some(hook => hook?.type === 'command' && hook?.command === definition.command);
221
+ && entry.hooks.some(hook => hook?.type === 'command'
222
+ && (
223
+ hook?.command === definition.command
224
+ || hook?.command === buildLegacyCodexCommand(definition.scriptName)
225
+ ));
216
226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.42-beta.44",
3
+ "version": "0.1.42-beta.46",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {