orqevio 0.0.0-stage → 1.0.0-rc.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/LICENSE.md +105 -0
- package/README.md +10 -2
- package/dist/web/assets/AccessKeyReveal-AAo_ZAYJ.js +2 -0
- package/dist/web/assets/ActivityList-DAgoK-qv.js +1 -0
- package/dist/web/assets/AgentsPage-3SKB3Biq.js +1 -0
- package/dist/web/assets/Attachments-B7-hK11n.js +212 -0
- package/dist/web/assets/Attachments-BFwBtL8j.css +1 -0
- package/dist/web/assets/Avatar-6QZ-TS_e.js +1 -0
- package/dist/web/assets/BoardPage-CdI6VafG.js +1 -0
- package/dist/web/assets/BoardPage-RiEPvGmp.css +1 -0
- package/dist/web/assets/Button-DMm7bUMh.js +1 -0
- package/dist/web/assets/CardItem-B28tns0K.js +5 -0
- package/dist/web/assets/Checkbox-Tyt8keF2.js +1 -0
- package/dist/web/assets/ColorPicker-DLSxOvmY.js +1 -0
- package/dist/web/assets/ConsentPage-CcmGWBbo.js +1 -0
- package/dist/web/assets/CopyButton-BJPW7A6A.js +1 -0
- package/dist/web/assets/DocPage-yDwVnkyU.js +1 -0
- package/dist/web/assets/EmptyState-DUo0gQC4.js +1 -0
- package/dist/web/assets/Field-ubgJw0in.js +41 -0
- package/dist/web/assets/HomePage-BgG3IKVs.js +1 -0
- package/dist/web/assets/Menu-Bw5Kv0cs.js +1 -0
- package/dist/web/assets/PageHeader-DDDfCq4x.js +1 -0
- package/dist/web/assets/Popover-B4Zexm6N.js +1 -0
- package/dist/web/assets/ProjectPage-B1g8Aaq3.js +1 -0
- package/dist/web/assets/ProjectSettingsDialog-B1PDyBPn.js +1 -0
- package/dist/web/assets/Segmented-BSfg6c9G.js +1 -0
- package/dist/web/assets/SettingsPage-Bk7OAQCH.js +1 -0
- package/dist/web/assets/States-C3a5j-eF.js +1 -0
- package/dist/web/assets/Trans--s6EBAB5.js +1 -0
- package/dist/web/assets/VaultPage-By60GxY8.js +3 -0
- package/dist/web/assets/actions-9Ix02F67.js +1 -0
- package/dist/web/assets/activity-BHGI6Z2D.js +1 -0
- package/dist/web/assets/activity-BkftiStp.js +1 -0
- package/dist/web/assets/activity-BsAhScXo.js +1 -0
- package/dist/web/assets/activity-C7wpXysw.js +1 -0
- package/dist/web/assets/activity-CFR4UTGM.js +1 -0
- package/dist/web/assets/activity-CaibDu14.js +1 -0
- package/dist/web/assets/activity-Cp8KuBts.js +1 -0
- package/dist/web/assets/activity-ayIU9KmV.js +1 -0
- package/dist/web/assets/agents-B30_k2WM.js +1 -0
- package/dist/web/assets/agents-BcQrk58c.js +1 -0
- package/dist/web/assets/agents-C53lLu8T.js +1 -0
- package/dist/web/assets/agents-CbFc-Zrj.js +1 -0
- package/dist/web/assets/agents-Ck51WfPD.js +1 -0
- package/dist/web/assets/agents-DUi9lSp6.js +1 -0
- package/dist/web/assets/agents-TKJG4hpg.js +1 -0
- package/dist/web/assets/arrow-up-right-Bs4UET7E.js +1 -0
- package/dist/web/assets/auth-CGBmrUnk.js +1 -0
- package/dist/web/assets/auth-CX29mCfP.js +1 -0
- package/dist/web/assets/auth-DBSgml3M.js +1 -0
- package/dist/web/assets/auth-DOjpx5sq.js +1 -0
- package/dist/web/assets/auth-Do1kkMrw.js +1 -0
- package/dist/web/assets/auth-MlG1Mowc.js +1 -0
- package/dist/web/assets/auth-pYPVXijW.js +1 -0
- package/dist/web/assets/boards-BBpjZP1x.js +1 -0
- package/dist/web/assets/boards-BTpgk9Fd.js +1 -0
- package/dist/web/assets/boards-BWeP1yma.js +1 -0
- package/dist/web/assets/boards-COhITBby.js +1 -0
- package/dist/web/assets/boards-Ctsx-Cza.js +1 -0
- package/dist/web/assets/boards-PfnbSN1s.js +1 -0
- package/dist/web/assets/boards-R_TWYEXU.js +1 -0
- package/dist/web/assets/bot-Bm8LCnty.js +1 -0
- package/dist/web/assets/check-CroYdclE.js +1 -0
- package/dist/web/assets/common-CeY0FMhM.js +1 -0
- package/dist/web/assets/common-ChyM3qEm.js +1 -0
- package/dist/web/assets/common-DSH0t9-R.js +1 -0
- package/dist/web/assets/common-DpRzCGRI.js +1 -0
- package/dist/web/assets/common-SQxQWeOo.js +1 -0
- package/dist/web/assets/common-ZaFMftqj.js +1 -0
- package/dist/web/assets/common-kLH8MGZF.js +1 -0
- package/dist/web/assets/destination-BNEkMeN9.js +1 -0
- package/dist/web/assets/docs-1w1qMhXT.js +1 -0
- package/dist/web/assets/docs-BDzOa1yl.js +1 -0
- package/dist/web/assets/docs-BrgMwu04.js +1 -0
- package/dist/web/assets/docs-CMM1mWDN.js +1 -0
- package/dist/web/assets/docs-D4GytCg-.js +1 -0
- package/dist/web/assets/docs-WZJP9ehA.js +1 -0
- package/dist/web/assets/docs-lc4Fuqxy.js +1 -0
- package/dist/web/assets/download-CdHFH4XL.js +1 -0
- package/dist/web/assets/errors-AkJTmj7k.js +1 -0
- package/dist/web/assets/errors-CMbqK8yh.js +1 -0
- package/dist/web/assets/errors-D-bfLpWi.js +1 -0
- package/dist/web/assets/errors-DLS7UKoD.js +1 -0
- package/dist/web/assets/errors-DN3ODXFj.js +1 -0
- package/dist/web/assets/errors-DbvWC9vT.js +1 -0
- package/dist/web/assets/errors-DzGI8Yjb.js +1 -0
- package/dist/web/assets/eye-DGLd6xc0.js +1 -0
- package/dist/web/assets/file-plus-Brd5-oSR.js +1 -0
- package/dist/web/assets/folder-open-9xSykz6Y.js +1 -0
- package/dist/web/assets/format-CvNb9wLc.js +1 -0
- package/dist/web/assets/fraunces-latin-ext-soft-normal-DKHvU-YN.woff2 +0 -0
- package/dist/web/assets/fraunces-latin-soft-normal-C-lS_vzd.woff2 +0 -0
- package/dist/web/assets/fraunces-vietnamese-soft-normal-DSA2Kggd.woff2 +0 -0
- package/dist/web/assets/home-CaRivmXC.js +1 -0
- package/dist/web/assets/home-DMs617rt.js +1 -0
- package/dist/web/assets/home-DT1m0uVZ.js +1 -0
- package/dist/web/assets/home-JcVjUU4G.js +1 -0
- package/dist/web/assets/home-VZIRoQVj.js +1 -0
- package/dist/web/assets/home-tJQGjAOo.js +1 -0
- package/dist/web/assets/home-taXbu6Bg.js +1 -0
- package/dist/web/assets/index-CbjcC9cO.css +2 -0
- package/dist/web/assets/index-DN9rjHkQ.js +14 -0
- package/dist/web/assets/index.esm-JEo9WZbq.js +1 -0
- package/dist/web/assets/instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2 +0 -0
- package/dist/web/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/web/assets/kdf.worker-CzR7_kJp.js +6 -0
- package/dist/web/assets/lock-keyhole-WRs-W3Nv.js +1 -0
- package/dist/web/assets/oauth-BiFGSYV5.js +1 -0
- package/dist/web/assets/oauth-Bs2WdmS0.js +1 -0
- package/dist/web/assets/oauth-CnBvHbI1.js +1 -0
- package/dist/web/assets/oauth-TtoPxFmv.js +1 -0
- package/dist/web/assets/oauth-WBRNzALR.js +1 -0
- package/dist/web/assets/oauth-YK4xaWxs.js +1 -0
- package/dist/web/assets/oauth-f6OnEZnQ.js +1 -0
- package/dist/web/assets/pencil-CgOhIK5_.js +1 -0
- package/dist/web/assets/plus-CLthv7O2.js +1 -0
- package/dist/web/assets/projects--t9VhdYF.js +1 -0
- package/dist/web/assets/projects-BVQGJc7P.js +1 -0
- package/dist/web/assets/projects-BsY2PmjV.js +1 -0
- package/dist/web/assets/projects-CNfl9kuI.js +1 -0
- package/dist/web/assets/projects-CrDJIGi7.js +1 -0
- package/dist/web/assets/projects-D3eU-Jew.js +1 -0
- package/dist/web/assets/projects-aUO3NoCx.js +1 -0
- package/dist/web/assets/queries-CCq834cA.js +64 -0
- package/dist/web/assets/realtime-DlLRsUWy.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/search-jKyk24bb.js +1 -0
- package/dist/web/assets/session-mwXo-r9T.js +1 -0
- package/dist/web/assets/settings-2mznjsBi.js +1 -0
- package/dist/web/assets/settings-BDcBEOa-.js +1 -0
- package/dist/web/assets/settings-CIxpxOBE.js +1 -0
- package/dist/web/assets/settings-ClhIbJYh.js +1 -0
- package/dist/web/assets/settings-D7Ip1WqC.js +1 -0
- package/dist/web/assets/settings-DjtwAObK.js +1 -0
- package/dist/web/assets/settings-omeWs8uA.js +1 -0
- package/dist/web/assets/shell-BBK5NJFB.js +1 -0
- package/dist/web/assets/shell-BJfYCj5Q.js +1 -0
- package/dist/web/assets/shell-BJoyar8n.js +1 -0
- package/dist/web/assets/shell-BiFljnPL.js +1 -0
- package/dist/web/assets/shell-CkAa8NM5.js +1 -0
- package/dist/web/assets/shell-FiDu6Ti9.js +1 -0
- package/dist/web/assets/shell-a4R2bNYB.js +1 -0
- package/dist/web/assets/shield-exclamation-point-EtcHel7G.js +1 -0
- package/dist/web/assets/square-kanban-m0e7C9Fi.js +1 -0
- package/dist/web/assets/theme-BfxBDblB.js +1 -0
- package/dist/web/assets/trash-oES6bYbh.js +1 -0
- package/dist/web/assets/triangle-exclamation-point-D77FOR36.js +1 -0
- package/dist/web/assets/vault-BJ0YNaBV.js +7 -0
- package/dist/web/assets/vault-CLMnyhXX.js +7 -0
- package/dist/web/assets/vault-CQVJONUp.js +7 -0
- package/dist/web/assets/vault-CjqTbMtS.js +7 -0
- package/dist/web/assets/vault-Dwv3fhwH.js +7 -0
- package/dist/web/assets/vault-DzWE-kQx.js +7 -0
- package/dist/web/assets/vault-ShnECcLf.js +7 -0
- package/dist/web/assets/workspace-COx6bS6h.js +1 -0
- package/dist/web/favicon.svg +1 -0
- package/dist/web/index.html +51 -0
- package/dist/web/theme-init.js +5 -0
- package/dist/web/zod-init.js +4 -0
- package/dist/worker/index.js +51374 -0
- package/dist/wrangler.json +49 -0
- package/package.json +26 -3
package/LICENSE.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 HSY Labs
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# orqevio
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Orqevio ready to deploy on your own Cloudflare account: the Worker bundle, the web app and the base Wrangler configuration.
|
|
4
|
+
|
|
5
|
+
You do not need to install this package yourself. Run:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx create-orqevio
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The installer signs you in to Cloudflare, deploys your copy (a Worker, a Durable Object with SQLite and an R2 bucket) and shows its address. See https://github.com/hsylabs/orqevio for details.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{C as t,L as n,P as r,R as i,T as a,Z as o,dt as s,ft as c}from"./queries-CCq834cA.js";import{t as l}from"./Button-DMm7bUMh.js";import{n as u,r as d}from"./CopyButton-BJPW7A6A.js";import{t as f}from"./download-CdHFH4XL.js";var p=e(c(),1),m=s();function h({onChange:e,className:o,compact:s=!1,hideLabel:c=s}){let{t:l}=i(),u=(0,p.useId)();return(0,m.jsxs)(`div`,{className:n(`flex flex-col gap-1.5`,o),children:[(0,m.jsx)(`label`,{htmlFor:u,className:c?`sr-only`:`text-[12.5px] font-medium text-ink-2`,children:l(`language`)}),(0,m.jsx)(`select`,{id:u,value:a(),onChange:t=>e(t.target.value),className:n(`field cursor-pointer`,s?`h-8 w-auto py-0 pr-8 text-[12.5px]`:`h-10`),children:t.map(e=>(0,m.jsx)(`option`,{value:e,lang:e,children:r[e]},e))})]})}function g(e){let t=[o(`auth:keyFile.title`),``,o(`auth:keyFile.address`,{address:window.location.origin}),o(`auth:keyFile.key`,{key:e}),``,o(`auth:keyFile.use`),o(`auth:keyFile.lost`),``].join(`
|
|
2
|
+
`),n=URL.createObjectURL(new Blob([t],{type:`text/plain`})),r=document.createElement(`a`);r.href=n,r.download=o(`auth:keyFile.name`),r.click(),URL.revokeObjectURL(n)}function _({accessKey:e,confirmLabel:t,onDone:n,busy:r}){let{t:a}=i([`auth`,`common`]),[o,s]=(0,p.useState)(!1);return(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`div`,{className:`rounded-[14px] border border-line bg-sunken p-4`,children:(0,m.jsx)(`p`,{"aria-label":a(`keyReveal.label`),className:`text-center font-mono text-[15.5px] leading-relaxed font-medium tracking-[0.06em] text-balance break-words text-ink select-all`,children:e})}),(0,m.jsxs)(`div`,{className:`mt-3 grid grid-cols-2 gap-2`,children:[(0,m.jsx)(l,{icon:(0,m.jsx)(d,{}),onClick:()=>void u(e,{message:a(`keyReveal.copied`)}),children:a(`common:actions.copy`)}),(0,m.jsx)(l,{icon:(0,m.jsx)(f,{}),onClick:()=>g(e),children:a(`keyReveal.download`)})]}),(0,m.jsxs)(`label`,{className:`mt-5 flex cursor-pointer items-start gap-3 text-[13px] text-ink-2`,children:[(0,m.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked),className:`mt-0.5 size-4 accent-[var(--accent)]`}),a(`keyReveal.saved`)]}),(0,m.jsx)(l,{variant:`primary`,size:`lg`,className:`mt-5 w-full`,disabled:!o,loading:r,onClick:n,children:t})]})}export{h as n,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./Trans--s6EBAB5.js";import{Q as t,R as n,dt as r}from"./queries-CCq834cA.js";import{i,n as a,r as o,t as s}from"./activity-BsAhScXo.js";import{u as c}from"./format-CvNb9wLc.js";import{t as l}from"./Avatar-6QZ-TS_e.js";var u=r();function d({items:r,workspaceId:d,compact:f,showSummary:p=!0}){let{t:m}=n(`activity`);return(0,u.jsx)(`ol`,{className:`relative flex flex-col`,children:r.map((n,h)=>{let g=a(d,n),_=s(n),v=g?(0,u.jsx)(t,{to:g,className:`font-medium text-ink hover:underline hover:decoration-accent hover:underline-offset-2`}):(0,u.jsx)(`span`,{className:`font-medium text-ink`});return(0,u.jsxs)(`li`,{className:`relative flex gap-3 pb-3.5 last:pb-0`,children:[h<r.length-1&&(0,u.jsx)(`span`,{className:`absolute top-7 bottom-0 left-[11px] w-px bg-line`,"aria-hidden":`true`}),(0,u.jsx)(l,{name:n.actor.name,kind:n.actor.kind,size:f?22:24,className:`relative z-[1] mt-px`}),(0,u.jsxs)(`div`,{className:`min-w-0 flex-1 text-[13px] leading-snug text-ink-2`,children:[(0,u.jsx)(e,{t:m,i18nKey:o(n.action,!p),values:{actor:n.actor.name,target:i(n)},components:{actor:(0,u.jsx)(`span`,{className:n.actor.kind===`agent`?`font-medium text-agent`:`font-medium text-ink`}),target:v}}),_&&(0,u.jsxs)(`span`,{className:`text-ink-3`,children:[` · `,_]}),(0,u.jsxs)(`span`,{className:`mt-0.5 block text-[11.5px] text-ink-3`,children:[(0,u.jsx)(`time`,{dateTime:n.createdAt,children:c(n.createdAt)}),n.actor.kind===`agent`&&` · ${m(`viaMcp`)}`]})]})]},n.id)})})}export{d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{L as t,M as n,R as r,_ as i,dt as a,ft as o,i as s,j as c,n as l,p as u,t as d,v as f,x as p}from"./queries-CCq834cA.js";import{t as m}from"./bot-Bm8LCnty.js";import{t as h}from"./lock-keyhole-WRs-W3Nv.js";import{t as g}from"./plus-CLthv7O2.js";import{n as _}from"./shield-exclamation-point-EtcHel7G.js";import{t as v}from"./trash-oES6bYbh.js";import{g as y,i as b,r as x,t as S}from"./Field-ubgJw0in.js";import{t as C}from"./ActivityList-DAgoK-qv.js";import{t as w}from"./Avatar-6QZ-TS_e.js";import{t as T}from"./Button-DMm7bUMh.js";import{t as E}from"./CopyButton-BJPW7A6A.js";import{d as D,u as O}from"./format-CvNb9wLc.js";import{t as k}from"./PageHeader-DDDfCq4x.js";import{n as A}from"./workspace-COx6bS6h.js";import{t as j}from"./Segmented-BSfg6c9G.js";import{n as M,t as N}from"./destination-BNEkMeN9.js";var P=e(o(),1),F=a(),I=()=>`${window.location.origin}/mcp`,L=[{id:`claude-code`,name:`Claude Code`},{id:`cursor`,name:`Cursor`,file:`~/.cursor/mcp.json`},{id:`vscode`,name:`VS Code`,file:`.vscode/mcp.json`},{id:`desktop`,name:`Claude Desktop`,file:`claude_desktop_config.json`}];function R(e,t){let n=I();switch(e){case`claude-code`:return`claude mcp add --transport http orqevio ${n} \\\n --header "Authorization: Bearer ${t}"`;case`cursor`:return JSON.stringify({mcpServers:{orqevio:{url:n,headers:{Authorization:`Bearer ${t}`}}}},null,2);case`vscode`:return JSON.stringify({servers:{orqevio:{type:`http`,url:n,headers:{Authorization:`Bearer ${t}`}}}},null,2);case`desktop`:return JSON.stringify({mcpServers:{orqevio:{command:`npx`,args:[`-y`,`mcp-remote`,n,`--header`,"Authorization:${ORQEVIO_AUTH}"],env:{ORQEVIO_AUTH:`Bearer ${t}`}}}},null,2)}}function z({token:e}){let{t:n}=r(`agents`),[i,a]=(0,P.useState)(`claude-code`),o=L.find(e=>e.id===i),s=R(i,e);return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`div`,{role:`tablist`,"aria-label":n(`kit.clients`),className:`flex flex-wrap gap-1`,children:L.map(e=>(0,F.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":i===e.id,onClick:()=>a(e.id),className:t(`h-7.5 rounded-[8px] px-3 text-[12.5px] font-medium transition-colors`,i===e.id?`bg-ink text-sheet`:`text-ink-2 hover:bg-hover hover:text-ink`),children:e.name},e.id))}),(0,F.jsxs)(`div`,{className:`mt-2 overflow-hidden rounded-[12px] border border-line bg-[color-mix(in_oklab,var(--ink)_94%,var(--sheet))] text-[#ece8df] dark:bg-sunken`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between border-b border-white/10 py-1.5 pr-1.5 pl-3.5 dark:border-line`,children:[(0,F.jsx)(`span`,{className:`font-mono text-[11.5px] opacity-60`,children:`file`in o?o.file:n(`kit.terminal`)}),(0,F.jsx)(E,{value:s.replace(/\\\n\s+/g,``),label:n(`kit.copy`),message:n(`kit.copied`),className:`text-current opacity-70 hover:bg-white/10 hover:text-current dark:hover:bg-hover`})]}),(0,F.jsx)(`pre`,{className:`overflow-x-auto p-3.5 font-mono text-[12px] leading-relaxed dark:text-ink`,children:(0,F.jsx)(`code`,{children:s})})]}),(0,F.jsx)(`p`,{className:`mt-2 text-[12px] text-ink-3`,children:n(i===`desktop`?`kit.desktopNote`:`kit.httpNote`)})]})}var B=[`30`,`90`,`365`,`never`];function V({open:e,onOpenChange:t}){let{t:i}=r([`agents`,`common`]),{workspaceId:a,me:o}=A(),[s,c]=(0,P.useState)(``),[u,m]=(0,P.useState)(`write`),[h,g]=(0,P.useState)(`read`),[_,v]=(0,P.useState)(`90`),[x,C]=(0,P.useState)(!1),[w,D]=(0,P.useState)(null),O=o.workspaces.find(e=>e.id===a),k=n({tasks:u,docs:h});function N(e){t(e),e||setTimeout(()=>{D(null),c(``)},300)}async function I(e){if(e.preventDefault(),s.trim()&&k.length!==0){C(!0);try{let e=await p(`/tokens`,{name:s.trim(),workspaceId:a,scopes:k,expiresInDays:_===`never`?null:Number(_)});D(e),await l.invalidateQueries({queryKey:d.tokens})}catch(e){y.error(f(e))}finally{C(!1)}}}return w?(0,F.jsxs)(b,{open:e,onOpenChange:N,title:i(`created.title`,{name:w.name}),description:i(`created.description`),width:`max-w-[640px]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 rounded-[12px] border border-line bg-sunken py-2 pr-2 pl-3.5`,children:[(0,F.jsx)(`code`,{className:`min-w-0 flex-1 truncate font-mono text-[13px]`,children:w.token}),(0,F.jsx)(E,{value:w.token,label:i(`created.copy`),message:i(`created.copied`)})]}),(0,F.jsx)(`div`,{className:`mt-5`,children:(0,F.jsx)(z,{token:w.token})}),(0,F.jsx)(`div`,{className:`mt-5 flex justify-end`,children:(0,F.jsx)(T,{variant:`primary`,onClick:()=>N(!1),children:i(`created.done`)})})]}):(0,F.jsx)(b,{open:e,onOpenChange:N,title:i(`connect`),description:O?i(`create.description`,{workspace:O.name}):i(`create.descriptionFallback`),width:`max-w-[520px]`,children:(0,F.jsxs)(`form`,{onSubmit:I,className:`flex flex-col gap-5`,children:[(0,F.jsx)(S,{label:i(`create.name`),value:s,onChange:e=>c(e.target.value),placeholder:i(`create.namePlaceholder`),autoFocus:!0,maxLength:60}),(0,F.jsx)(M,{tasks:u,docs:h,onTasks:m,onDocs:g}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,F.jsx)(`span`,{className:`text-[13px] font-medium text-ink-2`,children:i(`create.expiry`)}),(0,F.jsx)(j,{size:`sm`,label:i(`create.expiry`),value:_,onChange:v,options:B.map(e=>({value:e,label:i(`create.expiries.${e}`)}))})]}),k.length===0&&(0,F.jsx)(`p`,{className:`text-[12.5px] text-danger`,children:i(`access.atLeastOne`)}),(0,F.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,F.jsx)(T,{variant:`ghost`,onClick:()=>N(!1),children:i(`common:actions.cancel`)}),(0,F.jsx)(T,{type:`submit`,variant:`agent`,loading:x,disabled:!s.trim()||k.length===0,children:i(`create.submit`)})]})]})})}var H=[{id:`listProjects`,name:`list_projects`,scope:`read`},{id:`search`,name:`search`,scope:`read`},{id:`readBoards`,name:`get_board · get_card`,scope:`tasksRead`},{id:`editCards`,name:`create_card · update_card · move_card`,scope:`tasksWrite`},{id:`archiveCard`,name:`archive_card`,scope:`tasksWrite`},{id:`organizeBoards`,name:`create_board · create_column · update_column`,scope:`tasksWrite`},{id:`labels`,name:`create_label · add_checklist_items · update_checklist_item`,scope:`tasksWrite`},{id:`readPages`,name:`list_pages · read_page`,scope:`docsRead`},{id:`writePages`,name:`create_page · update_page`,scope:`docsWrite`},{id:`linkCard`,name:`link_card_to_page`,scope:`write`}];function U(){let{t:e}=r(`agents`),{workspaceId:t}=A(),n=u(),[a,o]=(0,P.useState)(!1),[c,p]=(0,P.useState)(),v=s(t,{agentsOnly:!0,tokenId:c}),b=x(),S=(n.data??[]).filter(e=>!e.revokedAt&&(!e.expiresAt||new Date(e.expiresAt)>new Date)),w=(n.data??[]).filter(e=>!S.includes(e));async function D(t){if(await b({title:e(`revoke.title`,{name:t.name}),description:e(`revoke.description`),confirmLabel:e(`revoke.confirm`),danger:!0}))try{await i(`/tokens/${t.id}`),await l.invalidateQueries({queryKey:d.tokens}),y.success(e(`revoke.done`))}catch(e){y.error(f(e))}}return(0,F.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,F.jsx)(k,{crumbs:[{label:e(`title`)}],actions:(0,F.jsx)(T,{variant:`agent`,size:`sm`,icon:(0,F.jsx)(g,{}),onClick:()=>o(!0),children:e(`connect`)})}),(0,F.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,F.jsxs)(`div`,{className:`mx-auto w-full max-w-[1080px] px-6 py-10 sm:px-10`,children:[(0,F.jsxs)(`div`,{className:`animate-rise grid gap-6 lg:grid-cols-[1.3fr_1fr]`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h1`,{className:`font-display text-[34px] leading-tight font-medium tracking-[-0.02em]`,children:e(`intro.title`)}),(0,F.jsx)(`p`,{className:`mt-2 max-w-[560px] text-[14px] leading-relaxed text-ink-2`,children:e(`intro.body`)}),(0,F.jsxs)(`div`,{className:`mt-5 flex max-w-[560px] items-center gap-2 rounded-[12px] border border-line bg-surface py-1.5 pr-1.5 pl-3.5 shadow-sm`,children:[(0,F.jsx)(`span`,{className:`text-[11.5px] font-semibold tracking-[0.06em] text-ink-3 uppercase`,children:e(`intro.endpoint`)}),(0,F.jsx)(`code`,{className:`min-w-0 flex-1 truncate font-mono text-[13px]`,children:I()}),(0,F.jsx)(E,{value:I(),label:e(`intro.copyEndpoint`),message:e(`intro.endpointCopied`)})]}),(0,F.jsx)(`p`,{className:`mt-3 max-w-[560px] text-[13px] leading-relaxed text-ink-3`,children:e(`intro.oauth`)})]}),(0,F.jsxs)(`aside`,{className:`relative overflow-hidden rounded-[16px] border border-line bg-surface p-5 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`span`,{className:`grid size-10 place-items-center rounded-[11px] bg-ink text-sheet`,children:(0,F.jsx)(h,{className:`size-5`})}),(0,F.jsx)(`h2`,{className:`font-display text-[18px] leading-tight font-medium`,children:e(`vault.title`)})]}),(0,F.jsxs)(`ul`,{className:`mt-4 flex flex-col gap-2.5 text-[13px] text-ink-2`,children:[(0,F.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,F.jsx)(_,{className:`mt-0.5 size-4 shrink-0 text-ok`}),` `,e(`vault.unreadable`)]}),(0,F.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,F.jsx)(_,{className:`mt-0.5 size-4 shrink-0 text-ok`}),` `,e(`vault.noDeletes`)]}),(0,F.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,F.jsx)(_,{className:`mt-0.5 size-4 shrink-0 text-ok`}),` `,e(`vault.logged`)]})]})]})]}),(0,F.jsxs)(`section`,{className:`mt-12`,children:[(0,F.jsx)(`h2`,{className:`mb-3 text-[11.5px] font-semibold tracking-[0.08em] text-ink-3 uppercase`,children:e(`tokens.active`)}),n.data&&S.length===0?(0,F.jsxs)(`button`,{type:`button`,onClick:()=>o(!0),className:`flex w-full items-center gap-4 rounded-[16px] border border-dashed border-line-strong p-6 text-left transition-colors hover:border-agent/50 hover:bg-agent-soft/40`,children:[(0,F.jsx)(`span`,{className:`grid size-11 place-items-center rounded-[12px] bg-agent-soft text-agent`,children:(0,F.jsx)(m,{className:`size-5`})}),(0,F.jsxs)(`span`,{children:[(0,F.jsx)(`span`,{className:`block text-[14.5px] font-medium`,children:e(`tokens.emptyTitle`)}),(0,F.jsx)(`span`,{className:`block text-[13px] text-ink-3`,children:e(`tokens.emptyBody`)})]})]}):(0,F.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:S.map(e=>(0,F.jsx)(W,{token:e,onRevoke:()=>void D(e),onShowActivity:()=>p(e.id)},e.id))}),w.length>0&&(0,F.jsxs)(`details`,{className:`mt-4`,children:[(0,F.jsx)(`summary`,{className:`cursor-pointer text-[12.5px] text-ink-3 hover:text-ink`,children:e(`tokens.inactive`,{count:w.length})}),(0,F.jsx)(`div`,{className:`mt-3 grid gap-3 md:grid-cols-2`,children:w.map(e=>(0,F.jsx)(W,{token:e,inactive:!0,onShowActivity:()=>p(e.id)},e.id))})]})]}),(0,F.jsxs)(`section`,{className:`mt-12 grid gap-8 lg:grid-cols-[1.3fr_1fr]`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,F.jsx)(`h2`,{className:`text-[11.5px] font-semibold tracking-[0.08em] text-ink-3 uppercase`,children:c?e(`activity.titleFor`,{name:n.data?.find(e=>e.id===c)?.name??``}):e(`activity.title`)}),c&&(0,F.jsx)(`button`,{type:`button`,onClick:()=>p(void 0),className:`text-[12px] font-medium text-ink-3 hover:text-ink`,children:e(`activity.showAll`)})]}),(0,F.jsx)(`div`,{className:`rounded-[16px] border border-line bg-surface p-4 shadow-sm`,children:v.data?.length?(0,F.jsx)(C,{items:v.data,workspaceId:t}):(0,F.jsx)(`p`,{className:`py-8 text-center text-[13px] text-ink-3`,children:v.isPending?e(`activity.loading`):e(`activity.empty`)})})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`mb-3 text-[11.5px] font-semibold tracking-[0.08em] text-ink-3 uppercase`,children:e(`tools.title`)}),(0,F.jsx)(`ul`,{className:`overflow-hidden rounded-[16px] border border-line bg-surface shadow-sm`,children:H.map(t=>(0,F.jsxs)(`li`,{className:`border-b border-line px-4 py-2.5 last:border-b-0`,children:[(0,F.jsx)(`p`,{className:`font-mono text-[11.5px] text-ink [overflow-wrap:anywhere]`,children:t.name}),(0,F.jsxs)(`p`,{className:`mt-0.5 flex flex-wrap items-center gap-x-2 text-[12px] text-ink-3`,children:[(0,F.jsx)(`span`,{className:`font-medium text-agent`,children:e(`tools.scopes.${t.scope}`)}),`· `,e(`tools.descriptions.${t.id}`)]})]},t.id))}),(0,F.jsx)(`p`,{className:`mt-2 px-1 text-[12px] text-ink-3`,children:e(`tools.footnote`)})]})]})]})}),(0,F.jsx)(V,{open:a,onOpenChange:o})]})}function W({token:e,onRevoke:n,onShowActivity:i,inactive:a}){let{t:o}=r(`agents`),s=c(e.scopes,`tasks`),l=c(e.scopes,`docs`),u=e.oauth?N(e.oauth.redirectUri):null;return(0,F.jsxs)(`article`,{className:t(`rounded-[16px] border border-line bg-surface p-4 shadow-sm`,a&&`opacity-60`),children:[(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,F.jsx)(w,{name:e.name,kind:`agent`,size:36}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`h3`,{className:`truncate text-[14.5px] font-semibold`,children:e.name}),u?(0,F.jsx)(`p`,{className:`truncate text-[11.5px] text-ink-3`,children:o(`token.oauth.${u.kind}`,{name:u.name})}):(0,F.jsxs)(`p`,{className:`font-mono text-[11.5px] text-ink-3`,children:[e.prefix,`…`]})]}),n&&(0,F.jsx)(T,{variant:`ghost`,size:`xs`,icon:(0,F.jsx)(v,{}),onClick:n,className:`hover:text-danger`,children:o(`revoke.action`)})]}),(0,F.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-1.5`,children:[(0,F.jsx)(G,{area:`tasks`,level:s}),(0,F.jsx)(G,{area:`docs`,level:l}),(0,F.jsxs)(`span`,{className:`inline-flex h-6 items-center gap-1 rounded-full bg-sunken px-2 text-[11.5px] text-ink-3`,children:[(0,F.jsx)(h,{className:`size-3`}),` `,o(`token.vaultNever`)]})]}),(0,F.jsxs)(`dl`,{className:`mt-3 grid grid-cols-3 gap-2 border-t border-line pt-3 text-[11.5px]`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{className:`text-ink-3`,children:o(`token.lastUsed`)}),(0,F.jsx)(`dd`,{className:`text-ink-2`,children:e.lastUsedAt?O(e.lastUsedAt):o(`token.never`)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{className:`text-ink-3`,children:o(`token.created`)}),(0,F.jsx)(`dd`,{className:`text-ink-2`,children:D(e.createdAt)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{className:`text-ink-3`,children:e.revokedAt?o(`token.revoked`):e.oauth?o(`token.expiresUnused`):o(`token.expires`)}),(0,F.jsx)(`dd`,{className:`text-ink-2`,children:e.revokedAt?D(e.revokedAt):e.expiresAt?D(e.expiresAt):o(`token.never`)})]})]}),(0,F.jsx)(`button`,{type:`button`,onClick:i,className:`mt-3 text-[12px] font-medium text-agent hover:underline`,children:o(`token.showActivity`)})]})}function G({area:e,level:n}){let{t:i}=r(`agents`);return(0,F.jsx)(`span`,{className:t(`inline-flex h-6 items-center rounded-full px-2 text-[11.5px] font-medium`,n===`none`?`bg-sunken text-ink-3`:n===`read`?`bg-agent-soft text-agent`:`bg-agent text-agent-ink`),children:i(`token.access.${e}.${n}`)})}export{U as AgentsPage};
|