praxis-agent 0.20.8 → 0.20.9

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,9 +1,10 @@
1
+ import { HOOK_EVENTS, } from '../../hooks/claude-hooks.js';
1
2
  export const TUI_HOOK_MENU = {
2
3
  title: 'Hooks',
3
4
  readOnlyNotice: 'This menu is read-only. To add or modify hooks, edit settings.json directly or ask Claude.',
4
5
  visibleRows: 5,
5
6
  };
6
- export const TUI_HOOK_EVENTS = [
7
+ const TUI_HOOK_EVENT_DEFINITIONS = [
7
8
  {
8
9
  name: 'PreToolUse',
9
10
  description: 'Before tool execution',
@@ -109,6 +110,7 @@ export const TUI_HOOK_EVENTS = [
109
110
  detail: [],
110
111
  },
111
112
  ];
113
+ export const TUI_HOOK_EVENTS = TUI_HOOK_EVENT_DEFINITIONS.filter((definition) => HOOK_EVENTS.includes(definition.name));
112
114
  function isRecord(value) {
113
115
  return typeof value === 'object' && value !== null && !Array.isArray(value);
114
116
  }
@@ -72,6 +72,7 @@ export interface ClaudeHookRunnerOptions {
72
72
  executeCommand?: ClaudeHookCommandExecutor;
73
73
  onEvent?: (event: ClaudeHookStreamEvent) => void;
74
74
  }
75
+ export declare const HOOK_EVENTS: readonly ClaudeHookEventName[];
75
76
  export declare function validateClaudeHooks(settings: readonly ClaudeJsonResource[], maxTimeoutMs?: number): void;
76
77
  export declare class ClaudeHookRunner {
77
78
  private readonly settings;
@@ -4,7 +4,7 @@ import { redactSensitiveText, sanitizeChildEnvironment, sensitiveEnvironmentValu
4
4
  const DEFAULT_TIMEOUT_MS = 10 * 60 * 1000;
5
5
  const DEFAULT_MAX_OUTPUT_BYTES = 128 * 1024;
6
6
  const KILL_GRACE_MS = 250;
7
- const HOOK_EVENTS = [
7
+ export const HOOK_EVENTS = [
8
8
  'Setup',
9
9
  'SessionStart',
10
10
  'SubagentStart',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "praxis-agent",
3
- "version": "0.20.8",
3
+ "version": "0.20.9",
4
4
  "description": "Local-first, single-user general agent for the command line.",
5
5
  "license": "MIT",
6
6
  "author": "wuqisen",