@circuitwall/jarela 2.3.0 → 2.5.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.
Files changed (290) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +5 -5
  3. package/.next/standalone/.next/build-manifest.json +2 -2
  4. package/.next/standalone/.next/prerender-manifest.json +4 -4
  5. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.html +14 -2
  13. package/.next/standalone/.next/server/app/_not-found.rsc +16 -4
  14. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +16 -4
  15. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +16 -4
  16. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  18. package/.next/standalone/.next/server/app/api/v1/access/[identity]/route.js +7 -0
  19. package/.next/standalone/.next/server/app/api/v1/access/route.js +7 -0
  20. package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js +7 -0
  21. package/.next/standalone/.next/server/app/api/v1/agents/[id]/display-filters/route.js +17 -5
  22. package/.next/standalone/.next/server/app/api/v1/agents/[id]/route.js +7 -0
  23. package/.next/standalone/.next/server/app/api/v1/agents/[id]/thread/route.js +17 -5
  24. package/.next/standalone/.next/server/app/api/v1/agents/route.js +7 -0
  25. package/.next/standalone/.next/server/app/api/v1/allowed-sites/[hostname]/route.js +7 -0
  26. package/.next/standalone/.next/server/app/api/v1/allowed-sites/route.js +7 -0
  27. package/.next/standalone/.next/server/app/api/v1/artifacts/lifecycle/route.js +7 -0
  28. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js +26 -32
  29. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/[remote_jid]/route.js +18 -7
  31. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/route.js +18 -7
  32. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +26 -32
  33. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js +27 -33
  35. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js +26 -32
  37. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/[route_id]/route.js +28 -12
  39. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/route.js +28 -12
  40. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +26 -32
  41. package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/api/v1/bridges/kinds/route.js +9 -2
  43. package/.next/standalone/.next/server/app/api/v1/bridges/kinds/route.js.nft.json +1 -1
  44. package/.next/standalone/.next/server/app/api/v1/bridges/route.js +19 -7
  45. package/.next/standalone/.next/server/app/api/v1/bridges/route.js.nft.json +1 -1
  46. package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js +17 -5
  47. package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js +7 -0
  48. package/.next/standalone/.next/server/app/api/v1/dashboard/pricing-task/route.js +1 -1
  49. package/.next/standalone/.next/server/app/api/v1/documents/search/route.js +7 -0
  50. package/.next/standalone/.next/server/app/api/v1/documents/settings/route.js +7 -0
  51. package/.next/standalone/.next/server/app/api/v1/documents/sources/[id]/route.js +1 -1
  52. package/.next/standalone/.next/server/app/api/v1/documents/sources/route.js +1 -1
  53. package/.next/standalone/.next/server/app/api/v1/env-sync/allowlist/route.js +7 -0
  54. package/.next/standalone/.next/server/app/api/v1/env-sync/route.js +7 -0
  55. package/.next/standalone/.next/server/app/api/v1/events/route.js +26 -32
  56. package/.next/standalone/.next/server/app/api/v1/events/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/v1/extension/agents/route.js +1 -1
  58. package/.next/standalone/.next/server/app/api/v1/extension/browser/activate/route.js +7 -0
  59. package/.next/standalone/.next/server/app/api/v1/extension/browser/foreground/route.js +7 -0
  60. package/.next/standalone/.next/server/app/api/v1/extension/browser/history/route.js +7 -0
  61. package/.next/standalone/.next/server/app/api/v1/extension/browser/poll/route.js +7 -0
  62. package/.next/standalone/.next/server/app/api/v1/extension/browser/progress/route.js +7 -0
  63. package/.next/standalone/.next/server/app/api/v1/extension/browser/result/route.js +7 -0
  64. package/.next/standalone/.next/server/app/api/v1/extension/browser/retry/route.js +7 -0
  65. package/.next/standalone/.next/server/app/api/v1/extension/browser/status/route.js +7 -0
  66. package/.next/standalone/.next/server/app/api/v1/extension/browser/tabs/route.js +7 -0
  67. package/.next/standalone/.next/server/app/api/v1/extension/fill/route.js +1 -1
  68. package/.next/standalone/.next/server/app/api/v1/extension/refine/route.js +1 -1
  69. package/.next/standalone/.next/server/app/api/v1/extension/turn/route.js +1 -1
  70. package/.next/standalone/.next/server/app/api/v1/extensions/route.js +1 -1
  71. package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/config/route.js +1 -1
  72. package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/route.js +1 -1
  73. package/.next/standalone/.next/server/app/api/v1/extensions/tools/[name]/secrets/route.js +1 -1
  74. package/.next/standalone/.next/server/app/api/v1/harnesses/[id]/route.js +7 -0
  75. package/.next/standalone/.next/server/app/api/v1/harnesses/default/route.js +7 -0
  76. package/.next/standalone/.next/server/app/api/v1/harnesses/route.js +7 -0
  77. package/.next/standalone/.next/server/app/api/v1/health/route.js +17 -5
  78. package/.next/standalone/.next/server/app/api/v1/integrations/[name]/route.js +7 -0
  79. package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/callback/route.js +7 -0
  80. package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +7 -0
  81. package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +7 -0
  82. package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +7 -0
  83. package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +7 -0
  84. package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +7 -0
  85. package/.next/standalone/.next/server/app/api/v1/integrations/route.js +7 -0
  86. package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js +17 -5
  87. package/.next/standalone/.next/server/app/api/v1/maps/embed/route.js +7 -0
  88. package/.next/standalone/.next/server/app/api/v1/mcp-servers/[name]/route.js +17 -5
  89. package/.next/standalone/.next/server/app/api/v1/mcp-servers/route.js +17 -5
  90. package/.next/standalone/.next/server/app/api/v1/memory/[namespace]/[key]/route.js +7 -0
  91. package/.next/standalone/.next/server/app/api/v1/memory/policy/route.js +7 -0
  92. package/.next/standalone/.next/server/app/api/v1/memory/route.js +7 -0
  93. package/.next/standalone/.next/server/app/api/v1/memory/search/route.js +7 -0
  94. package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js +7 -0
  95. package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js +7 -0
  96. package/.next/standalone/.next/server/app/api/v1/models/route.js +7 -0
  97. package/.next/standalone/.next/server/app/api/v1/packages/defaults/[id]/route.js +28 -4
  98. package/.next/standalone/.next/server/app/api/v1/packages/reload/route.js +28 -4
  99. package/.next/standalone/.next/server/app/api/v1/packages/route.js +28 -4
  100. package/.next/standalone/.next/server/app/api/v1/page-capture/route.js +1 -1
  101. package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js +27 -12
  102. package/.next/standalone/.next/server/app/api/v1/profile/location/route.js +7 -0
  103. package/.next/standalone/.next/server/app/api/v1/profile/route.js +7 -0
  104. package/.next/standalone/.next/server/app/api/v1/providers/[provider]/models/route.js +585 -58
  105. package/.next/standalone/.next/server/app/api/v1/providers/[provider]/probe/route.js +7 -0
  106. package/.next/standalone/.next/server/app/api/v1/providers/github-copilot/auth/route.js +7 -0
  107. package/.next/standalone/.next/server/app/api/v1/providers/route.js +7 -0
  108. package/.next/standalone/.next/server/app/api/v1/proxy-config/route.js +7 -0
  109. package/.next/standalone/.next/server/app/api/v1/redaction/init/route.js +7 -0
  110. package/.next/standalone/.next/server/app/api/v1/redaction/route.js +7 -0
  111. package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/route.js +17 -5
  112. package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/run/route.js +1 -1
  113. package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/route.js +7 -0
  114. package/.next/standalone/.next/server/app/api/v1/security/idle-timeout/route.js +7 -0
  115. package/.next/standalone/.next/server/app/api/v1/security/pin/route.js +7 -0
  116. package/.next/standalone/.next/server/app/api/v1/security/state/route.js +7 -0
  117. package/.next/standalone/.next/server/app/api/v1/security/unlock/route.js +7 -0
  118. package/.next/standalone/.next/server/app/api/v1/security/verify-pin/route.js +7 -0
  119. package/.next/standalone/.next/server/app/api/v1/skills/[id]/route.js +7 -0
  120. package/.next/standalone/.next/server/app/api/v1/skills/repos/[id]/route.js +7 -0
  121. package/.next/standalone/.next/server/app/api/v1/skills/repos/route.js +7 -0
  122. package/.next/standalone/.next/server/app/api/v1/skills/route.js +7 -0
  123. package/.next/standalone/.next/server/app/api/v1/tasks/[agent_id]/route.js +7 -0
  124. package/.next/standalone/.next/server/app/api/v1/tasks/route.js +7 -0
  125. package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route.js +7 -0
  126. package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js +12 -6
  127. package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js +125 -26
  128. package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js +1 -2
  129. package/.next/standalone/.next/server/app/api/v1/threads/route.js +17 -5
  130. package/.next/standalone/.next/server/app/api/v1/tools/route.js +1 -1
  131. package/.next/standalone/.next/server/app/api/v1/update/apply/route.js.nft.json +1 -1
  132. package/.next/standalone/.next/server/app/api/v1/voice/transcribe/route.js +17 -5
  133. package/.next/standalone/.next/server/app/api/v1/voice/tts/route.js +17 -5
  134. package/.next/standalone/.next/server/app/api/v1/watchers/[id]/route.js +17 -5
  135. package/.next/standalone/.next/server/app/api/v1/watchers/[id]/run/route.js +1 -1
  136. package/.next/standalone/.next/server/app/api/v1/watchers/route.js +1 -1
  137. package/.next/standalone/.next/server/app/page.js +27323 -27034
  138. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  139. package/.next/standalone/.next/server/app/setup/page.js +8 -0
  140. package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  141. package/.next/standalone/.next/server/app-paths-manifest.json +5 -5
  142. package/.next/standalone/.next/server/chunks/1388.js +106 -36
  143. package/.next/standalone/.next/server/chunks/2068.js +47 -10
  144. package/.next/standalone/.next/server/chunks/210.js +6 -6
  145. package/.next/standalone/.next/server/chunks/2447.js +10 -5
  146. package/.next/standalone/.next/server/chunks/2653.js +80 -1
  147. package/.next/standalone/.next/server/chunks/3042.js +10 -8
  148. package/.next/standalone/.next/server/chunks/{4540.js → 309.js} +104 -38
  149. package/.next/standalone/.next/server/chunks/{2350.js → 3272.js} +104 -37
  150. package/.next/standalone/.next/server/chunks/3524.js +150 -67
  151. package/.next/standalone/.next/server/chunks/3566.js +1 -1
  152. package/.next/standalone/.next/server/chunks/4189.js +1 -1
  153. package/.next/standalone/.next/server/chunks/4596.js +28 -4
  154. package/.next/standalone/.next/server/chunks/46.js +91 -31
  155. package/.next/standalone/.next/server/chunks/466.js +53 -7
  156. package/.next/standalone/.next/server/chunks/4955.js +30 -3
  157. package/.next/standalone/.next/server/chunks/5585.js +28 -4
  158. package/.next/standalone/.next/server/chunks/5908.js +63 -42
  159. package/.next/standalone/.next/server/chunks/6142.js +10 -2
  160. package/.next/standalone/.next/server/chunks/8461.js +10 -8
  161. package/.next/standalone/.next/server/chunks/9032.js +5 -5
  162. package/.next/standalone/.next/server/chunks/9164.js +487 -177
  163. package/.next/standalone/.next/server/chunks/9304.js +51 -12
  164. package/.next/standalone/.next/server/chunks/{423.js → 9590.js} +84 -24
  165. package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
  166. package/.next/standalone/.next/server/middleware.js +89 -21
  167. package/.next/standalone/.next/server/pages/404.html +14 -2
  168. package/.next/standalone/.next/server/pages/500.html +1 -1
  169. package/.next/standalone/.next/server/preview-props.json +3 -3
  170. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  171. package/.next/standalone/.next/static/chunks/{1395-e4a99912b8f83044.js → 1395-bfe1f3ef760c0f50.js} +54 -8
  172. package/.next/standalone/.next/static/chunks/app/{layout-9bc0b10127cb7d42.js → layout-7b24ad13faa3944b.js} +69 -2
  173. package/.next/standalone/.next/static/chunks/app/{page-213a623b37226452.js → page-2ef8d75d40eb4311.js} +10643 -10295
  174. package/.next/standalone/.next/static/css/c160ea862133acd2.css +5 -0
  175. package/.next/standalone/docs/adoption/changesets.json +2805 -0
  176. package/.next/standalone/package.json +1 -1
  177. package/CHANGELOG.md +52 -0
  178. package/api/client.models.test.ts +10 -0
  179. package/api/client.startup.test.ts +129 -0
  180. package/api/client.ts +51 -9
  181. package/api/thread-metadata.test.ts +72 -0
  182. package/api/types.ts +6 -3
  183. package/app/api/v1/providers/[provider]/models/route.test.ts +216 -6
  184. package/app/api/v1/providers/[provider]/models/route.ts +259 -40
  185. package/app/api/v1/threads/[thread_id]/route.ts +26 -23
  186. package/app/api/v1/threads/[thread_id]/run/route.ts +0 -1
  187. package/app/globals.css +119 -29
  188. package/app/layout.tsx +12 -0
  189. package/components/agents/AgentsPanel.tsx +5 -13
  190. package/components/chat/ChatView.tsx +9 -18
  191. package/components/chat/InputBar.tsx +1 -1
  192. package/components/chat/MessageBubble.tsx +13 -1
  193. package/components/chat/MessageList.test.tsx +45 -4
  194. package/components/chat/MessageList.tsx +123 -89
  195. package/components/chat/ToolList.tsx +88 -84
  196. package/components/chat/useThreadActivity.test.tsx +2 -2
  197. package/components/chat/useThreadActivity.ts +2 -2
  198. package/components/chat/useThreadData.ts +1 -30
  199. package/components/chat/useThreadMetadataPolling.test.tsx +128 -0
  200. package/components/chat/useThreadMetadataPolling.ts +50 -0
  201. package/components/chat/useUserProfileAndAgent.test.tsx +31 -0
  202. package/components/chat/useUserProfileAndAgent.ts +13 -2
  203. package/components/dashboard/DashboardPanel.tsx +1 -1
  204. package/components/dashboard/Series.tsx +34 -21
  205. package/components/dashboard/SummaryCards.tsx +1 -1
  206. package/components/integrations/NetworkSection.tsx +2 -2
  207. package/components/layout/AppShell.tsx +22 -7
  208. package/components/layout/MenuPanel.tsx +14 -24
  209. package/components/profile/ProfilePanel.tsx +2 -2
  210. package/components/settings/AppearancePanel.tsx +70 -3
  211. package/components/settings/SettingsPanel.tsx +2 -2
  212. package/components/tools/ToolsPanel.tsx +2 -7
  213. package/components/ui/AppearancePreferences.test.tsx +68 -0
  214. package/components/ui/BootScreen.test.tsx +44 -0
  215. package/components/ui/BootScreen.tsx +24 -11
  216. package/components/ui/NotificationStatus.test.tsx +2 -2
  217. package/components/ui/NotificationStatus.tsx +5 -5
  218. package/components/ui/SubTabBar.tsx +2 -3
  219. package/contexts/ThemeContext.tsx +84 -1
  220. package/hooks/useAgentSession.test.ts +12 -1
  221. package/hooks/useAgentSession.ts +6 -4
  222. package/hooks/useUrlSync.test.ts +13 -0
  223. package/hooks/useUrlSync.ts +0 -4
  224. package/lib/agents/citation-checker.test.ts +40 -2
  225. package/lib/agents/citation-checker.ts +56 -11
  226. package/lib/agents/context-boundary.ts +5 -6
  227. package/lib/agents/instruction-edits.test.ts +120 -0
  228. package/lib/agents/instruction-edits.ts +65 -42
  229. package/lib/agents/prepare/request.ts +0 -2
  230. package/lib/agents/prepare/system-prompt.test.ts +10 -0
  231. package/lib/agents/prepare/system-prompt.ts +8 -2
  232. package/lib/agents/proposals.test.ts +76 -0
  233. package/lib/agents/proposals.ts +13 -5
  234. package/lib/agents/run-thread.auto-boundary.test.ts +125 -5
  235. package/lib/agents/run-thread.ts +24 -9
  236. package/lib/agents/sqlite-checkpoint-saver.test.ts +91 -0
  237. package/lib/agents/warm-summary-background.ts +22 -2
  238. package/lib/agents/warm-topics.test.ts +155 -1
  239. package/lib/agents/warm-topics.ts +27 -7
  240. package/lib/bridges/dispatcher.ts +1 -0
  241. package/lib/bridges/message-role.test.ts +81 -0
  242. package/lib/bridges/message-role.ts +23 -10
  243. package/lib/bridges/types.ts +6 -0
  244. package/lib/bridges/whatsapp-link.test.ts +32 -0
  245. package/lib/bridges/whatsapp-link.ts +21 -0
  246. package/lib/bridges/whatsapp.inbound.test.ts +239 -0
  247. package/lib/bridges/whatsapp.sender.test.ts +80 -1
  248. package/lib/bridges/whatsapp.ts +76 -38
  249. package/lib/db/migrations.test.ts +61 -0
  250. package/lib/db/migrations.ts +13 -0
  251. package/lib/embeddings/performance.test.ts +114 -0
  252. package/lib/pricing/snapshot.test.ts +70 -0
  253. package/lib/pricing/snapshot.ts +10 -2
  254. package/lib/proxy/dispatcher.test.ts +119 -1
  255. package/lib/proxy/dispatcher.ts +22 -9
  256. package/lib/stores/agent-configs.ts +10 -5
  257. package/lib/stores/bridges.test.ts +81 -0
  258. package/lib/stores/bridges.ts +9 -8
  259. package/lib/stores/dashboard-metrics-cache.test.ts +99 -0
  260. package/lib/stores/dashboard-metrics.ts +30 -4
  261. package/lib/stores/message-embedding-jobs.test.ts +27 -0
  262. package/lib/stores/message-embedding-jobs.ts +5 -3
  263. package/lib/stores/message-usage.test.ts +21 -1
  264. package/lib/stores/pricing-cache.test.ts +31 -0
  265. package/lib/stores/pricing.ts +3 -0
  266. package/lib/stores/proxy-config.test.ts +120 -0
  267. package/lib/stores/proxy-config.ts +22 -4
  268. package/lib/stores/threads.ts +12 -8
  269. package/lib/tools/communications/calendar.test.ts +43 -2
  270. package/lib/tools/communications/calendar.ts +2 -0
  271. package/lib/tools/communications/gmail.test.ts +51 -1
  272. package/lib/tools/communications/gmail.ts +44 -2
  273. package/lib/tools/communications/outlook-calendar.ts +2 -0
  274. package/lib/tools/communications/outlook.test.ts +33 -2
  275. package/lib/tools/communications/outlook.ts +2 -0
  276. package/lib/tools/filesystem/edit-match.test.ts +133 -0
  277. package/lib/tools/filesystem/edit-match.ts +7 -2
  278. package/lib/tools/packages/default-packages.test.ts +21 -0
  279. package/lib/tools/packages/optional-package.test.ts +72 -0
  280. package/lib/tools/packages/optional-package.ts +33 -4
  281. package/lib/tools/support/result-refs.test.ts +131 -0
  282. package/lib/tools/support/result-refs.ts +41 -9
  283. package/lib/ui/navigate.test.ts +13 -0
  284. package/lib/ui/navigate.ts +10 -2
  285. package/lib/utils/source-link.test.ts +51 -0
  286. package/lib/utils/source-link.ts +45 -0
  287. package/package.json +1 -1
  288. package/.next/standalone/.next/static/css/312542a5725ba0d5.css +0 -5
  289. /package/.next/standalone/.next/static/{bMRK5y3ruT7c3WtBfCQOG → 544OFJV-q0RC6Gjgje4LT}/_buildManifest.js +0 -0
  290. /package/.next/standalone/.next/static/{bMRK5y3ruT7c3WtBfCQOG → 544OFJV-q0RC6Gjgje4LT}/_ssgManifest.js +0 -0
