openclaw-cortex 3.2.5 → 3.2.6
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/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/control-ui/_app/immutable/assets/0.r_iI4_BJ.css +1 -0
- package/dist/control-ui/_app/immutable/chunks/{BhDMmVbO.js → C4FsZxvN.js} +1 -1
- package/dist/control-ui/_app/immutable/entry/{app.D7kdWIZ9.js → app.BP81uCNW.js} +2 -2
- package/dist/control-ui/_app/immutable/entry/start.BkyZMPcP.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{0.D6FVZzqA.js → 0.BobSoCVT.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{1.C9c9_PmZ.js → 1.DXqGuW0y.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{15.CQ6Hk24N.js → 15.BcW25Cjx.js} +1 -1
- package/dist/control-ui/_app/version.json +1 -1
- package/dist/control-ui/index.html +6 -6
- package/dist/control-ui/sw.js +4 -78
- package/dist/plugin-sdk/{accounts-vV5Gfd26.js → accounts-CRs7kbLB.js} +1 -1
- package/dist/plugin-sdk/{accounts-iN-dbgw4.js → accounts-b1Cok6r_.js} +3 -3
- package/dist/plugin-sdk/{accounts-LxMkgia0.js → accounts-uAqOguyH.js} +1 -1
- package/dist/plugin-sdk/{active-listener-Bh0LXjEI.js → active-listener-BdVTYHTN.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-CbyigN8s.js → agent-scope-Bs92YR2y.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation--_SHlBvO.js → api-key-rotation-wd2Jnynp.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-Cs-ml8zg.js → audio-preflight-CblfMzuT.js} +25 -25
- package/dist/plugin-sdk/{bindings-EiVe9I7R.js → bindings-BiEEaTNG.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-PV3vhwo2.js → channel-activity-DHI8R5Xg.js} +1 -1
- package/dist/plugin-sdk/{channel-web-21Mv-TmV.js → channel-web-B06HVGIL.js} +22 -22
- package/dist/plugin-sdk/{chrome-DY36v1wL.js → chrome-ORXV3sOi.js} +3 -3
- package/dist/plugin-sdk/{chunk-CyOBR4uk.js → chunk-C9J4kyVw.js} +1 -1
- package/dist/plugin-sdk/{command-format-C5kdEGEu.js → command-format-BTciq6Gg.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-OichNmLJ.js → commands-registry-B03cVRjI.js} +3 -3
- package/dist/plugin-sdk/{common-BnJL1iD6.js → common-xLIrQlvS.js} +2 -2
- package/dist/plugin-sdk/{config-BG3Dq3SQ.js → config-gGD5Rkaw.js} +9 -9
- package/dist/plugin-sdk/{deliver-BtCdGBea.js → deliver-DrIvPqH5.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-DFXnVf2I.js → diagnostic-oBxO5N68.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-D3UMk9-G.js → fs-safe--E2UxVCE.js} +1 -1
- package/dist/plugin-sdk/{image-CcHh2-91.js → image-psst3EfB.js} +4 -4
- package/dist/plugin-sdk/index.js +52 -52
- package/dist/plugin-sdk/{ir-CyBaWJwF.js → ir-B7KEB-SH.js} +4 -4
- package/dist/plugin-sdk/{local-roots-BO0Dyqgm.js → local-roots-BCWc25rb.js} +3 -3
- package/dist/plugin-sdk/{login-gAP1E9vw.js → login-B3Mf_yyo.js} +7 -7
- package/dist/plugin-sdk/{login-qr-C_TnVe07.js → login-qr-BwyNiRRo.js} +9 -9
- package/dist/plugin-sdk/{manager-CC6jXeB-.js → manager-Dv8oeW8Q.js} +8 -8
- package/dist/plugin-sdk/{manifest-registry-BgkX6ON4.js → manifest-registry-Lzj-fZNH.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-Q9Bw5OWT.js → markdown-tables-JToF08xk.js} +1 -1
- package/dist/plugin-sdk/{message-channel-DxNExIdv.js → message-channel-C3OrO29D.js} +1 -1
- package/dist/plugin-sdk/{model-selection-CcOKuG2n.js → model-selection-BP-yZfgL.js} +4 -4
- package/dist/plugin-sdk/{normalize-DQzsuqr8.js → normalize-CALo0r3J.js} +4 -4
- package/dist/plugin-sdk/{outbound-BNo9XNzM.js → outbound-Xv_dXAwT.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-CisuJmNV.js → outbound-attachment-BcrG8SHW.js} +2 -2
- package/dist/plugin-sdk/{pi-auth-json-BHnQjxub.js → pi-auth-json-cJTtFNw1.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-D5mU_VuV.js → pi-embedded-helpers-DjyrCaOR.js} +17 -17
- package/dist/plugin-sdk/{plugins-DZx_qlHO.js → plugins-DkDfsqpU.js} +3 -3
- package/dist/plugin-sdk/{pw-ai-DYABE96f.js → pw-ai-DzpfUQcL.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-B3_LuPWI.js → qmd-manager-CJcPR4Tl.js} +4 -4
- package/dist/plugin-sdk/{registry-BECEtj9n.js → registry-C8pj8ctW.js} +2 -2
- package/dist/plugin-sdk/{replies-DYi7SN77.js → replies-D70UX9el.js} +3 -3
- package/dist/plugin-sdk/{reply-Cjk7LMy5.js → reply-Bd2hTqt2.js} +78 -78
- package/dist/plugin-sdk/{reply-prefix-CjyfQ_d1.js → reply-prefix-C4uKnJw5.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-DcFELQ2A.js → resolve-route-D3KbwzED.js} +3 -3
- package/dist/plugin-sdk/{retry-Bkj1k1me.js → retry-B8Oq5mgi.js} +1 -1
- package/dist/plugin-sdk/{runner-DpYDxpAW.js → runner-eN6avbf7.js} +9 -9
- package/dist/plugin-sdk/{send-ydtZKtPY.js → send-CYWWJEcn.js} +6 -6
- package/dist/plugin-sdk/{send-L7Qzaw1k.js → send-DTQ35K1k.js} +11 -11
- package/dist/plugin-sdk/{send-BZCJA8cX.js → send-DbftCLdT.js} +11 -11
- package/dist/plugin-sdk/{send-DZKSn0On.js → send-NfHYBhul.js} +7 -7
- package/dist/plugin-sdk/{send-DstsvZrR.js → send-g2G5-BE1.js} +7 -7
- package/dist/plugin-sdk/{session-hN4eOpFg.js → session-BS3El_89.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-BI1wVtHZ.js → skill-commands-Cle2Lzhm.js} +5 -5
- package/dist/plugin-sdk/{skills-Xz3Fbq-R.js → skills-BKSekIbi.js} +7 -7
- package/dist/plugin-sdk/{sqlite-DtIiUWZr.js → sqlite-Yn48izJ_.js} +1 -1
- package/dist/plugin-sdk/{store-w9NR0-ll.js → store-Cz4sBcdW.js} +2 -2
- package/dist/plugin-sdk/{subsystem-Ck27y_6W.js → subsystem-BfLMZ8kW.js} +1 -1
- package/dist/plugin-sdk/{tables-CmVJrzl_.js → tables-gytp5jHK.js} +1 -1
- package/dist/plugin-sdk/{thinking-DIWJ8ngy.js → thinking-BOKrkVfN.js} +5 -5
- package/dist/plugin-sdk/{tokens-B6GWdF_0.js → tokens-D1LxPszt.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-CbPwu1_R.js → tool-loop-detection-CYSptBsl.js} +2 -2
- package/dist/plugin-sdk/web-CHrq1191.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-DdnRWwJa.js → whatsapp-actions-Cxf0P-Zz.js} +20 -20
- package/package.json +1 -1
- package/dist/control-ui/_app/immutable/assets/0.CIIOt0aD.css +0 -1
- package/dist/control-ui/_app/immutable/entry/start.BYvWRDfG.js +0 -1
- package/dist/plugin-sdk/web-DV9s3A0M.js +0 -65
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as _a,a as k,b as x,s as g,f as b,e as ka,g as Cr}from"../chunks/B2A7gHtL.js";import{p as wa,s as L,a as q,u as Ar,g as e,d as f,b as Ma,t as y,c as Ca,e as Aa,h as a,f as n,i as D,$ as Ta,r,n as O,j as Kt,m as Tr,o as Lr}from"../chunks/qR_TM3YX.js";import{i as w}from"../chunks/DpBBTLWw.js";import{g as La,a as Pt,s as S,r as K,e as ne,i as Qt,b as xe}from"../chunks/DeOOVYCg.js";import{h as Sa}from"../chunks/CXQ1lKJR.js";import{s as ja}from"../chunks/DFN8J1NF.js";import{b as $e,a as Be}from"../chunks/nnazh41B.js";import{b as Da,i as Sr,s as jr}from"../chunks/DVP7Iy08.js";import{g as $a}from"../chunks/X1MNi0qp.js";import{g as Ba}from"../chunks/Be_uRYmX.js";import{g as Fa}from"../chunks/
|
|
1
|
+
import{d as _a,a as k,b as x,s as g,f as b,e as ka,g as Cr}from"../chunks/B2A7gHtL.js";import{p as wa,s as L,a as q,u as Ar,g as e,d as f,b as Ma,t as y,c as Ca,e as Aa,h as a,f as n,i as D,$ as Ta,r,n as O,j as Kt,m as Tr,o as Lr}from"../chunks/qR_TM3YX.js";import{i as w}from"../chunks/DpBBTLWw.js";import{g as La,a as Pt,s as S,r as K,e as ne,i as Qt,b as xe}from"../chunks/DeOOVYCg.js";import{h as Sa}from"../chunks/CXQ1lKJR.js";import{s as ja}from"../chunks/DFN8J1NF.js";import{b as $e,a as Be}from"../chunks/nnazh41B.js";import{b as Da,i as Sr,s as jr}from"../chunks/DVP7Iy08.js";import{g as $a}from"../chunks/X1MNi0qp.js";import{g as Ba}from"../chunks/Be_uRYmX.js";import{g as Fa}from"../chunks/C4FsZxvN.js";var za=b('<div class="mt-4 rounded-xl border border-border-default bg-bg-secondary/50 p-4 animate-fade-in"><div class="grid grid-cols-2 md:grid-cols-4 gap-4"><div><label class="block text-xs text-text-muted mb-1">Active Minutes (0=all)</label> <input type="number" min="0" step="1" class="w-full px-3 py-1.5 text-sm rounded-lg border border-border-default bg-bg-tertiary text-text-primary focus:outline-none focus:border-accent-cyan transition-all"/></div> <div><label class="block text-xs text-text-muted mb-1">Limit</label> <input type="number" min="1" max="500" step="1" class="w-full px-3 py-1.5 text-sm rounded-lg border border-border-default bg-bg-tertiary text-text-primary focus:outline-none focus:border-accent-cyan transition-all"/></div> <div class="flex flex-col justify-end gap-2"><label class="flex items-center gap-2 text-sm text-text-secondary cursor-pointer"><input type="checkbox" class="rounded border-border-default bg-bg-tertiary text-accent-cyan focus:ring-accent-cyan/30"/> Include Global</label> <label class="flex items-center gap-2 text-sm text-text-secondary cursor-pointer"><input type="checkbox" class="rounded border-border-default bg-bg-tertiary text-accent-cyan focus:ring-accent-cyan/30"/> Include Unknown</label></div> <div class="flex items-end"><button class="w-full px-3 py-1.5 text-sm rounded-lg bg-accent-cyan/10 text-accent-cyan border border-accent-cyan/30 hover:bg-accent-cyan/20 transition-all">Apply Filters</button></div></div></div>'),Va=b('<div class="flex rounded-lg border border-border-default overflow-hidden"><button>Grouped</button> <button>All</button></div>'),Ha=b('<div class="flex items-center gap-1"><button class="px-2 py-2 text-xs rounded-lg bg-bg-tertiary border border-border-default text-text-muted hover:text-text-secondary transition-all" title="Expand all"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg></button> <button class="px-2 py-2 text-xs rounded-lg bg-bg-tertiary border border-border-default text-text-muted hover:text-text-secondary transition-all" title="Collapse all"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg></button> <span class="text-[10px] text-text-muted ml-1"> </span></div>'),Ia=b('<div class="flex flex-col items-center justify-center h-full text-center"><div class="w-16 h-16 rounded-2xl bg-bg-tertiary border border-border-default flex items-center justify-center mb-4"><svg class="w-8 h-8 text-text-muted" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.364 5.636a9 9 0 010 12.728m-2.829-2.829a5 5 0 000-7.07"></path></svg></div> <p class="text-text-muted text-sm">Connect to the gateway to view sessions.</p></div>'),Na=b('<div class="rounded-xl border border-border-default bg-bg-secondary/50 p-5 animate-pulse"><div class="h-4 w-48 bg-bg-tertiary rounded mb-3"></div> <div class="h-3 w-96 bg-bg-tertiary rounded mb-2"></div> <div class="flex gap-2"><div class="h-5 w-16 bg-bg-tertiary rounded-full"></div> <div class="h-5 w-20 bg-bg-tertiary rounded-full"></div> <div class="h-5 w-14 bg-bg-tertiary rounded-full"></div></div></div>'),Ra=b('<div class="flex flex-col gap-3"></div>'),Ua=b('<div class="flex flex-col items-center justify-center h-64 text-center"><p class="text-text-muted text-sm"> </p></div>'),Ea=b('<div class="flex flex-col items-center justify-center h-64 text-center"><p class="text-text-muted text-sm"> </p></div>'),Oa=b('<button><svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg></button>'),Ga=b('<div class="w-6 flex-shrink-0 mt-0.5 flex items-center justify-center"><span></span></div>'),qa=b('<form class="flex items-center gap-2"><input type="text" class="px-2 py-1 text-sm rounded border border-accent-cyan/50 bg-bg-tertiary text-text-primary focus:outline-none focus:border-accent-cyan w-48"/> <button type="submit" class="text-accent-cyan text-xs hover:underline">Save</button> <button type="button" class="text-text-muted text-xs hover:text-text-secondary">Cancel</button></form>'),Ka=b('<span> </span> <button class="p-0.5 rounded hover:bg-bg-hover text-text-muted hover:text-accent-cyan transition-colors" title="Rename"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg></button>',1),Pa=b('<span class="px-2 py-0.5 rounded text-[10px] font-medium bg-bg-tertiary text-text-muted border border-border-default"> </span>'),Qa=b('<span class="px-2 py-0.5 rounded text-[10px] font-medium bg-accent-purple/10 text-purple-300 border border-accent-purple/10"> </span>'),Wa=b("<span> </span>"),Ja=b('<span class="flex items-center gap-1 px-2 py-0.5 rounded text-[10px] bg-accent-purple/10 text-purple-300 border border-accent-purple/10"><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg> </span>'),Xa=b('<span class="px-2 py-0.5 rounded text-[10px] bg-bg-tertiary text-text-muted border border-border-default"> </span>'),Ya=b('<span class="flex items-center gap-1 px-2 py-0.5 rounded text-[10px] bg-accent-green/10 text-accent-green border border-accent-green/10"><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A2 2 0 013 12V7a4 4 0 014-4z"></path></svg> </span>'),Za=b('<p class="text-xs text-text-muted truncate mb-1.5 max-w-[500px]"> </p>'),en=b('<span class="flex items-center gap-1 px-2 py-1 rounded-lg text-[10px] font-medium bg-accent-amber/15 text-accent-amber border border-accent-amber/30"> </span>'),tn=b("<option> </option>"),rn=b(`<select class="px-2 py-1 rounded-lg text-[11px] border border-border-default bg-bg-tertiary
|
|
2
2
|
text-text-secondary hover:border-accent-purple/40 focus:outline-none focus:border-accent-purple
|
|
3
3
|
transition-all disabled:opacity-50 max-w-[200px] cursor-pointer appearance-none
|
|
4
4
|
bg-[url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2388929e%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E')]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1771730677253"}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
14
14
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
|
15
15
|
<link rel="preconnect" href="wss://openclaw.honercloud.com" />
|
|
16
|
-
<link href="/_app/immutable/entry/start.
|
|
17
|
-
<link href="/_app/immutable/chunks/
|
|
16
|
+
<link href="/_app/immutable/entry/start.BkyZMPcP.js" rel="modulepreload">
|
|
17
|
+
<link href="/_app/immutable/chunks/C4FsZxvN.js" rel="modulepreload">
|
|
18
18
|
<link href="/_app/immutable/chunks/qR_TM3YX.js" rel="modulepreload">
|
|
19
19
|
<link href="/_app/immutable/chunks/B3DkuU-J.js" rel="modulepreload">
|
|
20
20
|
<link href="/_app/immutable/chunks/B-drBnSa.js" rel="modulepreload">
|
|
21
|
-
<link href="/_app/immutable/entry/app.
|
|
21
|
+
<link href="/_app/immutable/entry/app.BP81uCNW.js" rel="modulepreload">
|
|
22
22
|
<link href="/_app/immutable/chunks/DpBBTLWw.js" rel="modulepreload">
|
|
23
23
|
<link href="/_app/immutable/chunks/B2A7gHtL.js" rel="modulepreload">
|
|
24
24
|
<link href="/_app/immutable/chunks/BYXRTvT-.js" rel="modulepreload">
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
<div style="display: contents">
|
|
30
30
|
<script>
|
|
31
31
|
{
|
|
32
|
-
|
|
32
|
+
__sveltekit_1xdjofn = {
|
|
33
33
|
base: ""
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
const element = document.currentScript.parentElement;
|
|
37
37
|
|
|
38
38
|
Promise.all([
|
|
39
|
-
import("/_app/immutable/entry/start.
|
|
40
|
-
import("/_app/immutable/entry/app.
|
|
39
|
+
import("/_app/immutable/entry/start.BkyZMPcP.js"),
|
|
40
|
+
import("/_app/immutable/entry/app.BP81uCNW.js")
|
|
41
41
|
]).then(([kit, app]) => {
|
|
42
42
|
kit.start(app, element);
|
|
43
43
|
});
|
package/dist/control-ui/sw.js
CHANGED
|
@@ -1,88 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// Install: pre-cache the app shell (gracefully skip failures)
|
|
5
|
-
self.addEventListener("install", (event) => {
|
|
6
|
-
event.waitUntil(
|
|
7
|
-
caches.open(CACHE_NAME).then((cache) =>
|
|
8
|
-
Promise.allSettled(
|
|
9
|
-
SHELL_ASSETS.map((url) =>
|
|
10
|
-
cache.add(url).catch(() => {
|
|
11
|
-
/* skip failed assets */
|
|
12
|
-
}),
|
|
13
|
-
),
|
|
14
|
-
),
|
|
15
|
-
),
|
|
16
|
-
);
|
|
1
|
+
// Self-unregistering service worker — clears all caches and removes itself
|
|
2
|
+
self.addEventListener("install", () => {
|
|
17
3
|
self.skipWaiting();
|
|
18
4
|
});
|
|
19
5
|
|
|
20
|
-
// Activate: clean up old caches
|
|
21
6
|
self.addEventListener("activate", (event) => {
|
|
22
7
|
event.waitUntil(
|
|
23
8
|
caches
|
|
24
9
|
.keys()
|
|
25
|
-
.then((keys) =>
|
|
26
|
-
|
|
27
|
-
),
|
|
10
|
+
.then((keys) => Promise.all(keys.map((k) => caches.delete(k))))
|
|
11
|
+
.then(() => self.registration.unregister()),
|
|
28
12
|
);
|
|
29
13
|
self.clients.claim();
|
|
30
14
|
});
|
|
31
|
-
|
|
32
|
-
// Fetch strategies
|
|
33
|
-
self.addEventListener("fetch", (event) => {
|
|
34
|
-
const { request } = event;
|
|
35
|
-
const url = new URL(request.url);
|
|
36
|
-
|
|
37
|
-
// Skip non-GET requests and WebSocket/API calls
|
|
38
|
-
if (request.method !== "GET") {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (url.protocol === "ws:" || url.protocol === "wss:") {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Network-first for API calls
|
|
46
|
-
if (url.pathname.startsWith("/api/") || url.pathname.startsWith("/ws")) {
|
|
47
|
-
event.respondWith(fetch(request).catch(() => caches.match(request)));
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Cache-first for hashed static assets (contain content hashes like .abc123.)
|
|
52
|
-
if (url.pathname.match(/\.[a-f0-9]{8,}\.(js|css|woff2?|png|jpg|svg)$/)) {
|
|
53
|
-
event.respondWith(
|
|
54
|
-
caches.match(request).then((cached) => {
|
|
55
|
-
if (cached) {
|
|
56
|
-
return cached;
|
|
57
|
-
}
|
|
58
|
-
return fetch(request).then((response) => {
|
|
59
|
-
if (response.ok) {
|
|
60
|
-
const clone = response.clone();
|
|
61
|
-
void caches.open(CACHE_NAME).then((cache) => cache.put(request, clone));
|
|
62
|
-
}
|
|
63
|
-
return response;
|
|
64
|
-
});
|
|
65
|
-
}),
|
|
66
|
-
);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Navigation requests: network-first, fallback to cached index.html
|
|
71
|
-
if (request.mode === "navigate") {
|
|
72
|
-
event.respondWith(fetch(request).catch(() => caches.match("/index.html")));
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Default: network-first with cache fallback
|
|
77
|
-
event.respondWith(
|
|
78
|
-
fetch(request)
|
|
79
|
-
.then((response) => {
|
|
80
|
-
if (response.ok) {
|
|
81
|
-
const clone = response.clone();
|
|
82
|
-
void caches.open(CACHE_NAME).then((cache) => cache.put(request, clone));
|
|
83
|
-
}
|
|
84
|
-
return response;
|
|
85
|
-
})
|
|
86
|
-
.catch(() => caches.match(request)),
|
|
87
|
-
);
|
|
88
|
-
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as normalizeAccountId } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { _ as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { _ as createAccountListHelpers } from "./accounts-b1Cok6r_.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { E as jidToE164, Q as getChildLogger, V as info, j as resolveUserPath, q as success } from "./registry-
|
|
2
|
+
import { E as jidToE164, Q as getChildLogger, V as info, j as resolveUserPath, q as success } from "./registry-C8pj8ctW.js";
|
|
3
3
|
import { a as resolveOAuthDir } from "./paths-DJmOcr7Q.js";
|
|
4
|
-
import { i as defaultRuntime } from "./subsystem-
|
|
5
|
-
import { t as formatCliCommand } from "./command-format-
|
|
4
|
+
import { i as defaultRuntime } from "./subsystem-BfLMZ8kW.js";
|
|
5
|
+
import { t as formatCliCommand } from "./command-format-BTciq6Gg.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import fs$1 from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as normalizeAccountId } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { _ as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { _ as createAccountListHelpers } from "./accounts-b1Cok6r_.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DEFAULT_ACCOUNT_ID } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { t as formatCliCommand } from "./command-format-
|
|
2
|
+
import { t as formatCliCommand } from "./command-format-BTciq6Gg.js";
|
|
3
3
|
|
|
4
4
|
//#region src/web/active-listener.ts
|
|
5
5
|
const listeners = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as isSubagentSessionKey, g as isCronSessionKey, l as normalizeAgentId, n as DEFAULT_AGENT_ID, v as parseAgentSessionKey } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { $ as getLogger, B as danger, J as warn, K as shouldLogVerbose, O as pathExists, V as info, W as logVerboseConsole, j as resolveUserPath } from "./registry-
|
|
2
|
+
import { $ as getLogger, B as danger, J as warn, K as shouldLogVerbose, O as pathExists, V as info, W as logVerboseConsole, j as resolveUserPath } from "./registry-C8pj8ctW.js";
|
|
3
3
|
import { s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-DJmOcr7Q.js";
|
|
4
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
4
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BfLMZ8kW.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import "./accounts-
|
|
2
|
-
import { K as shouldLogVerbose, U as logVerbose } from "./registry-
|
|
1
|
+
import "./accounts-b1Cok6r_.js";
|
|
2
|
+
import { K as shouldLogVerbose, U as logVerbose } from "./registry-C8pj8ctW.js";
|
|
3
3
|
import "./paths-DJmOcr7Q.js";
|
|
4
|
-
import "./model-selection-
|
|
5
|
-
import "./config-
|
|
6
|
-
import "./fs-safe
|
|
7
|
-
import "./subsystem-
|
|
8
|
-
import "./agent-scope-
|
|
9
|
-
import "./common-
|
|
10
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
11
|
-
import "./skills-
|
|
4
|
+
import "./model-selection-BP-yZfgL.js";
|
|
5
|
+
import "./config-gGD5Rkaw.js";
|
|
6
|
+
import "./fs-safe--E2UxVCE.js";
|
|
7
|
+
import "./subsystem-BfLMZ8kW.js";
|
|
8
|
+
import "./agent-scope-Bs92YR2y.js";
|
|
9
|
+
import "./common-xLIrQlvS.js";
|
|
10
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-eN6avbf7.js";
|
|
11
|
+
import "./skills-BKSekIbi.js";
|
|
12
12
|
import "./redact-DPnDWsnT.js";
|
|
13
13
|
import "./errors-Bv8oZiTO.js";
|
|
14
14
|
import "./ssrf-DxmqkHJJ.js";
|
|
15
|
-
import "./local-roots-
|
|
16
|
-
import "./chrome-
|
|
17
|
-
import "./command-format-
|
|
18
|
-
import "./thinking-
|
|
19
|
-
import "./normalize-
|
|
20
|
-
import "./accounts-
|
|
21
|
-
import "./accounts-
|
|
22
|
-
import "./bindings-
|
|
23
|
-
import "./plugins-
|
|
24
|
-
import "./message-channel-
|
|
25
|
-
import "./pi-embedded-helpers-
|
|
15
|
+
import "./local-roots-BCWc25rb.js";
|
|
16
|
+
import "./chrome-ORXV3sOi.js";
|
|
17
|
+
import "./command-format-BTciq6Gg.js";
|
|
18
|
+
import "./thinking-BOKrkVfN.js";
|
|
19
|
+
import "./normalize-CALo0r3J.js";
|
|
20
|
+
import "./accounts-CRs7kbLB.js";
|
|
21
|
+
import "./accounts-uAqOguyH.js";
|
|
22
|
+
import "./bindings-BiEEaTNG.js";
|
|
23
|
+
import "./plugins-DkDfsqpU.js";
|
|
24
|
+
import "./message-channel-C3OrO29D.js";
|
|
25
|
+
import "./pi-embedded-helpers-DjyrCaOR.js";
|
|
26
26
|
import "./github-copilot-token-etmIcdko.js";
|
|
27
|
-
import "./manifest-registry-
|
|
27
|
+
import "./manifest-registry-Lzj-fZNH.js";
|
|
28
28
|
import "./paths-a1ZEI8nz.js";
|
|
29
|
-
import "./store-
|
|
30
|
-
import "./image-
|
|
29
|
+
import "./store-Cz4sBcdW.js";
|
|
30
|
+
import "./image-psst3EfB.js";
|
|
31
31
|
import "./pi-model-discovery-3Y4hcIsw.js";
|
|
32
|
-
import "./api-key-rotation
|
|
32
|
+
import "./api-key-rotation-wd2Jnynp.js";
|
|
33
33
|
|
|
34
34
|
//#region src/media-understanding/audio-preflight.ts
|
|
35
35
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as normalizeAccountId, l as normalizeAgentId } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { s as normalizeChatChannelId } from "./registry-
|
|
3
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
+
import { s as normalizeChatChannelId } from "./registry-C8pj8ctW.js";
|
|
3
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-Bs92YR2y.js";
|
|
4
4
|
|
|
5
5
|
//#region src/routing/bindings.ts
|
|
6
6
|
function normalizeBindingChannelId(raw) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as formatErrorMessage } from "./errors-Bv8oZiTO.js";
|
|
2
|
-
import { n as retryAsync, t as resolveRetryConfig } from "./retry-
|
|
2
|
+
import { n as retryAsync, t as resolveRetryConfig } from "./retry-B8Oq5mgi.js";
|
|
3
3
|
import { RateLimitError } from "@buape/carbon";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/retry-policy.ts
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { i as buildAgentMainSessionKey, l as normalizeAgentId, o as buildGroupHistoryKey, r as DEFAULT_MAIN_KEY } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { f as readWebSelfId, o as getWebAuthAgeMs, r as resolveWhatsAppAccount } from "./accounts-
|
|
3
|
-
import { E as enqueueSystemEvent, G as shouldAckReactionForWhatsApp, K as resolveMentionGating, X as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildHistoryContextFromEntries, _ as resolveEnvelopeFormatOptions, c as computeBackoff, d as formatDurationPrecise, f as dispatchReplyWithBufferedBlockDispatcher, g as formatInboundEnvelope, h as resolveInboundDebounceMs, it as normalizeMentionText, l as sleepWithAbort, m as createInboundDebouncer, n as normalizeGroupActivation, nt as recordPendingHistoryEntryIfEnabled, r as parseActivationCommand, rt as buildMentionRegexes, t as getReplyFromConfig, u as buildPairingReply, v as hasControlCommand, vt as createDedupeCache, y as shouldComputeCommandAuthorized } from "./reply-
|
|
4
|
-
import { A as resolveJidToE164, D as normalizeE164, E as jidToE164, F as sleep, K as shouldLogVerbose, L as toWhatsappJid, Q as getChildLogger, T as isSelfChatMode, U as logVerbose, s as normalizeChatChannelId, v as clamp } from "./registry-
|
|
5
|
-
import { n as loadConfig } from "./config-
|
|
6
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
8
|
-
import { G as readChannelAllowFromStore, J as upsertChannelPairingRequest, K as readChannelAllowFromStoreSync, nt as toLocationContext, tt as formatLocationText } from "./send-
|
|
9
|
-
import { f as registerUnhandledRejectionHandler } from "./runner-
|
|
10
|
-
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, n as createReplyPrefixOptions } from "./reply-prefix-
|
|
11
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
12
|
-
import { t as formatCliCommand } from "./command-format-
|
|
13
|
-
import { F as resolveChannelGroupRequireMention, P as resolveChannelGroupPolicy } from "./thinking-
|
|
14
|
-
import { Jt as resolveGroupSessionKey, ft as loadSessionStore, ht as updateLastRoute, mt as recordSessionMetaFromInbound, pt as readSessionUpdatedAt } from "./pi-embedded-helpers-
|
|
2
|
+
import { f as readWebSelfId, o as getWebAuthAgeMs, r as resolveWhatsAppAccount } from "./accounts-b1Cok6r_.js";
|
|
3
|
+
import { E as enqueueSystemEvent, G as shouldAckReactionForWhatsApp, K as resolveMentionGating, X as DEFAULT_GROUP_HISTORY_LIMIT, Z as buildHistoryContextFromEntries, _ as resolveEnvelopeFormatOptions, c as computeBackoff, d as formatDurationPrecise, f as dispatchReplyWithBufferedBlockDispatcher, g as formatInboundEnvelope, h as resolveInboundDebounceMs, it as normalizeMentionText, l as sleepWithAbort, m as createInboundDebouncer, n as normalizeGroupActivation, nt as recordPendingHistoryEntryIfEnabled, r as parseActivationCommand, rt as buildMentionRegexes, t as getReplyFromConfig, u as buildPairingReply, v as hasControlCommand, vt as createDedupeCache, y as shouldComputeCommandAuthorized } from "./reply-Bd2hTqt2.js";
|
|
4
|
+
import { A as resolveJidToE164, D as normalizeE164, E as jidToE164, F as sleep, K as shouldLogVerbose, L as toWhatsappJid, Q as getChildLogger, T as isSelfChatMode, U as logVerbose, s as normalizeChatChannelId, v as clamp } from "./registry-C8pj8ctW.js";
|
|
5
|
+
import { n as loadConfig } from "./config-gGD5Rkaw.js";
|
|
6
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BfLMZ8kW.js";
|
|
7
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-C9J4kyVw.js";
|
|
8
|
+
import { G as readChannelAllowFromStore, J as upsertChannelPairingRequest, K as readChannelAllowFromStoreSync, nt as toLocationContext, tt as formatLocationText } from "./send-DbftCLdT.js";
|
|
9
|
+
import { f as registerUnhandledRejectionHandler } from "./runner-eN6avbf7.js";
|
|
10
|
+
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, n as createReplyPrefixOptions } from "./reply-prefix-C4uKnJw5.js";
|
|
11
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-BCWc25rb.js";
|
|
12
|
+
import { t as formatCliCommand } from "./command-format-BTciq6Gg.js";
|
|
13
|
+
import { F as resolveChannelGroupRequireMention, P as resolveChannelGroupPolicy } from "./thinking-BOKrkVfN.js";
|
|
14
|
+
import { Jt as resolveGroupSessionKey, ft as loadSessionStore, ht as updateLastRoute, mt as recordSessionMetaFromInbound, pt as readSessionUpdatedAt } from "./pi-embedded-helpers-DjyrCaOR.js";
|
|
15
15
|
import { s as resolveStorePath } from "./paths-a1ZEI8nz.js";
|
|
16
|
-
import { i as saveMediaBuffer } from "./store-
|
|
17
|
-
import { a as loadWebMedia } from "./ir-
|
|
18
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
19
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
20
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
16
|
+
import { i as saveMediaBuffer } from "./store-Cz4sBcdW.js";
|
|
17
|
+
import { a as loadWebMedia } from "./ir-B7KEB-SH.js";
|
|
18
|
+
import { n as recordChannelActivity } from "./channel-activity-DHI8R5Xg.js";
|
|
19
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-JToF08xk.js";
|
|
20
|
+
import { t as convertMarkdownTables } from "./tables-gytp5jHK.js";
|
|
21
21
|
import { t as finalizeInboundContext } from "./inbound-context-hgCIam0H.js";
|
|
22
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
23
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
24
|
-
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
25
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
22
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-D3KbwzED.js";
|
|
23
|
+
import { r as setActiveWebListener } from "./active-listener-BdVTYHTN.js";
|
|
24
|
+
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-Xv_dXAwT.js";
|
|
25
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-BS3El_89.js";
|
|
26
26
|
import { randomUUID } from "node:crypto";
|
|
27
27
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
28
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as CONFIG_DIR } from "./registry-
|
|
2
|
-
import { n as loadConfig } from "./config-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { _ as CONFIG_DIR } from "./registry-C8pj8ctW.js";
|
|
2
|
+
import { n as loadConfig } from "./config-gGD5Rkaw.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BfLMZ8kW.js";
|
|
4
4
|
import { i as isErrno } from "./errors-Bv8oZiTO.js";
|
|
5
5
|
import { s as resolvePinnedHostnameWithPolicy } from "./ssrf-DxmqkHJJ.js";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { c as normalizeAccountId } from "./session-key-9yEYlIQe.js";
|
|
3
|
-
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-
|
|
3
|
+
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-C3OrO29D.js";
|
|
4
4
|
|
|
5
5
|
//#region src/shared/text-chunking.ts
|
|
6
6
|
function chunkTextByBreakResolver(text, limit, resolveBreakIndex) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { S as escapeRegExp, c as getActivePluginRegistry } from "./registry-
|
|
3
|
-
import { G as DEFAULT_PROVIDER, W as DEFAULT_MODEL, u as resolveConfiguredModelRef } from "./model-selection-
|
|
4
|
-
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-
|
|
2
|
+
import { S as escapeRegExp, c as getActivePluginRegistry } from "./registry-C8pj8ctW.js";
|
|
3
|
+
import { G as DEFAULT_PROVIDER, W as DEFAULT_MODEL, u as resolveConfiguredModelRef } from "./model-selection-BP-yZfgL.js";
|
|
4
|
+
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-BOKrkVfN.js";
|
|
5
5
|
|
|
6
6
|
//#region src/auto-reply/commands-args.ts
|
|
7
7
|
function normalizeArgValue(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as buildImageResizeSideGrid, d as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, s as getImageMetadata, u as resizeToJpeg } from "./fs-safe
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { a as buildImageResizeSideGrid, d as detectMime, i as IMAGE_REDUCE_QUALITY_STEPS, s as getImageMetadata, u as resizeToJpeg } from "./fs-safe--E2UxVCE.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BfLMZ8kW.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/image-sanitization.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { l as normalizeAgentId, n as DEFAULT_AGENT_ID } from "./session-key-9yEYlIQe.js";
|
|
2
|
-
import { j as resolveUserPath, k as resolveConfigDir, s as normalizeChatChannelId, t as CHANNEL_IDS, w as isRecord, z as isPlainObject$1 } from "./registry-
|
|
2
|
+
import { j as resolveUserPath, k as resolveConfigDir, s as normalizeChatChannelId, t as CHANNEL_IDS, w as isRecord, z as isPlainObject$1 } from "./registry-C8pj8ctW.js";
|
|
3
3
|
import { n as resolveConfigPath, r as resolveDefaultConfigCandidates, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-DJmOcr7Q.js";
|
|
4
|
-
import { J as resolveShellEnvFallbackTimeoutMs, U as DEFAULT_CONTEXT_TOKENS, X as shouldEnableShellEnvFallback, Y as shouldDeferShellEnvFallback, l as parseModelRef, q as loadShellEnvFallback } from "./model-selection-
|
|
5
|
-
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
-
import { c as normalizePluginsConfig, d as isPathInside, l as resolveEnableState, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-
|
|
4
|
+
import { J as resolveShellEnvFallbackTimeoutMs, U as DEFAULT_CONTEXT_TOKENS, X as shouldEnableShellEnvFallback, Y as shouldDeferShellEnvFallback, l as parseModelRef, q as loadShellEnvFallback } from "./model-selection-BP-yZfgL.js";
|
|
5
|
+
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-Bs92YR2y.js";
|
|
6
|
+
import { c as normalizePluginsConfig, d as isPathInside, l as resolveEnableState, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-Lzj-fZNH.js";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
|
-
import
|
|
11
|
+
import JSON5 from "json5";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { isDeepStrictEqual } from "node:util";
|
|
14
14
|
import crypto from "node:crypto";
|
|
@@ -2935,7 +2935,7 @@ function safeRealpath(target) {
|
|
|
2935
2935
|
}
|
|
2936
2936
|
const defaultResolver = {
|
|
2937
2937
|
readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
2938
|
-
parseJson: (raw) =>
|
|
2938
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
2939
2939
|
};
|
|
2940
2940
|
/**
|
|
2941
2941
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -5480,7 +5480,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
5480
5480
|
function normalizeDeps(overrides = {}) {
|
|
5481
5481
|
return {
|
|
5482
5482
|
fs: overrides.fs ?? fs,
|
|
5483
|
-
json5: overrides.json5 ??
|
|
5483
|
+
json5: overrides.json5 ?? JSON5,
|
|
5484
5484
|
env: overrides.env ?? process.env,
|
|
5485
5485
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
5486
5486
|
configPath: overrides.configPath ?? "",
|
|
@@ -5491,11 +5491,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
5491
5491
|
if (env !== process.env) return;
|
|
5492
5492
|
loadDotEnv({ quiet: true });
|
|
5493
5493
|
}
|
|
5494
|
-
function parseConfigJson5(raw, json5
|
|
5494
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
5495
5495
|
try {
|
|
5496
5496
|
return {
|
|
5497
5497
|
ok: true,
|
|
5498
|
-
parsed: json5
|
|
5498
|
+
parsed: json5.parse(raw)
|
|
5499
5499
|
};
|
|
5500
5500
|
} catch (err) {
|
|
5501
5501
|
return {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { c as normalizeAccountId$1 } from "./session-key-9yEYlIQe.js";
|
|
3
|
-
import { c as getActivePluginRegistry, ct as createInternalHookEvent, lt as triggerInternalHook } from "./registry-
|
|
3
|
+
import { c as getActivePluginRegistry, ct as createInternalHookEvent, lt as triggerInternalHook } from "./registry-C8pj8ctW.js";
|
|
4
4
|
import { s as resolveStateDir } from "./paths-DJmOcr7Q.js";
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-
|
|
7
|
-
import { n as SILENT_REPLY_TOKEN, r as isSilentReplyText } from "./tokens-
|
|
8
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
9
|
-
import { d as getChannelDock } from "./thinking-
|
|
10
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
11
|
-
import { dt as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, ut as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-
|
|
12
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
13
|
-
import { a as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-BfLMZ8kW.js";
|
|
6
|
+
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-C9J4kyVw.js";
|
|
7
|
+
import { n as SILENT_REPLY_TOKEN, r as isSilentReplyText } from "./tokens-D1LxPszt.js";
|
|
8
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-BCWc25rb.js";
|
|
9
|
+
import { d as getChannelDock } from "./thinking-BOKrkVfN.js";
|
|
10
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DkDfsqpU.js";
|
|
11
|
+
import { dt as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, ut as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-DjyrCaOR.js";
|
|
12
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-JToF08xk.js";
|
|
13
|
+
import { a as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-CYWWJEcn.js";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
import crypto from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BfLMZ8kW.js";
|
|
3
3
|
import { i as pruneDiagnosticSessionStates, r as getDiagnosticSessionState, t as diagnosticSessionStates } from "./diagnostic-session-state-BW5KRYN1.js";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/diagnostic-events.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { N as shortenHomeInString, w as isRecord } from "./registry-
|
|
3
|
-
import { B as resolveOpenClawAgentDir, S as getApiKeyForModel, V as normalizeSecretInput, _ as resolveImplicitBedrockProvider, g as normalizeProviders, v as resolveImplicitCopilotProvider, w as requireApiKey, y as resolveImplicitProviders } from "./model-selection-
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
2
|
+
import { N as shortenHomeInString, w as isRecord } from "./registry-C8pj8ctW.js";
|
|
3
|
+
import { B as resolveOpenClawAgentDir, S as getApiKeyForModel, V as normalizeSecretInput, _ as resolveImplicitBedrockProvider, g as normalizeProviders, v as resolveImplicitCopilotProvider, w as requireApiKey, y as resolveImplicitProviders } from "./model-selection-BP-yZfgL.js";
|
|
4
|
+
import { n as loadConfig } from "./config-gGD5Rkaw.js";
|
|
5
5
|
import { n as redactToolDetail } from "./redact-DPnDWsnT.js";
|
|
6
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
6
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-DjyrCaOR.js";
|
|
7
7
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-3Y4hcIsw.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs/promises";
|