hive-am 1.4.0 → 1.6.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/CHANGELOG.md +52 -1
- package/README.md +6 -9
- package/bin/hive-am.mjs +242 -31
- package/bin/run.mjs +135 -0
- package/package.json +1 -1
- package/server/dist/connections/format.js +26 -0
- package/server/dist/connections/index.js +2 -0
- package/server/dist/connections/manager.js +18 -6
- package/server/dist/connections/router.js +43 -13
- package/server/dist/connections/secrets.js +9 -1
- package/server/dist/connections/slack.js +488 -0
- package/server/dist/connections/store.js +2 -0
- package/server/dist/db/migrations.js +80 -0
- package/server/dist/db.js +26 -13
- package/server/dist/dispatches.js +126 -0
- package/server/dist/efforts.js +105 -0
- package/server/dist/http/routes/agents.js +4 -3
- package/server/dist/http/routes/meta.js +12 -0
- package/server/dist/http/routes/notebook.js +10 -2
- package/server/dist/http/routes/orchestration.js +13 -2
- package/server/dist/http/routes/resources.js +3 -0
- package/server/dist/http/routes/types.js +18 -1
- package/server/dist/http/validate.js +27 -4
- package/server/dist/index.js +6 -1
- package/server/dist/instructions.js +11 -3
- package/server/dist/objects/agent-db.js +258 -0
- package/server/dist/objects/database.js +496 -34
- package/server/dist/objects/index.js +16 -8
- package/server/dist/providers/kiro.js +7 -1
- package/server/dist/providers/opencode-server.js +11 -1
- package/server/dist/providers/opencode.js +4 -3
- package/server/dist/providers/spawn.js +38 -4
- package/server/dist/retention.js +52 -0
- package/server/dist/runtime.js +69 -27
- package/server/dist/services/agents.js +53 -1
- package/server/dist/services/connections.js +18 -3
- package/server/dist/services/notebook.js +7 -3
- package/server/dist/skills/defaults.js +41 -5
- package/server/dist/skills/notebook.js +57 -13
- package/server/dist/watch.js +1 -1
- package/server/mcp/dispatch.mjs +116 -5
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/app-build-manifest.json +98 -82
- package/web/.next/app-path-routes-manifest.json +7 -7
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +51 -51
- package/web/.next/server/app/_not-found/page.js +2 -2
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_not-found.html +1 -1
- package/web/.next/server/app/_not-found.rsc +3 -3
- package/web/.next/server/app/agents/[id]/page.js +4 -4
- package/web/.next/server/app/agents/[id]/page.js.nft.json +1 -1
- package/web/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/agents/page.js +2 -2
- package/web/.next/server/app/agents/page.js.nft.json +1 -1
- package/web/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/agents.html +1 -1
- package/web/.next/server/app/agents.rsc +21 -18
- package/web/.next/server/app/chat/page.js +2 -2
- package/web/.next/server/app/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/chat.html +1 -1
- package/web/.next/server/app/chat.rsc +4 -4
- package/web/.next/server/app/connections/page.js +2 -2
- package/web/.next/server/app/connections/page.js.nft.json +1 -1
- package/web/.next/server/app/connections/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/connections.html +1 -1
- package/web/.next/server/app/connections.rsc +4 -4
- package/web/.next/server/app/index.html +1 -1
- package/web/.next/server/app/index.rsc +4 -4
- package/web/.next/server/app/page.js +2 -2
- package/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/relations/page.js +2 -2
- package/web/.next/server/app/relations/page.js.nft.json +1 -1
- package/web/.next/server/app/relations/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/relations.html +1 -1
- package/web/.next/server/app/relations.rsc +4 -4
- package/web/.next/server/app/resources/[id]/page.js +2 -2
- package/web/.next/server/app/resources/[id]/page.js.nft.json +1 -1
- package/web/.next/server/app/resources/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/resources/page.js +2 -2
- package/web/.next/server/app/resources/page.js.nft.json +1 -1
- package/web/.next/server/app/resources/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/resources.html +1 -1
- package/web/.next/server/app/resources.rsc +4 -4
- package/web/.next/server/app/schedules/page.js +2 -2
- package/web/.next/server/app/schedules/page.js.nft.json +1 -1
- package/web/.next/server/app/schedules/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/schedules.html +1 -1
- package/web/.next/server/app/schedules.rsc +4 -4
- package/web/.next/server/app/sessions/page.js +2 -2
- package/web/.next/server/app/sessions/page.js.nft.json +1 -1
- package/web/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/sessions.html +1 -1
- package/web/.next/server/app/sessions.rsc +4 -4
- package/web/.next/server/app/skills/page.js +2 -2
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills.html +1 -1
- package/web/.next/server/app/skills.rsc +4 -4
- package/web/.next/server/app/types/page.js +2 -2
- package/web/.next/server/app/types/page.js.nft.json +1 -1
- package/web/.next/server/app/types/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/types.html +1 -1
- package/web/.next/server/app/types.rsc +4 -4
- package/web/.next/server/app-paths-manifest.json +7 -7
- package/web/.next/server/chunks/{505.js → 111.js} +1 -1
- package/web/.next/server/chunks/143.js +1 -1
- package/web/.next/server/chunks/213.js +1 -1
- package/web/.next/server/chunks/368.js +1 -1
- package/web/.next/server/chunks/403.js +1 -1
- package/web/.next/server/chunks/612.js +1 -1
- package/web/.next/server/chunks/741.js +2 -0
- package/web/.next/server/chunks/837.js +1 -0
- package/web/.next/server/chunks/{435.js → 939.js} +3 -3
- package/web/.next/server/pages/404.html +1 -1
- package/web/.next/server/pages/500.html +1 -1
- package/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/static/chunks/162-68ba190086f5ad39.js +1 -0
- package/web/.next/static/chunks/214-35b88db02113ae02.js +1 -0
- package/web/.next/static/chunks/281-4506bc98b7111729.js +1 -0
- package/web/.next/static/chunks/491-196bcb3dd11bb460.js +1 -0
- package/web/.next/static/chunks/517-8f2db464d10a4624.js +1 -0
- package/web/.next/static/chunks/{586-f7017d585a84738d.js → 586-4f67b823df060b46.js} +1 -1
- package/web/.next/static/chunks/587-3c53d91a1c4f99d6.js +1 -0
- package/web/.next/static/chunks/606-14fb5aaa4d0ff22d.js +1 -0
- package/web/.next/static/chunks/642-dc874c8caf203ee1.js +1 -0
- package/web/.next/static/chunks/{705-f81face97b1bb1af.js → 705-ce86175dea00e6a9.js} +1 -1
- package/web/.next/static/chunks/757-03361e7a97a605a2.js +1 -0
- package/web/.next/static/chunks/771-db19da9b1a24820c.js +1 -0
- package/web/.next/static/chunks/app/agents/[id]/page-803d53aedd10c8e5.js +1 -0
- package/web/.next/static/chunks/app/agents/layout-71dd98d696935e29.js +1 -0
- package/web/.next/static/chunks/app/agents/page-9da499db6d22731f.js +1 -0
- package/web/.next/static/chunks/app/chat/{page-5261b12b7d50f5d1.js → page-383bc24e72dab7fa.js} +1 -1
- package/web/.next/static/chunks/app/connections/page-b0ea2eae62cef74e.js +1 -0
- package/web/.next/static/chunks/app/layout-cb5af29b0742c513.js +1 -0
- package/web/.next/static/chunks/app/page-5e547e87de23d9fa.js +1 -0
- package/web/.next/static/chunks/app/relations/page-02710fe1f8a670a9.js +1 -0
- package/web/.next/static/chunks/app/resources/[id]/page-1e2afddcb1f04884.js +1 -0
- package/web/.next/static/chunks/app/resources/{page-61cccd8fdcc2f6c8.js → page-195b0af83b8ace0d.js} +1 -1
- package/web/.next/static/chunks/app/sessions/page-85638705fdc18174.js +1 -0
- package/web/.next/static/chunks/app/types/page-c4c2b2217c4667e8.js +1 -0
- package/web/.next/static/css/c7faf690373117bb.css +1 -0
- package/web/.next/trace +30 -30
- package/web/.next/types/routes.d.ts +2 -1
- package/web/.next/types/validator.ts +9 -0
- package/web/.next/server/chunks/274.js +0 -1
- package/web/.next/static/chunks/281-113274e705940a55.js +0 -1
- package/web/.next/static/chunks/316-26da9cc233ba7557.js +0 -1
- package/web/.next/static/chunks/391-18768499e741112e.js +0 -1
- package/web/.next/static/chunks/517-373a80c8ba432bdc.js +0 -1
- package/web/.next/static/chunks/562-7c2e33d838e869bf.js +0 -1
- package/web/.next/static/chunks/587-8e4d2be01ba7d48f.js +0 -1
- package/web/.next/static/chunks/606-c9a19918b02a98d0.js +0 -1
- package/web/.next/static/chunks/656-f537149fe28f79aa.js +0 -1
- package/web/.next/static/chunks/app/agents/[id]/page-6ed6edb3e74b0ebe.js +0 -1
- package/web/.next/static/chunks/app/agents/page-9bb8cba69776c719.js +0 -1
- package/web/.next/static/chunks/app/connections/page-eb11cfb1ffeab3ca.js +0 -1
- package/web/.next/static/chunks/app/layout-fad968a635f9a4b3.js +0 -1
- package/web/.next/static/chunks/app/page-99e0351e6ccaa384.js +0 -1
- package/web/.next/static/chunks/app/relations/page-a44fd515a3b0525e.js +0 -1
- package/web/.next/static/chunks/app/resources/[id]/page-fc494e85b01e8cb7.js +0 -1
- package/web/.next/static/chunks/app/sessions/page-a7534ebd90e982d6.js +0 -1
- package/web/.next/static/chunks/app/types/page-ebd37e220f77c1f3.js +0 -1
- package/web/.next/static/css/582723fcea1f9887.css +0 -1
- /package/web/.next/static/{YT6HM6qmegMJaBMX5QvuP → tdnUXVa01m25EjOobxVd1}/_buildManifest.js +0 -0
- /package/web/.next/static/{YT6HM6qmegMJaBMX5QvuP → tdnUXVa01m25EjOobxVd1}/_ssgManifest.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var a={};a.id=974,a.ids=[974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1417:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>F.a,__next_app__:()=>L,handler:()=>N,pages:()=>K,routeModule:()=>M,tree:()=>J});var d=c(62009),e=c(51640),f=c(52679),g=c(69985),h=c(91790),i=c(81200),j=c(54530),k=c(35977),l=c(234),m=c(43472),n=c(12698),o=c(28976),p=c(54084),q=c(16307),r=c(53063),s=c(72428),t=c(261),u=c(48291),v=c(56032),w=c(26713),x=c(83370),y=c(10143),z=c(27155),A=c(77620),B=c(13428),C=c(50164),D=c(86439),E=c(2972),F=c.n(E),G=c(94672),H=c(18313),I={};for(let a in G)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(I[a]=()=>G[a]);c.d(b,I);let J={children:["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,10230)),"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,84507))).default(a),async a=>(await Promise.resolve().then(c.bind(c,23575))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,54287))).default(a)],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,
|
|
2
|
-
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:x.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},n=async({hasResolved:c,previousCacheEntry:d,isRevalidating:g,span:h})=>{let j,k=!1===M.isDev,m=c||b.writableEnded;if(aj&&ad&&!d&&!P)return(null==ae?void 0:ae.render404)?await ae.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ak&&(j=(0,y.parseFallbackField)(ak.fallback)),j===y.FallbackMode.PRERENDER&&(0,w.isBot)(an)&&(!at||ap)&&(j=y.FallbackMode.BLOCKING_STATIC_RENDER),(null==d?void 0:d.isStale)===-1&&(aj=!0),aj&&(j!==y.FallbackMode.NOT_FOUND||d)&&(j=y.FallbackMode.BLOCKING_STATIC_RENDER),!P&&j!==y.FallbackMode.BLOCKING_STATIC_RENDER&&aD&&!m&&!ab&&V&&(k||!al)){let b;if((k||ak)&&j===y.FallbackMode.NOT_FOUND)throw new D.NoFallbackError;if(at&&!ar){let c="string"==typeof(null==ak?void 0:ak.fallback)?ak.fallback:k?ai:null;if(b=await M.handleResponse({cacheKey:c,req:a,nextConfig:af,routeKind:f.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:aa,isRoutePPREnabled:at,responseGenerator:async()=>l({span:h,postponed:void 0,fallbackRouteParams:k||av?(0,p.u)(ai):null}),waitUntil:e.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let n=aj||g||!aw?void 0:aw;if(au&&void 0!==n)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:x.CachedRouteKind.PAGES,html:z.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let o=V&&at&&((0,i.getRequestMeta)(a,"renderFallbackShell")||av)?(0,p.u)(ah):null;return l({span:h,postponed:n,fallbackRouteParams:o})},o=async c=>{var d,g,h,j,k;let m,o=await M.handleResponse({cacheKey:aC,responseGenerator:a=>n({span:c,...a}),routeKind:f.RouteKind.APP_PAGE,isOnDemandRevalidate:aj,isRoutePPREnabled:at,req:a,nextConfig:af,prerenderManifest:aa,waitUntil:e.waitUntil});if(ab&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),M.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!o){if(aC)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(d=o.value)?void 0:d.kind)!==x.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(h=o.value)?void 0:h.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof o.value.postponed;am&&!ax&&(!p||aq)&&(P||b.setHeader("x-nextjs-cache",aj?"REVALIDATED":o.isMiss?"MISS":o.isStale?"STALE":"HIT"),b.setHeader(v.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=o;if(aw)m={revalidate:0,expire:void 0};else if(P&&ar&&!aq&&at)m={revalidate:0,expire:void 0};else if(!M.isDev)if(ab)m={revalidate:0,expire:void 0};else if(am){if(o.cacheControl)if("number"==typeof o.cacheControl.revalidate){if(o.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${o.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});m={revalidate:o.cacheControl.revalidate,expire:(null==(j=o.cacheControl)?void 0:j.expire)??af.expireTime}}else m={revalidate:A.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(m={revalidate:0,expire:void 0});if(o.cacheControl=m,"string"==typeof ay&&(null==q?void 0:q.kind)===x.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(v.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[A.NEXT_CACHE_TAGS_HEADER];P&&am&&c&&"string"==typeof c&&b.setHeader(A.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ay);return void 0!==d?(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:z.default.fromStatic(d,v.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl}):(b.statusCode=204,(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:z.default.EMPTY,cacheControl:o.cacheControl}))}let r=(0,i.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...o,value:{...o.value,kind:"PAGE"}},{url:(0,i.getRequestMeta)(a,"initURL")}))return null;if(p&&aw)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(P&&am||delete a[A.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[A.NEXT_CACHE_TAGS_HEADER];if(P&&am&&s&&"string"==typeof s&&b.setHeader(A.NEXT_CACHE_TAGS_HEADER,s),!q.status||ar&&at||(b.statusCode=q.status),!P&&q.status&&H.RedirectStatusCode[q.status]&&ar&&(b.statusCode=200),p&&b.setHeader(v.NEXT_DID_POSTPONE_HEADER,"1"),ar&&!ab){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:q.html,cacheControl:ax?{revalidate:0,expire:void 0}:o.cacheControl})}return(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:z.default.fromStatic(q.rscData,v.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl})}let t=q.html;if(!p||P||ar)return(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:t,cacheControl:o.cacheControl});if(au)return t.push(new ReadableStream({start(a){a.enqueue(B.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}});let u=new TransformStream;return t.push(u.readable),l({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==x.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(u.writable)}).catch(a=>{u.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}})};if(!aH)return await aG.withPropagatedContext(a.headers,()=>aG.trace(j.BaseServerSpan.handleRequest,{spanName:`${aF} ${a.url}`,kind:h.SpanKind.SERVER,attributes:{"http.method":aF,"http.target":a.url}},o));await o(aH)}catch(b){throw b instanceof D.NoFallbackError||await M.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"render",revalidateReason:(0,g.c)({isRevalidate:am,isOnDemandRevalidate:aj})},ae),b}}},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10230:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(85972).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx","default")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},38550:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(51537).A)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},51291:(a,b,c)=>{Promise.resolve().then(c.bind(c,80749))},55511:a=>{"use strict";a.exports=require("crypto")},61222:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(51537).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66390:(a,b,c)=>{"use strict";c.d(b,{G:()=>i});var d=c(55322),e=c(81963),f=c(60570),g=c(7371),h=c(93884);function i({agent:a,onClose:b,onDeleted:c}){let{t:i}=(0,h.s9)(),{refresh:j}=(0,f.zd)(),k=(0,e.dj)();return(0,d.jsx)(e.TM,{title:i("agent.deleteTitle",{name:a.name}),body:i("agent.deleteBody"),danger:!0,confirmLabel:i("agent.delete"),cancelLabel:i("agent.keep"),onClose:b,onConfirm:async()=>{await g.FH.del(`/agents/${a.id}`),await j(["agents","colonies"]),k(i("agent.deleted")),c?.()}})}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},80749:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>U});var d=c(55322),e=c(91705),f=c.n(e),g=c(17027),h=c(71267),i=c(67455),j=c(48881),k=c(2266),l=c(61222),m=c(29723),n=c(45762),o=c(38550),p=c(31251);let q=(0,c(51537).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var r=c(34410),s=c(60570),t=c(73269),u=c(7371),v=c(61162),w=c(81963),x=c(94547),y=c(36143),z=c(59686),A=c(13520),B=c(85748),C=c(93884);let D=v.hg,E=["cwd","permission","skills","prompt"];function F({colony:a,onClose:b}){let{t:c}=(0,C.s9)(),{agents:e,skills:f,colonies:h,refresh:i}=(0,s.q5)(),j=(0,w.dj)(),[k,l]=(0,g.useState)(()=>a?{name:a.name,color:a.color,cwd:a.cwd,permission:a.permission,system_prompt:a.system_prompt,skill_ids:a.skill_ids,skill_loads:a.skill_loads,agent_ids:a.agent_ids,inherit:a.inherit}:{name:"",color:D[h.length%D.length],cwd:"",permission:"acceptEdits",system_prompt:"",skill_ids:[],skill_loads:{},agent_ids:[],inherit:{cwd:!0,permission:!0,skills:!0,prompt:!0}}),m=(0,g.useMemo)(()=>JSON.stringify(k),[]),n=JSON.stringify(k)!==m;(0,A.h)(n);let[o,p]=(0,g.useState)(!1),q=()=>{n?p(!0):b()},[t,v]=(0,g.useState)(""),[x,y]=(0,g.useState)(!1),[E,F]=(0,g.useState)(!1),[H,I]=(0,g.useState)(!1),J=(a,b)=>l(c=>({...c,[a]:b})),K=async d=>{I(!0);try{let e={...k,name:k.name.trim(),color:k.color.toLowerCase(),inherit:d};a?await u.FH.patch(`/colonies/${a.id}`,e):await u.FH.post("/colonies",e),await i(["agents","colonies"]),j(a?c("colony.saved"):c("colony.created")),b()}catch(a){y(!1),v(a instanceof Error?a.message:c("edit.saveFailed")),I(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(w._s,{title:a?c("colony.editTitle",{name:a.name}):c("colony.newTitle"),subtitle:c("colony.subtitle"),onClose:q,footer:(0,d.jsxs)(d.Fragment,{children:[a&&(0,d.jsxs)("button",{className:"btn danger push-r",onClick:()=>F(!0),children:[(0,d.jsx)(r.A,{size:15}),c("common.delete")]}),(0,d.jsx)("button",{className:"btn ghost",onClick:q,children:c("common.cancel")}),(0,d.jsx)("button",{className:"btn primary",onClick:()=>k.name.trim()?h.some(b=>b.id!==a?.id&&b.name.toLowerCase()===k.name.trim().toLowerCase())?void v(c("colony.err.nameTaken")):/^#[0-9a-f]{6}$/i.test(k.color)?void(v(""),y(!0)):void v(c("colony.err.color")):void v(c("colony.err.name")),children:a?c("colony.save"):c("colony.create")})]}),children:[(0,d.jsx)(w.D0,{label:c("form.name"),error:t,children:(0,d.jsx)("input",{className:"input",value:k.name,onChange:a=>J("name",a.target.value),placeholder:c("colony.name.placeholder"),"data-autofocus":!0})}),(0,d.jsx)(w.D0,{label:c("colony.color"),children:(0,d.jsxs)("div",{className:"swatches",children:[D.map(a=>(0,d.jsx)("button",{type:"button",className:"swatch",style:{"--c":a},"aria-pressed":k.color.toLowerCase()===a,"aria-label":c("colony.colorOption",{color:a}),onClick:()=>J("color",a)},a)),(0,d.jsx)("label",{className:`swatch custom ${D.includes(k.color.toLowerCase())?"":"on"}`,style:{"--c":/^#[0-9a-f]{6}$/i.test(k.color)?k.color:"transparent"},title:c("colony.colorCustom"),children:(0,d.jsx)("input",{type:"color",value:/^#[0-9a-f]{6}$/i.test(k.color)?k.color:"#2f8f5b",onChange:a=>J("color",a.target.value),"aria-label":c("colony.colorCustom")})}),(0,d.jsx)("input",{className:"input hex-input mono",value:k.color,maxLength:7,spellCheck:!1,"aria-label":c("colony.colorHex"),placeholder:"#2f8f5b",onChange:a=>{let b=a.target.value.trim();J("color",b.startsWith("#")||!b?b:`#${b}`)}})]})}),(0,d.jsx)(w.dR,{value:k.cwd,onChange:a=>J("cwd",a)}),(0,d.jsx)(w.en,{value:k.permission,onChange:a=>J("permission",a)}),(0,d.jsx)(w.D0,{label:c("inherit.context"),hint:c("colony.context.hint"),children:(0,d.jsx)(z.n,{value:k.system_prompt,onChange:a=>J("system_prompt",a),placeholder:c("colony.context.placeholder"),defaultView:"write",minHeight:160})}),(0,d.jsx)(w.D0,{label:c("form.skills"),children:(0,d.jsx)(w.kV,{skills:f,value:k.skill_ids,loads:k.skill_loads,onChange:(a,b)=>l({...k,skill_ids:a,skill_loads:b})})}),(0,d.jsx)(w.D0,{label:c("colony.members"),hint:c("colony.members.hint"),children:0===e.length?(0,d.jsx)("p",{className:"hint",children:c("colony.members.empty")}):(0,d.jsx)(B.C,{value:k.agent_ids,onChange:a=>J("agent_ids",a),items:e.map(b=>{let d=b.colony_id&&b.colony_id!==a?.id?h.find(a=>a.id===b.colony_id):null;return{id:b.id,name:b.name,note:d?c("colony.currentlyIn",{name:d.name}):b.description||c(`role.${b.role}`)}})})})]}),x&&(0,d.jsx)(G,{draft:k,colony:a,members:e.filter(a=>k.agent_ids.includes(a.id)),busy:H,onBack:()=>y(!1),onConfirm:K}),o&&(0,d.jsx)(w.TM,{danger:!0,title:c("fa.unsaved.title"),body:c("fa.unsaved.body"),confirmLabel:c("fa.unsaved.discard"),cancelLabel:c("fa.unsaved.keep"),onClose:()=>p(!1),onConfirm:b}),E&&a&&(0,d.jsx)(w.TM,{title:c("colony.deleteTitle",{name:a.name}),body:c("colony.deleteBody",{count:a.agent_ids.length}),danger:!0,confirmLabel:c("colony.delete"),cancelLabel:c("colony.keep"),onClose:()=>F(!1),onConfirm:async()=>{await u.FH.del(`/colonies/${a.id}`),await i(["agents","colonies"]),j(c("colony.deleted")),b()}})]})}function G({draft:a,colony:b,members:c,busy:e,onBack:f,onConfirm:h}){let{t:i}=(0,C.s9)(),j={cwd:!!a.cwd,permission:!0,skills:a.skill_ids.length>0,prompt:!!a.system_prompt.trim()},[k,l]=(0,g.useState)(()=>({cwd:(!b||b.inherit.cwd)&&j.cwd,permission:!b||b.inherit.permission,skills:(!b||b.inherit.skills)&&j.skills,prompt:(!b||b.inherit.prompt)&&j.prompt})),m=(0,g.useMemo)(()=>k.cwd&&a.cwd&&c.filter(b=>!b.overrides.includes("cwd")&&b.effective.cwd!==a.cwd).length,[k.cwd,a.cwd,c]);return(0,d.jsxs)(w.aF,{title:i("inheritAsk.title"),onClose:f,children:[(0,d.jsx)("p",{className:"muted small m0",children:i("inheritAsk.intro")}),(0,d.jsx)("div",{className:"col gap-s",children:E.map(b=>(0,d.jsx)(w.Tl,{disabled:!j[b],checked:k[b],onChange:a=>l(c=>({...c,[b]:a})),label:(0,d.jsxs)(d.Fragment,{children:[i(`inheritAsk.field.${b}`),"cwd"===b&&a.cwd?(0,d.jsxs)("span",{className:"muted mono fw-400",children:[" \xb7 ",(0,v._1)(a.cwd)]}):null,"permission"===b?(0,d.jsxs)("span",{className:"muted fw-400",children:[" \xb7 ",(0,v.Ck)(a.permission)]}):null]}),hint:j[b]?i(`inheritAsk.hint.${b}`):i(`inheritAsk.empty.${b}`)},b))}),m?(0,d.jsx)(w.lZ,{kind:"honey",children:i("inheritAsk.folderMoves",{count:Number(m)})}):null,(0,d.jsxs)("div",{className:"row push-end",children:[(0,d.jsx)("button",{className:"btn ghost",onClick:f,children:i("common.back")}),(0,d.jsx)("button",{className:"btn primary",disabled:e,onClick:()=>h(k),children:e?i("common.saving"):b?i("colony.save"):i("colony.create")})]})]})}var H=c(15964),I=c(93674);function J({agent:a,onClose:b}){let{t:c}=(0,C.s9)(),e=(0,I.A)(a,{onSaved:b,onDeleted:b});return e.draft?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(w._s,{title:c("edit.title",{name:a.name}),subtitle:c("running"===a.status?"edit.subtitleRunning":"edit.subtitleIdle"),onClose:b,footer:e.actions({onCancel:b}),children:(0,d.jsx)(H.SU,{draft:e.draft,onChange:e.setDraft,errors:e.errors,selfId:a.id})}),e.deleteModal]}):null}var K=c(66390),L=c(20668),M=c(3936),N=c(36368),O=c(54403),P=c(93717);let Q=74*Math.sqrt(3),R=[[1,0],[1,-1],[0,-1],[-1,0],[-1,1],[0,1]],S=([a,b])=>({x:Q*(a+b/2),y:111*b}),T=(a,b,c)=>Array.from({length:6},(d,e)=>{let f=(60*e-30)*Math.PI/180;return`${(a+c*Math.cos(f)).toFixed(1)},${(b+c*Math.sin(f)).toFixed(1)}`}).join(" ");function U(){let{t:a}=(0,C.s9)(),{agents:b,colonies:c,objects:e,dispatches:z,ready:A,error:B,retry:D,refresh:E}=(0,s.q5)(),G=(0,w.dj)(),[H,I]=(0,g.useState)(null),[U,V]=(0,g.useState)(null),[W,X]=(0,g.useState)(null),[Y,Z]=(0,g.useState)(null),[$,_]=(0,g.useState)(null),[aa,ab]=(0,g.useState)(null),[ac,ad]=(0,t.ud)("hive-colony-layout",{}),[ae,af]=(0,g.useState)(null),[ag,ah]=(0,t.ud)("hive-colony-zoom",1),ai=ag>=.4&&ag<=2.5?ag:1,aj=a=>ah(Math.min(2.5,Math.max(.4,Math.round(100*a)/100))),ak=(0,g.useMemo)(()=>ae?{...ac,[ae.key]:{x:ae.x,y:ae.y}}:ac,[ac,ae]),{clusters:al,width:am,height:an}=(0,g.useMemo)(()=>(function(a,b,c,d={}){let e=a=>!!a&&b.some(b=>b.id===a),f=b.map(b=>({key:b.id,colony:b,members:a.filter(a=>a.colony_id===b.id),things:c.filter(a=>a.colony_id===b.id)}));f.push({key:"free",colony:null,members:a.filter(a=>!e(a.colony_id)),things:c.filter(a=>!e(a.colony_id))});let g=[],h=0,i=0,j=0;for(let b of f){if(!b.members.length&&!b.things.length&&!b.colony&&a.length+c.length>0)continue;let e=function(a){let b=a.filter(a=>"orchestrator"===a.role);for(let c of[...b])for(let d of c.worker_ids){let c=a.find(a=>a.id===d);c&&!b.includes(c)&&b.push(c)}for(let c of a)b.includes(c)||b.push(c);return b}(b.members),f=(function(a){let b=[[0,0]];for(let c=1;b.length<a;c++){let a=R[4][0]*c,d=R[4][1]*c;for(let e=0;e<6;e++)for(let f=0;f<c;f++)b.push([a,d]),a+=R[e][0],d+=R[e][1]}return b.slice(0,a)})(e.length+b.things.length+1).map(S),k=Math.min(...f.map(a=>a.x))-Q/2,l=Math.max(...f.map(a=>a.x))+Q/2,m=Math.min(...f.map(a=>a.y))-74,n=Math.max(...f.map(a=>a.y))+74,o=l-k+52,p=n-m+52+50,q=b.colony?d[b.key]:void 0;!q&&h>0&&h+o>880&&(h=0,i+=j+36,j=0);let r=q?q.x:h,s=q?q.y:i,t=f.map((a,c)=>{let f=e[c]??null,g=b.things[c-e.length],h=b.colony?void 0:d[(f??g)?.id??""];return{agent:f,object:g,x:h?h.x:r+(a.x-k)+26,y:h?h.y:s+(a.y-m)+26+50}});g.push({key:b.key,colony:b.colony,cells:t,x:r,y:s,w:o,h:p}),q||(h+=o+36,j=Math.max(j,p))}let k=0,l=0;for(let a of g)if(a.colony)k=Math.max(k,a.x+a.w),l=Math.max(l,a.y+a.h);else for(let b of a.cells)k=Math.max(k,b.x+Q/2+26),l=Math.max(l,b.y+74+26);return{clusters:g,width:k,height:l}})(b,c,e,ak),[b,c,e,ak]),ao=(0,g.useRef)(null),[ap,aq]=(0,g.useState)(0);(0,g.useRef)(ai).current=ai;let ar=am+80,as=an+80,at=(ap?Math.min(1,(ap-24)/ar):1)*ai,au=(0,g.useRef)(null),av=(0,g.useRef)(!1),aw=a=>{let b=au.current;if(!b)return;let c=(a.clientX-b.sx)/at,d=(a.clientY-b.sy)/at;!b.moved&&Math.hypot(c,d)*at<6||(b.moved=!0,b.last={x:Math.max(b.min.x,b.ox+c),y:Math.max(b.min.y,b.oy+d)},af({key:b.key,...b.last}))},ax=()=>{let a=au.current;au.current=null,a?.moved&&a.last&&(av.current=!0,setTimeout(()=>{av.current=!1},0),ad({...ac,[a.key]:a.last}),af(null))},ay=(a,b,c,d,e={x:0,y:0})=>{let f={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]}[a.key];if(!f||a.altKey||a.ctrlKey||a.metaKey)return;a.preventDefault();let g=a.shiftKey?64:16;ad({...ac,[b]:{x:Math.max(e.x,c+f[0]*g),y:Math.max(e.y,d+f[1]*g)}})},az=(a,b,c,d)=>({onPointerDown:e=>((a,b,c,d,e={x:0,y:0})=>{if(0===a.button){au.current={key:b,sx:a.clientX,sy:a.clientY,ox:c,oy:d,min:e,moved:!1};try{a.currentTarget.setPointerCapture(a.pointerId)}catch{}}})(e,a,b,c,d),onPointerMove:aw,onPointerUp:ax,onPointerCancel:ax}),aA=new Map;for(let a of al)for(let b of a.cells)b.agent&&aA.set(b.agent.id,{x:b.x+40,y:b.y+40}),b.object&&aA.set(b.object.id,{x:b.x+40,y:b.y+40});let aB=e.filter(a=>"cluster"===a.kind).flatMap(a=>a.config.members.map(b=>({from:a.id,to:b}))),aC=e.filter(a=>a.manager_id&&aA.has(a.manager_id)&&aA.has(a.id)).map(a=>({from:a.manager_id,to:a.id})),aD=a=>e.filter(b=>b.manager_id===a),[aE,aF]=(0,g.useState)(null),aG=b.find(a=>a.id===H)??null,aH=e.find(a=>a.id===H)??null,[aI,aJ]=(0,g.useState)(null),aK=U??H,aL=b.filter(a=>"orchestrator"===a.role).flatMap(a=>a.worker_ids.map(b=>({from:a.id,to:b}))),aM=new Set(aK?[aK,...[...aL,...aB,...aC].filter(a=>a.from===aK||a.to===aK).flatMap(a=>[a.from,a.to])]:[]),aN=a=>b.filter(b=>"orchestrator"===b.role&&b.worker_ids.includes(a)),aO=b.filter(a=>"running"===a.status).length,aP=e.filter(a=>"running"===a.state.status).length,aQ=b.filter(a=>"orchestrator"===a.role).length,aR=c=>b.find(a=>a.id===c)?.name??a("colony.removedAgent"),aS=z.filter(a=>"running"===a.status).length,aT=[{id:"agents",n:b.length,label:a("stat.agents",{count:b.length}),href:"/agents"},{id:"colonies",n:c.length,label:a("stat.colonies",{count:c.length})},{id:"objects",n:e.length,label:a("stat.objects",{count:e.length}),href:"/resources",title:e.length?a("obj.running",{count:aP}):void 0},{id:"queens",n:aQ,label:a("stat.orchestrators",{count:aQ}),href:"/agents"},{id:"working",n:aO,label:a("stat.working"),href:"/agents"},{id:"tasks",n:aS,label:a("stat.tasks"),href:"#recent"}],aU=aG?c.find(a=>a.id===aG.colony_id):void 0,aV=async(b,d)=>{try{await u.FH.patch(`/agents/${b.id}`,{colony_id:d||null,overrides:[]}),await E(["agents","colonies"]),G(d?a("colony.joined",{name:b.name,colony:c.find(a=>a.id===d)?.name??""}):a("colony.left",{name:b.name}))}catch(b){G(b instanceof Error?b.message:a("colony.moveFailed"),"err")}};return(0,d.jsxs)("div",{className:"page",children:[(0,d.jsxs)("div",{className:"page-head",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"row gap-s",children:[(0,d.jsx)("h1",{children:a("nav.colony")}),(0,d.jsx)(L.B,{label:a("colony.helpLabel"),title:a("colony.howTitle"),children:a("colony.howBody")})]}),(0,d.jsx)("p",{children:a("colony.page.subtitle")})]}),(0,d.jsx)("div",{className:"cx-head-actions",children:(0,d.jsx)(x.W1,{label:a("cx.new"),icon:(0,d.jsx)(h.A,{size:14}),children:b=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(x.Dr,{icon:(0,d.jsx)(i.A,{size:15}),onClick:()=>{b(),X({})},children:a("newAgent.title")}),(0,d.jsx)(x.Dr,{icon:(0,d.jsx)(j.A,{size:15}),onClick:()=>{b(),Z("new")},children:a("colony.newTitle")}),(0,d.jsx)(x.Dr,{icon:(0,d.jsx)(k.A,{size:15}),onClick:()=>{b(),ab({})},children:a("obj.new")})]})})})]}),(0,d.jsx)("div",{className:"stats",children:aT.map(b=>{let c=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("b",{children:b.n}),(0,d.jsx)("span",{children:b.label})]});return b.href?(0,d.jsx)(f(),{href:b.href,className:"card stat",title:b.title,"aria-label":`${b.n} ${b.label}. ${a("cx.stat.open",{label:b.label})}`,children:c},b.id):(0,d.jsx)("div",{className:"card stat",title:b.title,children:c},b.id)})}),(0,d.jsxs)("div",{className:"colony",children:[(0,d.jsxs)("div",{className:"comb-wrap",ref:ao,children:[A?0===b.length&&0===c.length&&0===e.length?(0,d.jsx)("div",{className:"comb-empty-wrap",children:(0,d.jsx)(w.pp,{icon:(0,d.jsx)(w._h,{size:"lg",queen:!0,label:"+"}),title:a("colony.empty.title"),body:a("colony.empty.body"),action:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsxs)("button",{className:"btn",onClick:()=>Z("new"),children:[(0,d.jsx)(h.A,{size:16}),a("colony.empty.createColony")]}),(0,d.jsxs)("button",{className:"btn primary",onClick:()=>X({}),children:[(0,d.jsx)(h.A,{size:16}),a("colony.empty.createAgent")]})]})})}):(0,d.jsx)("div",{className:"comb-box",style:{width:ar*at,height:as*at},children:(0,d.jsxs)("div",{className:"comb",style:{width:ar,height:as,transform:`scale(${at})`,transformOrigin:"0 0","--w":`${.9*Q}px`,"--h":`${133.20000000000002}px`},children:[(0,d.jsx)("svg",{className:"links",width:ar,height:as,children:al.filter(a=>a.colony).map(a=>{let b=a.colony.color||"var(--honey)";return(0,d.jsxs)("g",{children:[a.cells.map((a,c)=>(0,d.jsx)("polygon",{points:T(a.x+40,a.y+40,74),style:{fill:b,stroke:b},strokeWidth:44,strokeLinejoin:"round"},"o"+c)),a.cells.map((a,c)=>(0,d.jsx)("polygon",{points:T(a.x+40,a.y+40,74),style:{fill:`color-mix(in srgb, ${b} 9%, var(--surface))`,stroke:`color-mix(in srgb, ${b} 9%, var(--surface))`},strokeWidth:38,strokeLinejoin:"round"},"i"+c))]},a.key)})}),al.map(b=>(0,d.jsxs)("div",{children:[b.colony?(0,d.jsxs)("button",{className:`colony-label draggable ${ae?.key===b.key?"dragging":""}`,style:{left:b.x+b.w/2+40,top:b.y+50-10+40,"--c":b.colony.color||"var(--honey)"},...az(b.key,b.x,b.y),onKeyDown:a=>ay(a,b.key,b.x,b.y),onClick:()=>{av.current||Z(b.colony)},title:`${b.colony.cwd?a("colony.editHover",{path:(0,v._1)(b.colony.cwd)}):a("colony.editHoverShort")} \xb7 ${a("colony.dragHint")} \xb7 ${a("cx.moveHint")}`,children:[(0,d.jsx)("i",{className:"cdot"}),b.colony.name,(0,d.jsx)("small",{children:a("colony.agentCount",{count:b.cells.filter(a=>a.agent).length})}),(0,d.jsx)(j.A,{size:13,className:"muted"})]}):c.length>0&&b.cells.some(a=>a.agent)?(0,d.jsx)("span",{className:"colony-label cx-unplaced",style:{left:b.x+b.w/2+40,top:b.y+50-10+40},children:(0,d.jsx)("small",{children:a("common.noColony")})}):null,b.cells.map((c,e)=>{let f=c.agent,g={left:c.x+40,top:c.y+40},i=c.object;if(i){let{icon:e,color:f}=P.Nd[i.kind];return(0,d.jsxs)("button",{"data-sid":i.id,className:`cell fill obj st-${i.state.status} ${"running"===i.state.status?"running":""} ${aK&&!aM.has(i.id)?"dim":""} ${aK&&aM.has(i.id)&&i.id!==aK?"linked":""} ${b.colony?"":"draggable"}`,style:{...g,"--c":f},"aria-pressed":H===i.id,onMouseEnter:()=>V(i.id),onMouseLeave:()=>V(null),onFocus:()=>V(i.id),onBlur:()=>V(null),...b.colony?{}:{...az(i.id,c.x,c.y,{x:Q/2,y:74}),onKeyDown:a=>ay(a,i.id,c.x,c.y,{x:Q/2,y:74})},onClick:()=>{av.current||I(i.id===H?null:i.id)},"aria-label":`${i.name}, ${a(`obj.kind.${i.kind}`)}, ${a(`obj.status.${i.state.status}`)}`,title:i.state.detail?`${a(`obj.status.${i.state.status}`)}: ${i.state.detail}`:a(`obj.status.${i.state.status}`),children:[(0,d.jsx)("span",{className:"shape"}),(0,d.jsxs)("span",{className:"label",children:[(0,d.jsx)(e,{size:16}),(0,d.jsx)("b",{children:i.name}),(0,d.jsx)("small",{children:a(`obj.status.${i.state.status}`)})]}),(0,d.jsx)("span",{className:`pip o-${i.state.status}`}),i.manager_id&&(0,d.jsxs)("span",{className:"ltag top mgr",title:a("colony.managedBy",{name:aR(i.manager_id)}),children:["⚙ ",aR(i.manager_id)]})]},i.id)}return f?(0,d.jsxs)("button",{"data-sid":f.id,className:`cell fill ${"orchestrator"===f.role?"queen":""} ${"running"===f.status?"running":""} ${aK&&!aM.has(f.id)?"dim":""} ${aK&&aM.has(f.id)&&f.id!==aK?"linked":""} ${b.colony?"":"draggable"}`,onMouseEnter:()=>V(f.id),onMouseLeave:()=>V(null),onFocus:()=>V(f.id),onBlur:()=>V(null),style:{...g,"--c":v.xq[f.provider].color},"aria-pressed":H===f.id,...b.colony?{}:{...az(f.id,c.x,c.y,{x:Q/2,y:74}),onKeyDown:a=>ay(a,f.id,c.x,c.y,{x:Q/2,y:74}),title:a("cx.moveHint")},onClick:()=>{av.current||I(f.id===H?null:f.id)},"aria-label":`${f.name}, ${a(`role.${f.role}`)}, ${v.xq[f.provider].short}, ${a(`status.${f.status}`)}`,children:[(0,d.jsx)("span",{className:"shape"}),(0,d.jsxs)("span",{className:"label",children:[(0,d.jsx)("b",{children:f.name}),(0,d.jsx)("small",{children:v.xq[f.provider].short})]}),"idle"!==f.status&&(0,d.jsx)("span",{className:`pip ${"error"===f.status?"err":""}`}),aD(f.id).length>0&&(0,d.jsxs)("span",{className:"ltag top mgr",title:a("colony.manages",{names:aD(f.id).map(a=>a.name).join(", ")}),children:["⚙ ",1===aD(f.id).length?aD(f.id)[0].name:aD(f.id).length]}),("orchestrator"===f.role?f.worker_ids.length>0:aN(f.id).length>0)&&(0,d.jsx)("span",{className:"ltag",title:"orchestrator"===f.role?a("colony.delegatesTo",{count:f.worker_ids.length}):a("colony.connectedTo",{names:aN(f.id).map(a=>a.name).join(", ")}),children:"orchestrator"===f.role?`↓ ${f.worker_ids.length}`:`↑ ${1===aN(f.id).length?aN(f.id)[0].name:aN(f.id).length}`})]},f.id):(0,d.jsxs)("button",{className:"cell ghost",style:g,onClick:()=>X({colonyId:b.colony?.id}),"aria-label":b.colony?a("colony.addTo",{name:b.colony.name}):a("colony.addAgent"),children:[(0,d.jsx)("svg",{className:"ghost-hex",viewBox:"0 0 100 115",preserveAspectRatio:"none","aria-hidden":!0,children:(0,d.jsx)("polygon",{points:"50,2 98,29 98,86 50,113 2,86 2,29"})}),(0,d.jsxs)("span",{className:"label",children:[(0,d.jsx)(h.A,{size:18}),a("colony.addAgent")]})]},b.key+"g"+e)})]},b.key+"l")),(0,d.jsxs)("svg",{className:"links top",width:ar,height:as,"aria-hidden":!0,children:[aL.filter(a=>!!aK&&(a.from===aK||a.to===aK)).map(a=>{let c=aA.get(a.from),e=aA.get(a.to);if(!c||!e)return null;let f=e.x-c.x,g=e.y-c.y,h=Math.hypot(f,g)||1,i=f/h,j=g/h,k=c.x+45.88*i,l=c.y+45.88*j,m=e.x-45.88*i,n=e.y-45.88*j,o=b.find(b=>b.id===a.to)?.status==="running",p=!!aK&&(a.from===aK||a.to===aK),q=!!aK&&!p;return(0,d.jsxs)("g",{opacity:q?.18:1,children:[(0,d.jsx)("line",{x1:k,y1:l,x2:m,y2:n,stroke:"var(--surface)",strokeWidth:p?8:5,strokeLinecap:"round",opacity:.85}),(0,d.jsx)("line",{x1:k,y1:l,x2:m,y2:n,stroke:"var(--honey)",strokeWidth:p?3.5:2.2,strokeDasharray:o?"7 6":p?void 0:"1 6",strokeLinecap:"round",children:o&&(0,d.jsx)("animate",{attributeName:"stroke-dashoffset",from:"26",to:"0",dur:"0.8s",repeatCount:"indefinite"})}),(0,d.jsx)("circle",{cx:m,cy:n,r:p?5.5:4,fill:"var(--honey)",stroke:"var(--surface)",strokeWidth:2})]},a.from+a.to)}),[...aB.map(a=>({...a,kind:"cluster"})),...aC.map(a=>({...a,kind:"manager"}))].filter(a=>!!aK&&(a.from===aK||a.to===aK)).map(a=>{let b=aA.get(a.from),c=aA.get(a.to);if(!b||!c)return null;let e=c.x-b.x,f=c.y-b.y,g=Math.hypot(e,f)||1,h=e/g,i=f/g,j="cluster"===a.kind?v.Ng:"var(--link-manager)";return(0,d.jsxs)("g",{children:[(0,d.jsx)("line",{x1:b.x+45.88*h,y1:b.y+45.88*i,x2:c.x-45.88*h,y2:c.y-45.88*i,stroke:"var(--surface)",strokeWidth:8,strokeLinecap:"round",opacity:.9}),(0,d.jsx)("line",{x1:b.x+45.88*h,y1:b.y+45.88*i,x2:c.x-45.88*h,y2:c.y-45.88*i,stroke:j,strokeWidth:3,strokeDasharray:"cluster"===a.kind?"3 5":"8 5",strokeLinecap:"round"}),(0,d.jsx)("circle",{cx:c.x-45.88*h,cy:c.y-45.88*i,r:5,fill:j,stroke:"var(--surface)",strokeWidth:2})]},a.kind+a.from+a.to)})]})]})}):B?(0,d.jsx)("div",{className:"comb-skel",children:(0,d.jsx)(w.lZ,{kind:"err",children:(0,d.jsxs)("div",{className:"row gap-s wrap",children:[(0,d.jsxs)("span",{className:"grow",children:[a("cx.loadFailed")," ",B]}),(0,d.jsx)("button",{className:"btn sm",onClick:()=>void D(),children:a("cx.retry")})]})})}):(0,d.jsxs)("div",{className:"comb-skel",role:"status","aria-label":a("cx.loading"),children:[(0,d.jsx)("div",{className:"skel",style:{width:220,height:190}}),(0,d.jsxs)("div",{className:"row gap-l",children:[(0,d.jsx)("div",{className:"skel",style:{width:150,height:130}}),(0,d.jsx)("div",{className:"skel",style:{width:150,height:130}})]})]}),(0,d.jsxs)("div",{className:"comb-zoom",role:"group","aria-label":a("colony.zoom"),children:[Object.keys(ac).length>0&&(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>ad({}),title:a("colony.layout.reset"),"aria-label":a("colony.layout.reset"),children:(0,d.jsx)(l.A,{size:14})}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>aj(ai/1.2),disabled:ai<=.4,title:a("colony.zoom.out"),"aria-label":a("colony.zoom.out"),children:(0,d.jsx)(m.A,{size:14})}),(0,d.jsxs)("button",{className:"btn ghost sm zoom-pct",onClick:()=>aj(1),title:a("colony.zoom.fit"),"aria-label":a("colony.zoom.fit"),children:[Math.round(100*ai),"%"]}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>aj(1.2*ai),disabled:ai>=2.5,title:a("colony.zoom.in"),"aria-label":a("colony.zoom.in"),children:(0,d.jsx)(h.A,{size:14})}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>aj(1),title:a("colony.zoom.fit"),"aria-label":a("colony.zoom.fit"),children:(0,d.jsx)(n.A,{size:14})})]}),(0,d.jsxs)("div",{className:"comb-legend",children:[Object.keys(v.xq).map(a=>(0,d.jsxs)("span",{className:"pbadge",style:{"--c":v.xq[a].color},children:[(0,d.jsx)("i",{}),v.xq[a].short]},a)),(0,d.jsxs)("span",{className:"pbadge",style:{"--c":"var(--honey)"},children:[(0,d.jsx)("i",{}),a("role.orchestrator")]})]})]}),aH?(0,d.jsx)(N.wl,{object:aH,target:aI,onClose:()=>I(null),onCreateManager:()=>X({colonyId:aH.colony_id??void 0,manager:!0,objectId:aH.id})},aH.id):aG?(0,d.jsxs)(M.rs,{target:aI,pinned:!0,width:340,label:aG.name,onClose:()=>I(null),children:[(0,d.jsxs)("div",{className:"ap-corner row gap-s",children:[(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>_(aG.id),"aria-label":a("colony.settingsFor",{name:aG.name}),title:a("colony.agentSettings"),children:(0,d.jsx)(o.A,{size:16})}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>I(null),"aria-label":a("common.close"),title:`${a("common.close")} (Esc)`,children:(0,d.jsx)(p.A,{size:16})})]}),(0,d.jsx)(M.kh,{agent:aG,hideColony:!0}),(0,d.jsxs)("div",{className:"field ap-pin-field",children:[(0,d.jsx)("label",{children:a("form.colony")}),(0,d.jsxs)("select",{className:"select",value:aU?.id??"",onChange:a=>void aV(aG,a.target.value),children:[(0,d.jsx)("option",{value:"",children:a("common.noColony")}),c.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name},a.id))]})]}),(0,d.jsxs)("div",{className:"row ap-pin-actions",children:[(0,d.jsxs)(f(),{className:"btn primary grow",href:`/agents/${aG.id}`,children:[a("colony.openChat")," ",(0,d.jsx)(q,{size:16})]}),(0,d.jsx)("button",{className:"btn danger icon",onClick:()=>aF(aG.id),"aria-label":a("agent.delete"),title:a("agent.delete"),children:(0,d.jsx)(r.A,{size:16})})]})]},aG.id):null]}),(0,d.jsxs)("div",{className:"card card-pad recent",id:"recent",children:[(0,d.jsx)("div",{className:"eyebrow recent-head",children:a("colony.recent")}),0===z.length?(0,d.jsx)("p",{className:"muted small m0",children:a("colony.recentEmpty")}):(0,d.jsx)("div",{className:"recent-grid",children:z.slice(0,6).map(c=>(0,d.jsxs)("div",{className:"feed-item",children:[(0,d.jsx)("i",{className:`dot ${"running"===c.status?"run":"done"===c.status?"ok":"err"}`}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"feed-line",children:[b.some(a=>a.id===c.from_id)?(0,d.jsx)(f(),{href:`/agents/${c.from_id}`,"aria-label":a("cx.openAgent",{name:aR(c.from_id)}),children:aR(c.from_id)}):(0,d.jsx)("b",{children:aR(c.from_id)})," → ",b.some(a=>a.id===c.to_id)?(0,d.jsx)(f(),{href:`/agents/${c.to_id}`,"aria-label":a("cx.openAgent",{name:aR(c.to_id)}),children:aR(c.to_id)}):(0,d.jsx)("b",{children:aR(c.to_id)})]}),(0,d.jsx)("div",{className:"muted small ellipsis",children:c.task}),(0,d.jsx)("div",{className:"muted feed-when",children:(0,v.KN)(c.created_at)})]})]},c.id))})]}),aE&&b.find(a=>a.id===aE)&&(0,d.jsx)(K.G,{agent:b.find(a=>a.id===aE),onClose:()=>aF(null),onDeleted:()=>I(null)}),W&&(0,d.jsx)(y.b,{presetColonyId:W.colonyId,presetObjectId:W.objectId,manager:W.manager,onClose:()=>X(null),onCreated:a=>I(a)}),$&&b.find(a=>a.id===$)&&(0,d.jsx)(J,{agent:b.find(a=>a.id===$),onClose:()=>_(null)},$),aa&&(0,d.jsx)(O.X,{presetColonyId:aa.colonyId,onClose:()=>ab(null),onSaved:a=>I(a)}),Y&&(0,d.jsx)(F,{colony:"new"===Y?void 0:Y,onClose:()=>Z(null)})]})}},85635:(a,b,c)=>{Promise.resolve().then(c.bind(c,10230))},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},93674:(a,b,c)=>{"use strict";c.d(b,{A:()=>n});var d=c(55322),e=c(17027),f=c(34410),g=c(81963),h=c(15964),i=c(66390),j=c(60570),k=c(13520),l=c(7371),m=c(93884);function n(a,b={}){let{t:c}=(0,m.s9)(),{agents:o,colonies:p,objects:q,refresh:r}=(0,j.q5)(),s=(0,g.dj)(),t=(0,e.useMemo)(()=>a?q.filter(b=>b.manager_id===a.id).map(a=>a.id).sort():[],[q,a?.id]),u=(0,e.useMemo)(()=>a?JSON.stringify((0,h.TN)(a,t)):"",[a,t]),[v,w]=(0,e.useState)(()=>a?(0,h.TN)(a,t):null),[x,y]=(0,e.useState)(!1),[z,A]=(0,e.useState)(!1),B=v&&a?(0,h.tf)(v,o,a.id,p):{},C=!!v&&JSON.stringify(v)!==u;(0,k.h)(C);let D=async()=>{if(v&&a){if(Object.keys(B).length)return void s(c("edit.fixFields"),"err");y(!0);try{let{type_id:d,object_ids:e,...f}=v;await l.FH.patch(`/agents/${a.id}`,f),JSON.stringify([...e].sort())!==JSON.stringify(t)&&await l.FH.put(`/agents/${a.id}/resources`,{object_ids:e}),await r(["agents","colonies","objects"]),s(c("edit.saved",{name:v.name.trim()})),b.onSaved?.()}catch(a){s(a instanceof Error?a.message:c("edit.saveFailed"),"err")}y(!1)}},E=()=>{a&&w((0,h.TN)(a,t))};return{draft:v,setDraft:w,errors:B,dirty:C,saving:x,save:D,discard:E,actions:(a={})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("button",{className:`btn danger push-r ${a.size??""}`,onClick:()=>A(!0),children:[(0,d.jsx)(f.A,{size:a.size?14:15}),c("agent.delete")]}),a.onCancel?(0,d.jsx)("button",{className:`btn ghost ${a.size??""}`,onClick:a.onCancel,children:c("common.cancel")}):(0,d.jsx)("button",{className:`btn ghost ${a.size??""}`,disabled:!C,onClick:E,children:c("common.discard")}),(0,d.jsx)("button",{className:`btn primary ${a.size??""}`,disabled:!C||x,onClick:D,children:x?c("common.saving"):c("common.saveChanges")})]}),deleteModal:z&&a?(0,d.jsx)(i.G,{agent:a,onClose:()=>A(!1),onDeleted:b.onDeleted}):null}}}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[691,435,335,148,274,143,716,368,403],()=>b(b.s=1417));module.exports=c})();
|
|
1
|
+
(()=>{var a={};a.id=974,a.ids=[974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1417:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>F.a,__next_app__:()=>L,handler:()=>N,pages:()=>K,routeModule:()=>M,tree:()=>J});var d=c(62009),e=c(51640),f=c(52679),g=c(69985),h=c(91790),i=c(81200),j=c(54530),k=c(35977),l=c(234),m=c(43472),n=c(12698),o=c(28976),p=c(54084),q=c(16307),r=c(53063),s=c(72428),t=c(261),u=c(48291),v=c(56032),w=c(26713),x=c(83370),y=c(10143),z=c(27155),A=c(77620),B=c(13428),C=c(50164),D=c(86439),E=c(2972),F=c.n(E),G=c(94672),H=c(18313),I={};for(let a in G)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(I[a]=()=>G[a]);c.d(b,I);let J={children:["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,10230)),"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,84507))).default(a),async a=>(await Promise.resolve().then(c.bind(c,23575))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,54287))).default(a)],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,20987)),"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,2972,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,96298,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,60075,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,79678,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,84507))).default(a),async a=>(await Promise.resolve().then(c.bind(c,23575))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,54287))).default(a)],openGraph:[],twitter:[],manifest:void 0}}]}.children,K=["/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx"],L={require:c,loadChunk:()=>Promise.resolve()},M=new e.AppPageRouteModule({definition:{kind:f.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:J},distDir:".next",relativeProjectDir:""});async function N(a,b,e){var E;let I="/page";"/index"===I&&(I="/");let O=(0,i.getRequestMeta)(a,"postponed"),P=(0,i.getRequestMeta)(a,"minimalMode"),Q=await M.prepare(a,b,{srcPage:I,multiZoneDraftMode:!1});if(!Q)return b.statusCode=400,b.end("Bad Request"),null==e.waitUntil||e.waitUntil.call(e,Promise.resolve()),null;let{buildId:R,query:S,params:T,parsedUrl:U,pageIsDynamic:V,buildManifest:W,nextFontManifest:X,reactLoadableManifest:Y,serverActionsManifest:Z,clientReferenceManifest:$,subresourceIntegrityManifest:_,prerenderManifest:aa,isDraftMode:ab,resolvedPathname:ac,revalidateOnlyGenerated:ad,routerServerContext:ae,nextConfig:af,interceptionRoutePatterns:ag}=Q,ah=U.pathname||"/",ai=(0,t.normalizeAppPath)(I),{isOnDemandRevalidate:aj}=Q,ak=M.match(ah,aa),al=!!aa.routes[ac]&&(M.isDev||(0,d.isRouteCacheOwner)(ac,M.cacheOwner,aa.routes[ac])),am=!!(ak||al||aa.routes[ai]),an=a.headers["user-agent"]||"",ao=(0,w.getBotType)(an),ap=(0,r.isHtmlBotRequest)(a),aq=(0,i.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[v.NEXT_ROUTER_PREFETCH_HEADER],ar=(0,i.getRequestMeta)(a,"isRSCRequest")??(0,o.f)(a.headers[v.RSC_HEADER]),as=(0,u.getIsPossibleServerAction)(a),at=(0,n.checkIsAppPPREnabled)(af.experimental.ppr)&&(null==(E=aa.routes[ai]??aa.dynamicRoutes[ai])?void 0:E.renderingMode)==="PARTIALLY_STATIC",au=!1,av=!1,aw=at?O:void 0,ax=at&&ar&&!aq,ay=(0,i.getRequestMeta)(a,"segmentPrefetchRSCRequest"),az=!an||(0,r.shouldServeStreamingMetadata)(an,af.htmlLimitedBots);ap&&at&&(am=!1,az=!1);let aA=!0===M.isDev||!am||"string"==typeof O||ax,aB=ap&&at,aC=null;ab||!am||aA||as||aw||ax||(aC=ac);let aD=aC;!aD&&M.isDev&&(aD=ac),M.isDev||ab||!am||!ar||ax||(0,l.d)(a.headers);let aE={...G,tree:J,pages:K,GlobalError:F(),handler:N,routeModule:M,__next_app__:L};Z&&$&&(0,q.setReferenceManifestsSingleton)({page:I,clientReferenceManifest:$,serverActionsManifest:Z,serverModuleMap:(0,s.createServerModuleMap)({serverActionsManifest:Z})});let aF=a.method||"GET",aG=(0,h.getTracer)(),aH=aG.getActiveScopeSpan();try{let d=M.getVaryHeader(ac,ag);b.setHeader("Vary",d);let g=async(c,d)=>{let e=new m.NodeNextRequest(a),f=new m.NodeNextResponse(b);return M.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aG.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==j.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aF} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aF} ${a.url}`)})},l=async({span:d,postponed:f,fallbackRouteParams:h})=>{let j={query:S,params:T,page:ai,sharedContext:{buildId:R},serverComponentsHmrCache:(0,i.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:h,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aE,Component:(0,k.T)(aE),params:T,routeModule:M,page:I,postponed:f,shouldWaitOnAllReady:aB,serveStreamingMetadata:az,supportsDynamicResponse:"string"==typeof f||aA,buildManifest:W,nextFontManifest:X,reactLoadableManifest:Y,subresourceIntegrityManifest:_,serverActionsManifest:Z,clientReferenceManifest:$,setIsrStatus:null==ae?void 0:ae.setIsrStatus,dir:c(33873).join(process.cwd(),M.relativeProjectDir),isDraftMode:ab,isRevalidate:am&&!f&&!ax,botType:ao,isOnDemandRevalidate:aj,isPossibleServerAction:as,assetPrefix:af.assetPrefix,nextConfigOutput:af.output,crossOrigin:af.crossOrigin,trailingSlash:af.trailingSlash,previewProps:aa.preview,deploymentId:af.deploymentId,enableTainting:af.experimental.taint,htmlLimitedBots:af.htmlLimitedBots,devtoolSegmentExplorer:af.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:af.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,i.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:af.experimental.cacheLife,basePath:af.basePath,serverActions:af.experimental.serverActions,...au?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:au}:{},experimental:{isRoutePPREnabled:at,expireTime:af.expireTime,staleTimes:af.experimental.staleTimes,cacheComponents:!!af.experimental.cacheComponents,clientSegmentCache:!!af.experimental.clientSegmentCache,clientParamParsing:!!af.experimental.clientParamParsing,dynamicOnHover:!!af.experimental.dynamicOnHover,inlineCss:!!af.experimental.inlineCss,authInterrupts:!!af.experimental.authInterrupts,clientTraceMetadata:af.experimental.clientTraceMetadata||[]},waitUntil:e.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>M.onRequestError(a,b,d,ae),err:(0,i.getRequestMeta)(a,"invokeError"),dev:M.isDev}},l=await g(d,j),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[A.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,am&&(null==n?void 0:n.revalidate)===0&&!M.isDev&&!at){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ac}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
2
|
+
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:x.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},n=async({hasResolved:c,previousCacheEntry:d,isRevalidating:g,span:h})=>{let j,k=!1===M.isDev,m=c||b.writableEnded;if(aj&&ad&&!d&&!P)return(null==ae?void 0:ae.render404)?await ae.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ak&&(j=(0,y.parseFallbackField)(ak.fallback)),j===y.FallbackMode.PRERENDER&&(0,w.isBot)(an)&&(!at||ap)&&(j=y.FallbackMode.BLOCKING_STATIC_RENDER),(null==d?void 0:d.isStale)===-1&&(aj=!0),aj&&(j!==y.FallbackMode.NOT_FOUND||d)&&(j=y.FallbackMode.BLOCKING_STATIC_RENDER),!P&&j!==y.FallbackMode.BLOCKING_STATIC_RENDER&&aD&&!m&&!ab&&V&&(k||!al)){let b;if((k||ak)&&j===y.FallbackMode.NOT_FOUND)throw new D.NoFallbackError;if(at&&!ar){let c="string"==typeof(null==ak?void 0:ak.fallback)?ak.fallback:k?ai:null;if(b=await M.handleResponse({cacheKey:c,req:a,nextConfig:af,routeKind:f.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:aa,isRoutePPREnabled:at,responseGenerator:async()=>l({span:h,postponed:void 0,fallbackRouteParams:k||av?(0,p.u)(ai):null}),waitUntil:e.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let n=aj||g||!aw?void 0:aw;if(au&&void 0!==n)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:x.CachedRouteKind.PAGES,html:z.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let o=V&&at&&((0,i.getRequestMeta)(a,"renderFallbackShell")||av)?(0,p.u)(ah):null;return l({span:h,postponed:n,fallbackRouteParams:o})},o=async c=>{var d,g,h,j,k;let m,o=await M.handleResponse({cacheKey:aC,responseGenerator:a=>n({span:c,...a}),routeKind:f.RouteKind.APP_PAGE,isOnDemandRevalidate:aj,isRoutePPREnabled:at,req:a,nextConfig:af,prerenderManifest:aa,waitUntil:e.waitUntil});if(ab&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),M.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!o){if(aC)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(d=o.value)?void 0:d.kind)!==x.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(h=o.value)?void 0:h.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof o.value.postponed;am&&!ax&&(!p||aq)&&(P||b.setHeader("x-nextjs-cache",aj?"REVALIDATED":o.isMiss?"MISS":o.isStale?"STALE":"HIT"),b.setHeader(v.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=o;if(aw)m={revalidate:0,expire:void 0};else if(P&&ar&&!aq&&at)m={revalidate:0,expire:void 0};else if(!M.isDev)if(ab)m={revalidate:0,expire:void 0};else if(am){if(o.cacheControl)if("number"==typeof o.cacheControl.revalidate){if(o.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${o.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});m={revalidate:o.cacheControl.revalidate,expire:(null==(j=o.cacheControl)?void 0:j.expire)??af.expireTime}}else m={revalidate:A.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(m={revalidate:0,expire:void 0});if(o.cacheControl=m,"string"==typeof ay&&(null==q?void 0:q.kind)===x.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(v.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[A.NEXT_CACHE_TAGS_HEADER];P&&am&&c&&"string"==typeof c&&b.setHeader(A.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ay);return void 0!==d?(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:z.default.fromStatic(d,v.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl}):(b.statusCode=204,(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:z.default.EMPTY,cacheControl:o.cacheControl}))}let r=(0,i.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...o,value:{...o.value,kind:"PAGE"}},{url:(0,i.getRequestMeta)(a,"initURL")}))return null;if(p&&aw)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(P&&am||delete a[A.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[A.NEXT_CACHE_TAGS_HEADER];if(P&&am&&s&&"string"==typeof s&&b.setHeader(A.NEXT_CACHE_TAGS_HEADER,s),!q.status||ar&&at||(b.statusCode=q.status),!P&&q.status&&H.RedirectStatusCode[q.status]&&ar&&(b.statusCode=200),p&&b.setHeader(v.NEXT_DID_POSTPONE_HEADER,"1"),ar&&!ab){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:q.html,cacheControl:ax?{revalidate:0,expire:void 0}:o.cacheControl})}return(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:z.default.fromStatic(q.rscData,v.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl})}let t=q.html;if(!p||P||ar)return(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:t,cacheControl:o.cacheControl});if(au)return t.push(new ReadableStream({start(a){a.enqueue(B.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}});let u=new TransformStream;return t.push(u.readable),l({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==x.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(u.writable)}).catch(a=>{u.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,C.sendRenderResult)({req:a,res:b,generateEtags:af.generateEtags,poweredByHeader:af.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}})};if(!aH)return await aG.withPropagatedContext(a.headers,()=>aG.trace(j.BaseServerSpan.handleRequest,{spanName:`${aF} ${a.url}`,kind:h.SpanKind.SERVER,attributes:{"http.method":aF,"http.target":a.url}},o));await o(aH)}catch(b){throw b instanceof D.NoFallbackError||await M.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"render",revalidateReason:(0,g.c)({isRevalidate:am,isOnDemandRevalidate:aj})},ae),b}}},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10230:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(85972).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx","default")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},38550:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(51537).A)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},51291:(a,b,c)=>{Promise.resolve().then(c.bind(c,80749))},55511:a=>{"use strict";a.exports=require("crypto")},61222:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(51537).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},62172:(a,b,c)=>{"use strict";c.d(b,{y:()=>k});var d=c(55322),e=c(17027),f=c(35842),g=c(7371),h=c(60570),i=c(93884),j=c(81963);function k({agent:a,onClose:b,onCloned:c}){let{t:k}=(0,i.s9)(),{agents:l,colonies:m}=(0,h.q5)(),{refresh:n}=(0,h.zd)(),o=(0,j.dj)(),[p,q]=(0,e.useState)(()=>((a,b)=>{for(let c=2;;c++){let d=`${a} ${c}`;if(!b.has(d.toLowerCase()))return d}})(a.name,new Set(l.map(a=>a.name.toLowerCase())))),[r,s]=(0,e.useState)(a.colony_id??""),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(""),x=l.some(a=>a.name.toLowerCase()===p.trim().toLowerCase()),y=async()=>{u(!0),w("");try{let d=await g.FH.post(`/agents/${a.id}/clone`,{name:p.trim(),colony_id:r||null});await n(["agents","colonies"]),o(k("agent.cloned",{name:d.name})),c?.(d),b()}catch(a){w(a instanceof Error?a.message:String(a)),u(!1)}};return(0,d.jsxs)(j.aF,{title:k("agent.clone.title",{name:a.name}),onClose:b,children:[(0,d.jsx)(j.D0,{label:k("agent.clone.name"),error:x?k("agent.clone.taken"):v,children:(0,d.jsx)("input",{className:"input",value:p,autoFocus:!0,onChange:a=>q(a.target.value),onKeyDown:a=>{"Enter"===a.key&&p.trim()&&!x&&!t&&y()}})}),(0,d.jsx)(j.D0,{label:k("form.colony"),children:(0,d.jsxs)("select",{className:"select",value:r,onChange:a=>s(a.target.value),children:[(0,d.jsx)("option",{value:"",children:k("common.noColony")}),m.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name},a.id))]})}),(0,d.jsxs)("ul",{className:"muted small clone-facts",children:[(0,d.jsx)("li",{children:k("agent.clone.parallel",{name:a.name})}),(0,d.jsx)("li",{children:k("agent.clone.config")}),(0,d.jsx)("li",{children:k("agent.clone.notebook",{name:a.name})}),(0,d.jsx)("li",{children:k("agent.clone.notBring",{name:a.name})})]}),(0,d.jsxs)("div",{className:"row",style:{justifyContent:"flex-end"},children:[(0,d.jsx)("button",{className:"btn ghost",onClick:b,children:k("common.cancel")}),(0,d.jsxs)("button",{className:"btn primary",disabled:!p.trim()||x||t,onClick:()=>void y(),children:[(0,d.jsx)(f.A,{size:14}),t?k("agent.clone.working"):k("agent.clone")]})]})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66390:(a,b,c)=>{"use strict";c.d(b,{G:()=>j});var d=c(55322),e=c(17027),f=c(81963),g=c(60570),h=c(7371),i=c(93884);function j({agent:a,onClose:b,onDeleted:c}){let{t:j}=(0,i.s9)(),{refresh:k}=(0,g.zd)(),l=(0,f.dj)(),[m,n]=(0,e.useState)([]);return(0,d.jsx)(f.TM,{title:j("agent.deleteTitle",{name:a.name}),body:m.length?j("agent.deleteBody.shared",{names:m.join(", ")}):j("agent.deleteBody"),danger:!0,confirmLabel:j("agent.delete"),cancelLabel:j("agent.keep"),onClose:b,onConfirm:async()=>{await h.FH.del(`/agents/${a.id}`),await k(["agents","colonies"]),l(j("agent.deleted")),c?.()}})}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},80749:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>W});var d=c(55322),e=c(91705),f=c.n(e),g=c(17027),h=c(71267),i=c(67455),j=c(48881),k=c(2266),l=c(61222),m=c(29723),n=c(45762),o=c(38550),p=c(31251);let q=(0,c(51537).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var r=c(35842),s=c(34410),t=c(60570),u=c(73269),v=c(7371),w=c(61162),x=c(81963),y=c(94547),z=c(36143),A=c(59686),B=c(13520),C=c(85748),D=c(93884);let E=w.hg,F=["cwd","permission","skills","prompt"];function G({colony:a,onClose:b}){let{t:c}=(0,D.s9)(),{agents:e,skills:f,colonies:h,refresh:i}=(0,t.q5)(),j=(0,x.dj)(),[k,l]=(0,g.useState)(()=>a?{name:a.name,color:a.color,cwd:a.cwd,permission:a.permission,system_prompt:a.system_prompt,skill_ids:a.skill_ids,skill_loads:a.skill_loads,agent_ids:a.agent_ids,inherit:a.inherit}:{name:"",color:E[h.length%E.length],cwd:"",permission:"acceptEdits",system_prompt:"",skill_ids:[],skill_loads:{},agent_ids:[],inherit:{cwd:!0,permission:!0,skills:!0,prompt:!0}}),m=(0,g.useMemo)(()=>JSON.stringify(k),[]),n=JSON.stringify(k)!==m;(0,B.h)(n);let[o,p]=(0,g.useState)(!1),q=()=>{n?p(!0):b()},[r,u]=(0,g.useState)(""),[w,y]=(0,g.useState)(!1),[z,F]=(0,g.useState)(!1),[G,I]=(0,g.useState)(!1),J=(a,b)=>l(c=>({...c,[a]:b})),K=async d=>{I(!0);try{let e={...k,name:k.name.trim(),color:k.color.toLowerCase(),inherit:d};a?await v.FH.patch(`/colonies/${a.id}`,e):await v.FH.post("/colonies",e),await i(["agents","colonies"]),j(a?c("colony.saved"):c("colony.created")),b()}catch(a){y(!1),u(a instanceof Error?a.message:c("edit.saveFailed")),I(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(x._s,{title:a?c("colony.editTitle",{name:a.name}):c("colony.newTitle"),subtitle:c("colony.subtitle"),onClose:q,footer:(0,d.jsxs)(d.Fragment,{children:[a&&(0,d.jsxs)("button",{className:"btn danger push-r",onClick:()=>F(!0),children:[(0,d.jsx)(s.A,{size:15}),c("common.delete")]}),(0,d.jsx)("button",{className:"btn ghost",onClick:q,children:c("common.cancel")}),(0,d.jsx)("button",{className:"btn primary",onClick:()=>k.name.trim()?h.some(b=>b.id!==a?.id&&b.name.toLowerCase()===k.name.trim().toLowerCase())?void u(c("colony.err.nameTaken")):/^#[0-9a-f]{6}$/i.test(k.color)?void(u(""),y(!0)):void u(c("colony.err.color")):void u(c("colony.err.name")),children:a?c("colony.save"):c("colony.create")})]}),children:[(0,d.jsx)(x.D0,{label:c("form.name"),error:r,children:(0,d.jsx)("input",{className:"input",value:k.name,onChange:a=>J("name",a.target.value),placeholder:c("colony.name.placeholder"),"data-autofocus":!0})}),(0,d.jsx)(x.D0,{label:c("colony.color"),children:(0,d.jsxs)("div",{className:"swatches",children:[E.map(a=>(0,d.jsx)("button",{type:"button",className:"swatch",style:{"--c":a},"aria-pressed":k.color.toLowerCase()===a,"aria-label":c("colony.colorOption",{color:a}),onClick:()=>J("color",a)},a)),(0,d.jsx)("label",{className:`swatch custom ${E.includes(k.color.toLowerCase())?"":"on"}`,style:{"--c":/^#[0-9a-f]{6}$/i.test(k.color)?k.color:"transparent"},title:c("colony.colorCustom"),children:(0,d.jsx)("input",{type:"color",value:/^#[0-9a-f]{6}$/i.test(k.color)?k.color:"#2f8f5b",onChange:a=>J("color",a.target.value),"aria-label":c("colony.colorCustom")})}),(0,d.jsx)("input",{className:"input hex-input mono",value:k.color,maxLength:7,spellCheck:!1,"aria-label":c("colony.colorHex"),placeholder:"#2f8f5b",onChange:a=>{let b=a.target.value.trim();J("color",b.startsWith("#")||!b?b:`#${b}`)}})]})}),(0,d.jsx)(x.dR,{value:k.cwd,onChange:a=>J("cwd",a)}),(0,d.jsx)(x.en,{value:k.permission,onChange:a=>J("permission",a)}),(0,d.jsx)(x.D0,{label:c("inherit.context"),hint:c("colony.context.hint"),children:(0,d.jsx)(A.n,{value:k.system_prompt,onChange:a=>J("system_prompt",a),placeholder:c("colony.context.placeholder"),defaultView:"write",minHeight:160})}),(0,d.jsx)(x.D0,{label:c("form.skills"),children:(0,d.jsx)(x.kV,{skills:f,value:k.skill_ids,loads:k.skill_loads,onChange:(a,b)=>l({...k,skill_ids:a,skill_loads:b})})}),(0,d.jsx)(x.D0,{label:c("colony.members"),hint:c("colony.members.hint"),children:0===e.length?(0,d.jsx)("p",{className:"hint",children:c("colony.members.empty")}):(0,d.jsx)(C.C,{value:k.agent_ids,onChange:a=>J("agent_ids",a),items:e.map(b=>{let d=b.colony_id&&b.colony_id!==a?.id?h.find(a=>a.id===b.colony_id):null;return{id:b.id,name:b.name,note:d?c("colony.currentlyIn",{name:d.name}):b.description||c(`role.${b.role}`)}})})})]}),w&&(0,d.jsx)(H,{draft:k,colony:a,members:e.filter(a=>k.agent_ids.includes(a.id)),busy:G,onBack:()=>y(!1),onConfirm:K}),o&&(0,d.jsx)(x.TM,{danger:!0,title:c("fa.unsaved.title"),body:c("fa.unsaved.body"),confirmLabel:c("fa.unsaved.discard"),cancelLabel:c("fa.unsaved.keep"),onClose:()=>p(!1),onConfirm:b}),z&&a&&(0,d.jsx)(x.TM,{title:c("colony.deleteTitle",{name:a.name}),body:c("colony.deleteBody",{count:a.agent_ids.length}),danger:!0,confirmLabel:c("colony.delete"),cancelLabel:c("colony.keep"),onClose:()=>F(!1),onConfirm:async()=>{await v.FH.del(`/colonies/${a.id}`),await i(["agents","colonies"]),j(c("colony.deleted")),b()}})]})}function H({draft:a,colony:b,members:c,busy:e,onBack:f,onConfirm:h}){let{t:i}=(0,D.s9)(),j={cwd:!!a.cwd,permission:!0,skills:a.skill_ids.length>0,prompt:!!a.system_prompt.trim()},[k,l]=(0,g.useState)(()=>({cwd:(!b||b.inherit.cwd)&&j.cwd,permission:!b||b.inherit.permission,skills:(!b||b.inherit.skills)&&j.skills,prompt:(!b||b.inherit.prompt)&&j.prompt})),m=(0,g.useMemo)(()=>k.cwd&&a.cwd&&c.filter(b=>!b.overrides.includes("cwd")&&b.effective.cwd!==a.cwd).length,[k.cwd,a.cwd,c]);return(0,d.jsxs)(x.aF,{title:i("inheritAsk.title"),onClose:f,children:[(0,d.jsx)("p",{className:"muted small m0",children:i("inheritAsk.intro")}),(0,d.jsx)("div",{className:"col gap-s",children:F.map(b=>(0,d.jsx)(x.Tl,{disabled:!j[b],checked:k[b],onChange:a=>l(c=>({...c,[b]:a})),label:(0,d.jsxs)(d.Fragment,{children:[i(`inheritAsk.field.${b}`),"cwd"===b&&a.cwd?(0,d.jsxs)("span",{className:"muted mono fw-400",children:[" \xb7 ",(0,w._1)(a.cwd)]}):null,"permission"===b?(0,d.jsxs)("span",{className:"muted fw-400",children:[" \xb7 ",(0,w.Ck)(a.permission)]}):null]}),hint:j[b]?i(`inheritAsk.hint.${b}`):i(`inheritAsk.empty.${b}`)},b))}),m?(0,d.jsx)(x.lZ,{kind:"honey",children:i("inheritAsk.folderMoves",{count:Number(m)})}):null,(0,d.jsxs)("div",{className:"row push-end",children:[(0,d.jsx)("button",{className:"btn ghost",onClick:f,children:i("common.back")}),(0,d.jsx)("button",{className:"btn primary",disabled:e,onClick:()=>h(k),children:e?i("common.saving"):b?i("colony.save"):i("colony.create")})]})]})}var I=c(15964),J=c(93674);function K({agent:a,onClose:b}){let{t:c}=(0,D.s9)(),e=(0,J.A)(a,{onSaved:b,onDeleted:b,onCloned:b});return e.draft?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(x._s,{title:c("edit.title",{name:a.name}),subtitle:c("running"===a.status?"edit.subtitleRunning":"edit.subtitleIdle"),onClose:b,footer:e.actions({onCancel:b}),children:(0,d.jsx)(I.SU,{draft:e.draft,onChange:e.setDraft,errors:e.errors,selfId:a.id})}),e.deleteModal,e.cloneModal]}):null}var L=c(66390),M=c(62172),N=c(20668),O=c(3936),P=c(36368),Q=c(54403),R=c(93717);let S=74*Math.sqrt(3),T=[[1,0],[1,-1],[0,-1],[-1,0],[-1,1],[0,1]],U=([a,b])=>({x:S*(a+b/2),y:111*b}),V=(a,b,c)=>Array.from({length:6},(d,e)=>{let f=(60*e-30)*Math.PI/180;return`${(a+c*Math.cos(f)).toFixed(1)},${(b+c*Math.sin(f)).toFixed(1)}`}).join(" ");function W(){let{t:a}=(0,D.s9)(),{agents:b,colonies:c,objects:e,dispatches:A,ready:B,error:C,retry:E,refresh:F}=(0,t.q5)(),H=(0,x.dj)(),[I,J]=(0,g.useState)(null),[W,X]=(0,g.useState)(null),[Y,Z]=(0,g.useState)(null),[$,_]=(0,g.useState)(null),[aa,ab]=(0,g.useState)(null),[ac,ad]=(0,g.useState)(null),[ae,af]=(0,u.ud)("hive-colony-layout",{}),[ag,ah]=(0,g.useState)(null),[ai,aj]=(0,u.ud)("hive-colony-zoom",1),ak=ai>=.4&&ai<=2.5?ai:1,al=a=>aj(Math.min(2.5,Math.max(.4,Math.round(100*a)/100))),am=(0,g.useMemo)(()=>ag?{...ae,[ag.key]:{x:ag.x,y:ag.y}}:ae,[ae,ag]),{clusters:an,width:ao,height:ap}=(0,g.useMemo)(()=>(function(a,b,c,d={}){let e=a=>!!a&&b.some(b=>b.id===a),f=b.map(b=>({key:b.id,colony:b,members:a.filter(a=>a.colony_id===b.id),things:c.filter(a=>a.colony_id===b.id)}));f.push({key:"free",colony:null,members:a.filter(a=>!e(a.colony_id)),things:c.filter(a=>!e(a.colony_id))});let g=[],h=0,i=0,j=0;for(let b of f){if(!b.members.length&&!b.things.length&&!b.colony&&a.length+c.length>0)continue;let e=function(a){let b=a.filter(a=>"orchestrator"===a.role);for(let c of[...b])for(let d of c.worker_ids){let c=a.find(a=>a.id===d);c&&!b.includes(c)&&b.push(c)}for(let c of a)b.includes(c)||b.push(c);return b}(b.members),f=(function(a){let b=[[0,0]];for(let c=1;b.length<a;c++){let a=T[4][0]*c,d=T[4][1]*c;for(let e=0;e<6;e++)for(let f=0;f<c;f++)b.push([a,d]),a+=T[e][0],d+=T[e][1]}return b.slice(0,a)})(e.length+b.things.length+1).map(U),k=Math.min(...f.map(a=>a.x))-S/2,l=Math.max(...f.map(a=>a.x))+S/2,m=Math.min(...f.map(a=>a.y))-74,n=Math.max(...f.map(a=>a.y))+74,o=l-k+52,p=n-m+52+50,q=b.colony?d[b.key]:void 0;!q&&h>0&&h+o>880&&(h=0,i+=j+36,j=0);let r=q?q.x:h,s=q?q.y:i,t=f.map((a,c)=>{let f=e[c]??null,g=b.things[c-e.length],h=b.colony?void 0:d[(f??g)?.id??""];return{agent:f,object:g,x:h?h.x:r+(a.x-k)+26,y:h?h.y:s+(a.y-m)+26+50}});g.push({key:b.key,colony:b.colony,cells:t,x:r,y:s,w:o,h:p}),q||(h+=o+36,j=Math.max(j,p))}let k=0,l=0;for(let a of g)if(a.colony)k=Math.max(k,a.x+a.w),l=Math.max(l,a.y+a.h);else for(let b of a.cells)k=Math.max(k,b.x+S/2+26),l=Math.max(l,b.y+74+26);return{clusters:g,width:k,height:l}})(b,c,e,am),[b,c,e,am]),aq=(0,g.useRef)(null),[ar,as]=(0,g.useState)(0);(0,g.useRef)(ak).current=ak;let at=ao+80,au=ap+80,av=(ar?Math.min(1,(ar-24)/at):1)*ak,aw=(0,g.useRef)(null),ax=(0,g.useRef)(!1),ay=a=>{let b=aw.current;if(!b)return;let c=(a.clientX-b.sx)/av,d=(a.clientY-b.sy)/av;!b.moved&&Math.hypot(c,d)*av<6||(b.moved=!0,b.last={x:Math.max(b.min.x,b.ox+c),y:Math.max(b.min.y,b.oy+d)},ah({key:b.key,...b.last}))},az=()=>{let a=aw.current;aw.current=null,a?.moved&&a.last&&(ax.current=!0,setTimeout(()=>{ax.current=!1},0),af({...ae,[a.key]:a.last}),ah(null))},aA=(a,b,c,d,e={x:0,y:0})=>{let f={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]}[a.key];if(!f||a.altKey||a.ctrlKey||a.metaKey)return;a.preventDefault();let g=a.shiftKey?64:16;af({...ae,[b]:{x:Math.max(e.x,c+f[0]*g),y:Math.max(e.y,d+f[1]*g)}})},aB=(a,b,c,d)=>({onPointerDown:e=>((a,b,c,d,e={x:0,y:0})=>{if(0===a.button){aw.current={key:b,sx:a.clientX,sy:a.clientY,ox:c,oy:d,min:e,moved:!1};try{a.currentTarget.setPointerCapture(a.pointerId)}catch{}}})(e,a,b,c,d),onPointerMove:ay,onPointerUp:az,onPointerCancel:az}),aC=new Map;for(let a of an)for(let b of a.cells)b.agent&&aC.set(b.agent.id,{x:b.x+40,y:b.y+40}),b.object&&aC.set(b.object.id,{x:b.x+40,y:b.y+40});let aD=e.filter(a=>"cluster"===a.kind).flatMap(a=>a.config.members.map(b=>({from:a.id,to:b}))),aE=e.filter(a=>a.manager_id&&aC.has(a.manager_id)&&aC.has(a.id)).map(a=>({from:a.manager_id,to:a.id})),aF=a=>e.filter(b=>b.manager_id===a),aG=a=>a.cloned_from?b.find(b=>b.id===a.cloned_from)?.name:void 0,[aH,aI]=(0,g.useState)(null),[aJ,aK]=(0,g.useState)(null),aL=b.find(a=>a.id===I)??null,aM=e.find(a=>a.id===I)??null,[aN,aO]=(0,g.useState)(null),aP=W??I,aQ=b.filter(a=>"orchestrator"===a.role).flatMap(a=>a.worker_ids.map(b=>({from:a.id,to:b}))),aR=new Set(aP?[aP,...[...aQ,...aD,...aE].filter(a=>a.from===aP||a.to===aP).flatMap(a=>[a.from,a.to])]:[]),aS=a=>b.filter(b=>"orchestrator"===b.role&&b.worker_ids.includes(a)),aT=b.filter(a=>"running"===a.status).length,aU=e.filter(a=>"running"===a.state.status).length,aV=b.filter(a=>"orchestrator"===a.role).length,aW=c=>b.find(a=>a.id===c)?.name??a("colony.removedAgent"),aX=A.filter(a=>"running"===a.status||"queued"===a.status).length,aY=[{id:"agents",n:b.length,label:a("stat.agents",{count:b.length}),href:"/agents"},{id:"colonies",n:c.length,label:a("stat.colonies",{count:c.length})},{id:"objects",n:e.length,label:a("stat.objects",{count:e.length}),href:"/resources",title:e.length?a("obj.running",{count:aU}):void 0},{id:"queens",n:aV,label:a("stat.orchestrators",{count:aV}),href:"/agents"},{id:"working",n:aT,label:a("stat.working"),href:"/agents"},{id:"tasks",n:aX,label:a("stat.tasks"),href:"#recent"}],aZ=aL?c.find(a=>a.id===aL.colony_id):void 0,a$=async(b,d)=>{try{await v.FH.patch(`/agents/${b.id}`,{colony_id:d||null,overrides:[]}),await F(["agents","colonies"]),H(d?a("colony.joined",{name:b.name,colony:c.find(a=>a.id===d)?.name??""}):a("colony.left",{name:b.name}))}catch(b){H(b instanceof Error?b.message:a("colony.moveFailed"),"err")}};return(0,d.jsxs)("div",{className:"page",children:[(0,d.jsxs)("div",{className:"page-head",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"row gap-s",children:[(0,d.jsx)("h1",{children:a("nav.colony")}),(0,d.jsx)(N.B,{label:a("colony.helpLabel"),title:a("colony.howTitle"),children:a("colony.howBody")})]}),(0,d.jsx)("p",{children:a("colony.page.subtitle")})]}),(0,d.jsx)("div",{className:"cx-head-actions",children:(0,d.jsx)(y.W1,{label:a("cx.new"),icon:(0,d.jsx)(h.A,{size:14}),children:b=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y.Dr,{icon:(0,d.jsx)(i.A,{size:15}),onClick:()=>{b(),Z({})},children:a("newAgent.title")}),(0,d.jsx)(y.Dr,{icon:(0,d.jsx)(j.A,{size:15}),onClick:()=>{b(),_("new")},children:a("colony.newTitle")}),(0,d.jsx)(y.Dr,{icon:(0,d.jsx)(k.A,{size:15}),onClick:()=>{b(),ad({})},children:a("obj.new")})]})})})]}),(0,d.jsx)("div",{className:"stats",children:aY.map(b=>{let c=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("b",{children:b.n}),(0,d.jsx)("span",{children:b.label})]});return b.href?(0,d.jsx)(f(),{href:b.href,className:"card stat",title:b.title,"aria-label":`${b.n} ${b.label}. ${a("cx.stat.open",{label:b.label})}`,children:c},b.id):(0,d.jsx)("div",{className:"card stat",title:b.title,children:c},b.id)})}),(0,d.jsxs)("div",{className:"colony",children:[(0,d.jsxs)("div",{className:"comb-wrap",ref:aq,children:[B?0===b.length&&0===c.length&&0===e.length?(0,d.jsx)("div",{className:"comb-empty-wrap",children:(0,d.jsx)(x.pp,{icon:(0,d.jsx)(x._h,{size:"lg",queen:!0,label:"+"}),title:a("colony.empty.title"),body:a("colony.empty.body"),action:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsxs)("button",{className:"btn",onClick:()=>_("new"),children:[(0,d.jsx)(h.A,{size:16}),a("colony.empty.createColony")]}),(0,d.jsxs)("button",{className:"btn primary",onClick:()=>Z({}),children:[(0,d.jsx)(h.A,{size:16}),a("colony.empty.createAgent")]})]})})}):(0,d.jsx)("div",{className:"comb-box",style:{width:at*av,height:au*av},children:(0,d.jsxs)("div",{className:"comb",style:{width:at,height:au,transform:`scale(${av})`,transformOrigin:"0 0","--w":`${.9*S}px`,"--h":`${133.20000000000002}px`},children:[(0,d.jsx)("svg",{className:"links",width:at,height:au,children:an.filter(a=>a.colony).map(a=>{let b=a.colony.color||"var(--honey)";return(0,d.jsxs)("g",{children:[a.cells.map((a,c)=>(0,d.jsx)("polygon",{points:V(a.x+40,a.y+40,74),style:{fill:b,stroke:b},strokeWidth:44,strokeLinejoin:"round"},"o"+c)),a.cells.map((a,c)=>(0,d.jsx)("polygon",{points:V(a.x+40,a.y+40,74),style:{fill:`color-mix(in srgb, ${b} 9%, var(--surface))`,stroke:`color-mix(in srgb, ${b} 9%, var(--surface))`},strokeWidth:38,strokeLinejoin:"round"},"i"+c))]},a.key)})}),an.map(b=>(0,d.jsxs)("div",{children:[b.colony?(0,d.jsxs)("button",{className:`colony-label draggable ${ag?.key===b.key?"dragging":""}`,style:{left:b.x+b.w/2+40,top:b.y+50-10+40,"--c":b.colony.color||"var(--honey)"},...aB(b.key,b.x,b.y),onKeyDown:a=>aA(a,b.key,b.x,b.y),onClick:()=>{ax.current||_(b.colony)},title:`${b.colony.cwd?a("colony.editHover",{path:(0,w._1)(b.colony.cwd)}):a("colony.editHoverShort")} \xb7 ${a("colony.dragHint")} \xb7 ${a("cx.moveHint")}`,children:[(0,d.jsx)("i",{className:"cdot"}),b.colony.name,(0,d.jsx)("small",{children:a("colony.agentCount",{count:b.cells.filter(a=>a.agent).length})}),(0,d.jsx)(j.A,{size:13,className:"muted"})]}):c.length>0&&b.cells.some(a=>a.agent)?(0,d.jsx)("span",{className:"colony-label cx-unplaced",style:{left:b.x+b.w/2+40,top:b.y+50-10+40},children:(0,d.jsx)("small",{children:a("common.noColony")})}):null,b.cells.map((c,e)=>{let f=c.agent,g={left:c.x+40,top:c.y+40},i=c.object;if(i){let{icon:e,color:f}=R.Nd[i.kind];return(0,d.jsxs)("button",{"data-sid":i.id,className:`cell fill obj st-${i.state.status} ${"running"===i.state.status?"running":""} ${aP&&!aR.has(i.id)?"dim":""} ${aP&&aR.has(i.id)&&i.id!==aP?"linked":""} ${b.colony?"":"draggable"}`,style:{...g,"--c":f},"aria-pressed":I===i.id,onMouseEnter:()=>X(i.id),onMouseLeave:()=>X(null),onFocus:()=>X(i.id),onBlur:()=>X(null),...b.colony?{}:{...aB(i.id,c.x,c.y,{x:S/2,y:74}),onKeyDown:a=>aA(a,i.id,c.x,c.y,{x:S/2,y:74})},onClick:()=>{ax.current||J(i.id===I?null:i.id)},"aria-label":`${i.name}, ${a(`obj.kind.${i.kind}`)}, ${a(`obj.status.${i.state.status}`)}`,title:i.state.detail?`${a(`obj.status.${i.state.status}`)}: ${i.state.detail}`:a(`obj.status.${i.state.status}`),children:[(0,d.jsx)("span",{className:"shape"}),(0,d.jsxs)("span",{className:"label",children:[(0,d.jsx)(e,{size:16}),(0,d.jsx)("b",{children:i.name}),(0,d.jsx)("small",{children:a(`obj.status.${i.state.status}`)})]}),(0,d.jsx)("span",{className:`pip o-${i.state.status}`}),i.manager_id&&(0,d.jsxs)("span",{className:"ltag top mgr",title:a("colony.managedBy",{name:aW(i.manager_id)}),children:["⚙ ",aW(i.manager_id)]})]},i.id)}return f?(0,d.jsxs)("button",{"data-sid":f.id,className:`cell fill ${"orchestrator"===f.role?"queen":""} ${"running"===f.status?"running":""} ${aP&&!aR.has(f.id)?"dim":""} ${aP&&aR.has(f.id)&&f.id!==aP?"linked":""} ${b.colony?"":"draggable"}`,onMouseEnter:()=>X(f.id),onMouseLeave:()=>X(null),onFocus:()=>X(f.id),onBlur:()=>X(null),style:{...g,"--c":w.xq[f.provider].color},"aria-pressed":I===f.id,...b.colony?{}:{...aB(f.id,c.x,c.y,{x:S/2,y:74}),onKeyDown:a=>aA(a,f.id,c.x,c.y,{x:S/2,y:74}),title:a("cx.moveHint")},onClick:()=>{ax.current||J(f.id===I?null:f.id)},"aria-label":`${f.name}, ${a(`role.${f.role}`)}, ${w.xq[f.provider].short}, ${a(`status.${f.status}`)}`,children:[(0,d.jsx)("span",{className:"shape"}),(0,d.jsxs)("span",{className:"label",children:[(0,d.jsx)("b",{children:f.name}),(0,d.jsx)("small",{children:w.xq[f.provider].short})]}),"idle"!==f.status&&(0,d.jsx)("span",{className:`pip ${"error"===f.status?"err":""}`}),(aF(f.id).length>0||aG(f))&&(0,d.jsxs)("span",{className:`ltag top ${aF(f.id).length>0?"mgr":"clone"}`,title:[aG(f)?a("agent.cloneOf",{name:aG(f)}):"",aF(f.id).length>0?a("colony.manages",{names:aF(f.id).map(a=>a.name).join(", ")}):""].filter(Boolean).join(" \xb7 "),children:[aG(f)?`⧉ ${aG(f)}`:"",aG(f)&&aF(f.id).length>0?" \xb7 ":"",aF(f.id).length>0?`⚙ ${1===aF(f.id).length?aF(f.id)[0].name:aF(f.id).length}`:""]}),("orchestrator"===f.role?f.worker_ids.length>0:aS(f.id).length>0)&&(0,d.jsx)("span",{className:"ltag",title:"orchestrator"===f.role?a("colony.delegatesTo",{count:f.worker_ids.length}):a("colony.connectedTo",{names:aS(f.id).map(a=>a.name).join(", ")}),children:"orchestrator"===f.role?`↓ ${f.worker_ids.length}`:`↑ ${1===aS(f.id).length?aS(f.id)[0].name:aS(f.id).length}`})]},f.id):(0,d.jsxs)("button",{className:"cell ghost",style:g,onClick:()=>Z({colonyId:b.colony?.id}),"aria-label":b.colony?a("colony.addTo",{name:b.colony.name}):a("colony.addAgent"),children:[(0,d.jsx)("svg",{className:"ghost-hex",viewBox:"0 0 100 115",preserveAspectRatio:"none","aria-hidden":!0,children:(0,d.jsx)("polygon",{points:"50,2 98,29 98,86 50,113 2,86 2,29"})}),(0,d.jsxs)("span",{className:"label",children:[(0,d.jsx)(h.A,{size:18}),a("colony.addAgent")]})]},b.key+"g"+e)})]},b.key+"l")),(0,d.jsxs)("svg",{className:"links top",width:at,height:au,"aria-hidden":!0,children:[aQ.filter(a=>!!aP&&(a.from===aP||a.to===aP)).map(a=>{let c=aC.get(a.from),e=aC.get(a.to);if(!c||!e)return null;let f=e.x-c.x,g=e.y-c.y,h=Math.hypot(f,g)||1,i=f/h,j=g/h,k=c.x+45.88*i,l=c.y+45.88*j,m=e.x-45.88*i,n=e.y-45.88*j,o=b.find(b=>b.id===a.to)?.status==="running",p=!!aP&&(a.from===aP||a.to===aP),q=!!aP&&!p;return(0,d.jsxs)("g",{opacity:q?.18:1,children:[(0,d.jsx)("line",{x1:k,y1:l,x2:m,y2:n,stroke:"var(--surface)",strokeWidth:p?8:5,strokeLinecap:"round",opacity:.85}),(0,d.jsx)("line",{x1:k,y1:l,x2:m,y2:n,stroke:"var(--honey)",strokeWidth:p?3.5:2.2,strokeDasharray:o?"7 6":p?void 0:"1 6",strokeLinecap:"round",children:o&&(0,d.jsx)("animate",{attributeName:"stroke-dashoffset",from:"26",to:"0",dur:"0.8s",repeatCount:"indefinite"})}),(0,d.jsx)("circle",{cx:m,cy:n,r:p?5.5:4,fill:"var(--honey)",stroke:"var(--surface)",strokeWidth:2})]},a.from+a.to)}),[...aD.map(a=>({...a,kind:"cluster"})),...aE.map(a=>({...a,kind:"manager"}))].filter(a=>!!aP&&(a.from===aP||a.to===aP)).map(a=>{let b=aC.get(a.from),c=aC.get(a.to);if(!b||!c)return null;let e=c.x-b.x,f=c.y-b.y,g=Math.hypot(e,f)||1,h=e/g,i=f/g,j="cluster"===a.kind?w.Ng:"var(--link-manager)";return(0,d.jsxs)("g",{children:[(0,d.jsx)("line",{x1:b.x+45.88*h,y1:b.y+45.88*i,x2:c.x-45.88*h,y2:c.y-45.88*i,stroke:"var(--surface)",strokeWidth:8,strokeLinecap:"round",opacity:.9}),(0,d.jsx)("line",{x1:b.x+45.88*h,y1:b.y+45.88*i,x2:c.x-45.88*h,y2:c.y-45.88*i,stroke:j,strokeWidth:3,strokeDasharray:"cluster"===a.kind?"3 5":"8 5",strokeLinecap:"round"}),(0,d.jsx)("circle",{cx:c.x-45.88*h,cy:c.y-45.88*i,r:5,fill:j,stroke:"var(--surface)",strokeWidth:2})]},a.kind+a.from+a.to)})]})]})}):C?(0,d.jsx)("div",{className:"comb-skel",children:(0,d.jsx)(x.lZ,{kind:"err",children:(0,d.jsxs)("div",{className:"row gap-s wrap",children:[(0,d.jsxs)("span",{className:"grow",children:[a("cx.loadFailed")," ",C]}),(0,d.jsx)("button",{className:"btn sm",onClick:()=>void E(),children:a("cx.retry")})]})})}):(0,d.jsxs)("div",{className:"comb-skel",role:"status","aria-label":a("cx.loading"),children:[(0,d.jsx)("div",{className:"skel",style:{width:220,height:190}}),(0,d.jsxs)("div",{className:"row gap-l",children:[(0,d.jsx)("div",{className:"skel",style:{width:150,height:130}}),(0,d.jsx)("div",{className:"skel",style:{width:150,height:130}})]})]}),(0,d.jsxs)("div",{className:"comb-zoom",role:"group","aria-label":a("colony.zoom"),children:[Object.keys(ae).length>0&&(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>af({}),title:a("colony.layout.reset"),"aria-label":a("colony.layout.reset"),children:(0,d.jsx)(l.A,{size:14})}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>al(ak/1.2),disabled:ak<=.4,title:a("colony.zoom.out"),"aria-label":a("colony.zoom.out"),children:(0,d.jsx)(m.A,{size:14})}),(0,d.jsxs)("button",{className:"btn ghost sm zoom-pct",onClick:()=>al(1),title:a("colony.zoom.fit"),"aria-label":a("colony.zoom.fit"),children:[Math.round(100*ak),"%"]}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>al(1.2*ak),disabled:ak>=2.5,title:a("colony.zoom.in"),"aria-label":a("colony.zoom.in"),children:(0,d.jsx)(h.A,{size:14})}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>al(1),title:a("colony.zoom.fit"),"aria-label":a("colony.zoom.fit"),children:(0,d.jsx)(n.A,{size:14})})]}),(0,d.jsxs)("div",{className:"comb-legend",children:[Object.keys(w.xq).map(a=>(0,d.jsxs)("span",{className:"pbadge",style:{"--c":w.xq[a].color},children:[(0,d.jsx)("i",{}),w.xq[a].short]},a)),(0,d.jsxs)("span",{className:"pbadge",style:{"--c":"var(--honey)"},children:[(0,d.jsx)("i",{}),a("role.orchestrator")]})]})]}),aM?(0,d.jsx)(P.wl,{object:aM,target:aN,onClose:()=>J(null),onCreateManager:()=>Z({colonyId:aM.colony_id??void 0,manager:!0,objectId:aM.id})},aM.id):aL?(0,d.jsxs)(O.rs,{target:aN,pinned:!0,width:340,label:aL.name,onClose:()=>J(null),children:[(0,d.jsxs)("div",{className:"ap-corner row gap-s",children:[(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>ab(aL.id),"aria-label":a("colony.settingsFor",{name:aL.name}),title:a("colony.agentSettings"),children:(0,d.jsx)(o.A,{size:16})}),(0,d.jsx)("button",{className:"btn ghost icon sm",onClick:()=>J(null),"aria-label":a("common.close"),title:`${a("common.close")} (Esc)`,children:(0,d.jsx)(p.A,{size:16})})]}),(0,d.jsx)(O.kh,{agent:aL,hideColony:!0}),(0,d.jsxs)("div",{className:"field ap-pin-field",children:[(0,d.jsx)("label",{children:a("form.colony")}),(0,d.jsxs)("select",{className:"select",value:aZ?.id??"",onChange:a=>void a$(aL,a.target.value),children:[(0,d.jsx)("option",{value:"",children:a("common.noColony")}),c.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name},a.id))]})]}),(0,d.jsxs)("div",{className:"row ap-pin-actions",children:[(0,d.jsxs)(f(),{className:"btn primary grow",href:`/agents/${aL.id}`,children:[a("colony.openChat")," ",(0,d.jsx)(q,{size:16})]}),(0,d.jsx)("button",{className:"btn icon",onClick:()=>aK(aL.id),"aria-label":a("agent.clone"),title:a("agent.clone.hint"),children:(0,d.jsx)(r.A,{size:16})}),(0,d.jsx)("button",{className:"btn danger icon",onClick:()=>aI(aL.id),"aria-label":a("agent.delete"),title:a("agent.delete"),children:(0,d.jsx)(s.A,{size:16})})]})]},aL.id):null]}),(0,d.jsxs)("div",{className:"card card-pad recent",id:"recent",children:[(0,d.jsx)("div",{className:"eyebrow recent-head",children:a("colony.recent")}),0===A.length?(0,d.jsx)("p",{className:"muted small m0",children:a("colony.recentEmpty")}):(0,d.jsx)("div",{className:"recent-grid",children:A.slice(0,6).map(c=>(0,d.jsxs)("div",{className:"feed-item",children:[(0,d.jsx)("i",{className:`dot ${"running"===c.status?"run":"queued"===c.status?"wait":"done"===c.status?"ok":"err"}`,title:a(`colony.task.${c.status}`)}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"feed-line",children:[b.some(a=>a.id===c.from_id)?(0,d.jsx)(f(),{href:`/agents/${c.from_id}`,"aria-label":a("cx.openAgent",{name:aW(c.from_id)}),children:aW(c.from_id)}):(0,d.jsx)("b",{children:aW(c.from_id)})," → ",b.some(a=>a.id===c.to_id)?(0,d.jsx)(f(),{href:`/agents/${c.to_id}`,"aria-label":a("cx.openAgent",{name:aW(c.to_id)}),children:aW(c.to_id)}):(0,d.jsx)("b",{children:aW(c.to_id)})]}),(0,d.jsx)("div",{className:"muted small ellipsis",children:c.task}),(0,d.jsx)("div",{className:"muted feed-when",children:(0,w.KN)(c.created_at)})]})]},c.id))})]}),aJ&&b.find(a=>a.id===aJ)&&(0,d.jsx)(M.y,{agent:b.find(a=>a.id===aJ),onClose:()=>aK(null),onCloned:a=>J(a.id)}),aH&&b.find(a=>a.id===aH)&&(0,d.jsx)(L.G,{agent:b.find(a=>a.id===aH),onClose:()=>aI(null),onDeleted:()=>J(null)}),Y&&(0,d.jsx)(z.bC,{presetColonyId:Y.colonyId,presetObjectId:Y.objectId,manager:Y.manager,onClose:()=>Z(null),onCreated:a=>J(a)}),aa&&b.find(a=>a.id===aa)&&(0,d.jsx)(K,{agent:b.find(a=>a.id===aa),onClose:()=>ab(null)},aa),ac&&(0,d.jsx)(Q.X,{presetColonyId:ac.colonyId,onClose:()=>ad(null),onSaved:a=>J(a)}),$&&(0,d.jsx)(G,{colony:"new"===$?void 0:$,onClose:()=>_(null)})]})}},85635:(a,b,c)=>{Promise.resolve().then(c.bind(c,10230))},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},93674:(a,b,c)=>{"use strict";c.d(b,{A:()=>p});var d=c(55322),e=c(17027),f=c(34410),g=c(35842),h=c(81963),i=c(15964),j=c(66390),k=c(62172),l=c(60570),m=c(13520),n=c(7371),o=c(93884);function p(a,b={}){let{t:c}=(0,o.s9)(),{agents:q,colonies:r,objects:s,refresh:t}=(0,l.q5)(),u=(0,h.dj)(),v=(0,e.useMemo)(()=>a?s.filter(b=>b.manager_id===a.id).map(a=>a.id).sort():[],[s,a?.id]),w=(0,e.useMemo)(()=>a?JSON.stringify((0,i.TN)(a,v)):"",[a,v]),[x,y]=(0,e.useState)(()=>a?(0,i.TN)(a,v):null),[z,A]=(0,e.useState)(!1),[B,C]=(0,e.useState)(!1),[D,E]=(0,e.useState)(!1),F=x&&a?(0,i.tf)(x,q,a.id,r):{},G=!!x&&JSON.stringify(x)!==w;(0,m.h)(G);let H=async()=>{if(x&&a){if(Object.keys(F).length)return void u(c("edit.fixFields"),"err");A(!0);try{let{type_id:d,object_ids:e,...f}=x;await n.FH.patch(`/agents/${a.id}`,f),JSON.stringify([...e].sort())!==JSON.stringify(v)&&await n.FH.put(`/agents/${a.id}/resources`,{object_ids:e}),await t(["agents","colonies","objects"]),u(c("edit.saved",{name:x.name.trim()})),b.onSaved?.()}catch(a){u(a instanceof Error?a.message:c("edit.saveFailed"),"err")}A(!1)}},I=()=>{a&&y((0,i.TN)(a,v))};return{draft:x,setDraft:y,errors:F,dirty:G,saving:z,save:H,discard:I,actions:(a={})=>(0,d.jsxs)("span",{className:"foot-actions push-r",children:[(0,d.jsxs)("span",{className:"row gap-s",children:[(0,d.jsxs)("button",{className:`btn danger ${a.size??""}`,onClick:()=>C(!0),children:[(0,d.jsx)(f.A,{size:a.size?14:15}),c("agent.delete")]}),(0,d.jsx)("button",{className:`btn icon ${a.size??""}`,onClick:()=>E(!0),title:c("agent.clone.hint"),"aria-label":c("agent.clone"),children:(0,d.jsx)(g.A,{size:a.size?14:15})})]}),a.onCancel?(0,d.jsx)("button",{className:`btn ghost ${a.size??""}`,onClick:a.onCancel,children:c("common.cancel")}):(0,d.jsx)("button",{className:`btn ghost ${a.size??""}`,disabled:!G,onClick:I,children:c("common.discard")}),(0,d.jsx)("button",{className:`btn primary ${a.size??""}`,disabled:!G||z,onClick:H,children:z?c("common.saving"):c("common.saveChanges")})]}),deleteModal:B&&a?(0,d.jsx)(j.G,{agent:a,onClose:()=>C(!1),onDeleted:b.onDeleted}):null,cloneModal:D&&a?(0,d.jsx)(k.y,{agent:a,onClose:()=>E(!1),onCloned:b.onCloned}):null}}}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[691,939,335,148,837,143,716,368,403],()=>b(b.s=1417));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/route-kind.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/package.json","../../package.json","../chunks/143.js","../chunks/148.js","../chunks/
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/route-kind.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/package.json","../../package.json","../chunks/143.js","../chunks/148.js","../chunks/335.js","../chunks/368.js","../chunks/403.js","../chunks/423.js","../chunks/691.js","../chunks/692.js","../chunks/716.js","../chunks/837.js","../chunks/919.js","../chunks/939.js","../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"5506":{"*":{"id":"34720","name":"*","chunks":[],"async":false}},"11108":{"*":{"id":"93286","name":"*","chunks":[],"async":false}},"13970":{"*":{"id":"54880","name":"*","chunks":[],"async":false}},"20353":{"*":{"id":"66621","name":"*","chunks":[],"async":false}},"25382":{"*":{"id":"73026","name":"*","chunks":[],"async":false}},"26082":{"*":{"id":"7700","name":"*","chunks":[],"async":false}},"36098":{"*":{"id":"80749","name":"*","chunks":[],"async":false}},"40523":{"*":{"id":"96297","name":"*","chunks":[],"async":false}},"44209":{"*":{"id":"91184","name":"*","chunks":[],"async":false}},"46269":{"*":{"id":"54462","name":"*","chunks":[],"async":false}},"47857":{"*":{"id":"82921","name":"*","chunks":[],"async":false}},"51161":{"*":{"id":"44389","name":"*","chunks":[],"async":false}},"55890":{"*":{"id":"17740","name":"*","chunks":[],"async":false}},"64304":{"*":{"id":"87328","name":"*","chunks":[],"async":false}},"69925":{"*":{"id":"60729","name":"*","chunks":[],"async":false}},"75750":{"*":{"id":"82874","name":"*","chunks":[],"async":false}},"77363":{"*":{"id":"12197","name":"*","chunks":[],"async":false}},"86300":{"*":{"id":"39639","name":"*","chunks":[],"async":false}},"89146":{"*":{"id":"74050","name":"*","chunks":[],"async":false}},"89976":{"*":{"id":"15726","name":"*","chunks":[],"async":false}},"91962":{"*":{"id":"840","name":"*","chunks":[],"async":false}},"95339":{"*":{"id":"93177","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/builtin/global-error.js":{"id":89146,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":89146,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/client-page.js":{"id":77363,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/client-page.js":{"id":77363,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/client-segment.js":{"id":51161,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/client-segment.js":{"id":51161,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":55890,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":55890,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/layout-router.js":{"id":26082,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/layout-router.js":{"id":26082,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":91962,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":91962,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/render-from-template-context.js":{"id":64304,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":64304,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/lib/framework/boundary-components.js":{"id":40523,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":40523,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":13970,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":13970,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/components/Shell.tsx":{"id":5506,"name":"*","chunks":["586","static/chunks/586-f7017d585a84738d.js","281","static/chunks/281-113274e705940a55.js","177","static/chunks/app/layout-fad968a635f9a4b3.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Bricolage_Grotesque\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--f-display\",\"axes\":[\"opsz\"]}],\"variableName\":\"display\"}":{"id":39856,"name":"*","chunks":["586","static/chunks/586-f7017d585a84738d.js","281","static/chunks/281-113274e705940a55.js","177","static/chunks/app/layout-fad968a635f9a4b3.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Hanken_Grotesk\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--f-body\"}],\"variableName\":\"body\"}":{"id":98682,"name":"*","chunks":["586","static/chunks/586-f7017d585a84738d.js","281","static/chunks/281-113274e705940a55.js","177","static/chunks/app/layout-fad968a635f9a4b3.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--f-mono\"}],\"variableName\":\"mono\"}":{"id":15151,"name":"*","chunks":["586","static/chunks/586-f7017d585a84738d.js","281","static/chunks/281-113274e705940a55.js","177","static/chunks/app/layout-fad968a635f9a4b3.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/globals.css":{"id":87968,"name":"*","chunks":["586","static/chunks/586-f7017d585a84738d.js","281","static/chunks/281-113274e705940a55.js","177","static/chunks/app/layout-fad968a635f9a4b3.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/connections/page.tsx":{"id":46269,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/chat/page.tsx":{"id":69925,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/relations/page.tsx":{"id":86300,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/agents/[id]/page.tsx":{"id":44209,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/agents/page.tsx":{"id":47857,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/resources/[id]/page.tsx":{"id":75750,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/resources/page.tsx":{"id":89976,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx":{"id":36098,"name":"*","chunks":["586","static/chunks/586-f7017d585a84738d.js","706","static/chunks/706-fa2be0f10ffebe6a.js","391","static/chunks/391-18768499e741112e.js","281","static/chunks/281-113274e705940a55.js","517","static/chunks/517-373a80c8ba432bdc.js","350","static/chunks/350-0fe82e622e7a670f.js","606","static/chunks/606-c9a19918b02a98d0.js","587","static/chunks/587-8e4d2be01ba7d48f.js","974","static/chunks/app/page-99e0351e6ccaa384.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/schedules/page.tsx":{"id":95339,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/sessions/page.tsx":{"id":25382,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/types/page.tsx":{"id":11108,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/skills/page.tsx":{"id":20353,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/":[],"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/layout":[{"inlined":false,"path":"static/css/945795da867f5250.css"},{"inlined":false,"path":"static/css/582723fcea1f9887.css"}],"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page":[]},"rscModuleMapping":{"5506":{"*":{"id":"55356","name":"*","chunks":[],"async":false}},"11108":{"*":{"id":"60068","name":"*","chunks":[],"async":false}},"13970":{"*":{"id":"27134","name":"*","chunks":[],"async":false}},"20353":{"*":{"id":"61959","name":"*","chunks":[],"async":false}},"25382":{"*":{"id":"64848","name":"*","chunks":[],"async":false}},"26082":{"*":{"id":"92090","name":"*","chunks":[],"async":false}},"36098":{"*":{"id":"10230","name":"*","chunks":[],"async":false}},"40523":{"*":{"id":"78683","name":"*","chunks":[],"async":false}},"44209":{"*":{"id":"27769","name":"*","chunks":[],"async":false}},"46269":{"*":{"id":"5420","name":"*","chunks":[],"async":false}},"47857":{"*":{"id":"94963","name":"*","chunks":[],"async":false}},"51161":{"*":{"id":"68875","name":"*","chunks":[],"async":false}},"55890":{"*":{"id":"65662","name":"*","chunks":[],"async":false}},"64304":{"*":{"id":"72702","name":"*","chunks":[],"async":false}},"69925":{"*":{"id":"1835","name":"*","chunks":[],"async":false}},"75750":{"*":{"id":"67744","name":"*","chunks":[],"async":false}},"77363":{"*":{"id":"18727","name":"*","chunks":[],"async":false}},"86300":{"*":{"id":"976","name":"*","chunks":[],"async":false}},"87968":{"*":{"id":"53140","name":"*","chunks":[],"async":false}},"89146":{"*":{"id":"2972","name":"*","chunks":[],"async":false}},"89976":{"*":{"id":"39016","name":"*","chunks":[],"async":false}},"91962":{"*":{"id":"5726","name":"*","chunks":[],"async":false}},"95339":{"*":{"id":"29143","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"13970":{"*":{"id":"54880","name":"*","chunks":[],"async":false}},"26082":{"*":{"id":"7700","name":"*","chunks":[],"async":false}},"40523":{"*":{"id":"96297","name":"*","chunks":[],"async":false}},"51161":{"*":{"id":"44389","name":"*","chunks":[],"async":false}},"55890":{"*":{"id":"17740","name":"*","chunks":[],"async":false}},"64304":{"*":{"id":"87328","name":"*","chunks":[],"async":false}},"77363":{"*":{"id":"12197","name":"*","chunks":[],"async":false}},"89146":{"*":{"id":"74050","name":"*","chunks":[],"async":false}},"91962":{"*":{"id":"840","name":"*","chunks":[],"async":false}}}}
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"4249":{"*":{"id":"33438","name":"*","chunks":[],"async":false}},"11108":{"*":{"id":"93286","name":"*","chunks":[],"async":false}},"13970":{"*":{"id":"54880","name":"*","chunks":[],"async":false}},"20353":{"*":{"id":"66621","name":"*","chunks":[],"async":false}},"25382":{"*":{"id":"73026","name":"*","chunks":[],"async":false}},"26082":{"*":{"id":"7700","name":"*","chunks":[],"async":false}},"34237":{"*":{"id":"42422","name":"*","chunks":[],"async":false}},"40523":{"*":{"id":"96297","name":"*","chunks":[],"async":false}},"43517":{"*":{"id":"80749","name":"*","chunks":[],"async":false}},"47857":{"*":{"id":"82921","name":"*","chunks":[],"async":false}},"51161":{"*":{"id":"44389","name":"*","chunks":[],"async":false}},"55890":{"*":{"id":"17740","name":"*","chunks":[],"async":false}},"64304":{"*":{"id":"87328","name":"*","chunks":[],"async":false}},"68992":{"*":{"id":"75286","name":"*","chunks":[],"async":false}},"69925":{"*":{"id":"60729","name":"*","chunks":[],"async":false}},"75750":{"*":{"id":"82874","name":"*","chunks":[],"async":false}},"77363":{"*":{"id":"12197","name":"*","chunks":[],"async":false}},"86300":{"*":{"id":"39639","name":"*","chunks":[],"async":false}},"87286":{"*":{"id":"12129","name":"*","chunks":[],"async":false}},"89146":{"*":{"id":"74050","name":"*","chunks":[],"async":false}},"89976":{"*":{"id":"15726","name":"*","chunks":[],"async":false}},"91962":{"*":{"id":"840","name":"*","chunks":[],"async":false}},"95339":{"*":{"id":"93177","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/builtin/global-error.js":{"id":89146,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":89146,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/client-page.js":{"id":77363,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/client-page.js":{"id":77363,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/client-segment.js":{"id":51161,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/client-segment.js":{"id":51161,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":55890,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":55890,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/layout-router.js":{"id":26082,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/layout-router.js":{"id":26082,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":91962,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":91962,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/client/components/render-from-template-context.js":{"id":64304,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":64304,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/lib/framework/boundary-components.js":{"id":40523,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":40523,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":13970,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":13970,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/components/Shell.tsx":{"id":68992,"name":"*","chunks":["586","static/chunks/586-4f67b823df060b46.js","281","static/chunks/281-4506bc98b7111729.js","177","static/chunks/app/layout-cb5af29b0742c513.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Bricolage_Grotesque\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--f-display\",\"axes\":[\"opsz\"]}],\"variableName\":\"display\"}":{"id":39856,"name":"*","chunks":["586","static/chunks/586-4f67b823df060b46.js","281","static/chunks/281-4506bc98b7111729.js","177","static/chunks/app/layout-cb5af29b0742c513.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Hanken_Grotesk\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--f-body\"}],\"variableName\":\"body\"}":{"id":98682,"name":"*","chunks":["586","static/chunks/586-4f67b823df060b46.js","281","static/chunks/281-4506bc98b7111729.js","177","static/chunks/app/layout-cb5af29b0742c513.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--f-mono\"}],\"variableName\":\"mono\"}":{"id":15151,"name":"*","chunks":["586","static/chunks/586-4f67b823df060b46.js","281","static/chunks/281-4506bc98b7111729.js","177","static/chunks/app/layout-cb5af29b0742c513.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/globals.css":{"id":87968,"name":"*","chunks":["586","static/chunks/586-4f67b823df060b46.js","281","static/chunks/281-4506bc98b7111729.js","177","static/chunks/app/layout-cb5af29b0742c513.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/chat/page.tsx":{"id":69925,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/connections/page.tsx":{"id":87286,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/resources/[id]/page.tsx":{"id":75750,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/relations/page.tsx":{"id":86300,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/resources/page.tsx":{"id":89976,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page.tsx":{"id":43517,"name":"*","chunks":["586","static/chunks/586-4f67b823df060b46.js","706","static/chunks/706-fa2be0f10ffebe6a.js","642","static/chunks/642-dc874c8caf203ee1.js","162","static/chunks/162-68ba190086f5ad39.js","281","static/chunks/281-4506bc98b7111729.js","517","static/chunks/517-8f2db464d10a4624.js","350","static/chunks/350-0fe82e622e7a670f.js","606","static/chunks/606-14fb5aaa4d0ff22d.js","587","static/chunks/587-3c53d91a1c4f99d6.js","974","static/chunks/app/page-5e547e87de23d9fa.js"],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/schedules/page.tsx":{"id":95339,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/sessions/page.tsx":{"id":25382,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/skills/page.tsx":{"id":20353,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/types/page.tsx":{"id":11108,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/agents/layout.tsx":{"id":34237,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/agents/page.tsx":{"id":47857,"name":"*","chunks":[],"async":false},"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/agents/[id]/page.tsx":{"id":4249,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/":[],"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/layout":[{"inlined":false,"path":"static/css/945795da867f5250.css"},{"inlined":false,"path":"static/css/c7faf690373117bb.css"}],"/home/hugh/Documentos/projects/personal/hive-am/dist/stage/web/app/page":[]},"rscModuleMapping":{"4249":{"*":{"id":"27769","name":"*","chunks":[],"async":false}},"11108":{"*":{"id":"60068","name":"*","chunks":[],"async":false}},"13970":{"*":{"id":"27134","name":"*","chunks":[],"async":false}},"20353":{"*":{"id":"61959","name":"*","chunks":[],"async":false}},"25382":{"*":{"id":"64848","name":"*","chunks":[],"async":false}},"26082":{"*":{"id":"92090","name":"*","chunks":[],"async":false}},"34237":{"*":{"id":"71900","name":"*","chunks":[],"async":false}},"40523":{"*":{"id":"78683","name":"*","chunks":[],"async":false}},"43517":{"*":{"id":"10230","name":"*","chunks":[],"async":false}},"47857":{"*":{"id":"94963","name":"*","chunks":[],"async":false}},"51161":{"*":{"id":"68875","name":"*","chunks":[],"async":false}},"55890":{"*":{"id":"65662","name":"*","chunks":[],"async":false}},"64304":{"*":{"id":"72702","name":"*","chunks":[],"async":false}},"68992":{"*":{"id":"55356","name":"*","chunks":[],"async":false}},"69925":{"*":{"id":"1835","name":"*","chunks":[],"async":false}},"75750":{"*":{"id":"67744","name":"*","chunks":[],"async":false}},"77363":{"*":{"id":"18727","name":"*","chunks":[],"async":false}},"86300":{"*":{"id":"976","name":"*","chunks":[],"async":false}},"87286":{"*":{"id":"5420","name":"*","chunks":[],"async":false}},"87968":{"*":{"id":"53140","name":"*","chunks":[],"async":false}},"89146":{"*":{"id":"2972","name":"*","chunks":[],"async":false}},"89976":{"*":{"id":"39016","name":"*","chunks":[],"async":false}},"91962":{"*":{"id":"5726","name":"*","chunks":[],"async":false}},"95339":{"*":{"id":"29143","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"13970":{"*":{"id":"54880","name":"*","chunks":[],"async":false}},"26082":{"*":{"id":"7700","name":"*","chunks":[],"async":false}},"40523":{"*":{"id":"96297","name":"*","chunks":[],"async":false}},"51161":{"*":{"id":"44389","name":"*","chunks":[],"async":false}},"55890":{"*":{"id":"17740","name":"*","chunks":[],"async":false}},"64304":{"*":{"id":"87328","name":"*","chunks":[],"async":false}},"77363":{"*":{"id":"12197","name":"*","chunks":[],"async":false}},"89146":{"*":{"id":"74050","name":"*","chunks":[],"async":false}},"91962":{"*":{"id":"840","name":"*","chunks":[],"async":false}}}}
|