@@ -1152,7 +1152,7 @@ module.exports = import("@huggingface/transformers");;
1152
1152
  var __webpack_require__ = require("../../../../../webpack-runtime.js");
1153
1153
  __webpack_require__.C(exports);
1154
1154
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
1155
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(70803)));
1155
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(70803)));
1156
1156
  module.exports = __webpack_exports__;
1157
1157
 
1158
1158
  })();
@@ -232,6 +232,13 @@ module.exports = require("node:path");
232
232
 
233
233
  /***/ }),
234
234
 
235
+ /***/ 77030:
236
+ /***/ ((module) => {
237
+
238
+ module.exports = require("node:net");
239
+
240
+ /***/ }),
241
+
235
242
  /***/ 77598:
236
243
  /***/ ((module) => {
237
244
 
@@ -680,6 +680,13 @@ module.exports = require("node:path");
680
680
 
681
681
  /***/ }),
682
682
 
683
+ /***/ 77030:
684
+ /***/ ((module) => {
685
+
686
+ module.exports = require("node:net");
687
+
688
+ /***/ }),
689
+
683
690
  /***/ 77598:
684
691
  /***/ ((module) => {
685
692
 
@@ -676,6 +676,13 @@ module.exports = require("node:path");
676
676
 
677
677
  /***/ }),
