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

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.
Files changed (3) hide show
  1. package/ecc.mjs +1 -1
  2. package/package.json +1 -1
  3. package/startup.mjs +10 -3
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.68";
15
+ export const AW_ECC_TAG = "v1.4.70";
16
16
  const REQUIRED_ECC_FILES = [
17
17
  "package.json",
18
18
  "scripts/install-apply.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.79-beta.1",
3
+ "version": "0.1.79-beta.4",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {
package/startup.mjs CHANGED
@@ -24,10 +24,11 @@ const CLAUDE_DISABLE_DESCRIPTION = 'AW-managed override: disable automatic AW se
24
24
  // existing on-disk router script across both registry roots and namespaces.
25
25
  const CLAUDE_ROUTER_DESCRIPTION = 'AW-managed: using-aw-skills session router';
26
26
  const CLAUDE_REMINDER_DESCRIPTION = 'AW-managed: using-aw-skills per-prompt reminder';
27
+ const CLAUDE_LEGACY_REMINDER_SNIPPET = 'using-aw-skills is active. Select the smallest correct AW route';
27
28
  const CLAUDE_ROUTER_COMMAND =
28
29
  'for f in "$HOME/.aw/.aw_registry/aw/skills/using-aw-skills/hooks/session-start.sh" "$HOME/.aw_registry/aw/skills/using-aw-skills/hooks/session-start.sh" "$HOME/.aw/.aw_registry/platform/core/skills/using-aw-skills/hooks/session-start.sh" "$HOME/.aw_registry/platform/core/skills/using-aw-skills/hooks/session-start.sh"; do [ -f "$f" ] && exec bash "$f"; done; exit 0';
29
30
  const CLAUDE_REMINDER_COMMAND =
30
- 'echo \'{"hookSpecificOutput":{"hookEventName":"UserPromptSubmit","additionalContext":"[AW] using-aw-skills is active. Select the smallest correct AW route (/aw:plan, /aw:execute, /aw:verify, /aw:deploy, /aw:ship) before substantive work."}}\'';
31
+ 'bash -lc \'exec bash "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}/scripts/hooks/session-start-rules-context.sh"\'';
31
32
  const CLAUDE_TELEMETRY_DESCRIPTION = 'AW usage telemetry';
32
33
  const CLAUDE_TELEMETRY_HOOKS = [
33
34
  {
@@ -43,7 +44,7 @@ const CLAUDE_TELEMETRY_HOOKS = [
43
44
  {
44
45
  phase: 'Stop',
45
46
  matcher: undefined,
46
- command: 'test -f "$HOME/.aw-ecc/scripts/hooks/aw-usage-stop.js" && node "$HOME/.aw-ecc/scripts/hooks/aw-usage-stop.js" || true',
47
+ command: 'STDIN="$(cat)"; test -f "$HOME/.aw-ecc/scripts/hooks/aw-usage-stop.js" && printf \'%s\' "$STDIN" | node "$HOME/.aw-ecc/scripts/hooks/aw-usage-stop.js" || true; test -f "$HOME/.aw-ecc/scripts/hooks/aw-memory-sync.js" && printf \'%s\' "$STDIN" | node "$HOME/.aw-ecc/scripts/hooks/aw-memory-sync.js" || true',
47
48
  },
48
49
  {
49
50
  phase: 'PostToolUseFailure',
@@ -210,7 +211,13 @@ function isManagedClaudeRouterEntry(entry) {
210
211
  }
211
212
 
212
213
  function isManagedClaudeReminderEntry(entry) {
213
- return entry?.description === CLAUDE_REMINDER_DESCRIPTION;
214
+ if (entry?.description === CLAUDE_REMINDER_DESCRIPTION) return true;
215
+ return Array.isArray(entry?.hooks)
216
+ && entry.hooks.some(hook =>
217
+ hook?.type === 'command'
218
+ && typeof hook?.command === 'string'
219
+ && hook.command.includes(CLAUDE_LEGACY_REMINDER_SNIPPET)
220
+ );
214
221
  }
215
222
 
216
223
  // Orphaned `{ matcher: '*', hooks: [] }` stubs with no description accumulated in some