pilotswarm 0.5.1 → 0.5.2
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/mcp/dist/src/session-id.d.ts +13 -0
- package/mcp/dist/src/session-id.d.ts.map +1 -0
- package/mcp/dist/src/session-id.js +15 -0
- package/mcp/dist/src/session-id.js.map +1 -0
- package/mcp/dist/src/tools/artifacts.d.ts.map +1 -1
- package/mcp/dist/src/tools/artifacts.js +5 -4
- package/mcp/dist/src/tools/artifacts.js.map +1 -1
- package/mcp/dist/src/tools/observability.d.ts.map +1 -1
- package/mcp/dist/src/tools/observability.js +2 -1
- package/mcp/dist/src/tools/observability.js.map +1 -1
- package/mcp/dist/src/tools/sessions.d.ts.map +1 -1
- package/mcp/dist/src/tools/sessions.js +9 -8
- package/mcp/dist/src/tools/sessions.js.map +1 -1
- package/mcp/dist/src/tools/turn-control.d.ts.map +1 -1
- package/mcp/dist/src/tools/turn-control.js +5 -4
- package/mcp/dist/src/tools/turn-control.js.map +1 -1
- package/package.json +3 -3
- package/tui/plugins/.mcp.json +1 -7
- package/tui/src/node-sdk-transport.js +17 -0
- package/ui/core/src/controller.js +56 -8
- package/ui/core/src/reducer.js +87 -0
- package/ui/core/src/selectors.js +154 -123
- package/ui/core/src/state.js +15 -0
- package/ui/react/src/web-app.js +60 -22
- package/web/dist/assets/index-BA1Gd5ZC.js +24 -0
- package/web/dist/assets/index-Jr_Wn0fg.css +1 -0
- package/web/dist/assets/pilotswarm-C6iSDexX.js +90 -0
- package/web/dist/assets/{react-CRYBfNR4.js → react-CqzaLZob.js} +1 -1
- package/web/dist/index.html +4 -4
- package/web/runtime.js +23 -2
- package/web/dist/assets/index-BmqU2WsR.js +0 -24
- package/web/dist/assets/index-D2-7fi56.css +0 -1
- package/web/dist/assets/pilotswarm-cIaYAE9e.js +0 -90
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as O}from"./pilotswarm-
|
|
1
|
+
import{r as O}from"./pilotswarm-C6iSDexX.js";var y={exports:{}},n={};var o;function S(){if(o)return n;o=1;var u=O();function g(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var i={d:{f:c,r:function(){throw Error(g(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(r,e,t){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:a==null?null:""+a,children:r,containerInfo:e,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(g(299));return v(r,e,null,t)},n.flushSync=function(r){var e=f.T,t=i.p;try{if(f.T=null,i.p=2,r)return r()}finally{f.T=e,i.p=t,i.d.f()}},n.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,i.d.C(r,e))},n.prefetchDNS=function(r){typeof r=="string"&&i.d.D(r)},n.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin),s=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?i.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:l}):t==="script"&&i.d.X(r,{crossOrigin:a,integrity:s,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},n.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=d(e.as,e.crossOrigin);i.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&i.d.M(r)},n.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin);i.d.L(r,t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},n.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=d(e.as,e.crossOrigin);i.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else i.d.m(r)},n.requestFormReset=function(r){i.d.r(r)},n.unstable_batchedUpdates=function(r,e){return r(e)},n.useFormState=function(r,e,t){return f.H.useFormState(r,e,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.2.4",n}var _;function T(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}export{T as r};
|
package/web/dist/index.html
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
|
|
6
6
|
<title>PilotSwarm</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/assets/pilotswarm-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/react-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BA1Gd5ZC.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/assets/pilotswarm-C6iSDexX.js">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/react-CqzaLZob.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/msal-CytV9RFv.js">
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Jr_Wn0fg.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/web/runtime.js
CHANGED
|
@@ -214,10 +214,12 @@ export class PortalRuntime {
|
|
|
214
214
|
includeDeleted: safeParams.includeDeleted,
|
|
215
215
|
since: safeParams.since ? new Date(safeParams.since) : undefined,
|
|
216
216
|
});
|
|
217
|
-
case "getCurrentUserProfile":
|
|
218
|
-
|
|
217
|
+
case "getCurrentUserProfile": {
|
|
218
|
+
const profile = await this.transport.getCurrentUserProfile({
|
|
219
219
|
principal: requireUserPrincipal(authContext, "getCurrentUserProfile"),
|
|
220
220
|
});
|
|
221
|
+
return profile ? { ...profile, isAdmin } : profile;
|
|
222
|
+
}
|
|
221
223
|
case "setCurrentUserProfileSettings":
|
|
222
224
|
return this.transport.setCurrentUserProfileSettings({
|
|
223
225
|
principal: requireUserPrincipal(authContext, "setCurrentUserProfileSettings"),
|
|
@@ -228,6 +230,25 @@ export class PortalRuntime {
|
|
|
228
230
|
principal: requireUserPrincipal(authContext, "setCurrentUserGitHubCopilotKey"),
|
|
229
231
|
key: typeof safeParams.key === "string" ? safeParams.key : null,
|
|
230
232
|
});
|
|
233
|
+
case "setSystemGitHubCopilotKey": {
|
|
234
|
+
if (!isAdmin) {
|
|
235
|
+
const err = new Error("Portal RPC 'setSystemGitHubCopilotKey' requires the admin role.");
|
|
236
|
+
err.code = "PORTAL_ADMIN_REQUIRED";
|
|
237
|
+
throw err;
|
|
238
|
+
}
|
|
239
|
+
return this.transport.setSystemGitHubCopilotKey({
|
|
240
|
+
actor: normalizeSessionOwner(authContext),
|
|
241
|
+
key: typeof safeParams.key === "string" ? safeParams.key : null,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
case "getSystemGitHubCopilotKeyStatus": {
|
|
245
|
+
if (!isAdmin) {
|
|
246
|
+
const err = new Error("Portal RPC 'getSystemGitHubCopilotKeyStatus' requires the admin role.");
|
|
247
|
+
err.code = "PORTAL_ADMIN_REQUIRED";
|
|
248
|
+
throw err;
|
|
249
|
+
}
|
|
250
|
+
return this.transport.getSystemGitHubCopilotKeyStatus();
|
|
251
|
+
}
|
|
231
252
|
case "getSessionSkillUsage":
|
|
232
253
|
return this.transport.getSessionSkillUsage(safeParams.sessionId, {
|
|
233
254
|
since: safeParams.since ? new Date(safeParams.since) : undefined,
|