678
678
 
679
+ /***/ 77030:
680
+ /***/ ((module) => {
681
+
682
+ module.exports = require("node:net");
683
+
684
+ /***/ }),
685
+
679
686
  /***/ 77598:
680
687
  /***/ ((module) => {
681
688
 
@@ -679,6 +679,13 @@ module.exports = require("node:path");
679
679
 
680
680
  /***/ }),
681
681
 
682
+ /***/ 77030:
683
+ /***/ ((module) => {
684
+
685
+ module.exports = require("node:net");
686
+
687
+ /***/ }),
688
+
682
689
  /***/ 77598:
683
690
  /***/ ((module) => {
684
691
 
@@ -676,6 +676,13 @@ module.exports = require("node:path");
676
676
 
677
677
  /***/ }),
678
678
 
679
+ /***/ 77030:
680
+ /***/ ((module) => {
681
+
682
+ module.exports = require("node:net");
683
+
684
+ /***/ }),
685
+
679
686
  /***/ 77598:
680
687
  /***/ ((module) => {
681
688
 
@@ -212,6 +212,13 @@ module.exports = require("node:path");
212
212
 
213
213
  /***/ }),
214
214
 
215
+ /***/ 77030:
216
+ /***/ ((module) => {
217
+
218
+ module.exports = require("node:net");
219
+
220
+ /***/ }),
221
+
215
222
  /***/ 77598:
