@plannotator/pi-extension 0.23.0 → 0.23.1

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.
@@ -180,8 +180,6 @@ export async function startAnnotateServer(options: {
180
180
  /** Project name for keying per-file version history (powers the annotate version diff). */
181
181
  project?: string;
182
182
  }): Promise<AnnotateServerResult> {
183
- // Side-channel pre-warm so /api/doc/exists POSTs land on warm cache.
184
- void warmFileListCache(process.cwd(), "code");
185
183
  const gitUser = detectGitUser();
186
184
  const sharingEnabled =
187
185
  options.sharingEnabled ?? resolveSharingEnabled(loadConfig());
@@ -651,6 +649,9 @@ export async function startAnnotateServer(options: {
651
649
 
652
650
  const { port, portSource } = await listenOnPort(server);
653
651
 
652
+ // Mirror the Bun server: bind first, then warm through the async shared walk.
653
+ void warmFileListCache(process.cwd(), "code");
654
+
654
655
  return {
655
656
  port,
656
657
  portSource,
@@ -84,8 +84,6 @@ export async function startPlanReviewServer(options: {
84
84
  mode?: "archive";
85
85
  customPlanPath?: string | null;
86
86
  }): Promise<PlanServerResult> {
87
- // Side-channel pre-warm so /api/doc/exists POSTs land on warm cache.
88
- void warmFileListCache(process.cwd(), "code");
89
87
  const gitUser = detectGitUser();
90
88
  const sharingEnabled =
91
89
  options.sharingEnabled ?? resolveSharingEnabled(loadConfig());
@@ -453,6 +451,9 @@ export async function startPlanReviewServer(options: {
453
451
 
454
452
  const { port, portSource } = await listenOnPort(server);
455
453
 
454
+ // Mirror the Bun server: bind first, then warm through the async shared walk.
455
+ void warmFileListCache(process.cwd(), "code");
456
+
456
457
  return {
457
458
  reviewId,
458
459
  port,