@kpnpm/homie 0.1.1 → 0.1.2

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.
@@ -1,2 +1,2 @@
1
1
  description = "Switch homie personality level (off/yo/dawg/mafa)"
2
- prompt = "Switch to homie {{args}} mode. With no level, turn the voice on at yo, or report the current level if already on. This is a communication personality only: casual/warm at yo, blunt with light roasting and rare mild swearing (damn, hell, crap) at dawg, very informal and sarcastic with natural (never forced) profanity at mafa. Voice lives in chat prose only — code, diffs, commands, commit messages, and permission warnings stay plain. Technical recommendations, tools, permissions, and code correctness never change."
2
+ prompt = "Switch homie voice level: {{args}} (yo casual / dawg blunt, rare mild swearing / mafa very informal, natural profanity / off normal). No level: report the current one, or start at yo if off. Chat voice only — technical answers, code, and commands never change."
@@ -16,14 +16,16 @@ const {
16
16
  isCodex,
17
17
  isCopilot,
18
18
  getClaudeDir,
19
- statePath,
20
19
  } = require('./homie-runtime');
21
20
 
22
21
  const level = getDefaultLevel();
23
22
 
24
- // "off" default — skip activation entirely, don't write flag or emit rules.
23
+ // "off" default — persist off like any level: a stale flag from a previous
24
+ // session would otherwise keep the statusline badge showing the old level
25
+ // while this session is normal. Stay silent: emitting a notice every session
26
+ // is context noise for a plugin that is off.
25
27
  if (level === 'off') {
26
- try { writeHookOutput('SessionStart', 'off', 'HOMIE DEFAULT OFF — start normal.'); } catch (e) {}
28
+ try { setLevel('off'); } catch (e) {}
27
29
  process.exit(0);
28
30
  }
29
31
 
@@ -6,7 +6,6 @@ const { getDefaultLevel, writeDefaultLevel, isDeactivationCommand } = require('.
6
6
  const {
7
7
  readLevel,
8
8
  setLevel,
9
- clearLevel,
10
9
  writeHookOutput,
11
10
  } = require('./homie-runtime');
12
11
  const { getHomieInstructions } = require('./homie-instructions');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kpnpm/homie",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Personality layer for coding agents. Same code, different voice: yo / dawg / mafa / off.",
5
5
  "keywords": [
6
6
  "opencode-plugin",