216
223
  /***/ ((module) => {
217
224
 
@@ -676,6 +676,13 @@ module.exports = require("node:path");
676
676
 
677
677
  /***/ }),
678
678
 
679
+ /***/ 77030:
680
+ /***/ ((module) => {
681
+
682
+ module.exports = require("node:net");
683
+
684
+ /***/ }),
685
+
679
686
  /***/ 77598:
680
687
  /***/ ((module) => {
681
688
 
@@ -680,6 +680,13 @@ module.exports = require("node:path");
680
680
 
681
681
  /***/ }),
682
682
 
683
+ /***/ 77030:
684
+ /***/ ((module) => {
685
+
686
+ module.exports = require("node:net");
687
+
688
+ /***/ }),
689
+
683
690
  /***/ 77598:
684
691
  /***/ ((module) => {
685
692
 
@@ -656,6 +656,13 @@ module.exports = require("node:path");
656
656
 
657
657
  /***/ }),
658
658
 
659
+ /***/ 77030:
660
+ /***/ ((module) => {
661
+
662
+ module.exports = require("node:net");
663
+
664
+ /***/ }),
665
+
659
666
  /***/ 77598:
660
667
  /***/ ((module) => {
661
668
 
@@ -1152,7 +1152,7 @@ module.exports = import("@huggingface/transformers");;
1152
1152
  var __webpack_require__ = require("../../../../../webpack-runtime.js");
1153
1153
  __webpack_require__.C(exports);
1154
1154
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
1155
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(98037)));
1155
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(98037)));
1156
1156
  module.exports = __webpack_exports__;
1157
1157
 
1158
1158
  })();
@@ -1152,7 +1152,7 @@ module.exports = import("@huggingface/transformers");;
1152
1152
  var __webpack_require__ = require("../../../../../webpack-runtime.js");
1153
1153
  __webpack_require__.C(exports);
1154
1154
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
1155
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(82141)));
1155
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(82141)));
1156
1156
  module.exports = __webpack_exports__;
1157
1157
 
1158
1158
  })();
@@ -1152,7 +1152,7 @@ module.exports = import("@huggingface/transformers");;
1152
1152
  var __webpack_require__ = require("../../../../../webpack-runtime.js");
1153
1153
  __webpack_require__.C(exports);
1154
1154
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
1155
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(75073)));
1155
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(75073)));
1156
1156
  module.exports = __webpack_exports__;
1157
1157
 
1158
1158
  })();
@@ -898,7 +898,7 @@ module.exports = import("@huggingface/transformers");;
898
898
  var __webpack_require__ = require("../../../../webpack-runtime.js");
899
899
  __webpack_require__.C(exports);
900
900
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
901
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(58683)));
901
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(58683)));
902
902
  module.exports = __webpack_exports__;
903
903
 
904
904
  })();
@@ -842,7 +842,7 @@ module.exports = import("@huggingface/transformers");;
842
842
  var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
843
843
  __webpack_require__.C(exports);
844
844
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
845
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(63021)));
845
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(63021)));
846
846
  module.exports = __webpack_exports__;
847
847
 
848
848
  })();
@@ -807,7 +807,7 @@ module.exports = import("@huggingface/transformers");;
807
807
  var __webpack_require__ = require("../../../../../../webpack-runtime.js");
808
808
  __webpack_require__.C(exports);
809
809
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
810
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(99007)));
810
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(99007)));
811
811
  module.exports = __webpack_exports__;
812
812
 
813
813
  })();
@@ -846,7 +846,7 @@ module.exports = import("@huggingface/transformers");;
846
846
  var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
847
847
  __webpack_require__.C(exports);
848
848
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
849
- var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,540,4189,4955,5908,5120,1388], () => (__webpack_exec__(79423)));
849
+ var __webpack_exports__ = __webpack_require__.X(0, [2970,7377,1813,7981,513,6299,563,8808,7547,4992,46,3042,3566,2068,4377,1638,5585,9304,3524,3175,6142,4189,540,4955,5908,5120,1388], () => (__webpack_exec__(79423)));
850
850
  module.exports = __webpack_exports__;
851
851
 
852
852
  })();
@@ -801,6 +801,13 @@ module.exports = require("node:path");
801
801
 
802
802
  /***/ }),
803
803
 
804
+ /***/ 77030:
805
+ /***/ ((module) => {
806
+
807
+ module.exports = require("node:net");
808
+
809
+ /***/ }),
810
+
804
811
  /***/ 77598:
805
812
  /***/ ((module) => {
806
813
 
@@ -777,6 +777,13 @@ module.exports = require("node:path");
777
777
 
778
778
  /***/ }),
