@ghl-ai/aw 0.1.78 → 0.1.79-beta.1

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.67";
15
+ export const AW_ECC_TAG = "v1.4.68";
16
16
  const REQUIRED_ECC_FILES = [
17
17
  "package.json",
18
18
  "scripts/install-apply.js",
@@ -57,19 +57,18 @@ const CODEX_HOME_PHASE_BLUEPRINTS = {
57
57
  ${this.scriptMarker}
58
58
  set -euo pipefail
59
59
 
60
- # Capture stdin so we can feed it to both the existing delegate and telemetry.
60
+ # Capture stdin so we can feed it to both telemetry and the reminder delegate.
61
61
  STDIN=$(cat)
62
62
 
63
- # Fire telemetry in background (non-blocking).
64
63
  TELEMETRY_HOOK="$HOME/.aw-ecc/scripts/hooks/aw-usage-prompt-submit.js"
65
- if [[ -f "$TELEMETRY_HOOK" ]]; then
66
- echo "$STDIN" | node "$TELEMETRY_HOOK" >/dev/null 2>&1 &
64
+ if [[ -f "$TELEMETRY_HOOK" ]] && command -v node >/dev/null 2>&1; then
65
+ printf '%s' "$STDIN" | AW_HARNESS=codex node "$TELEMETRY_HOOK" >/dev/null 2>&1 || true
67
66
  fi
68
67
 
69
- # Delegate to existing rules-context hook.
70
68
  TARGET="$HOME/.aw-ecc/scripts/hooks/session-start-rules-context.sh"
71
69
  if [[ -f "$TARGET" ]]; then
72
- echo "$STDIN" | exec bash "$TARGET"
70
+ printf '%s' "$STDIN" | bash "$TARGET"
71
+ exit $?
73
72
  fi
74
73
 
75
74
  exit 0
@@ -146,14 +145,20 @@ echo '{}'
146
145
  ${this.scriptMarker}
147
146
  set -euo pipefail
148
147
 
149
- # AW Stop phase for Codex — usage telemetry.
150
- # Codex Stop exposes response boundary fields; token usage is recovered
151
- # from transcript_path by the shared telemetry parser.
148
+ # Capture stdin before invoking non-blocking sidecars.
149
+ STDIN=$(cat)
150
+
152
151
  TELEMETRY_HOOK="$HOME/.aw-ecc/scripts/hooks/aw-usage-stop.js"
153
- if [[ -f "$TELEMETRY_HOOK" ]]; then
154
- exec node "$TELEMETRY_HOOK"
152
+ if [[ -f "$TELEMETRY_HOOK" ]] && command -v node >/dev/null 2>&1; then
153
+ printf '%s' "$STDIN" | AW_HARNESS=codex node "$TELEMETRY_HOOK" >/dev/null 2>&1 || true
155
154
  fi
156
- echo '{}'
155
+
156
+ MEMORY_SYNC_HOOK="$HOME/.aw-ecc/scripts/hooks/aw-memory-sync.js"
157
+ if [[ -f "$MEMORY_SYNC_HOOK" ]] && command -v node >/dev/null 2>&1; then
158
+ printf '%s' "$STDIN" | AW_HARNESS=codex node "$MEMORY_SYNC_HOOK" >/dev/null 2>&1 || true
159
+ fi
160
+
161
+ exit 0
157
162
  `;
158
163
  },
159
164
  buildEntry(command) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.78",
3
+ "version": "0.1.79-beta.1",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {