denchclaw 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/web/.next/standalone/apps/web/.next/BUILD_ID +1 -1
- package/apps/web/.next/standalone/apps/web/.next/app-build-manifest.json +113 -113
- package/apps/web/.next/standalone/apps/web/.next/app-path-routes-manifest.json +35 -35
- package/apps/web/.next/standalone/apps/web/.next/build-manifest.json +2 -2
- package/apps/web/.next/standalone/apps/web/.next/required-server-files.json +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/_not-found/page.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/apps/serve/[...path]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/active/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/runs/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/stop/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/stop/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/stream/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/chat/subagents/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/jobs/[jobId]/runs/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/jobs/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/runs/[sessionId]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/cron/runs/search-transcript/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/feedback/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/feedback/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/memories/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/profiles/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/profiles/switch/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/sessions/[sessionId]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/terminal/port/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/[id]/messages/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/[id]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/web-sessions/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/assets/[...path]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/browse/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/browse-file/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/context/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/copy/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/db/introspect/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/db/query/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/delete/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/delete/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/file/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/init/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/init/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/list/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/mkdir/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/move/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/display-field/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/[id]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/bulk-delete/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/options/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/entries/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/[fieldId]/enum-rename/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/[fieldId]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/fields/reorder/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/objects/[name]/views/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/open-file/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/path-info/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/query/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/raw-file/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/rename/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/reports/execute/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/reports/execute/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/search-index/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/suggest-files/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/switch/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/switch/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/thumbnail/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/tree/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/upload/route.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/upload/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/virtual-file/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/watch/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/api/workspace/write-binary/route_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/app-paths-manifest.json +35 -35
- package/apps/web/.next/standalone/apps/web/.next/server/chunks/6426.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/chunks/7173.js +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/functions-config-manifest.json +16 -16
- package/apps/web/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
- package/apps/web/.next/standalone/apps/web/.next/server/pages-manifest.json +1 -1
- package/apps/web/.next/standalone/apps/web/.next/static/chunks/app/{layout-8e7702d68f078270.js → layout-9d3b2c749498fb5c.js} +1 -1
- package/apps/web/.next/standalone/apps/web/server.js +1 -1
- package/apps/web/.next/standalone/package.json +1 -1
- package/apps/web/.next/static/chunks/app/{layout-8e7702d68f078270.js → layout-9d3b2c749498fb5c.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{program-FTFIyYeQ.js → program-DKP7Q4K3.js} +2 -2
- package/dist/{run-main-Cc9zgEqf.js → run-main-B74Z8bJ3.js} +1 -1
- package/extensions/dench-ai-gateway/models.ts +2 -2
- package/extensions/posthog-analytics/lib/build-env.js +1 -1
- package/extensions/posthog-analytics/lib/event-mappers.ts +18 -9
- package/package.json +1 -1
- /package/apps/web/.next/standalone/apps/web/.next/static/{iikRD5ldHaLo2uUJJYnoU → YDHSeK_OR4BMgihRhaWam}/_buildManifest.js +0 -0
- /package/apps/web/.next/standalone/apps/web/.next/static/{iikRD5ldHaLo2uUJJYnoU → YDHSeK_OR4BMgihRhaWam}/_ssgManifest.js +0 -0
- /package/apps/web/.next/static/{iikRD5ldHaLo2uUJJYnoU → YDHSeK_OR4BMgihRhaWam}/_buildManifest.js +0 -0
- /package/apps/web/.next/static/{iikRD5ldHaLo2uUJJYnoU → YDHSeK_OR4BMgihRhaWam}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{5742:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,ThemeProvider:()=>d});var o=n(74166),r=(e,t,n,o,r,a,i,s)=>{let l=document.documentElement,c=["light","dark"];function u(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,o=n&&a?r.map(e=>a[e]||e):r;n?(l.classList.remove(...o),l.classList.add(a&&a[t]?a[t]:t)):l.setAttribute(e,t)}),n=t,s&&c.includes(n)&&(l.style.colorScheme=n)}if(o)u(o);else try{let e=localStorage.getItem(t)||n,o=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(o)}catch(e){}},a=["light","dark"],i="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=o.createContext(void 0),c={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=o.useContext(l))?e:c},d=e=>o.useContext(l)?o.createElement(o.Fragment,null,e.children):o.createElement(m,{...e}),p=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:c="theme",themes:u=p,defaultTheme:d=r?"system":"light",attribute:m="data-theme",value:g,children:b,nonce:w,scriptProps:P}=e,[S,E]=o.useState(()=>f(c,d)),[_,k]=o.useState(()=>"system"===S?v():S),A=g?Object.values(g):u,C=o.useCallback(e=>{let t=e;if(!t)return;"system"===e&&r&&(t=v());let o=g?g[t]:t,i=n?y(w):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...A),o&&l.classList.add(o)):e.startsWith("data-")&&(o?l.setAttribute(e,o):l.removeAttribute(e))};if(Array.isArray(m)?m.forEach(c):c(m),s){let e=a.includes(d)?d:null,n=a.includes(t)?t:e;l.style.colorScheme=n}null==i||i()},[w]),T=o.useCallback(e=>{let t="function"==typeof e?e(S):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[S]),j=o.useCallback(e=>{k(v(e)),"system"===S&&r&&!t&&C("system")},[S,t]);o.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(j),j(e),()=>e.removeListener(j)},[j]),o.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?E(e.newValue):T(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),o.useEffect(()=>{C(null!=t?t:S)},[t,S]);let x=o.useMemo(()=>({theme:S,setTheme:T,forcedTheme:t,resolvedTheme:"system"===S?_:S,themes:r?[...u,"system"]:u,systemTheme:r?_:void 0}),[S,T,t,_,r,u]);return o.createElement(l.Provider,{value:x},o.createElement(h,{forcedTheme:t,storageKey:c,attribute:m,enableSystem:r,enableColorScheme:s,defaultTheme:d,value:g,themes:u,nonce:w,scriptProps:P}),b)},h=o.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:u,nonce:d,scriptProps:p}=e,m=JSON.stringify([a,n,l,t,u,c,i,s]).slice(1,-1);return o.createElement("script",{...p,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(r.toString(),")(").concat(m,")")}})}),f=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},7975:(e,t,n)=>{"use strict";n.d(t,{PostHogProvider:()=>v});var o=n(80534),r=n(29341),a=n(74166),i=(0,a.createContext)({client:r.Ay,bootstrap:void 0});function s(e){var t,n,o=e.children,s=e.client,l=e.apiKey,c=e.options,u=(0,a.useRef)(null),d=(0,a.useMemo)(function(){return s?(l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),s):(l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),r.Ay)},[s,l,JSON.stringify(c)]);return(0,a.useEffect)(function(){if(!s){var e=u.current;e?(l!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!function e(t,n,o){if(void 0===o&&(o=new WeakMap),t===n)return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;if(o.has(t)&&o.get(t)===n)return!0;o.set(t,n);var r=Object.keys(t),a=Object.keys(n);if(r.length!==a.length)return!1;for(var i=0;i<r.length;i++){var s=r[i];if(!a.includes(s)||!e(t[s],n[s],o))return!1}return!0}(c,e.options)&&r.Ay.set_config(c)):(r.Ay.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),r.Ay.init(l,c)),u.current={apiKey:l,options:null!=c?c:{}}}},[s,l,JSON.stringify(c)]),a.createElement(i.Provider,{value:{client:d,bootstrap:null!=(t=null==c?void 0:c.bootstrap)?t:null==(n=null==s?void 0:s.config)?void 0:n.bootstrap}},o)}var l=function(e){return"function"==typeof e},c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var u={componentStack:null,exceptionEvent:null,error:null},d={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};!function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}function n(t){var n=e.call(this,t)||this;return n.state=u,n}c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),n.prototype.componentDidCatch=function(e,t){var n,o=this.props.additionalProperties;l(o)?n=o(e):"object"==typeof o&&(n=o);var r=this.context.client.captureException(e,n),a=t.componentStack;this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:r})},n.prototype.render=function(){var e=this.props,t=e.children,n=e.fallback,o=this.state;if(null==o.componentStack)return l(t)?t():t;var r=l(n)?a.createElement(n,{error:o.error,componentStack:o.componentStack,exceptionEvent:o.exceptionEvent}):n;return a.isValidElement(r)?r:(console.warn(d.INVALID_FALLBACK),a.createElement(a.Fragment,null))},n.contextType=i}(a.Component);var p=n(99197);let m="phc_Nt8s1Ny8062TY9aKT8LWiB4nBuoHNYQXRU9MypWfQCW",h="2.3.
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{5742:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,ThemeProvider:()=>d});var o=n(74166),r=(e,t,n,o,r,a,i,s)=>{let l=document.documentElement,c=["light","dark"];function u(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,o=n&&a?r.map(e=>a[e]||e):r;n?(l.classList.remove(...o),l.classList.add(a&&a[t]?a[t]:t)):l.setAttribute(e,t)}),n=t,s&&c.includes(n)&&(l.style.colorScheme=n)}if(o)u(o);else try{let e=localStorage.getItem(t)||n,o=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(o)}catch(e){}},a=["light","dark"],i="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=o.createContext(void 0),c={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=o.useContext(l))?e:c},d=e=>o.useContext(l)?o.createElement(o.Fragment,null,e.children):o.createElement(m,{...e}),p=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:c="theme",themes:u=p,defaultTheme:d=r?"system":"light",attribute:m="data-theme",value:g,children:b,nonce:w,scriptProps:P}=e,[S,E]=o.useState(()=>f(c,d)),[_,k]=o.useState(()=>"system"===S?v():S),A=g?Object.values(g):u,C=o.useCallback(e=>{let t=e;if(!t)return;"system"===e&&r&&(t=v());let o=g?g[t]:t,i=n?y(w):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...A),o&&l.classList.add(o)):e.startsWith("data-")&&(o?l.setAttribute(e,o):l.removeAttribute(e))};if(Array.isArray(m)?m.forEach(c):c(m),s){let e=a.includes(d)?d:null,n=a.includes(t)?t:e;l.style.colorScheme=n}null==i||i()},[w]),T=o.useCallback(e=>{let t="function"==typeof e?e(S):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[S]),j=o.useCallback(e=>{k(v(e)),"system"===S&&r&&!t&&C("system")},[S,t]);o.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(j),j(e),()=>e.removeListener(j)},[j]),o.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?E(e.newValue):T(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),o.useEffect(()=>{C(null!=t?t:S)},[t,S]);let x=o.useMemo(()=>({theme:S,setTheme:T,forcedTheme:t,resolvedTheme:"system"===S?_:S,themes:r?[...u,"system"]:u,systemTheme:r?_:void 0}),[S,T,t,_,r,u]);return o.createElement(l.Provider,{value:x},o.createElement(h,{forcedTheme:t,storageKey:c,attribute:m,enableSystem:r,enableColorScheme:s,defaultTheme:d,value:g,themes:u,nonce:w,scriptProps:P}),b)},h=o.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:u,nonce:d,scriptProps:p}=e,m=JSON.stringify([a,n,l,t,u,c,i,s]).slice(1,-1);return o.createElement("script",{...p,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(r.toString(),")(").concat(m,")")}})}),f=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},7975:(e,t,n)=>{"use strict";n.d(t,{PostHogProvider:()=>v});var o=n(80534),r=n(29341),a=n(74166),i=(0,a.createContext)({client:r.Ay,bootstrap:void 0});function s(e){var t,n,o=e.children,s=e.client,l=e.apiKey,c=e.options,u=(0,a.useRef)(null),d=(0,a.useMemo)(function(){return s?(l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),s):(l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),r.Ay)},[s,l,JSON.stringify(c)]);return(0,a.useEffect)(function(){if(!s){var e=u.current;e?(l!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!function e(t,n,o){if(void 0===o&&(o=new WeakMap),t===n)return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;if(o.has(t)&&o.get(t)===n)return!0;o.set(t,n);var r=Object.keys(t),a=Object.keys(n);if(r.length!==a.length)return!1;for(var i=0;i<r.length;i++){var s=r[i];if(!a.includes(s)||!e(t[s],n[s],o))return!1}return!0}(c,e.options)&&r.Ay.set_config(c)):(r.Ay.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),r.Ay.init(l,c)),u.current={apiKey:l,options:null!=c?c:{}}}},[s,l,JSON.stringify(c)]),a.createElement(i.Provider,{value:{client:d,bootstrap:null!=(t=null==c?void 0:c.bootstrap)?t:null==(n=null==s?void 0:s.config)?void 0:n.bootstrap}},o)}var l=function(e){return"function"==typeof e},c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var u={componentStack:null,exceptionEvent:null,error:null},d={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};!function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}function n(t){var n=e.call(this,t)||this;return n.state=u,n}c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),n.prototype.componentDidCatch=function(e,t){var n,o=this.props.additionalProperties;l(o)?n=o(e):"object"==typeof o&&(n=o);var r=this.context.client.captureException(e,n),a=t.componentStack;this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:r})},n.prototype.render=function(){var e=this.props,t=e.children,n=e.fallback,o=this.state;if(null==o.componentStack)return l(t)?t():t;var r=l(n)?a.createElement(n,{error:o.error,componentStack:o.componentStack,exceptionEvent:o.exceptionEvent}):n;return a.isValidElement(r)?r:(console.warn(d.INVALID_FALLBACK),a.createElement(a.Fragment,null))},n.contextType=i}(a.Component);var p=n(99197);let m="phc_Nt8s1Ny8062TY9aKT8LWiB4nBuoHNYQXRU9MypWfQCW",h="2.3.1",f=!1;function y(){let e=(0,p.usePathname)(),t=(0,p.useSearchParams)();return(0,a.useEffect)(()=>{var n;if(!f||(null!=(n=null==t?void 0:t.get("path"))?n:"").startsWith("~cron"))return;let o=e+((null==t?void 0:t.toString())?"?".concat(t.toString()):"");r.Ay.capture("$pageview",{$current_url:o})},[e,t]),null}function v(e){let{children:t,anonymousId:n}=e,i=(0,a.useRef)(!1);return((0,a.useEffect)(()=>{i.current||(i.current=!0,function(e){if(f||!m)return;r.Ay.init(m,{api_host:"https://us.i.posthog.com",capture_pageview:!1,capture_pageleave:!0,persistence:"memory",autocapture:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:e?{distinctID:e,isIdentifiedID:!1}:void 0});let t={};h&&(t.denchclaw_version=h),Object.keys(t).length>0&&r.Ay.register(t),f=!0}(n))},[n]),m)?(0,o.jsxs)(s,{client:r.Ay,children:[(0,o.jsx)(y,{}),t]}):(0,o.jsx)(o.Fragment,{children:t})}},89480:()=>{},91492:(e,t,n)=>{Promise.resolve().then(n.bind(n,7975)),Promise.resolve().then(n.t.bind(n,89480,23)),Promise.resolve().then(n.bind(n,5742))},99197:(e,t,n)=>{"use strict";var o=n(84841);n.o(o,"usePathname")&&n.d(t,{usePathname:function(){return o.usePathname}}),n.o(o,"useRouter")&&n.d(t,{useRouter:function(){return o.useRouter}}),n.o(o,"useSearchParams")&&n.d(t,{useSearchParams:function(){return o.useSearchParams}})}},e=>{e.O(0,[6827,5700,1705,8522,7358],()=>e(e.s=91492)),_N_E=e.O()}]);
|
|
@@ -9,7 +9,7 @@ const currentPort = parseInt(process.env.PORT, 10) || 3000
|
|
|
9
9
|
const hostname = process.env.HOSTNAME || '0.0.0.0'
|
|
10
10
|
|
|
11
11
|
let keepAliveTimeout = parseInt(process.env.KEEP_ALIVE_TIMEOUT, 10)
|
|
12
|
-
const nextConfig = {"env":{"NEXT_PUBLIC_DENCHCLAW_VERSION":"2.3.
|
|
12
|
+
const nextConfig = {"env":{"NEXT_PUBLIC_DENCHCLAW_VERSION":"2.3.1","NEXT_PUBLIC_OPENCLAW_VERSION":""},"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.ts","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"maximumResponseBody":50000000,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","remotePatterns":[],"unoptimized":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/Users/kumareth/Documents/projects/denchclaw","experimental":{"useSkewCookie":false,"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":30,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":4294967294}},"cacheHandlers":{},"cssChunking":true,"multiZoneDraftMode":false,"appNavFailHandling":false,"prerenderEarlyExit":true,"serverMinification":true,"serverSourceMaps":false,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"clientSegmentCache":false,"clientParamParsing":false,"dynamicOnHover":false,"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":9,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"imgOptSkipMetadata":null,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"authInterrupts":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"viewTransition":false,"routerBFCache":false,"removeUncaughtErrorAndRejectionListeners":false,"validateRSCRequestHeaders":false,"staleTimes":{"dynamic":0,"static":300},"serverComponentsHmrCache":true,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"cacheComponents":false,"inlineCss":false,"useCache":false,"globalNotFound":false,"devtoolSegmentExplorer":true,"browserDebugInfoInTerminal":false,"optimizeRouterScrolling":false,"middlewareClientMaxBodySize":10485760,"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-sqlite-node","@effect/sql-sqlite-bun","@effect/sql-sqlite-wasm","@effect/sql-sqlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"htmlLimitedBots":"[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight","bundlePagesRouterDependencies":false,"configFileName":"next.config.ts","serverExternalPackages":["ws","bufferutil","utf-8-validate","node-pty"],"transpilePackages":["react-markdown","remark-gfm"],"turbopack":{"root":"/Users/kumareth/Documents/projects/denchclaw"}}
|
|
13
13
|
|
|
14
14
|
process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(nextConfig)
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "denchclaw",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Fully Managed OpenClaw Framework for managing your CRM, Sales Automation and Outreach agents. The only local productivity tool you need.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/DenchHQ/DenchClaw#readme",
|
package/apps/web/.next/static/chunks/app/{layout-8e7702d68f078270.js → layout-9d3b2c749498fb5c.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{5742:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,ThemeProvider:()=>d});var o=n(74166),r=(e,t,n,o,r,a,i,s)=>{let l=document.documentElement,c=["light","dark"];function u(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,o=n&&a?r.map(e=>a[e]||e):r;n?(l.classList.remove(...o),l.classList.add(a&&a[t]?a[t]:t)):l.setAttribute(e,t)}),n=t,s&&c.includes(n)&&(l.style.colorScheme=n)}if(o)u(o);else try{let e=localStorage.getItem(t)||n,o=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(o)}catch(e){}},a=["light","dark"],i="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=o.createContext(void 0),c={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=o.useContext(l))?e:c},d=e=>o.useContext(l)?o.createElement(o.Fragment,null,e.children):o.createElement(m,{...e}),p=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:c="theme",themes:u=p,defaultTheme:d=r?"system":"light",attribute:m="data-theme",value:g,children:b,nonce:w,scriptProps:P}=e,[S,E]=o.useState(()=>f(c,d)),[_,k]=o.useState(()=>"system"===S?v():S),A=g?Object.values(g):u,C=o.useCallback(e=>{let t=e;if(!t)return;"system"===e&&r&&(t=v());let o=g?g[t]:t,i=n?y(w):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...A),o&&l.classList.add(o)):e.startsWith("data-")&&(o?l.setAttribute(e,o):l.removeAttribute(e))};if(Array.isArray(m)?m.forEach(c):c(m),s){let e=a.includes(d)?d:null,n=a.includes(t)?t:e;l.style.colorScheme=n}null==i||i()},[w]),T=o.useCallback(e=>{let t="function"==typeof e?e(S):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[S]),j=o.useCallback(e=>{k(v(e)),"system"===S&&r&&!t&&C("system")},[S,t]);o.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(j),j(e),()=>e.removeListener(j)},[j]),o.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?E(e.newValue):T(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),o.useEffect(()=>{C(null!=t?t:S)},[t,S]);let x=o.useMemo(()=>({theme:S,setTheme:T,forcedTheme:t,resolvedTheme:"system"===S?_:S,themes:r?[...u,"system"]:u,systemTheme:r?_:void 0}),[S,T,t,_,r,u]);return o.createElement(l.Provider,{value:x},o.createElement(h,{forcedTheme:t,storageKey:c,attribute:m,enableSystem:r,enableColorScheme:s,defaultTheme:d,value:g,themes:u,nonce:w,scriptProps:P}),b)},h=o.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:u,nonce:d,scriptProps:p}=e,m=JSON.stringify([a,n,l,t,u,c,i,s]).slice(1,-1);return o.createElement("script",{...p,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(r.toString(),")(").concat(m,")")}})}),f=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},7975:(e,t,n)=>{"use strict";n.d(t,{PostHogProvider:()=>v});var o=n(80534),r=n(29341),a=n(74166),i=(0,a.createContext)({client:r.Ay,bootstrap:void 0});function s(e){var t,n,o=e.children,s=e.client,l=e.apiKey,c=e.options,u=(0,a.useRef)(null),d=(0,a.useMemo)(function(){return s?(l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),s):(l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),r.Ay)},[s,l,JSON.stringify(c)]);return(0,a.useEffect)(function(){if(!s){var e=u.current;e?(l!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!function e(t,n,o){if(void 0===o&&(o=new WeakMap),t===n)return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;if(o.has(t)&&o.get(t)===n)return!0;o.set(t,n);var r=Object.keys(t),a=Object.keys(n);if(r.length!==a.length)return!1;for(var i=0;i<r.length;i++){var s=r[i];if(!a.includes(s)||!e(t[s],n[s],o))return!1}return!0}(c,e.options)&&r.Ay.set_config(c)):(r.Ay.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),r.Ay.init(l,c)),u.current={apiKey:l,options:null!=c?c:{}}}},[s,l,JSON.stringify(c)]),a.createElement(i.Provider,{value:{client:d,bootstrap:null!=(t=null==c?void 0:c.bootstrap)?t:null==(n=null==s?void 0:s.config)?void 0:n.bootstrap}},o)}var l=function(e){return"function"==typeof e},c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var u={componentStack:null,exceptionEvent:null,error:null},d={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};!function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}function n(t){var n=e.call(this,t)||this;return n.state=u,n}c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),n.prototype.componentDidCatch=function(e,t){var n,o=this.props.additionalProperties;l(o)?n=o(e):"object"==typeof o&&(n=o);var r=this.context.client.captureException(e,n),a=t.componentStack;this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:r})},n.prototype.render=function(){var e=this.props,t=e.children,n=e.fallback,o=this.state;if(null==o.componentStack)return l(t)?t():t;var r=l(n)?a.createElement(n,{error:o.error,componentStack:o.componentStack,exceptionEvent:o.exceptionEvent}):n;return a.isValidElement(r)?r:(console.warn(d.INVALID_FALLBACK),a.createElement(a.Fragment,null))},n.contextType=i}(a.Component);var p=n(99197);let m="phc_Nt8s1Ny8062TY9aKT8LWiB4nBuoHNYQXRU9MypWfQCW",h="2.3.
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{5742:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,ThemeProvider:()=>d});var o=n(74166),r=(e,t,n,o,r,a,i,s)=>{let l=document.documentElement,c=["light","dark"];function u(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,o=n&&a?r.map(e=>a[e]||e):r;n?(l.classList.remove(...o),l.classList.add(a&&a[t]?a[t]:t)):l.setAttribute(e,t)}),n=t,s&&c.includes(n)&&(l.style.colorScheme=n)}if(o)u(o);else try{let e=localStorage.getItem(t)||n,o=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(o)}catch(e){}},a=["light","dark"],i="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=o.createContext(void 0),c={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=o.useContext(l))?e:c},d=e=>o.useContext(l)?o.createElement(o.Fragment,null,e.children):o.createElement(m,{...e}),p=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:c="theme",themes:u=p,defaultTheme:d=r?"system":"light",attribute:m="data-theme",value:g,children:b,nonce:w,scriptProps:P}=e,[S,E]=o.useState(()=>f(c,d)),[_,k]=o.useState(()=>"system"===S?v():S),A=g?Object.values(g):u,C=o.useCallback(e=>{let t=e;if(!t)return;"system"===e&&r&&(t=v());let o=g?g[t]:t,i=n?y(w):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...A),o&&l.classList.add(o)):e.startsWith("data-")&&(o?l.setAttribute(e,o):l.removeAttribute(e))};if(Array.isArray(m)?m.forEach(c):c(m),s){let e=a.includes(d)?d:null,n=a.includes(t)?t:e;l.style.colorScheme=n}null==i||i()},[w]),T=o.useCallback(e=>{let t="function"==typeof e?e(S):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[S]),j=o.useCallback(e=>{k(v(e)),"system"===S&&r&&!t&&C("system")},[S,t]);o.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(j),j(e),()=>e.removeListener(j)},[j]),o.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?E(e.newValue):T(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),o.useEffect(()=>{C(null!=t?t:S)},[t,S]);let x=o.useMemo(()=>({theme:S,setTheme:T,forcedTheme:t,resolvedTheme:"system"===S?_:S,themes:r?[...u,"system"]:u,systemTheme:r?_:void 0}),[S,T,t,_,r,u]);return o.createElement(l.Provider,{value:x},o.createElement(h,{forcedTheme:t,storageKey:c,attribute:m,enableSystem:r,enableColorScheme:s,defaultTheme:d,value:g,themes:u,nonce:w,scriptProps:P}),b)},h=o.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:u,nonce:d,scriptProps:p}=e,m=JSON.stringify([a,n,l,t,u,c,i,s]).slice(1,-1);return o.createElement("script",{...p,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(r.toString(),")(").concat(m,")")}})}),f=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},7975:(e,t,n)=>{"use strict";n.d(t,{PostHogProvider:()=>v});var o=n(80534),r=n(29341),a=n(74166),i=(0,a.createContext)({client:r.Ay,bootstrap:void 0});function s(e){var t,n,o=e.children,s=e.client,l=e.apiKey,c=e.options,u=(0,a.useRef)(null),d=(0,a.useMemo)(function(){return s?(l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),s):(l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),r.Ay)},[s,l,JSON.stringify(c)]);return(0,a.useEffect)(function(){if(!s){var e=u.current;e?(l!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!function e(t,n,o){if(void 0===o&&(o=new WeakMap),t===n)return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;if(o.has(t)&&o.get(t)===n)return!0;o.set(t,n);var r=Object.keys(t),a=Object.keys(n);if(r.length!==a.length)return!1;for(var i=0;i<r.length;i++){var s=r[i];if(!a.includes(s)||!e(t[s],n[s],o))return!1}return!0}(c,e.options)&&r.Ay.set_config(c)):(r.Ay.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),r.Ay.init(l,c)),u.current={apiKey:l,options:null!=c?c:{}}}},[s,l,JSON.stringify(c)]),a.createElement(i.Provider,{value:{client:d,bootstrap:null!=(t=null==c?void 0:c.bootstrap)?t:null==(n=null==s?void 0:s.config)?void 0:n.bootstrap}},o)}var l=function(e){return"function"==typeof e},c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var u={componentStack:null,exceptionEvent:null,error:null},d={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};!function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=n}function n(t){var n=e.call(this,t)||this;return n.state=u,n}c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),n.prototype.componentDidCatch=function(e,t){var n,o=this.props.additionalProperties;l(o)?n=o(e):"object"==typeof o&&(n=o);var r=this.context.client.captureException(e,n),a=t.componentStack;this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:r})},n.prototype.render=function(){var e=this.props,t=e.children,n=e.fallback,o=this.state;if(null==o.componentStack)return l(t)?t():t;var r=l(n)?a.createElement(n,{error:o.error,componentStack:o.componentStack,exceptionEvent:o.exceptionEvent}):n;return a.isValidElement(r)?r:(console.warn(d.INVALID_FALLBACK),a.createElement(a.Fragment,null))},n.contextType=i}(a.Component);var p=n(99197);let m="phc_Nt8s1Ny8062TY9aKT8LWiB4nBuoHNYQXRU9MypWfQCW",h="2.3.1",f=!1;function y(){let e=(0,p.usePathname)(),t=(0,p.useSearchParams)();return(0,a.useEffect)(()=>{var n;if(!f||(null!=(n=null==t?void 0:t.get("path"))?n:"").startsWith("~cron"))return;let o=e+((null==t?void 0:t.toString())?"?".concat(t.toString()):"");r.Ay.capture("$pageview",{$current_url:o})},[e,t]),null}function v(e){let{children:t,anonymousId:n}=e,i=(0,a.useRef)(!1);return((0,a.useEffect)(()=>{i.current||(i.current=!0,function(e){if(f||!m)return;r.Ay.init(m,{api_host:"https://us.i.posthog.com",capture_pageview:!1,capture_pageleave:!0,persistence:"memory",autocapture:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:e?{distinctID:e,isIdentifiedID:!1}:void 0});let t={};h&&(t.denchclaw_version=h),Object.keys(t).length>0&&r.Ay.register(t),f=!0}(n))},[n]),m)?(0,o.jsxs)(s,{client:r.Ay,children:[(0,o.jsx)(y,{}),t]}):(0,o.jsx)(o.Fragment,{children:t})}},89480:()=>{},91492:(e,t,n)=>{Promise.resolve().then(n.bind(n,7975)),Promise.resolve().then(n.t.bind(n,89480,23)),Promise.resolve().then(n.bind(n,5742))},99197:(e,t,n)=>{"use strict";var o=n(84841);n.o(o,"usePathname")&&n.d(t,{usePathname:function(){return o.usePathname}}),n.o(o,"useRouter")&&n.d(t,{useRouter:function(){return o.useRouter}}),n.o(o,"useSearchParams")&&n.d(t,{useSearchParams:function(){return o.useSearchParams}})}},e=>{e.O(0,[6827,5700,1705,8522,7358],()=>e(e.s=91492)),_N_E=e.O()}]);
|
package/dist/entry.js
CHANGED
|
@@ -1144,7 +1144,7 @@ if (!ensureExperimentalWarningSuppressed()) {
|
|
|
1144
1144
|
const appliedProfile = applyCliProfileEnv({ profile: parsed.profile ?? void 0 });
|
|
1145
1145
|
if (appliedProfile.warning) console.warn(`[denchclaw] ${appliedProfile.warning}`);
|
|
1146
1146
|
process$1.argv = parsed.argv;
|
|
1147
|
-
import("./run-main-
|
|
1147
|
+
import("./run-main-B74Z8bJ3.js").then(({ runCli }) => runCli(process$1.argv)).then(() => import("./telemetry-DH3DIAck.js").then((n) => n.n).then(({ shutdownTelemetry }) => shutdownTelemetry())).catch((error) => {
|
|
1148
1148
|
console.error("[denchclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
1149
1149
|
process$1.exitCode = 1;
|
|
1150
1150
|
});
|
|
@@ -261,8 +261,8 @@ function normalizeDenchCloudCatalogModel(input) {
|
|
|
261
261
|
const supportsStreaming = readBoolean(record, "supportsStreaming", "supports_streaming") ?? true;
|
|
262
262
|
const supportsResponses = readBoolean(record, "supportsResponses", "supports_responses") ?? true;
|
|
263
263
|
const supportsReasoning = readBoolean(record, "supportsReasoning", "supports_reasoning") ?? readBoolean(record, "reasoning") ?? false;
|
|
264
|
-
const contextWindow = readNumber(record, "contextWindow", "context_window") ??
|
|
265
|
-
const maxTokens = readNumber(record, "maxTokens", "max_tokens", "maxOutputTokens", "max_output_tokens") ??
|
|
264
|
+
const contextWindow = readNumber(record, "contextWindow", "context_window") ?? 2e5;
|
|
265
|
+
const maxTokens = readNumber(record, "maxTokens", "max_tokens", "maxOutputTokens", "max_output_tokens") ?? 64e3;
|
|
266
266
|
const costRecord = asRecord$1(record.cost) ?? {};
|
|
267
267
|
const inputCost = readNumber(costRecord, "input") ?? 0;
|
|
268
268
|
const outputCost = readNumber(costRecord, "output") ?? 0;
|
|
@@ -220,7 +220,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
220
220
|
process$1.exitCode = await delegateToGlobalOpenClaw(parseArgv);
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
const { buildProgram } = await import("./program-
|
|
223
|
+
const { buildProgram } = await import("./program-DKP7Q4K3.js");
|
|
224
224
|
await buildProgram().parseAsync(parseArgv);
|
|
225
225
|
}
|
|
226
226
|
|
|
@@ -223,8 +223,8 @@ export function normalizeDenchCloudCatalogModel(input: unknown): DenchCloudCatal
|
|
|
223
223
|
const supportsReasoning = readBoolean(record, "supportsReasoning", "supports_reasoning")
|
|
224
224
|
?? readBoolean(record, "reasoning")
|
|
225
225
|
?? false;
|
|
226
|
-
const contextWindow = readNumber(record, "contextWindow", "context_window") ??
|
|
227
|
-
const maxTokens = readNumber(record, "maxTokens", "max_tokens", "maxOutputTokens", "max_output_tokens") ??
|
|
226
|
+
const contextWindow = readNumber(record, "contextWindow", "context_window") ?? 200000;
|
|
227
|
+
const maxTokens = readNumber(record, "maxTokens", "max_tokens", "maxOutputTokens", "max_output_tokens") ?? 64000;
|
|
228
228
|
|
|
229
229
|
const costRecord = asRecord(record.cost) ?? {};
|
|
230
230
|
const inputCost = readNumber(costRecord, "input") ?? 0;
|
|
@@ -3,7 +3,13 @@ import type { TraceContextManager } from "./trace-context.js";
|
|
|
3
3
|
import { readOrCreateAnonymousId, sanitizeMessages, sanitizeOutputChoices, stripSecrets } from "./privacy.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Extract
|
|
6
|
+
* Extract token counts and cost from the LAST assistant message's usage metadata.
|
|
7
|
+
*
|
|
8
|
+
* Only the last assistant message is used so that each $ai_generation event
|
|
9
|
+
* reports the per-turn delta rather than a cumulative session total. The
|
|
10
|
+
* previous implementation summed across ALL assistant messages, which meant
|
|
11
|
+
* multi-turn sessions emitted growing cumulative values on every turn and
|
|
12
|
+
* PostHog's sum() massively over-counted costs.
|
|
7
13
|
*/
|
|
8
14
|
export function extractUsageFromMessages(messages: unknown): {
|
|
9
15
|
inputTokens: number;
|
|
@@ -11,20 +17,23 @@ export function extractUsageFromMessages(messages: unknown): {
|
|
|
11
17
|
totalCostUsd: number;
|
|
12
18
|
} {
|
|
13
19
|
if (!Array.isArray(messages)) return { inputTokens: 0, outputTokens: 0, totalCostUsd: 0 };
|
|
14
|
-
|
|
15
|
-
let
|
|
16
|
-
let totalCostUsd = 0;
|
|
20
|
+
|
|
21
|
+
let lastAssistantUsage: Record<string, unknown> | undefined;
|
|
17
22
|
for (const msg of messages) {
|
|
18
23
|
if (!msg || typeof msg !== "object") continue;
|
|
19
24
|
const m = msg as Record<string, unknown>;
|
|
20
25
|
if (m.role !== "assistant") continue;
|
|
21
26
|
const usage = m.usage as Record<string, unknown> | undefined;
|
|
22
|
-
if (
|
|
23
|
-
if (typeof usage.input === "number") inputTokens += usage.input;
|
|
24
|
-
if (typeof usage.output === "number") outputTokens += usage.output;
|
|
25
|
-
const cost = usage.cost as Record<string, unknown> | undefined;
|
|
26
|
-
if (cost && typeof cost.total === "number") totalCostUsd += cost.total;
|
|
27
|
+
if (usage) lastAssistantUsage = usage;
|
|
27
28
|
}
|
|
29
|
+
|
|
30
|
+
if (!lastAssistantUsage) return { inputTokens: 0, outputTokens: 0, totalCostUsd: 0 };
|
|
31
|
+
|
|
32
|
+
const inputTokens = typeof lastAssistantUsage.input === "number" ? lastAssistantUsage.input : 0;
|
|
33
|
+
const outputTokens = typeof lastAssistantUsage.output === "number" ? lastAssistantUsage.output : 0;
|
|
34
|
+
const cost = lastAssistantUsage.cost as Record<string, unknown> | undefined;
|
|
35
|
+
const totalCostUsd = cost && typeof cost.total === "number" ? cost.total : 0;
|
|
36
|
+
|
|
28
37
|
return { inputTokens, outputTokens, totalCostUsd };
|
|
29
38
|
}
|
|
30
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "denchclaw",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Fully Managed OpenClaw Framework for managing your CRM, Sales Automation and Outreach agents. The only local productivity tool you need.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/DenchHQ/DenchClaw#readme",
|
|
File without changes
|
|
File without changes
|
/package/apps/web/.next/static/{iikRD5ldHaLo2uUJJYnoU → YDHSeK_OR4BMgihRhaWam}/_buildManifest.js
RENAMED
|
File without changes
|
/package/apps/web/.next/static/{iikRD5ldHaLo2uUJJYnoU → YDHSeK_OR4BMgihRhaWam}/_ssgManifest.js
RENAMED
|
File without changes
|