@circuitwall/jarela 2.3.0 → 2.4.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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +4 -4
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/v1/access/[identity]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/access/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/compact/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/display-filters/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/agents/[id]/thread/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/agents/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/[hostname]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/allowed-sites/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/artifacts/lifecycle/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js +26 -32
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/chats/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/[remote_jid]/route.js +18 -7
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/ignores/route.js +18 -7
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js +26 -32
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/lookup/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js +27 -33
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/pair/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js +26 -32
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/[route_id]/route.js +28 -12
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/routes/route.js +28 -12
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js +26 -32
- package/.next/standalone/.next/server/app/api/v1/bridges/[id]/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/kinds/route.js +9 -2
- package/.next/standalone/.next/server/app/api/v1/bridges/kinds/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js +19 -7
- package/.next/standalone/.next/server/app/api/v1/bridges/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/dashboard/metrics/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/dashboard/pricing/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/documents/search/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/documents/settings/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/env-sync/allowlist/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/env-sync/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/events/route.js +26 -32
- package/.next/standalone/.next/server/app/api/v1/events/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/extension/browser/activate/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/foreground/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/history/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/poll/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/progress/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/result/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/retry/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/status/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/extension/browser/tabs/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/harnesses/[id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/harnesses/default/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/harnesses/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/health/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/integrations/[name]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/callback/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/start/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/gmail/oauth/status/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/callback/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/start/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/outlook/oauth/status/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/integrations/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/lifecycle/adoption/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/maps/embed/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/[name]/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/mcp-servers/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/memory/[namespace]/[key]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/memory/policy/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/memory/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/memory/search/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/models/[name]/compact-threads/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/models/[name]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/models/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/pending-actions/[id]/approve/route.js +27 -12
- package/.next/standalone/.next/server/app/api/v1/profile/location/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/profile/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/models/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/providers/[provider]/probe/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/providers/github-copilot/auth/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/providers/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/proxy-config/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/redaction/init/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/redaction/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/[id]/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/scheduled-tasks/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/security/idle-timeout/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/security/pin/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/security/state/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/security/unlock/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/security/verify-pin/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/skills/[id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/skills/repos/[id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/skills/repos/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/skills/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/tasks/[agent_id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/tasks/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/activity/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/context-pin/route.js +12 -6
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/v1/threads/[thread_id]/run/route.js +0 -1
- package/.next/standalone/.next/server/app/api/v1/threads/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/update/apply/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/voice/transcribe/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/voice/tts/route.js +17 -5
- package/.next/standalone/.next/server/app/api/v1/watchers/[id]/route.js +17 -5
- package/.next/standalone/.next/server/app/page.js +322 -275
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup/page.js +8 -0
- package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +4 -4
- package/.next/standalone/.next/server/chunks/1388.js +106 -36
- package/.next/standalone/.next/server/chunks/2068.js +47 -10
- package/.next/standalone/.next/server/chunks/210.js +6 -6
- package/.next/standalone/.next/server/chunks/2447.js +10 -5
- package/.next/standalone/.next/server/chunks/2471.js +17 -17
- package/.next/standalone/.next/server/chunks/3042.js +10 -8
- package/.next/standalone/.next/server/chunks/{4540.js → 309.js} +104 -38
- package/.next/standalone/.next/server/chunks/{2350.js → 3272.js} +104 -37
- package/.next/standalone/.next/server/chunks/3399.js +525 -525
- package/.next/standalone/.next/server/chunks/3524.js +150 -67
- package/.next/standalone/.next/server/chunks/4189.js +1 -1
- package/.next/standalone/.next/server/chunks/4508.js +2 -2
- package/.next/standalone/.next/server/chunks/46.js +73 -28
- package/.next/standalone/.next/server/chunks/5908.js +63 -42
- package/.next/standalone/.next/server/chunks/6142.js +10 -2
- package/.next/standalone/.next/server/chunks/6649.js +1 -1
- package/.next/standalone/.next/server/chunks/8461.js +10 -8
- package/.next/standalone/.next/server/chunks/9032.js +5 -5
- package/.next/standalone/.next/server/chunks/9164.js +435 -176
- package/.next/standalone/.next/server/chunks/9304.js +51 -12
- package/.next/standalone/.next/server/chunks/{423.js → 9590.js} +66 -21
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware.js +71 -18
- package/.next/standalone/.next/server/pages/404.html +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/preview-props.json +3 -3
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/app/{page-213a623b37226452.js → page-04748847c6ff866f.js} +171 -132
- package/.next/standalone/.next/static/css/{312542a5725ba0d5.css → 2669e8744cc8c212.css} +2 -2
- package/.next/standalone/docs/adoption/changesets.json +49 -0
- package/.next/standalone/package.json +1 -1
- package/CHANGELOG.md +19 -0
- package/app/api/v1/threads/[thread_id]/run/route.ts +0 -1
- package/components/chat/MessageBubble.tsx +12 -0
- package/components/integrations/NetworkSection.tsx +2 -2
- package/lib/agents/citation-checker.test.ts +40 -2
- package/lib/agents/citation-checker.ts +56 -11
- package/lib/agents/context-boundary.ts +5 -6
- package/lib/agents/instruction-edits.test.ts +120 -0
- package/lib/agents/instruction-edits.ts +65 -42
- package/lib/agents/prepare/request.ts +0 -2
- package/lib/agents/prepare/system-prompt.test.ts +10 -0
- package/lib/agents/prepare/system-prompt.ts +8 -2
- package/lib/agents/proposals.test.ts +76 -0
- package/lib/agents/proposals.ts +13 -5
- package/lib/agents/run-thread.auto-boundary.test.ts +125 -5
- package/lib/agents/run-thread.ts +24 -9
- package/lib/agents/sqlite-checkpoint-saver.test.ts +91 -0
- package/lib/agents/warm-summary-background.ts +22 -2
- package/lib/agents/warm-topics.test.ts +155 -1
- package/lib/agents/warm-topics.ts +27 -7
- package/lib/bridges/dispatcher.ts +1 -0
- package/lib/bridges/message-role.test.ts +81 -0
- package/lib/bridges/message-role.ts +23 -10
- package/lib/bridges/types.ts +6 -0
- package/lib/bridges/whatsapp-link.test.ts +32 -0
- package/lib/bridges/whatsapp-link.ts +21 -0
- package/lib/bridges/whatsapp.inbound.test.ts +239 -0
- package/lib/bridges/whatsapp.sender.test.ts +80 -1
- package/lib/bridges/whatsapp.ts +76 -38
- package/lib/pricing/snapshot.test.ts +70 -0
- package/lib/pricing/snapshot.ts +10 -2
- package/lib/proxy/dispatcher.test.ts +119 -1
- package/lib/proxy/dispatcher.ts +22 -9
- package/lib/stores/agent-configs.ts +10 -5
- package/lib/stores/bridges.test.ts +81 -0
- package/lib/stores/bridges.ts +9 -8
- package/lib/stores/proxy-config.test.ts +120 -0
- package/lib/stores/proxy-config.ts +22 -4
- package/lib/stores/threads.ts +12 -8
- package/lib/tools/communications/calendar.test.ts +43 -2
- package/lib/tools/communications/calendar.ts +2 -0
- package/lib/tools/communications/gmail.test.ts +51 -1
- package/lib/tools/communications/gmail.ts +44 -2
- package/lib/tools/communications/outlook-calendar.ts +2 -0
- package/lib/tools/communications/outlook.test.ts +33 -2
- package/lib/tools/communications/outlook.ts +2 -0
- package/lib/tools/filesystem/edit-match.test.ts +133 -0
- package/lib/tools/filesystem/edit-match.ts +7 -2
- package/lib/tools/support/result-refs.test.ts +131 -0
- package/lib/tools/support/result-refs.ts +41 -9
- package/lib/utils/source-link.test.ts +51 -0
- package/lib/utils/source-link.ts +45 -0
- package/package.json +1 -1
- /package/.next/standalone/.next/static/{bMRK5y3ruT7c3WtBfCQOG → hwujW4hR1b-r3k5WdMxZO}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{bMRK5y3ruT7c3WtBfCQOG → hwujW4hR1b-r3k5WdMxZO}/_ssgManifest.js +0 -0
|
@@ -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
|
|
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
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
const
|
|
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
|
|
|
@@ -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
|
|
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
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
const
|
|
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
|
|
|
@@ -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
|
|
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
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
const
|
|
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
|
|
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
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
const
|
|
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
|
|
|
@@ -372,12 +372,13 @@ function applyUpdateAgentTools(payload) {
|
|
|
372
372
|
ok: false,
|
|
373
373
|
detail: "mode must be add or replace"
|
|
374
374
|
};
|
|
375
|
+
const requested = p.tools.filter((tool)=>typeof tool === "string").map((tool)=>tool.trim()).filter(Boolean);
|
|
375
376
|
const nextTools = mode === "replace" ? [
|
|
376
|
-
...new Set(
|
|
377
|
+
...new Set(requested)
|
|
377
378
|
] : [
|
|
378
379
|
...new Set([
|
|
379
380
|
...before,
|
|
380
|
-
...
|
|
381
|
+
...requested
|
|
381
382
|
])
|
|
382
383
|
];
|
|
383
384
|
(0,agent_configs/* upsertAgentConfig */.BM)({
|
|
@@ -406,11 +407,19 @@ function applyUpdateAgent(payload) {
|
|
|
406
407
|
ok: false,
|
|
407
408
|
detail: "agent_id required"
|
|
408
409
|
};
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
410
|
+
for (const field of [
|
|
411
|
+
"warm_summary_limit",
|
|
412
|
+
"hot_turn_limit",
|
|
413
|
+
"history_limit",
|
|
414
|
+
"history_window_hours"
|
|
415
|
+
]){
|
|
416
|
+
const value = p[field];
|
|
417
|
+
if (value !== undefined && (!Number.isInteger(value) || value < 0)) {
|
|
418
|
+
return {
|
|
419
|
+
ok: false,
|
|
420
|
+
detail: `${field} must be a nonnegative integer`
|
|
421
|
+
};
|
|
422
|
+
}
|
|
414
423
|
}
|
|
415
424
|
const editModes = [
|
|
416
425
|
p.instructions !== undefined,
|
|
@@ -465,6 +474,7 @@ function applyUpdateAgent(payload) {
|
|
|
465
474
|
model_config_name: existing.model_config_name,
|
|
466
475
|
history_limit: p.history_limit ?? existing.history_limit,
|
|
467
476
|
history_window_hours: p.history_window_hours ?? existing.history_window_hours,
|
|
477
|
+
hot_turn_limit: p.hot_turn_limit,
|
|
468
478
|
warm_summary_limit: p.warm_summary_limit ?? existing.warm_summary_limit,
|
|
469
479
|
harness_id: p.harness_id
|
|
470
480
|
});
|
|
@@ -1382,12 +1392,17 @@ function upsertAgentConfigTransaction(input) {
|
|
|
1382
1392
|
const db = (0,_lib_db__WEBPACK_IMPORTED_MODULE_0__/* .getDb */ .Lf)();
|
|
1383
1393
|
const existing = getAgentConfig(input.id);
|
|
1384
1394
|
const created_at = existing?.created_at ?? t;
|
|
1385
|
-
const
|
|
1395
|
+
const existingMbti = toMbti(existing?.adaptive_mbti);
|
|
1396
|
+
const mbti = input.adaptive_mbti ?? existingMbti ?? "INTJ";
|
|
1386
1397
|
const preset = _lib_agents_adaptive_persona_presets__WEBPACK_IMPORTED_MODULE_2__/* .MBTI_PRESETS */ .e[mbti];
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
const
|
|
1398
|
+
// Omitted sliders keep their tuned values; they only fall back to the
|
|
1399
|
+
// preset when the type changes or the agent is new. Otherwise every
|
|
1400
|
+
// partial update (approved proposals, tool edits) reset them.
|
|
1401
|
+
const keepTuned = existing !== null && existing !== undefined && mbti === existingMbti;
|
|
1402
|
+
const strength = input.adaptive_persona_strength ?? (keepTuned ? existing.adaptive_persona_strength : preset.strength);
|
|
1403
|
+
const empathy = input.adaptive_empathy ?? (keepTuned ? existing.adaptive_empathy : preset.empathy);
|
|
1404
|
+
const expressiveness = input.adaptive_expressiveness ?? (keepTuned ? existing.adaptive_expressiveness : preset.expressiveness);
|
|
1405
|
+
const verbosity = input.adaptive_verbosity ?? (keepTuned ? existing.adaptive_verbosity : preset.verbosity);
|
|
1391
1406
|
if (input.is_default) db.prepare("UPDATE agent_configs SET is_default=0").run();
|
|
1392
1407
|
// harness_id: explicit `undefined` means "keep existing"; explicit `null`
|
|
1393
1408
|
// means "use the global default". Empty string is normalised to null too,
|