@1mcp/agent 0.39.0-beta.0 → 0.39.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/admin/assets/{admin-OAuthServicesWorkspace-Bmets2jv.js → admin-OAuthServicesWorkspace-CcUSZCNL.js} +1 -1
- package/build/admin/assets/{admin-console-DyzxXXr5.js → admin-console-fP-KT2vb.js} +3 -3
- package/build/admin/index.html +1 -1
- package/build/commands/inspect/index.d.ts.map +1 -1
- package/build/commands/inspect/index.js +21 -2
- package/build/commands/inspect/index.js.map +1 -1
- package/build/commands/inspect/inspect.d.ts +5 -0
- package/build/commands/inspect/inspect.d.ts.map +1 -1
- package/build/commands/inspect/inspect.js +120 -5
- package/build/commands/inspect/inspect.js.map +1 -1
- package/build/commands/inspect/inspectUtils.d.ts +2 -1
- package/build/commands/inspect/inspectUtils.d.ts.map +1 -1
- package/build/commands/inspect/inspectUtils.js +21 -0
- package/build/commands/inspect/inspectUtils.js.map +1 -1
- package/build/commands/instructions/instructionsUtils.d.ts.map +1 -1
- package/build/commands/instructions/instructionsUtils.js +5 -2
- package/build/commands/instructions/instructionsUtils.js.map +1 -1
- package/build/commands/serve/cooperativeRuntime.d.ts +4 -0
- package/build/commands/serve/cooperativeRuntime.d.ts.map +1 -1
- package/build/commands/serve/cooperativeRuntime.js +17 -2
- package/build/commands/serve/cooperativeRuntime.js.map +1 -1
- package/build/commands/serve/serveStop.d.ts.map +1 -1
- package/build/commands/serve/serveStop.js +41 -5
- package/build/commands/serve/serveStop.js.map +1 -1
- package/build/commands/shared/inspectApiSchemas.d.ts +25 -0
- package/build/commands/shared/inspectApiSchemas.d.ts.map +1 -1
- package/build/commands/shared/inspectApiSchemas.js +21 -0
- package/build/commands/shared/inspectApiSchemas.js.map +1 -1
- package/build/constants/mcp.d.ts +1 -1
- package/build/constants/mcp.js +1 -1
- package/build/core/capabilities/inspectSearch.d.ts +45 -0
- package/build/core/capabilities/inspectSearch.d.ts.map +1 -0
- package/build/core/capabilities/inspectSearch.js +102 -0
- package/build/core/capabilities/inspectSearch.js.map +1 -0
- package/build/core/capabilities/runtimeCapabilityCatalog.js +4 -1
- package/build/core/capabilities/runtimeCapabilityCatalog.js.map +1 -1
- package/build/core/instructions/instructionsDistribution.d.ts.map +1 -1
- package/build/core/instructions/instructionsDistribution.js +5 -2
- package/build/core/instructions/instructionsDistribution.js.map +1 -1
- package/build/core/instructions/templateTypes.d.ts +1 -1
- package/build/core/instructions/templateTypes.d.ts.map +1 -1
- package/build/core/instructions/templateTypes.js +5 -2
- package/build/core/instructions/templateTypes.js.map +1 -1
- package/build/core/server/runtimeControl.d.ts +6 -0
- package/build/core/server/runtimeControl.d.ts.map +1 -1
- package/build/core/server/runtimeControl.js +21 -0
- package/build/core/server/runtimeControl.js.map +1 -1
- package/build/transport/http/routes/inspectRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/inspectRoutes.js +101 -0
- package/build/transport/http/routes/inspectRoutes.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./admin-rolldown-runtime-Bh1tDfsg.js";import{D as t,E as n,S as r,T as i,b as a,j as o,s,y as c}from"./admin-mantine-xwbfu5Gd.js";import{i as l,r as u}from"./admin-react-BSaWeqgv.js";import{O as d,h as f,p,x as m}from"./admin-icons-CYGTDZA5.js";import{t as h}from"./admin-console-
|
|
1
|
+
import{n as e}from"./admin-rolldown-runtime-Bh1tDfsg.js";import{D as t,E as n,S as r,T as i,b as a,j as o,s,y as c}from"./admin-mantine-xwbfu5Gd.js";import{i as l,r as u}from"./admin-react-BSaWeqgv.js";import{O as d,h as f,p,x as m}from"./admin-icons-CYGTDZA5.js";import{t as h}from"./admin-console-fP-KT2vb.js";var g=e(l(),1),_=u();function v({model:e,oauth:t,configureServer:r}){let{state:c,configuredServers:l}=e,u=c.status?.oauth.services??[],[d,p]=(0,g.useState)(null);async function m(e){try{await l.copy(`serviceId`,e.id),p(`Service id copied.`)}catch{p(`Could not copy service id. Select the value manually.`)}}return(0,_.jsxs)(`section`,{"aria-label":`OAuth services`,className:`operations-workspace`,children:[(0,_.jsx)(h,{title:`OAuth services`,description:`${u.length} reported services · runtime status ${c.status?.oauth.status??`unavailable`}`}),t.callbackFeedback?(0,_.jsx)(S,{feedback:t.callbackFeedback}):null,t.operationFeedback?(0,_.jsx)(S,{feedback:t.operationFeedback}):null,u.length===0?(0,_.jsx)(o,{className:`operations-panel`,withBorder:!0,children:(0,_.jsxs)(s,{gap:`sm`,className:`actionable-empty-state`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(i,{fw:800,children:`No OAuth services reported`}),(0,_.jsx)(i,{c:`dimmed`,size:`sm`,children:`OAuth services appear when a configured server requires provider authorization.`})]}),(0,_.jsx)(a,{component:`a`,href:`/admin/servers/new`,leftSection:(0,_.jsx)(f,{size:16}),onClick:e=>{y(e)&&(e.preventDefault(),r())},children:`Configure server`})]})}):(0,_.jsx)(s,{gap:`sm`,children:u.map(e=>(0,_.jsx)(b,{service:e,busy:t.busy?.serviceId===e.id?t.busy.action:null,operationBlocked:t.busy!==null,onCopy:()=>void m(e),onOperate:n=>void t.operate(e.id,n)},e.id))}),d?(0,_.jsx)(n,{"aria-live":`polite`,color:d.startsWith(`Could not`)?`red`:`teal`,mt:`sm`,children:d}):null]})}function y(e){return e.button===0&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey}function b({service:e,busy:n,operationBlocked:l,onCopy:u,onOperate:f}){let h=x(e),g=h===`authorize`?`Authorize`:`Restart`;return(0,_.jsx)(o,{component:`article`,className:`oauth-service-row`,withBorder:!0,children:(0,_.jsxs)(t,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,_.jsxs)(`div`,{className:`oauth-service-main`,children:[(0,_.jsxs)(t,{gap:`xs`,children:[(0,_.jsx)(i,{fw:800,children:e.displayName}),(0,_.jsx)(r,{color:e.status===`connected`?`teal`:`yellow`,variant:`light`,children:e.status})]}),(0,_.jsx)(i,{size:`xs`,c:`dimmed`,children:e.requiresOAuth?`OAuth required`:`No OAuth action required`}),e.lastError?(0,_.jsx)(i,{size:`sm`,c:`red`,children:e.lastError}):null,(0,_.jsxs)(`details`,{className:`oauth-service-identity`,children:[(0,_.jsx)(`summary`,{children:`Full service ID`}),(0,_.jsxs)(t,{gap:`xs`,wrap:`nowrap`,children:[(0,_.jsx)(c,{className:`oauth-service-id`,children:e.id}),(0,_.jsx)(a,{"aria-label":`Copy full service ID for ${e.displayName}`,size:`compact-xs`,variant:`subtle`,onClick:u,children:(0,_.jsx)(d,{size:14,"aria-hidden":`true`})})]})]})]}),h?(0,_.jsxs)(s,{gap:4,align:`flex-end`,className:`oauth-service-action`,children:[(0,_.jsx)(a,{"aria-label":`${g} ${e.displayName}`,leftSection:h===`authorize`?(0,_.jsx)(m,{size:15}):(0,_.jsx)(p,{size:15}),loading:n===h,disabled:l,onClick:()=>f(h),children:g}),(0,_.jsx)(i,{size:`xs`,c:`dimmed`,"aria-live":`polite`,children:n?n===`authorize`?`Starting authorization...`:`Restarting authorization...`:``})]}):null]})})}function x(e){return e.requiresOAuth?e.status===`awaiting_oauth`?`authorize`:`restart`:null}function S({feedback:e}){return(0,_.jsx)(n,{color:e.kind===`success`?`teal`:`red`,role:e.kind===`success`?`status`:`alert`,mb:`sm`,children:e.message})}export{v as OAuthServicesWorkspace};
|