@hachej/boring-agent 0.1.36 → 0.1.37

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.
@@ -4931,7 +4931,7 @@ function clearPageUnloading() {
4931
4931
  // src/front/chat/session/usePiSessions.ts
4932
4932
  var DEFAULT_SESSIONS_API_PATH = "/api/v1/agent/pi-chat/sessions";
4933
4933
  var SESSION_PAGE_SIZE = 50;
4934
- var DEFAULT_MAX_RETRIES = 8;
4934
+ var DEFAULT_MAX_RETRIES = 60;
4935
4935
  var DEFAULT_RETRY_BASE_MS = 250;
4936
4936
  var DEFAULT_RETRY_MAX_MS = 2e3;
4937
4937
  var SessionsPreparingError = class extends Error {
@@ -4940,6 +4940,9 @@ var SessionsPreparingError = class extends Error {
4940
4940
  this.name = "SessionsPreparingError";
4941
4941
  }
4942
4942
  };
4943
+ function isNetworkFetchError(error) {
4944
+ return error instanceof TypeError;
4945
+ }
4943
4946
  function usePiSessions(options = {}) {
4944
4947
  const enabled = options.enabled ?? true;
4945
4948
  const apiBaseUrl = options.apiBaseUrl?.replace(/\/$/, "") ?? "";
@@ -5073,7 +5076,8 @@ function usePiSessions(options = {}) {
5073
5076
  data = await fetchSessionList(fetchImpl, sessionsListUrl(0, preferredSessionId()), requestHeaders());
5074
5077
  break;
5075
5078
  } catch (err) {
5076
- const retryable = err instanceof SessionsPreparingError && attempt < retryMaxRetries;
5079
+ const transient = err instanceof SessionsPreparingError || isNetworkFetchError(err);
5080
+ const retryable = transient && attempt < retryMaxRetries;
5077
5081
  if (!retryable) throw err;
5078
5082
  if (!isCurrent()) return;
5079
5083
  await delayWithRef(retryDelayMs(attempt, { baseMs: retryBaseMs, maxMs: retryMaxMs }), retryTimerRef);
@@ -433,13 +433,17 @@ var DEFAULT_WATCH_IGNORES = [
433
433
  "node_modules",
434
434
  ".git",
435
435
  ".DS_Store",
436
+ ".worktrees",
437
+ ".boring-agent",
438
+ ".cache",
436
439
  "dist",
437
440
  ".next",
438
441
  ".turbo",
439
442
  "test-results"
440
443
  ];
441
- function shouldIgnoreWatchPath(path4) {
442
- const parts = path4.split(sep);
444
+ function shouldIgnoreWatchPath(root, path4) {
445
+ const relPath = relative2(root, path4);
446
+ const parts = relPath.split(sep);
443
447
  return parts.some(
444
448
  (part) => DEFAULT_WATCH_IGNORES.includes(part) || part.endsWith(".tsbuildinfo")
445
449
  );
@@ -451,7 +455,7 @@ function createNodeWatcher(root) {
451
455
  const ensureFsw = () => {
452
456
  if (fsw) return fsw;
453
457
  fsw = chokidar.watch(root, {
454
- ignored: shouldIgnoreWatchPath,
458
+ ignored: (path4) => shouldIgnoreWatchPath(root, path4),
455
459
  ignoreInitial: true,
456
460
  persistent: true,
457
461
  followSymlinks: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hachej/boring-agent",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Pane-embeddable coding agent. Ships direct/local/vercel-sandbox execution modes behind one interface.",
@@ -74,7 +74,7 @@
74
74
  "use-stick-to-bottom": "^1.1.3",
75
75
  "yaml": "^2.8.3",
76
76
  "zod": "^3.25.76",
77
- "@hachej/boring-ui-kit": "0.1.36"
77
+ "@hachej/boring-ui-kit": "0.1.37"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@antithesishq/bombadil": "0.5.0",