779
779
 
780
+ /***/ 77030:
781
+ /***/ ((module) => {
782
+
783
+ module.exports = require("node:net");
784
+
785
+ /***/ }),
786
+
780
787
  /***/ 77598:
781
788
  /***/ ((module) => {
782
789
 
@@ -786,6 +786,13 @@ module.exports = require("node:path");
786
786
 
787
787
  /***/ }),
788
788
 
789
+ /***/ 77030:
790
+ /***/ ((module) => {
791
+
792
+ module.exports = require("node:net");
793
+
794
+ /***/ }),
795
+
789
796
  /***/ 77598:
790
797
  /***/ ((module) => {
791
798
 
@@ -466,12 +466,17 @@ function upsertAgentConfigTransaction(input) {
466
466
  const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)();
467
467
  const existing = getAgentConfig(input.id);
468
468
  const created_at = existing?.created_at ?? t;
469
- const mbti = input.adaptive_mbti ?? toMbti(existing?.adaptive_mbti) ?? "INTJ";
469
+ const existingMbti = toMbti(existing?.adaptive_mbti);
470
+ const mbti = input.adaptive_mbti ?? existingMbti ?? "INTJ";
470
471
  const preset = _lib_agents_adaptive_persona_presets__WEBPACK_IMPORTED_MODULE_2__/* .MBTI_PRESETS */ .e[mbti];
471
- const strength = input.adaptive_persona_strength ?? preset.strength;
472
- const empathy = input.adaptive_empathy ?? preset.empathy;
473
- const expressiveness = input.adaptive_expressiveness ?? preset.expressiveness;
474
- const verbosity = input.adaptive_verbosity ?? preset.verbosity;
472
+ // Omitted sliders keep their tuned values; they only fall back to the
473
+ // preset when the type changes or the agent is new. Otherwise every
474
+ // partial update (approved proposals, tool edits) reset them.
475
+ const keepTuned = existing !== null && existing !== undefined && mbti === existingMbti;
476
+ const strength = input.adaptive_persona_strength ?? (keepTuned ? existing.adaptive_persona_strength : preset.strength);
477
+ const empathy = input.adaptive_empathy ?? (keepTuned ? existing.adaptive_empathy : preset.empathy);
478
+ const expressiveness = input.adaptive_expressiveness ?? (keepTuned ? existing.adaptive_expressiveness : preset.expressiveness);
479
+ const verbosity = input.adaptive_verbosity ?? (keepTuned ? existing.adaptive_verbosity : preset.verbosity);
475
480
  if (input.is_default) db.prepare("UPDATE agent_configs SET is_default=0").run();
476
481
  // harness_id: explicit `undefined` means "keep existing"; explicit `null`
477
482
  // means "use the global default". Empty string is normalised to null too,
@@ -1153,6 +1158,13 @@ module.exports = require("node:path");
1153
1158
 
1154
1159
  /***/ }),
1155
1160
 
1161
+ /***/ 77030:
1162
+ /***/ ((module) => {
1163
+
1164
+ module.exports = require("node:net");
1165
+
1166
+ /***/ }),
1167
+
1156
1168
  /***/ 77598:
1157
1169
  /***/ ((module) => {
1158
1170
 
@@ -833,6 +833,13 @@ module.exports = require("node:path");
833
833
 
834
834
  /***/ }),
835
835
 
836
+ /***/ 77030:
837
+ /***/ ((module) => {
838
+
839
+ module.exports = require("node:net");
840
+
841
+ /***/ }),
842
+
836
843
  /***/ 77598:
837
844
  /***/ ((module) => {
838
845
 
@@ -635,6 +635,13 @@ module.exports = require("node:path");
635
635
 
636
636
  /***/ }),
637
637
 
638
+ /***/ 77030:
639
+ /***/ ((module) => {
640
+
641
+ module.exports = require("node:net");
642
+
643
+ /***/ }),
644
+
638
645
  /***/ 77598:
639
646
  /***/ ((module) => {
640
647
 
@@ -1035,6 +1035,13 @@ module.exports = require("node:path");
1035
1035
 
1036
1036
  /***/ }),
1037
1037
 
1038
+ /***/ 77030:
1039
+ /***/ ((module) => {
1040
+
1041
+ module.exports = require("node:net");
1042
+
1043
+ /***/ }),
1044
+
1038
1045
  /***/ 77598:
1039
1046
  /***/ ((module) => {
1040
1047
 
@@ -879,6 +879,13 @@ module.exports = require("node:path");
879
879
 
880
880
  /***/ }),
881
881
 
882
+ /***/ 77030:
883
+ /***/ ((module) => {
884
+
885
+ module.exports = require("node:net");
886
+
887
+ /***/ }),
888
+
882
889
  /***/ 77598:
883
890
  /***/ ((module) => {
884
891
 
@@ -378,6 +378,13 @@ module.exports = require("node:path");
378
378
 
379
379
  /***/ }),
380
380
 
381
+ /***/ 77030:
382
+ /***/ ((module) => {
383
+
384
+ module.exports = require("node:net");
385
+
386
+ /***/ }),
387
+
381
388
  /***/ 77598:
382
389
  /***/ ((module) => {
383
390
 
@@ -914,6 +914,13 @@ module.exports = require("node:path");
914
914
 
915
915
  /***/ }),
916
916
 
917
+ /***/ 77030:
918
+ /***/ ((module) => {
919
+
920
+ module.exports = require("node:net");
921
+
922
+ /***/ }),
923
+
917
924
  /***/ 77598:
