@agentsky/desktop-ui 0.4.83 → 0.4.85
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/dist/app.js +3 -3
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -5351,12 +5351,12 @@ export async function retry<T>(fn: () => Promise<T>, attempts = 3, delayMs = 100
|
|
|
5351
5351
|
<li key=${u.email} data-viewer-row>
|
|
5352
5352
|
<span class="share-avatar">${u.email.charAt(0).toUpperCase()}</span>
|
|
5353
5353
|
<span class="share-person"><span>${u.email}</span></span>
|
|
5354
|
-
<small class="share-role">Can
|
|
5354
|
+
<small class="share-role">Can view</small>
|
|
5355
5355
|
<${wn} icon="lucide-x" size="icon-xs" label=${`Remove ${u.email}`} disabled=${t} onClick=${()=>{l(!1),n({removeViewers:[u.email]})}} />
|
|
5356
5356
|
</li>
|
|
5357
5357
|
`)}
|
|
5358
5358
|
</ul>
|
|
5359
|
-
${i?o`<p class="share-note" data-viewers-added-hint>Then copy the link and send it to them. They sign in with this email to
|
|
5359
|
+
${i?o`<p class="share-note" data-viewers-added-hint>Then copy the link and send it to them. They sign in with this email to view the chat — they can't send messages.</p>`:null}
|
|
5360
5360
|
</section>
|
|
5361
5361
|
`}function kM({chat:e,onClose:t,onState:n}){let s=e.sessionId,[a,r]=f(null),[i,l]=f("loading"),[c,u]=f({status:"none"}),[d,p]=f(0),[h,m]=f(!1),[g,$]=f(null),[b,y]=f(null),[w,x]=f(!1),[S,C]=f(null),A=se(0);I(()=>{let U=!0,Z=A.current;return Promise.all([is.access({sessionId:s}),is.link({sessionId:s}).catch(()=>"unavailable")]).then(([re,z])=>{U&&A.current===Z&&(r(re),l(z))},re=>{U&&$(re.message||"Sharing is unavailable.")}),()=>{U=!1}},[s]),I(()=>{a&&n(Jo(a,i))},[a,i]);let T=a?.access==="owner";I(()=>{if(!T)return;let U=!0;return u({status:"loading"}),is.snapshot({threadId:e.id,sessionId:s}).then(Z=>{U&&u(Z?.url?{status:"found",url:Z.url}:{status:"none"})},Z=>{U&&u({status:"error",message:Z.message||"The public snapshot link could not be checked."})}),()=>{U=!1}},[T,e.id,s,d]);let _=le(async U=>{m(!0),$(null);try{let Z=await is.changeAccess({sessionId:s,...U});return A.current+=1,r(Z),!0}catch(Z){return $(Z.message||"Sharing could not be changed."),!1}finally{m(!1)}},[s]),E=async()=>{m(!0),y(null);try{l(await is.linkOn({sessionId:s}))}catch(U){y(U.message||"The link could not be created.")}finally{m(!1)}},N=async()=>{m(!0),$(null);try{return l(await is.linkOff({sessionId:s})),!0}catch(U){return $(U.message||"The link could not be removed."),!1}finally{m(!1)}},D=async U=>{if(!a)return;let Z=Jo(a,i);if(Z!==U){if(U==="link"){await E();return}Z==="link"&&!await N()||(U==="workspace"||a.visibility!=="private")&&await _({visibility:U})}},L=async()=>{m(!0),$(null);try{if((await is.snapshotStop({threadId:e.id,sessionId:s}))?.url!==null)throw new Error("The public link could not be confirmed as stopped.");u({status:"none"})}catch(U){$(U.message||"The public link could not be stopped.")}finally{m(!1)}},W=async()=>{if(!a)return;let U=i&&i!=="loading"&&i!=="unavailable"?i.url:null;try{await is.copy({sessionId:s,url:U}),x(!0),C(null)}catch(Z){C(U),$(Z.message||null)}},V=a?Jo(a,i):"private",H=a?V==="link"?"Anyone with the link can read this thread.":a.visibility==="workspace"?`Everyone in ${a.workspace.name} can find it and continue it.`:`Only ${T?"you":a.owner.name??"its owner"} can use it.`:null,Q=V==="link"?"Anyone with the link":a?.visibility==="workspace"?`Everyone in ${a.workspace.name}`:"Private",J=o`<${Te} size="sm" class="share-copy" disabled=${!a} onClick=${W} data-copy-thread-link><${O} name="lucide-link-2" size=${14} />Copy link</${Te}>`;return o`
|
|
5362
5362
|
<${rn} title=${`Share${a?.title?` "${a.title}"`:""}`} class="share-dialog" onClose=${t} footer=${J}>
|
|
@@ -5377,7 +5377,7 @@ export async function retry<T>(fn: () => Promise<T>, attempts = 3, delayMs = 100
|
|
|
5377
5377
|
${h?o`<p role="status" class="share-note">Saving…</p>`:null}
|
|
5378
5378
|
${H?o`<p class="share-note" data-share-summary>${H}</p>`:null}
|
|
5379
5379
|
</div>
|
|
5380
|
-
${V==="link"?o`<small class="share-role">Can
|
|
5380
|
+
${V==="link"?o`<small class="share-role">Can view</small>`:V==="workspace"?o`<small class="share-role">Can continue</small>`:null}
|
|
5381
5381
|
</div>
|
|
5382
5382
|
</section>
|
|
5383
5383
|
`:null}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentsky/desktop-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.85",
|
|
4
4
|
"description": "The AgentSky for Mac interface, prebuilt: the pages the app's windows show, served by the app's shell from this package's dist/.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"private": false,
|