@prestyj/cli 5.35.1 → 5.37.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/dist/cli/command-routing.d.ts +1 -1
- package/dist/cli/command-routing.js +2 -1
- package/dist/cli/command-routing.js.map +1 -1
- package/dist/cli/validate.d.ts +4 -0
- package/dist/cli/validate.js +267 -0
- package/dist/cli/validate.js.map +1 -0
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-notifications.d.ts +1 -1
- package/dist/core/agent-session.d.ts +2 -0
- package/dist/core/agent-session.js +7 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/validation/backends.d.ts +20 -0
- package/dist/core/validation/backends.js +57 -0
- package/dist/core/validation/backends.js.map +1 -0
- package/dist/core/validation/config.d.ts +30 -0
- package/dist/core/validation/config.js +247 -0
- package/dist/core/validation/config.js.map +1 -0
- package/dist/core/validation/exec.d.ts +3 -0
- package/dist/core/validation/exec.js +17 -0
- package/dist/core/validation/exec.js.map +1 -0
- package/dist/core/validation/github-actions-backend.d.ts +82 -0
- package/dist/core/validation/github-actions-backend.js +435 -0
- package/dist/core/validation/github-actions-backend.js.map +1 -0
- package/dist/core/validation/local-backend.d.ts +18 -0
- package/dist/core/validation/local-backend.js +101 -0
- package/dist/core/validation/local-backend.js.map +1 -0
- package/dist/core/validation/scheduler.d.ts +38 -0
- package/dist/core/validation/scheduler.js +133 -0
- package/dist/core/validation/scheduler.js.map +1 -0
- package/dist/core/validation/service.d.ts +175 -0
- package/dist/core/validation/service.js +905 -0
- package/dist/core/validation/service.js.map +1 -0
- package/dist/core/validation/session-hook.d.ts +3 -0
- package/dist/core/validation/session-hook.js +32 -0
- package/dist/core/validation/session-hook.js.map +1 -0
- package/dist/core/validation/store.d.ts +10 -0
- package/dist/core/validation/store.js +48 -0
- package/dist/core/validation/store.js.map +1 -0
- package/dist/core/validation/types.d.ts +177 -0
- package/dist/core/validation/types.js +16 -0
- package/dist/core/validation/types.js.map +1 -0
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/prompt-hints.js +2 -0
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/tool-tiers.js +1 -0
- package/dist/tools/tool-tiers.js.map +1 -1
- package/dist/tools/validate.d.ts +21 -0
- package/dist/tools/validate.js +106 -0
- package/dist/tools/validate.js.map +1 -0
- package/package.json +4 -4
|
@@ -69,6 +69,7 @@ import { buildPlanStateMessage, samePlanState } from "./plan-delta.js";
|
|
|
69
69
|
import { listProjectFiles } from "./project-files.js";
|
|
70
70
|
import { wrapSteeringText, buildNotificationSteeringText, buildIdleWakeNotificationText, STEERING_PREFIX, } from "./steering.js";
|
|
71
71
|
import { AgentNotificationQueue } from "./agent-notifications.js";
|
|
72
|
+
import { attachValidationNotifications } from "./validation/session-hook.js";
|
|
72
73
|
import { VerificationGate, VERIFICATION_STATE_KIND } from "./verification-gate.js";
|
|
73
74
|
import { findUserSessionPrompt, getUserSessionPrompt } from "./session-preview.js";
|
|
74
75
|
import { normalizeMessageImages } from "./message-images.js";
|
|
@@ -353,6 +354,8 @@ export class AgentSession {
|
|
|
353
354
|
* live turn so the agent never has to spend a turn asking.
|
|
354
355
|
*/
|
|
355
356
|
notifications = new AgentNotificationQueue();
|
|
357
|
+
/** Stops async-validation notifications for this session's project. */
|
|
358
|
+
detachValidation;
|
|
356
359
|
managerAbortSignal;
|
|
357
360
|
managerAbortHandler = () => {
|
|
358
361
|
this.lspManager?.clearPendingDiagnostics();
|
|
@@ -631,6 +634,8 @@ export class AgentSession {
|
|
|
631
634
|
}
|
|
632
635
|
: {}),
|
|
633
636
|
});
|
|
637
|
+
this.detachValidation?.();
|
|
638
|
+
this.detachValidation = attachValidationNotifications(() => this.cwd, this.notifications);
|
|
634
639
|
const tools = [...builtInTools, ...(this.opts.additionalTools ?? [])];
|
|
635
640
|
// Internal-only tool, appended last so public sessions keep a
|
|
636
641
|
// byte-identical tool block (prefix-cache stability).
|
|
@@ -4703,6 +4708,8 @@ export class AgentSession {
|
|
|
4703
4708
|
// First and synchronous: nothing below may delay this, or a hung teardown
|
|
4704
4709
|
// step leaves background commands running after the app has quit.
|
|
4705
4710
|
this.stopBackgroundProcesses();
|
|
4711
|
+
this.detachValidation?.();
|
|
4712
|
+
this.detachValidation = undefined;
|
|
4706
4713
|
this.installedWatchStop?.();
|
|
4707
4714
|
this.releaseClaudeCodeTranscript?.();
|
|
4708
4715
|
this.releaseClaudeCodeTranscript = undefined;
|