918
925
  /***/ ((module) => {
919
926
 
@@ -810,6 +810,13 @@ module.exports = require("node:path");
810
810
 
811
811
  /***/ }),
812
812
 
813
+ /***/ 77030:
814
+ /***/ ((module) => {
815
+
816
+ module.exports = require("node:net");
817
+
818
+ /***/ }),
819
+
813
820
  /***/ 77598:
814
821
  /***/ ((module) => {
815
822
 
@@ -291,6 +291,13 @@ module.exports = require("node:path");
291
291
 
292
292
  /***/ }),
293
293
 
294
+ /***/ 77030:
295
+ /***/ ((module) => {
296
+
297
+ module.exports = require("node:net");
298
+
299
+ /***/ }),
300
+
294
301
  /***/ 77169:
295
302
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
296
303
 
@@ -845,12 +845,17 @@ function upsertAgentConfigTransaction(input) {
845
845
  const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)();
846
846
  const existing = getAgentConfig(input.id);
847
847
  const created_at = existing?.created_at ?? t;
848
- const mbti = input.adaptive_mbti ?? toMbti(existing?.adaptive_mbti) ?? "INTJ";
848
+ const existingMbti = toMbti(existing?.adaptive_mbti);
849
+ const mbti = input.adaptive_mbti ?? existingMbti ?? "INTJ";
849
850
  const preset = _lib_agents_adaptive_persona_presets__WEBPACK_IMPORTED_MODULE_2__/* .MBTI_PRESETS */ .e[mbti];
850
- const strength = input.adaptive_persona_strength ?? preset.strength;
851
- const empathy = input.adaptive_empathy ?? preset.empathy;
852
- const expressiveness = input.adaptive_expressiveness ?? preset.expressiveness;
853
- const verbosity = input.adaptive_verbosity ?? preset.verbosity;
851
+ // Omitted sliders keep their tuned values; they only fall back to the
852
+ // preset when the type changes or the agent is new. Otherwise every
853
+ // partial update (approved proposals, tool edits) reset them.
854
+ const keepTuned = existing !== null && existing !== undefined && mbti === existingMbti;
855
+ const strength = input.adaptive_persona_strength ?? (keepTuned ? existing.adaptive_persona_strength : preset.strength);
856
+ const empathy = input.adaptive_empathy ?? (keepTuned ? existing.adaptive_empathy : preset.empathy);
857
+ const expressiveness = input.adaptive_expressiveness ?? (keepTuned ? existing.adaptive_expressiveness : preset.expressiveness);
858
+ const verbosity = input.adaptive_verbosity ?? (keepTuned ? existing.adaptive_verbosity : preset.verbosity);
854
859
  if (input.is_default) db.prepare("UPDATE agent_configs SET is_default=0").run();
855
860
  // harness_id: explicit `undefined` means "keep existing"; explicit `null`
856
861
  // means "use the global default". Empty string is normalised to null too,
@@ -1088,6 +1093,13 @@ module.exports = require("node:path");
1088
1093
 
1089
1094
  /***/ }),
1090
1095
 
1096
+ /***/ 77030:
1097
+ /***/ ((module) => {
1098
+
1099
+ module.exports = require("node:net");
1100
+
1101
+ /***/ }),
1102
+
1091
1103
  /***/ 77598:
1092
1104
  /***/ ((module) => {
1093
1105
 
@@ -361,6 +361,13 @@ module.exports = require("node:path");
361
361
 
362
362
  /***/ }),
363
363
 
364
+ /***/ 77030:
365
+ /***/ ((module) => {
366
+
367
+ module.exports = require("node:net");
368
+
369
+ /***/ }),
370
+
364
371
  /***/ 77598:
365
372
  /***/ ((module) => {
366
373
 
@@ -1043,12 +1043,17 @@ function upsertAgentConfigTransaction(input) {
1043
1043
  const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)();
1044
1044
  const existing = getAgentConfig(input.id);
1045
1045
  const created_at = existing?.created_at ?? t;
1046
- const mbti = input.adaptive_mbti ?? toMbti(existing?.adaptive_mbti) ?? "INTJ";
1046
+ const existingMbti = toMbti(existing?.adaptive_mbti);
1047
+ const mbti = input.adaptive_mbti ?? existingMbti ?? "INTJ";
1047
1048
  const preset = _lib_agents_adaptive_persona_presets__WEBPACK_IMPORTED_MODULE_2__/* .MBTI_PRESETS */ .e[mbti];
1048
- const strength = input.adaptive_persona_strength ?? preset.strength;
1049
- const empathy = input.adaptive_empathy ?? preset.empathy;
1050
- const expressiveness = input.adaptive_expressiveness ?? preset.expressiveness;
1051
- const verbosity = input.adaptive_verbosity ?? preset.verbosity;
1049
+ // Omitted sliders keep their tuned values; they only fall back to the
1050
+ // preset when the type changes or the agent is new. Otherwise every
1051
+ // partial update (approved proposals, tool edits) reset them.
1052
+ const keepTuned = existing !== null && existing !== undefined && mbti === existingMbti;
1053
+ const strength = input.adaptive_persona_strength ?? (keepTuned ? existing.adaptive_persona_strength : preset.strength);
1054
+ const empathy = input.adaptive_empathy ?? (keepTuned ? existing.adaptive_empathy : preset.empathy);
1055
+ const expressiveness = input.adaptive_expressiveness ?? (keepTuned ? existing.adaptive_expressiveness : preset.expressiveness);
1056
+ const verbosity = input.adaptive_verbosity ?? (keepTuned ? existing.adaptive_verbosity : preset.verbosity);
1052
1057
  if (input.is_default) db.prepare("UPDATE agent_configs SET is_default=0").run();
1053
1058
  // harness_id: explicit `undefined` means "keep existing"; explicit `null`
1054
1059
  // means "use the global default". Empty string is normalised to null too,
@@ -1421,6 +1426,13 @@ module.exports = require("node:path");
1421
1426
 
1422
1427
  /***/ }),
