@phren/cli 0.1.12 → 0.1.14
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/dist/cli/hooks-session.d.ts +18 -36
- package/dist/cli/hooks-session.js +21 -1482
- package/dist/cli/namespaces-findings.d.ts +1 -0
- package/dist/cli/namespaces-findings.js +208 -0
- package/dist/cli/namespaces-profile.d.ts +1 -0
- package/dist/cli/namespaces-profile.js +76 -0
- package/dist/cli/namespaces-projects.d.ts +1 -0
- package/dist/cli/namespaces-projects.js +370 -0
- package/dist/cli/namespaces-review.d.ts +1 -0
- package/dist/cli/namespaces-review.js +45 -0
- package/dist/cli/namespaces-skills.d.ts +4 -0
- package/dist/cli/namespaces-skills.js +550 -0
- package/dist/cli/namespaces-store.d.ts +2 -0
- package/dist/cli/namespaces-store.js +367 -0
- package/dist/cli/namespaces-tasks.d.ts +1 -0
- package/dist/cli/namespaces-tasks.js +369 -0
- package/dist/cli/namespaces-utils.d.ts +4 -0
- package/dist/cli/namespaces-utils.js +47 -0
- package/dist/cli/namespaces.d.ts +7 -11
- package/dist/cli/namespaces.js +8 -1991
- package/dist/cli/session-background.d.ts +3 -0
- package/dist/cli/session-background.js +176 -0
- package/dist/cli/session-git.d.ts +17 -0
- package/dist/cli/session-git.js +181 -0
- package/dist/cli/session-metrics.d.ts +2 -0
- package/dist/cli/session-metrics.js +67 -0
- package/dist/cli/session-start.d.ts +3 -0
- package/dist/cli/session-start.js +289 -0
- package/dist/cli/session-stop.d.ts +8 -0
- package/dist/cli/session-stop.js +468 -0
- package/dist/cli/session-tool-hook.d.ts +18 -0
- package/dist/cli/session-tool-hook.js +376 -0
- package/dist/profile-store.js +14 -1
- package/dist/shared/index.js +22 -3
- package/dist/shared/retrieval.js +10 -9
- package/dist/tools/search.js +1 -1
- package/package.json +1 -1
|
@@ -1,38 +1,20 @@
|
|
|
1
|
-
import type { SelectedSnippet } from "../shared/retrieval.js";
|
|
2
|
-
export type { HookContext } from "./hooks-context.js";
|
|
3
|
-
export { buildHookContext, handleGuardSkip } from "./hooks-context.js";
|
|
4
|
-
export declare function getUntrackedProjectNotice(phrenPath: string, cwd: string): string | null;
|
|
5
|
-
export declare function getSessionStartOnboardingNotice(phrenPath: string, cwd: string, activeProject: string | null): string | null;
|
|
6
|
-
export interface GitContext {
|
|
7
|
-
branch: string;
|
|
8
|
-
changedFiles: Set<string>;
|
|
9
|
-
}
|
|
10
|
-
export declare function getGitContext(cwd?: string): GitContext | null;
|
|
11
|
-
export declare function trackSessionMetrics(phrenPathLocal: string, sessionId: string, selected: SelectedSnippet[]): void;
|
|
12
|
-
export declare function resolveSubprocessArgs(command: string): string[] | null;
|
|
13
|
-
export declare function handleHookSessionStart(): Promise<void>;
|
|
14
1
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
2
|
+
* Session lifecycle hooks — orchestrator module.
|
|
3
|
+
*
|
|
4
|
+
* This file re-exports all session hook functionality from the split modules:
|
|
5
|
+
* - session-git.ts — Git context and command helpers
|
|
6
|
+
* - session-metrics.ts — Session metrics tracking
|
|
7
|
+
* - session-background.ts — Background sync/maintenance scheduling
|
|
8
|
+
* - session-start.ts — SessionStart hook handler + onboarding notices
|
|
9
|
+
* - session-stop.ts — Stop hook handler + background sync + conversation capture
|
|
10
|
+
* - session-tool-hook.ts — PostToolUse and context hook handlers + tool finding extraction
|
|
17
11
|
*/
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
explicit?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare function filterToolFindingsForProactivity(candidates: Array<{
|
|
30
|
-
text: string;
|
|
31
|
-
confidence: number;
|
|
32
|
-
explicit?: boolean;
|
|
33
|
-
}>, level?: "high" | "medium" | "low"): Array<{
|
|
34
|
-
text: string;
|
|
35
|
-
confidence: number;
|
|
36
|
-
explicit?: boolean;
|
|
37
|
-
}>;
|
|
38
|
-
export declare function extractToolFindings(toolName: string, input: Record<string, unknown>, responseStr: string): LearningCandidate[];
|
|
12
|
+
export type { HookContext } from "./hooks-context.js";
|
|
13
|
+
export { buildHookContext, handleGuardSkip } from "./hooks-context.js";
|
|
14
|
+
export type { GitContext } from "./session-git.js";
|
|
15
|
+
export { getGitContext } from "./session-git.js";
|
|
16
|
+
export { trackSessionMetrics } from "./session-metrics.js";
|
|
17
|
+
export { resolveSubprocessArgs } from "./session-background.js";
|
|
18
|
+
export { getUntrackedProjectNotice, getSessionStartOnboardingNotice, handleHookSessionStart, } from "./session-start.js";
|
|
19
|
+
export { extractConversationInsights, filterConversationInsightsForProactivity, handleHookStop, handleBackgroundSync, } from "./session-stop.js";
|
|
20
|
+
export { handleHookContext, handleHookTool, extractToolFindings, filterToolFindingsForProactivity, } from "./session-tool-hook.js";
|