create-healix 1.1.5 → 1.1.6

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/templates.js +14 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-healix",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Scaffold a healix WDIO project with MCP integration ready out of the box",
5
5
  "type": "module",
6
6
  "bin": {
package/src/templates.js CHANGED
@@ -144,32 +144,31 @@ export function mcpJson(port = 4000) {
144
144
  // The re-hydration reminder text — single source, shared by the hook script and
145
145
  // kept short so it re-anchors without becoming noise.
146
146
  const REHYDRATE_REMINDER =
147
- 'HEALIX RE-HYDRATION: a context compaction just occurred. Before ANY healix_* ' +
148
- 'automation step, re-run healix_guide to reload the framework model + workflow ' +
149
- 'do not operate from memory of it. Drive the live browser only through healix_* ' +
150
- 'tools; every selector is observed, never guessed.';
147
+ 'HEALIX PROJECT: drive the live browser ONLY through the healix_* MCP tools — ' +
148
+ 'every selector is observed live, never guessed, and specs/POMs are authored via ' +
149
+ 'the scaffold tools. If the Healix guide is not currently in your context, run ' +
150
+ 'healix_guide before any scaffold/heal/run step do not operate from memory of it.';
151
151
 
152
- // Tiny script the compact hook runs. Living in a FILE (not an inline `node -e`)
153
- // avoids cross-shell quoting hell — the hook command is just `node <path>`.
152
+ // Tiny script the hook runs. Living in a FILE (not an inline `node -e`) avoids
153
+ // cross-shell quoting hell — the hook command is just `node <path>`.
154
154
  export function claudeRehydrateScript() {
155
- return `// Printed into the agent's context by the SessionStart(compact) hook.\n` +
155
+ return `// Printed into the agent's context by the SessionStart hook (startup + after compaction).\n` +
156
156
  `console.log(${JSON.stringify(REHYDRATE_REMINDER)});\n`;
157
157
  }
158
158
 
159
- // Claude Code SessionStart hook that fires AFTER a context compaction/summary and
160
- // re-injects the healix re-hydration reminder. Compaction drops tool results (where
161
- // the full healix_guide lives), so without this the agent can "forget" the workflow.
162
- // The hook's stdout is added to the agent's context on resume — deterministic, no
163
- // reliance on the model noticing the guide is gone. matcher "compact" = only after a
164
- // compaction (not every startup), so it is silent during normal work. The command is
165
- // a bare `node <relative path>` (no nested quotes) so it works in cmd, PowerShell, sh.
159
+ // Claude Code-format SessionStart hook (host-agnostic: read by any host that
160
+ // supports the .claude/settings.json convention Claude Code, Spryv, …). No
161
+ // matcher = fires on every SessionStart: it SEEDS the workflow at startup and
162
+ // RE-HYDRATES after a context compaction (when tool results, where the full
163
+ // healix_guide lives, get dropped). The hook's stdout is injected into the
164
+ // agent's context deterministic, no reliance on the model noticing the guide is
165
+ // gone. The command is a bare `node <relative path>` so it works in cmd/PowerShell/sh.
166
166
  export function claudeSettings() {
167
167
  return JSON.stringify(
168
168
  {
169
169
  hooks: {
170
170
  SessionStart: [
171
171
  {
172
- matcher: 'compact',
173
172
  hooks: [
174
173
  { type: 'command', command: 'node .claude/healix-rehydrate.mjs' },
175
174
  ],