1423
1428
 
1429
+ /***/ 77030:
1430
+ /***/ ((module) => {
1431
+
1432
+ module.exports = require("node:net");
1433
+
1434
+ /***/ }),
1435
+
1424
1436
  /***/ 77598:
1425
1437
  /***/ ((module) => {
1426
1438
 
@@ -599,12 +599,17 @@ function upsertAgentConfigTransaction(input) {
599
599
  const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)();
600
600
  const existing = getAgentConfig(input.id);
601
601
  const created_at = existing?.created_at ?? t;
602
- const mbti = input.adaptive_mbti ?? toMbti(existing?.adaptive_mbti) ?? "INTJ";
602
+ const existingMbti = toMbti(existing?.adaptive_mbti);
603
+ const mbti = input.adaptive_mbti ?? existingMbti ?? "INTJ";
603
604
  const preset = _lib_agents_adaptive_persona_presets__WEBPACK_IMPORTED_MODULE_2__/* .MBTI_PRESETS */ .e[mbti];
604
- const strength = input.adaptive_persona_strength ?? preset.strength;
605
- const empathy = input.adaptive_empathy ?? preset.empathy;
606
- const expressiveness = input.adaptive_expressiveness ?? preset.expressiveness;
607
- const verbosity = input.adaptive_verbosity ?? preset.verbosity;
605
+ // Omitted sliders keep their tuned values; they only fall back to the
606
+ // preset when the type changes or the agent is new. Otherwise every
607
+ // partial update (approved proposals, tool edits) reset them.
608
+ const keepTuned = existing !== null && existing !== undefined && mbti === existingMbti;
609
+ const strength = input.adaptive_persona_strength ?? (keepTuned ? existing.adaptive_persona_strength : preset.strength);
610
+ const empathy = input.adaptive_empathy ?? (keepTuned ? existing.adaptive_empathy : preset.empathy);
611
+ const expressiveness = input.adaptive_expressiveness ?? (keepTuned ? existing.adaptive_expressiveness : preset.expressiveness);
612
+ const verbosity = input.adaptive_verbosity ?? (keepTuned ? existing.adaptive_verbosity : preset.verbosity);
608
613
  if (input.is_default) db.prepare("UPDATE agent_configs SET is_default=0").run();
609
614
  // harness_id: explicit `undefined` means "keep existing"; explicit `null`
610
615
  // means "use the global default". Empty string is normalised to null too,
@@ -1407,6 +1412,13 @@ module.exports = require("node:path");
1407
1412
 
1408
1413
  /***/ }),
1409
1414
 
1415
+ /***/ 77030:
1416
+ /***/ ((module) => {
1417
+
1418
+ module.exports = require("node:net");
1419
+
1420
+ /***/ }),
1421
+
1410
1422
  /***/ 77598:
1411
1423
  /***/ ((module) => {
1412
1424
 
@@ -782,6 +782,13 @@ module.exports = require("node:path");
782
782
 
783
783
  /***/ }),
784
784
 
785
+ /***/ 77030:
786
+ /***/ ((module) => {
787
+
788
+ module.exports = require("node:net");
789
+
790
+ /***/ }),
791
+
785
792
  /***/ 77598:
786
793
  /***/ ((module) => {
787
794
 
@@ -694,6 +694,13 @@ module.exports = require("node:path");
694
694
 
695
695
  /***/ }),
696
696
 
697
+ /***/ 77030:
698
+ /***/ ((module) => {
699
+
700
+ module.exports = require("node:net");
701
+
702
+ /***/ }),
703
+
697
704
  /***/ 77598:
698
705
  /***/ ((module) => {
699
706
 
@@ -804,6 +804,13 @@ module.exports = require("node:path");
804
804
 
805
805
  /***/ }),
806
806
 
807
+ /***/ 77030:
808
+ /***/ ((module) => {
809
+
810
+ module.exports = require("node:net");
811
+
812
+ /***/ }),
813
+
807
814
  /***/ 77598:
808
815
  /***/ ((module) => {
809
816
 
@@ -711,6 +711,13 @@ module.exports = require("node:path");
711
711
 
712
712
  /***/ }),
713
713
 
714
+ /***/ 77030:
715
+ /***/ ((module) => {
716
+
717
+ module.exports = require("node:net");
718
+
719
+ /***/ }),
720
+
714
721
  /***/ 77598:
715
722
  /***/ ((module) => {
716
723
 
@@ -340,6 +340,13 @@ module.exports = require("node:path");
340
340
 
341
341
  /***/ }),
342
342
 
343
+ /***/ 77030:
344
+ /***/ ((module) => {
345
+
346
+ module.exports = require("node:net");
347
+
348
+ /***/ }),
349
+
343
350
  /***/ 77598:
344
351
  /***/ ((module) => {
345
352
 
@@ -1251,6 +1251,13 @@ module.exports = require("node:path");
1251
1251
 
1252
1252
  /***/ }),
1253
1253
 
1254
+ /***/ 77030:
1255
+ /***/ ((module) => {
1256
+
1257
+ module.exports = require("node:net");
1258
+
1259
+ /***/ }),
1260
+
1254
1261
  /***/ 77598:
1255
1262
  /***/ ((module) => {
1256
1263