openhermes 4.12.1 → 4.13.0
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/CONTEXT.md +6 -6
- package/ETHOS.md +2 -2
- package/README.md +11 -17
- package/bootstrap.ts +118 -126
- package/docs/HOW-IT-WORKS.md +162 -0
- package/docs/adr/ADR-0001-rebuild-vs-increment.md +30 -0
- package/docs/adr/ADR-0002-routing-graph-vs-linear-chain.md +36 -0
- package/docs/adr/ADR-0003-per-directory-plan-storage.md +34 -0
- package/docs/adr/ADR-0004-composer-fragment-architecture.md +42 -0
- package/docs/adr/ADR-0005-hook-system-design.md +42 -0
- package/docs/adr/README.md +9 -0
- package/harness/codex/AUTOPILOT.md +35 -40
- package/harness/codex/CHARTER.md +3 -3
- package/harness/lib/composer/compose.test.ts +29 -29
- package/harness/lib/composer/fragments/02-delegation.md +5 -5
- package/harness/lib/composer/fragments/04-task-flow.md +13 -13
- package/harness/lib/composer/fragments/08-routing.md +1 -1
- package/harness/lib/composer/fragments/09-guardrails.md +25 -25
- package/harness/lib/composer/index.ts +1 -1
- package/harness/lib/guards/guard-config.ts +72 -72
- package/harness/lib/hooks/builtins/confidence-gate-hook.ts +9 -9
- package/harness/lib/hooks/builtins/delegation-depth-hook.ts +1 -1
- package/harness/lib/hooks/builtins/dynamic-route-hook.ts +99 -99
- package/harness/lib/hooks/builtins/next-route-hook.ts +24 -24
- package/harness/lib/hooks/builtins/plan-check-hook.ts +5 -5
- package/harness/lib/hooks/builtins/route-tracking-hook.ts +1 -1
- package/harness/lib/hooks/hooks.test.ts +160 -324
- package/harness/lib/hooks/index.ts +38 -42
- package/harness/lib/hooks/registry.ts +309 -416
- package/harness/lib/hooks/types.ts +116 -119
- package/harness/lib/plans/plan-location.ts +134 -134
- package/harness/lib/routing/index.ts +21 -21
- package/harness/lib/routing/route-guidance.ts +147 -147
- package/harness/lib/routing/route-resolver.ts +58 -58
- package/harness/lib/routing/routing.test.ts +195 -195
- package/harness/lib/routing/skill-frontmatter.ts +125 -125
- package/harness/lib/routing/types.ts +52 -52
- package/harness/skills/oh-ascii/SKILL.md +1 -1
- package/harness/skills/oh-fusion/DEEP.md +109 -109
- package/harness/skills/oh-fusion/SKILL.md +47 -47
- package/harness/skills/oh-init/DEEP.md +2 -2
- package/harness/skills/oh-plan-review/DEEP.md +1 -1
- package/harness/skills/oh-planner/DEEP.md +3 -3
- package/harness/skills/oh-review/DEEP.md +5 -5
- package/package.json +56 -53
- package/harness/lib/background/background.test.ts +0 -216
- package/harness/lib/background/index.ts +0 -7
- package/harness/lib/background/interfaces.ts +0 -31
- package/harness/lib/background/manager.ts +0 -320
- package/harness/lib/hooks/builtins/error-recovery-hook.ts +0 -107
- package/harness/lib/hooks/builtins/memory-sync-hook.ts +0 -73
- package/harness/lib/hooks/builtins/sanity-check-hook.ts +0 -52
- package/harness/lib/hooks/builtins/subagent-failure-hook.ts +0 -93
- package/harness/lib/memory/index.ts +0 -18
- package/harness/lib/memory/interfaces.ts +0 -53
- package/harness/lib/memory/memory-manager.ts +0 -205
- package/harness/lib/memory/memory.test.ts +0 -485
- package/harness/lib/memory/plan-store.ts +0 -346
- package/harness/lib/recovery/handler.ts +0 -243
- package/harness/lib/recovery/index.ts +0 -14
- package/harness/lib/recovery/interfaces.ts +0 -48
- package/harness/lib/recovery/patterns.ts +0 -149
- package/harness/lib/recovery/recovery.test.ts +0 -312
- package/harness/lib/sanity/anomaly-tracker.ts +0 -127
- package/harness/lib/sanity/checker.ts +0 -189
- package/harness/lib/sanity/index.ts +0 -13
- package/harness/lib/sanity/interfaces.ts +0 -24
- package/harness/lib/sanity/sanity.test.ts +0 -472
- package/harness/lib/sync/file-watcher.ts +0 -175
- package/harness/lib/sync/index.ts +0 -11
- package/harness/lib/sync/interfaces.ts +0 -27
- package/harness/lib/sync/plan-sync.ts +0 -533
- package/harness/lib/sync/sync.test.ts +0 -858
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Hook System — barrel export
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
HookPhase,
|
|
7
|
-
HookResult,
|
|
8
|
-
} from "./types.ts";
|
|
9
|
-
export type {
|
|
10
|
-
HookContextBase,
|
|
11
|
-
HookContextExtras,
|
|
12
|
-
HookContext,
|
|
13
|
-
HookContextPatch,
|
|
14
|
-
HookMetadata,
|
|
15
|
-
PreToolUseHook,
|
|
16
|
-
PostToolUseHook,
|
|
17
|
-
RouteHook,
|
|
18
|
-
SessionHook,
|
|
19
|
-
AnyHook,
|
|
20
|
-
} from "./types.ts";
|
|
21
|
-
|
|
22
|
-
export { HookRegistry } from "./registry.ts";
|
|
23
|
-
|
|
24
|
-
// Built-in hooks
|
|
25
|
-
export { planCheckHook } from "./builtins/plan-check-hook.ts";
|
|
26
|
-
export { shellDetectHook } from "./builtins/shell-detect-hook.ts";
|
|
27
|
-
export { confidenceGateHook } from "./builtins/confidence-gate-hook.ts";
|
|
28
|
-
export { delegationDepthHook, resetDepthTracker } from "./builtins/delegation-depth-hook.ts";
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export type {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export { DEFAULT_GUARD_CONFIG, checkGuardProgression, mergeGuardConfig } from "../guards/guard-config.ts";
|
|
40
|
-
|
|
41
|
-
// Subagent failure hook
|
|
42
|
-
export { subagentFailureHook, resetSubagentFailures, getSubagentFailureCount } from "./builtins/subagent-failure-hook.ts";
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Hook System — barrel export
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
HookPhase,
|
|
7
|
+
HookResult,
|
|
8
|
+
} from "./types.ts";
|
|
9
|
+
export type {
|
|
10
|
+
HookContextBase,
|
|
11
|
+
HookContextExtras,
|
|
12
|
+
HookContext,
|
|
13
|
+
HookContextPatch,
|
|
14
|
+
HookMetadata,
|
|
15
|
+
PreToolUseHook,
|
|
16
|
+
PostToolUseHook,
|
|
17
|
+
RouteHook,
|
|
18
|
+
SessionHook,
|
|
19
|
+
AnyHook,
|
|
20
|
+
} from "./types.ts";
|
|
21
|
+
|
|
22
|
+
export { HookRegistry } from "./registry.ts";
|
|
23
|
+
|
|
24
|
+
// Built-in hooks
|
|
25
|
+
export { planCheckHook } from "./builtins/plan-check-hook.ts";
|
|
26
|
+
export { shellDetectHook } from "./builtins/shell-detect-hook.ts";
|
|
27
|
+
export { confidenceGateHook } from "./builtins/confidence-gate-hook.ts";
|
|
28
|
+
export { delegationDepthHook, resetDepthTracker } from "./builtins/delegation-depth-hook.ts";
|
|
29
|
+
export { dynamicRouteHook } from "./builtins/dynamic-route-hook.ts";
|
|
30
|
+
export { nextRouteHook } from "./builtins/next-route-hook.ts";
|
|
31
|
+
export { routeTrackingHook, resetRouteTracker, getHopHistory } from "./builtins/route-tracking-hook.ts";
|
|
32
|
+
export type { HopRecord, RouteTrackingConfig } from "./builtins/route-tracking-hook.ts";
|
|
33
|
+
|
|
34
|
+
// Guard configuration
|
|
35
|
+
export type { GuardConfig, GuardProgression, GuardLevel } from "../guards/guard-config.ts";
|
|
36
|
+
export { DEFAULT_GUARD_CONFIG, checkGuardProgression, mergeGuardConfig } from "../guards/guard-config.ts";
|
|
37
|
+
|
|
38
|
+
|