@sapienx/agentos 0.6.10 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/.next/BUILD_ID +1 -1
- package/bundle/.next/app-path-routes-manifest.json +2 -2
- package/bundle/.next/build-manifest.json +3 -3
- package/bundle/.next/prerender-manifest.json +3 -3
- package/bundle/.next/react-loadable-manifest.json +2 -2
- package/bundle/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/_global-error.html +1 -1
- package/bundle/.next/server/app/_global-error.rsc +1 -1
- package/bundle/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/bundle/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/bundle/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/bundle/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/bundle/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/bundle/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/bundle/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/_not-found.html +1 -1
- package/bundle/.next/server/app/_not-found.rsc +2 -2
- package/bundle/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/bundle/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/bundle/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/bundle/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/bundle/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/bundle/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/bundle/.next/server/app/accounts/page.js +1 -1
- package/bundle/.next/server/app/accounts/page.js.nft.json +1 -1
- package/bundle/.next/server/app/accounts/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/agents/page.js +1 -1
- package/bundle/.next/server/app/agents/page.js.nft.json +1 -1
- package/bundle/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/accounts/access-rules/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/accounts/browser-profiles/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/accounts/login-targets/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/agents/[agentId]/chat/route.js +2 -2
- package/bundle/.next/server/app/api/agents/[agentId]/chat/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/agents/route.js +1 -1
- package/bundle/.next/server/app/api/agents/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/diagnostics/route.js +1 -1
- package/bundle/.next/server/app/api/diagnostics/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/gateway/control/route.js +1 -1
- package/bundle/.next/server/app/api/gateway/control/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/integrations/[integrationId]/status/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/mission/route.js +2 -2
- package/bundle/.next/server/app/api/mission/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/models/catalog/route.js +1 -1
- package/bundle/.next/server/app/api/models/catalog/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/models/providers/route.js +1 -1
- package/bundle/.next/server/app/api/models/providers/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/onboarding/models/route.js +2 -2
- package/bundle/.next/server/app/api/onboarding/models/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/onboarding/route.js +2 -2
- package/bundle/.next/server/app/api/onboarding/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/openclaw/capabilities/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/openclaw/compatibility-smoke/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/turn/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/turn/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/route.js +1 -1
- package/bundle/.next/server/app/api/planner/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/reset/route.js +2 -2
- package/bundle/.next/server/app/api/reset/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js +1 -1
- package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/settings/config-pacing/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/settings/gateway/route.js +1 -1
- package/bundle/.next/server/app/api/settings/gateway/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/settings/openclaw-binary/route.js +1 -1
- package/bundle/.next/server/app/api/settings/openclaw-binary/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/settings/workspace-root/route.js +1 -1
- package/bundle/.next/server/app/api/settings/workspace-root/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/snapshot/route.js +1 -1
- package/bundle/.next/server/app/api/snapshot/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/stream/route.js +2 -2
- package/bundle/.next/server/app/api/stream/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/control/route.js +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/control/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js +2 -2
- package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/update/route.js +2 -2
- package/bundle/.next/server/app/api/update/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/discovered-groups/route.js +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/discovered-groups/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/route.js +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/files/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/surfaces/discovery/route.js +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/surfaces/discovery/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/surfaces/reconcile/route.js +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/surfaces/reconcile/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/route.js +2 -2
- package/bundle/.next/server/app/api/workspaces/route.js.nft.json +1 -1
- package/bundle/.next/server/app/dashboard/page.js +1 -1
- package/bundle/.next/server/app/dashboard/page.js.nft.json +1 -1
- package/bundle/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/files/page.js +1 -1
- package/bundle/.next/server/app/files/page.js.nft.json +1 -1
- package/bundle/.next/server/app/files/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/integrations/page.js +1 -1
- package/bundle/.next/server/app/integrations/page.js.nft.json +1 -1
- package/bundle/.next/server/app/integrations/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/mission-control/page.js +1 -1
- package/bundle/.next/server/app/mission-control/page.js.nft.json +1 -1
- package/bundle/.next/server/app/mission-control/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/models/page.js +1 -1
- package/bundle/.next/server/app/models/page.js.nft.json +1 -1
- package/bundle/.next/server/app/models/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/page.js +1 -1
- package/bundle/.next/server/app/page.js.nft.json +1 -1
- package/bundle/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/settings/page.js +1 -1
- package/bundle/.next/server/app/settings/page.js.nft.json +1 -1
- package/bundle/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/tasks/page.js +1 -1
- package/bundle/.next/server/app/tasks/page.js.nft.json +1 -1
- package/bundle/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app-paths-manifest.json +2 -2
- package/bundle/.next/server/chunks/4020.js +2 -2
- package/bundle/.next/server/chunks/4391.js +2 -2
- package/bundle/.next/server/chunks/4983.js +2 -2
- package/bundle/.next/server/chunks/5110.js +1 -1
- package/bundle/.next/server/chunks/7092.js +1 -1
- package/bundle/.next/server/chunks/7639.js +1 -1
- package/bundle/.next/server/chunks/{4767.js → 849.js} +11 -9
- package/bundle/.next/server/middleware-build-manifest.js +1 -1
- package/bundle/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/bundle/.next/server/pages/404.html +1 -1
- package/bundle/.next/server/pages/500.html +1 -1
- package/bundle/.next/server/server-reference-manifest.json +1 -1
- package/bundle/.next/static/chunks/2125-550587dbe8706439.js +3 -0
- package/bundle/.next/static/chunks/5922-156b66daaaf768a5.js +174 -0
- package/bundle/.next/static/chunks/7197.43cef56b1689bb96.js +1 -0
- package/bundle/.next/static/chunks/{7442-f6bbc0b14b5ca5e5.js → 7442-305daba070b016f8.js} +10 -10
- package/bundle/.next/static/chunks/webpack-b743b1572b052c61.js +1 -0
- package/bundle/.next/static/css/b65c0ec3db2a737c.css +3 -0
- package/bundle/public/assets/screenshots/0.jpeg +0 -0
- package/bundle/public/assets/screenshots/8.jpeg +0 -0
- package/bundle/public/assets/screenshots/hero.jpeg +0 -0
- package/package.json +1 -1
- package/bundle/.next/static/chunks/2125-ee3186e76863c0c0.js +0 -3
- package/bundle/.next/static/chunks/5922-bd40755edb9a1242.js +0 -174
- package/bundle/.next/static/chunks/7197.9a3977e98b2a1fe9.js +0 -1
- package/bundle/.next/static/chunks/webpack-82d9aaa9ef1f9bdf.js +0 -1
- package/bundle/.next/static/css/2f74db4938189dc1.css +0 -3
- /package/bundle/.next/static/{9xNgkJTOL7J6_GGDUZWeG → EEOvGgtsvMlezk0mE5jQb}/_buildManifest.js +0 -0
- /package/bundle/.next/static/{9xNgkJTOL7J6_GGDUZWeG → EEOvGgtsvMlezk0mE5jQb}/_ssgManifest.js +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2125],{14474:(e,t,r)=>{function a(e){let t=e.followUps;return Array.isArray(t)?t.map(e=>d(e)?function(e){let t=l(e.id),r=l(e.message),a=l(e.createdAt);if(!t||!r||!a)return null;let s=l(e.prompt)??r,o=l(e.summary),u=n({message:r,prompt:s,summary:o})??r;return{id:t,message:u,prompt:s||u,createdAt:a,taskId:l(e.taskId),dispatchId:l(e.dispatchId),runId:l(e.runId),sessionId:l(e.sessionId),status:l(e.status),summary:o,tokenUsage:function(e){if(!d(e))return;let t=i(e.input),r=i(e.output),a=i(e.total);if(null===t||null===r||null===a)return;let n=i(e.cacheRead);return{input:t,output:r,total:a,...null===n?{}:{cacheRead:n}}}(e.tokenUsage),createdFiles:function(e){if(Array.isArray(e))return e.flatMap(e=>{if(!d(e))return[];let t=l(e.path),r=l(e.displayPath)??t;return t&&r?[{path:t,displayPath:r}]:[]})}(e.createdFiles)}}(e):null).filter(e=>!!e):[]}function n(e){var t,r;let a,n=(a="string"==typeof(t=e.prompt)?t.trim():"").length>0?a:null;return o(e.message)??function(e){if(!e)return null;let t=e.match(/Operator follow-up:\s*([\s\S]*?)(?:\n\s*Original mission:|\n\s*Latest result:|\n\s*Output context:|\n\s*Existing output\/files:|$)/i);return t?.[1]?.trim()||null}(e.prompt)??(n&&(r=n,!(/^Continue this task in the existing task context\./i.test(r)||/^Operator follow-up:/i.test(r)||/Original mission:/i.test(r)||/Latest result:/i.test(r)||/Output context:/i.test(r)||/Existing output\/files:/i.test(r)))?n:null)??o(e.summary)??null}function s(e,t){let r=new Map;for(let a of[...e,...t]){let e=a.runId||a.id,t=r.get(e);r.set(e,t?function(e,t){let r={...e,...t,summary:t.summary??e.summary,status:t.status??e.status,sessionId:t.sessionId??e.sessionId,tokenUsage:t.tokenUsage??e.tokenUsage,createdFiles:t.createdFiles??e.createdFiles},a=n(r)??o(e.message)??e.prompt;return{...r,message:a,prompt:r.prompt||a}}(t,a):a)}return Array.from(r.values()).sort((e,t)=>Date.parse(e.createdAt)-Date.parse(t.createdAt))}function o(e){let t="string"==typeof e?e.trim():"";return!t||/^Follow-up \d+$/i.test(t)?null:t}function l(e){return"string"==typeof e&&e.trim().length>0?e.trim():null}function i(e){return"number"==typeof e&&Number.isFinite(e)?e:null}function d(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}r.d(t,{Rx:()=>n,kT:()=>a,tt:()=>s})},72125:(e,t,r)=>{r.d(t,{D9:()=>k,_L:()=>y,e4:()=>b,fs:()=>x});var a=r(36366),n=r(70430),s=r(79613),o=r(8894),l=r(62071),i=r(2961),d=r(8120),u=r(19306),p=r(50243);function c(e,t){let r=e.metadata[t];return"string"==typeof r&&r.trim().length>0?r.trim():null}function m(e,t){let r=e.replace(/\s+\n/g,"\n").trim();return r.length<=t?r:`${r.slice(0,Math.max(t-39,1)).trimEnd()}
|
|
2
|
-
|
|
3
|
-
[truncated for task follow-up]`}var g=r(14474),f=r(82711),h=r(23351);function x(e){var t;let r,a,n=((0,g.Rx)(e)??e.message.trim())||"Follow-up";return e.summary?["Operator follow-up:",n,"\nAgent response:",e.summary].join("\n"):(t=e.status,"timeout"===(r=t?.trim().toLowerCase())||"timed_out"===r||"stalled"===r||"failed"===r)?["Operator follow-up:",n,"\nNo agent answer was captured before the OpenClaw wait window expired."].join("\n"):["Operator follow-up:",n,"",`Accepted for continuation ${Number.isNaN(a=Date.parse(e.createdAt))?"just now":new Date(a).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"})}.`,e.runId?`OpenClaw run ${e.runId} is being tracked for this follow-up.`:"Waiting for the agent result to appear in the task feed and latest result."].join("\n")}function b({metrics:e,className:t,compact:r=!1}){return(0,a.jsx)("div",{className:(0,h.cn)("flex flex-wrap items-center gap-2.5",t),children:e.map((e,t)=>{let n=e.icon,s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n,{className:(0,h.cn)("h-3.5 w-3.5 shrink-0",e.highlighted?"text-emerald-700 dark:text-emerald-200":"text-muted-foreground dark:text-slate-400")}),(0,a.jsx)("span",{children:e.label}),void 0!==e.value?(0,a.jsx)("span",{className:(0,h.cn)("ml-0.5 inline-flex min-w-5 items-center justify-center rounded-full px-1.5 py-0.5 font-mono text-[10px]",e.highlighted?"bg-emerald-50 text-emerald-700 dark:bg-emerald-300/12 dark:text-emerald-100":"bg-muted text-foreground dark:bg-white/[0.06] dark:text-slate-200"),children:e.value}):null]});return e.onClick?(0,a.jsx)("button",{type:"button",className:(0,h.cn)(w(e,r),"transition-colors hover:border-primary/20 hover:bg-accent/60 hover:text-foreground dark:hover:border-cyan-200/24 dark:hover:bg-white/[0.06] dark:hover:text-slate-100"),onClick:t=>{t.stopPropagation(),e.onClick?.()},onPointerDown:e=>e.stopPropagation(),children:s},`${e.label}-${t}`):(0,a.jsx)("span",{className:w(e,r),children:s},`${e.label}-${t}`)})})}function k({title:e="Latest result",result:t,emptyText:r="No result has been captured for this task yet.",className:o,compact:l=!1}){let[i,d]=(0,n.useState)(!1),u=t?.trim()||r,p=(0,f.$m)(u,l?150:260)||u;return(0,a.jsxs)("section",{className:(0,h.cn)("rounded-[16px] border border-border bg-card px-3 py-2.5 shadow-[inset_0_1px_0_hsl(var(--border)/0.35)] dark:border-white/[0.08] dark:bg-slate-950/28 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.03)]",o),onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:[(0,a.jsxs)("button",{type:"button","aria-expanded":i,className:"flex w-full items-center justify-between gap-3 text-left",onClick:()=>d(e=>!e),children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full bg-emerald-300 shadow-[0_0_10px_rgba(52,211,153,0.6)]"}),(0,a.jsx)("span",{className:"truncate text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground dark:text-slate-400",children:e})]}),(0,a.jsx)(s.A,{className:(0,h.cn)("h-4 w-4 shrink-0 text-muted-foreground transition-transform dark:text-slate-400",i&&"rotate-180")})]}),(0,a.jsx)("p",{className:(0,h.cn)("mt-2 whitespace-pre-wrap text-foreground/85 dark:text-slate-200/90",l?"text-[11.5px] leading-5":"text-sm leading-6",i?"max-h-56 overflow-y-auto pr-2":"line-clamp-2"),children:i?u:p})]})}function y({task:e,latestResult:t,createdFiles:r,outputSummary:s,onSubmitted:g,onExpandRequest:f,textareaRef:x,expanded:b=!1,className:k,compact:w=!1}){var j;let[_,N]=(0,n.useState)(""),[A,C]=(0,n.useState)(!1),O="queued"!==(j=e.status)&&"running"!==j&&"stalled"!==j&&"completed"!==j?{available:!1,reason:"Follow-up is available for queued, running, stalled, or completed tasks."}:e.primaryAgentId||0!==e.agentIds.length?e.dispatchId||0!==e.sessionIds.length?{available:!0,reason:null}:{available:!1,reason:"This task does not expose an OpenClaw session or dispatch to continue."}:{available:!1,reason:"This task does not expose an OpenClaw agent to continue."},$=_.trim(),F=O.reason||(A?"Follow-up is being sent.":null)||($?null:"Enter a follow-up before sending."),P=!!F,S=async()=>{if(!P&&!A){C(!0);try{var a,n,o,l,i;let d,u,f,h,x,b,k,y,w=(a={task:e,operatorMessage:$,latestResult:t,createdFiles:r,outputSummary:s},h=m(a.operatorMessage,3e3),x=m((n=a.task,n.mission?.trim()||n.title.trim()||"Untitled task"),2600),b=m(a.latestResult||c(a.task,"finalResponseText")||c(a.task,"resultPreview")||a.task.subtitle,4200),k=m((o=a.task,(d=(a.createdFiles??[]).map(e=>e.displayPath||e.path).filter(e=>"string"==typeof e&&e.trim().length>0).slice(0,8)).length>0?d.join("\n"):o.artifactCount>0?`${o.artifactCount} file${1===o.artifactCount?"":"s"} reported by this task.`:""),1e3),y=m(a.outputSummary??"",4200),m(["Continue this task in the existing task context. Use the current OpenClaw session state and previous result; do not restart unless the operator explicitly asks for a retry.","","Operator follow-up:",h,"","Original mission:",x,b?"":null,b?"Latest result:":null,b||null,y?"":null,y?"Output context:":null,y||null,k?"":null,k?"Existing output/files:":null,k||null].filter(e=>"string"==typeof e).join("\n"),11600)),j=await fetch(`/api/tasks/${encodeURIComponent(e.id)}/control`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"continue",message:w,dispatchId:e.dispatchId??null})}),_=await j.json().catch(()=>null);if(!j.ok||_?.error)throw Error(_?.error||"Unable to send follow-up.");let A=(l=_,u=l?.result,f=u?.result??{},{taskId:v(u?.taskId),runId:v(f.runId)??v(u?.target?.runId),sessionId:v(f.sessionId)??v(u?.target?.sessionId)??v(u?.target?.sessionKey),status:v(f.status),summary:v(f.summary)??(i=f,(Array.isArray(i.payloads)?i.payloads:I(i.result)&&Array.isArray(i.result.payloads)?i.result.payloads:[]).map(e=>I(e)?v(e.text):null).filter(e=>!!e).join("\n").trim()||null)});N("");let C={id:`follow-up:${e.id}:${Date.now()}`,message:$,prompt:w,createdAt:new Date().toISOString(),taskId:A.taskId,dispatchId:e.dispatchId??null,runId:A.runId,sessionId:A.sessionId,status:A.status,summary:A.summary};p.o.success("Follow-up accepted.",{description:"OpenClaw accepted the continuation. AgentOS will track the follow-up until live output arrives."}),await g?.(C)}catch(e){p.o.error("Follow-up failed.",{description:e instanceof Error?e.message:"Unknown task continuation error."})}finally{C(!1)}}};return(0,a.jsxs)("div",{className:(0,h.cn)("rounded-[16px] border border-border bg-card p-2 shadow-[inset_0_1px_0_hsl(var(--border)/0.35)] dark:border-cyan-200/14 dark:bg-slate-950/36 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]",b&&"border-primary/20 bg-accent/50 dark:border-cyan-200/24 dark:bg-slate-950/46",k),onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"flex items-end gap-2",children:[(0,a.jsxs)("div",{className:(0,h.cn)("flex min-h-11 flex-1 items-start gap-2 rounded-[13px] border border-border bg-background/60 px-2.5 py-2 transition-[min-height,border-color,background-color] duration-200 dark:border-white/[0.07] dark:bg-black/18",b&&"min-h-14 border-primary/20 bg-background dark:border-cyan-200/20 dark:bg-black/24"),children:[(0,a.jsx)(o.A,{className:(0,h.cn)("mt-1 h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200 dark:text-slate-400",b&&"scale-110 text-primary dark:text-cyan-100")}),(0,a.jsx)(u.T,{ref:x,value:_,maxLength:4e3,disabled:A||!O.available,placeholder:"Ask a follow-up...",className:(0,h.cn)("min-h-8 resize-none border-0 bg-transparent p-0 font-medium text-foreground caret-primary shadow-none placeholder:font-medium placeholder:text-muted-foreground focus-visible:ring-0 dark:text-slate-100 dark:caret-emerald-200 dark:placeholder:text-slate-400",w?"text-base leading-7":"text-[16px] leading-7",b&&"text-[17px]"),rows:b?3:w?1:2,title:O.reason??void 0,onFocus:()=>f?.(),onChange:e=>N(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),S())}})]}),(0,a.jsx)(d.$,{type:"button",size:"icon",disabled:P,title:F??"Send follow-up",className:(0,h.cn)("h-11 w-11 shrink-0 rounded-[13px] border border-primary/20 bg-primary text-primary-foreground shadow-[0_10px_24px_hsl(var(--primary)/0.16)] hover:bg-primary/90 dark:border-cyan-200/16 dark:bg-slate-800 dark:text-emerald-200 dark:shadow-[0_0_24px_rgba(45,212,191,0.08)] dark:hover:bg-slate-700 dark:hover:text-emerald-100",P&&"opacity-55"),onClick:()=>void S(),children:A?(0,a.jsx)(l.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(i.A,{className:"h-4 w-4"})})]}),O.reason?(0,a.jsx)("p",{className:"mt-1.5 px-1 text-[10px] leading-4 text-amber-700 dark:text-amber-200/80",children:O.reason}):null]})}function w(e,t){return(0,h.cn)("inline-flex min-w-0 items-center gap-1.5 rounded-full border font-medium",t?"px-2 py-1 text-[10px]":"px-3 py-1.5 text-xs",e.highlighted?"border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-300/18 dark:bg-emerald-300/[0.07] dark:text-emerald-100":"border-border bg-muted/45 text-muted-foreground dark:border-white/[0.08] dark:bg-white/[0.03] dark:text-slate-300",e.active&&"border-primary/25 bg-primary/10 text-primary dark:border-cyan-200/25 dark:bg-cyan-300/[0.08] dark:text-cyan-100")}function v(e){return"string"==typeof e&&e.trim().length>0?e.trim():null}function I(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}}}]);
|