@ycodium-ai/plugin-browser-workbench 0.2.5503 → 0.2.5542
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/README.md +4 -0
- package/assets/ui.js +78 -0
- package/dist/index.js +1 -1
- package/locales/en.json +97 -0
- package/locales/zh-CN.json +97 -0
- package/package.json +22 -4
package/README.md
CHANGED
|
@@ -7,6 +7,10 @@ you already run.
|
|
|
7
7
|
|
|
8
8
|
## What it does
|
|
9
9
|
|
|
10
|
+
Select the machine in the project sidebar, then choose **Extensions → Open in Browser VS Code**.
|
|
11
|
+
The action opens an editor on that machine. The machine's **Overview** shows the service status
|
|
12
|
+
and the Open, Stop and Update actions. These entries come from this plugin's UI bundle.
|
|
13
|
+
|
|
10
14
|
The first time you open the workbench, the plugin:
|
|
11
15
|
|
|
12
16
|
1. Asks you to confirm the VS Code Server license terms.
|
package/assets/ui.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var X=window.__ycodiumPluginHost.react;var{Activity:re,Children:se,Component:ae,Fragment:ie,Profiler:le,PureComponent:ce,StrictMode:pe,Suspense:de,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:ue,__COMPILER_RUNTIME:ge,act:fe,cache:he,cacheSignal:me,captureOwnerStack:ye,cloneElement:we,createContext:be,createElement:ke,createRef:xe,forwardRef:Se,isValidElement:Pe,lazy:ve,memo:Ee,startTransition:Re,unstable_useCacheRefresh:Ce,use:We,useActionState:Oe,useCallback:Be,useContext:_e,useDebugValue:Te,useDeferredValue:Ne,useEffect:O,useEffectEvent:Ie,useId:Ke,useImperativeHandle:De,useInsertionEffect:Ae,useLayoutEffect:Ue,useMemo:He,useOptimistic:Le,useReducer:Me,useRef:B,useState:x,useSyncExternalStore:Fe,useTransition:ze,version:je}=X;var _=["license","check-cli","download-cli","start-server","download-server","register-port"],A=["started","progress","output","succeeded","skipped","failed"],U=["license-required","download-failed","disk-full","launch-failed","port-in-use","server-download-failed","grant-expired","host-key-mismatch","channel-failed","unknown"];function H(){let e=new Map,n=Promise.resolve();return{run:(t,l,o)=>{let c=e.get(t);if(c!==void 0&&!c.signal?.aborted)return c.run;let a=n.then(l),d=()=>{e.get(t)?.run===a&&e.delete(t)};return n=a.then(d,d),e.set(t,{run:a,signal:o}),a}}}var L=[..._,"open-channel","open-forward","open-browser"],M=H(),P=e=>typeof e=="object"&&e!==null?e:{},R=class extends Error{detailKey;constructor(n){super(n),this.detailKey=n}};function T(e){if(e instanceof R)return{kind:"unknown",detailKey:e.detailKey,detail:void 0};let n=P(e),t=P(n.pluginData).failureKind??n.pluginCode??n.failureKind??n.code;return{kind:U.find(o=>o===t)??"unknown",detailKey:void 0,detail:e instanceof Error?e.message:typeof n.message=="string"?n.message:void 0}}function N(e){return!e.registeredPorts||!e.commands.stream||e.registeredPorts.availability==="upgrade-required"?"workbench.gate.desktopNeedsUpgrade":e.registeredPorts.availability==="desktop-required"?"workbench.gate.webNeedsDesktop":null}function Z(e){let n=P(e);if(!(!_.some(t=>t===n.stage)||!A.some(t=>t===n.status)||typeof n.at!="string"))return e}function F(e,n,t,l,o){return M.run(JSON.stringify(["open",n.environmentId,n.folder,t]),async()=>{l.throwIfAborted();let c=e.registeredPorts;if(!c||!e.commands.stream||c.availability!=="ready")throw new R("workbench.openError.forwardingUnavailable");let a=new AbortController,d=!1,u=!1,S=e.commands.stream("progress",{},{environmentId:n.environmentId,signal:AbortSignal.any([l,a.signal]),onValue:i=>{let p=Z(i);p&&(o(p),p.status==="failed"&&(u=!0,d&&a.abort()))}}).catch(()=>{});try{let i;try{i=P(await e.commands.invoke("open",{...t?{acceptLicense:!0}:{},...n.machineLabel?{machineLabel:n.machineLabel}:{}},{environmentId:n.environmentId}))}catch(h){throw d=T(h).kind!=="license-required",h}if(l.throwIfAborted(),typeof i.portId!="string"||!i.portId.trim())throw new R("workbench.openError.missingPort");let p=[];typeof i.token=="string"&&i.token.trim()&&p.push("tkn="+encodeURIComponent(i.token.trim())),n.folder?.trim()&&p.push("folder="+encodeURIComponent(n.folder.trim())),await c.open({environmentId:n.environmentId,portId:i.portId,path:p.length?"/?"+p.join("&"):"/",signal:l,onProgress:(h,w)=>o({stage:h,status:w,at:new Date().toISOString()})})}finally{(!d||u||l.aborted)&&(a.abort(),await S)}},l)}function z(e,n,t,l){return M.run(JSON.stringify(["stop",n]),async()=>{let o=P(await e.commands.invoke("stop",{},{environmentId:n})),c=P(o.released).port;typeof c=="number"&&l(c),t&&await e.registeredPorts?.close({environmentId:n,portId:t})})}var I=`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties, theme, base, components, utilities;
|
|
3
|
+
@layer properties;
|
|
4
|
+
@layer utilities {
|
|
5
|
+
@scope (.ycodium-browser-workbench) {
|
|
6
|
+
.block:where(:scope, *) {
|
|
7
|
+
display: block;
|
|
8
|
+
}
|
|
9
|
+
.flex:where(:scope, *) {
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
.max-h-48:where(:scope, *) {
|
|
13
|
+
max-height: calc(var(--spacing, 0.25rem) * 48);
|
|
14
|
+
}
|
|
15
|
+
.max-w-lg:where(:scope, *) {
|
|
16
|
+
max-width: var(--container-lg, 32rem);
|
|
17
|
+
}
|
|
18
|
+
.flex-wrap:where(:scope, *) {
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
}
|
|
21
|
+
.items-center:where(:scope, *) {
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
.justify-between:where(:scope, *) {
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
}
|
|
27
|
+
.gap-2:where(:scope, *) {
|
|
28
|
+
gap: calc(var(--spacing, 0.25rem) * 2);
|
|
29
|
+
}
|
|
30
|
+
.space-y-3:where(:scope, *) {
|
|
31
|
+
:where(& > :not(:last-child)) {
|
|
32
|
+
--tw-space-y-reverse: 0;
|
|
33
|
+
margin-block-start: calc(calc(var(--spacing, 0.25rem) * 3) * var(--tw-space-y-reverse));
|
|
34
|
+
margin-block-end: calc(calc(var(--spacing, 0.25rem) * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.overflow-auto:where(:scope, *) {
|
|
38
|
+
overflow: auto;
|
|
39
|
+
}
|
|
40
|
+
.py-2:where(:scope, *) {
|
|
41
|
+
padding-block: calc(var(--spacing, 0.25rem) * 2);
|
|
42
|
+
}
|
|
43
|
+
.font-mono:where(:scope, *) {
|
|
44
|
+
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
45
|
+
monospace);
|
|
46
|
+
}
|
|
47
|
+
.text-xs:where(:scope, *) {
|
|
48
|
+
font-size: var(--text-xs, 0.75rem);
|
|
49
|
+
line-height: var(--tw-leading, var(--text-xs--line-height, calc(1 / 0.75)));
|
|
50
|
+
}
|
|
51
|
+
.font-medium:where(:scope, *) {
|
|
52
|
+
--tw-font-weight: var(--font-weight-medium, 500);
|
|
53
|
+
font-weight: var(--font-weight-medium, 500);
|
|
54
|
+
}
|
|
55
|
+
.whitespace-pre-wrap:where(:scope, *) {
|
|
56
|
+
white-space: pre-wrap;
|
|
57
|
+
}
|
|
58
|
+
.underline:where(:scope, *) {
|
|
59
|
+
text-decoration-line: underline;
|
|
60
|
+
}
|
|
61
|
+
.outline:where(:scope, *) {
|
|
62
|
+
outline-style: var(--tw-outline-style);
|
|
63
|
+
outline-width: 1px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
@layer properties {
|
|
68
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
69
|
+
*, ::before, ::after, ::backdrop {
|
|
70
|
+
--tw-space-y-reverse: 0;
|
|
71
|
+
--tw-font-weight: initial;
|
|
72
|
+
--tw-outline-style: solid;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`;var{jsx:s,jsxs:g,Fragment:W}=window.__ycodiumPluginHost.jsxRuntime;var K=e=>e.replace(/-([a-z])/gu,(n,t)=>t.toUpperCase()),ee=e=>!["open-channel","open-forward","open-browser"].includes(e.stage);function ne(e,n){let t=e.at(-1);return[...(n.status==="progress"&&t?.stage===n.stage&&t.status==="progress"?e.slice(0,-1):e).slice(-255),n]}function j({bridge:e,environmentId:n,folder:t,onClose:l}){let o=e.i18n.usePluginTranslation(),c=e.useConnectedEnvironments().find(r=>r.environmentId===n)?.label,[a,d]=x("opening"),[u,S]=x(null),[i,p]=x([]),[h,w]=x(!1),[v,E]=x({accepted:!1}),m=B({onClose:l,label:c,t:o});m.current={onClose:l,label:c,t:o};let y=B(null);O(()=>{let r=y.current;r&&(r.scrollTop=r.scrollHeight)},[i]),O(()=>{let r=new AbortController,{label:f}=m.current;return d("opening"),S(null),p([]),w(!1),Promise.resolve().then(async()=>{if(!r.signal.aborted)try{await F(e,{environmentId:n,...t?{folder:t}:{},...f?{machineLabel:f}:{}},v.accepted,r.signal,b=>{r.signal.aborted||(p(k=>ne(k,b)),ee(b)&&["started","output","progress","failed"].includes(b.status)&&w(!0))}),r.signal.aborted||m.current.onClose()}catch(b){if(r.signal.aborted)return;let k=T(b);S(k),d(k.kind==="license-required"?"license":"failed"),w(!0)}}),()=>r.abort()},[e,n,t,v]);let{Button:C,Dialog:V,DialogPopup:G,DialogTitle:q,DialogHeader:Q,DialogPanel:J,DialogFooter:Y}=e.ui,D=r=>[r.at.slice(11,19),o("workbench.stage."+K(r.stage)),r.status==="progress"||r.status==="output"?"":o("workbench.progressStatus."+r.status),r.detail??(r.skipReason?o("workbench.skipReason."+K(r.skipReason)):"")].filter(Boolean).join(" ");return g(W,{children:[s("style",{children:I}),s(V,{open:h,onOpenChange:r=>{r||l()},children:g(G,{className:"ycodium-browser-workbench max-w-lg",children:[s(Q,{children:s(q,{children:o(a==="license"?"workbench.license.title":"workbench.wizard.title")})}),s(J,{className:"space-y-3",children:a==="license"?g(W,{children:[s("p",{children:o("workbench.license.body")}),s("a",{className:"underline",href:"https://code.visualstudio.com/license/server",target:"_blank",rel:"noreferrer",children:o("workbench.license.link")})]}):g(W,{children:[s("ol",{children:L.map(r=>{let f=i.findLast(k=>k.stage===r&&k.status!=="output"),b=f?.status==="progress"?"started":f?.status??"pending";return g("li",{className:"flex items-center justify-between gap-2",children:[s("span",{children:o("workbench.stage."+K(r))}),g("span",{children:[o("workbench.progressStatus."+b),f?.transfer?" \xB7 "+[f.transfer.transferredBytes.toLocaleString()+" B",...f.transfer.totalBytes===null?[]:["/ "+f.transfer.totalBytes.toLocaleString()+" B"],...f.transfer.bytesPerSecond===null?[]:["\xB7 "+Math.round(f.transfer.bytesPerSecond).toLocaleString()+" B/s"]].join(" "):""]})]},r)})}),u&&g("p",{role:"alert",children:[o("failure."+u.kind)," ",u.detailKey?o(u.detailKey):u.detail,s("span",{className:"block",children:o(u.kind==="host-key-mismatch"||u.kind==="grant-expired"?"workbench.next.retry":"workbench.next.log")})]}),g("div",{className:"flex items-center justify-between",children:[s("span",{children:o("workbench.wizard.logTitle")}),s(C,{type:"button",variant:"ghost",size:"xs",disabled:!i.length,onClick:()=>{e.writeClipboard(i.map(D).join(`
|
|
77
|
+
`)).catch(r=>e.notify(String(r),"error"))},children:o("workbench.wizard.copyLog")})]}),s("div",{ref:y,className:"max-h-48 overflow-auto whitespace-pre-wrap font-mono text-xs",children:i.map(D).join(`
|
|
78
|
+
`)})]})}),g(Y,{children:[s(C,{type:"button",variant:"outline",onClick:l,children:o(a==="license"?"workbench.license.cancel":"workbench.wizard.close")}),a==="failed"&&e.openPluginSettings&&s(C,{type:"button",variant:"outline",onClick:()=>{l(),e.openPluginSettings?.()},children:o("workbench.wizard.openPlugins")}),a!=="opening"&&s(C,{type:"button",onClick:()=>E({accepted:a==="license"}),children:o(a==="license"?"workbench.license.accept":"workbench.wizard.retry")})]})]})})]})}function te({bridge:e,environmentId:n}){let t=e.i18n.usePluginTranslation(),l=e.useConnectedEnvironments().find(m=>m.environmentId===n),o=N(e)??(l?.connected?null:"workbench.gate.environmentOffline"),c=e.commands.useQuery("status",{},{environmentId:n}),a=c.data,d=a?.running===!0,u=a?.external,S=c.isPending&&!a?"loading":a?u?"external":d?a.port?"running":"runningNoPort":a.installed?"stopped":"notInstalled":"unknown",[i,p]=x(null),{Button:h,BlockedTooltip:w}=e.ui,v=async m=>{p(m);try{m==="stop"?await z(e,n,a?.portId,y=>e.notify(t("workbench.stopReleased.title"),"warning",t("workbench.stopReleased.body",{port:y}))):await e.commands.invoke("update",{},{environmentId:n})}catch(y){e.notify(t("workbench."+m+"Failed"),"error",y instanceof Error?y.message:String(y))}finally{p(null),c.refresh()}},E=!!(o||i);return g("section",{className:"ycodium-browser-workbench",children:[s("style",{children:I}),s("h3",{className:"font-medium",children:t("workbench.sectionTitle")}),g("div",{className:"flex flex-wrap items-center justify-between gap-2 py-2",children:[s("span",{children:t("workbench.status."+S,{port:u?.port??a?.port})}),g("div",{className:"flex gap-2",children:[s(h,{size:"xs",disabled:E,onClick:()=>p("open"),children:t(i==="open"?"workbench.opening":"workbench.open")}),s(h,{size:"xs",variant:"outline",disabled:E||!d,onClick:()=>{v("stop")},children:t(i==="stop"?"workbench.stopping":"workbench.stop")}),s(w,{reason:!o&&d?t("workbench.updateRequiresStop"):null,render:s(h,{size:"xs",variant:"outline",disabled:E,softDisabled:d,onClick:()=>{d||v("update")}}),children:t(i==="update"?"workbench.updating":"workbench.update")})]})]}),o&&s("p",{children:t(o)}),i==="open"&&s(j,{bridge:e,environmentId:n,onClose:()=>{p(null),c.refresh()}})]})}function oe(e){return{pages:{},panels:{},views:{openMachine:n=>s(j,{...n,bridge:e})},slots:[{name:"sidebar.machine.actions",titleKey:"workbench.openMachine",icon:"code",actionView:"openMachine",disabledReasonKey:()=>N(e)},{name:"machine.overview.section",titleKey:"workbench.sectionTitle",component:({environmentId:n})=>s(te,{bridge:e,environmentId:n})}]}}export{oe as default};
|
package/dist/index.js
CHANGED
package/locales/en.json
CHANGED
|
@@ -35,5 +35,102 @@
|
|
|
35
35
|
},
|
|
36
36
|
"adopt": {
|
|
37
37
|
"notOurs": "The workbench server found from the last run does not accept this machine's token, so Ycodium let go of it. Open again to start a fresh one."
|
|
38
|
+
},
|
|
39
|
+
"workbench": {
|
|
40
|
+
"sectionTitle": "Browser VS Code",
|
|
41
|
+
"open": "Open",
|
|
42
|
+
"stop": "Stop",
|
|
43
|
+
"update": "Update",
|
|
44
|
+
"opening": "Opening…",
|
|
45
|
+
"stopping": "Stopping…",
|
|
46
|
+
"updating": "Updating…",
|
|
47
|
+
"status": {
|
|
48
|
+
"loading": "Checking status…",
|
|
49
|
+
"unknown": "Status unknown",
|
|
50
|
+
"notInstalled": "Not installed yet",
|
|
51
|
+
"stopped": "Installed, not running",
|
|
52
|
+
"running": "Running on port {{port}}",
|
|
53
|
+
"runningNoPort": "Running",
|
|
54
|
+
"external": "Using your own code-server on port {{port}}"
|
|
55
|
+
},
|
|
56
|
+
"gate": {
|
|
57
|
+
"webNeedsDesktop": "Browser VS Code needs the Ycodium desktop app.",
|
|
58
|
+
"desktopNeedsUpgrade": "Update the Ycodium desktop app to open Browser VS Code.",
|
|
59
|
+
"pluginMissing": "This machine does not have the Browser VS Code plugin enabled.",
|
|
60
|
+
"environmentOffline": "This machine is not connected."
|
|
61
|
+
},
|
|
62
|
+
"license": {
|
|
63
|
+
"title": "Confirm the VS Code Server license terms",
|
|
64
|
+
"body": "The first start accepts the VS Code Server license terms on this machine. You confirm those terms yourself. Ycodium does not interpret them.",
|
|
65
|
+
"link": "VS Code Server license terms",
|
|
66
|
+
"accept": "I confirm the terms",
|
|
67
|
+
"cancel": "Cancel"
|
|
68
|
+
},
|
|
69
|
+
"wizard": {
|
|
70
|
+
"title": "Opening Browser VS Code",
|
|
71
|
+
"close": "Close",
|
|
72
|
+
"retry": "Try again",
|
|
73
|
+
"copyLog": "Copy log",
|
|
74
|
+
"copiedLog": "Copied",
|
|
75
|
+
"openPlugins": "Open plugins",
|
|
76
|
+
"logTitle": "Log"
|
|
77
|
+
},
|
|
78
|
+
"openError": {
|
|
79
|
+
"forwardingUnavailable": "Desktop port forwarding is unavailable.",
|
|
80
|
+
"missingPort": "The plugin did not return a port."
|
|
81
|
+
},
|
|
82
|
+
"stage": {
|
|
83
|
+
"license": "License terms",
|
|
84
|
+
"checkCli": "Checking the VS Code CLI",
|
|
85
|
+
"downloadCli": "Downloading the VS Code CLI",
|
|
86
|
+
"startServer": "Starting the server",
|
|
87
|
+
"downloadServer": "Downloading the VS Code server",
|
|
88
|
+
"registerPort": "Registering the port",
|
|
89
|
+
"openChannel": "Opening the secure channel",
|
|
90
|
+
"openForward": "Forwarding to this computer",
|
|
91
|
+
"openBrowser": "Opening the browser"
|
|
92
|
+
},
|
|
93
|
+
"skipReason": {
|
|
94
|
+
"alreadyAccepted": "Already confirmed",
|
|
95
|
+
"alreadyInstalled": "Already installed",
|
|
96
|
+
"alreadyRunning": "Already running on this machine",
|
|
97
|
+
"alreadyRegistered": "Already registered",
|
|
98
|
+
"external": "Using your own code-server"
|
|
99
|
+
},
|
|
100
|
+
"failure": {
|
|
101
|
+
"licenseRequired": "The VS Code Server license terms must be confirmed first.",
|
|
102
|
+
"downloadFailed": "The VS Code CLI could not be downloaded. Check that this machine can reach the network.",
|
|
103
|
+
"diskFull": "There is not enough disk space on this machine.",
|
|
104
|
+
"launchFailed": "The VS Code server did not start.",
|
|
105
|
+
"portInUse": "That port is already in use.",
|
|
106
|
+
"serverDownloadFailed": "The VS Code server files could not be downloaded.",
|
|
107
|
+
"grantExpired": "The connection grant expired. Open again.",
|
|
108
|
+
"hostKeyMismatch": "This machine’s identity does not match the one already saved. The connection was not opened.",
|
|
109
|
+
"channelFailed": "The secure channel could not be opened.",
|
|
110
|
+
"unknown": "Browser VS Code could not be opened."
|
|
111
|
+
},
|
|
112
|
+
"next": {
|
|
113
|
+
"retry": "Try again",
|
|
114
|
+
"plugins": "Enable the plugin on this machine",
|
|
115
|
+
"log": "Review the log"
|
|
116
|
+
},
|
|
117
|
+
"transfer": {
|
|
118
|
+
"downloading": "Downloading"
|
|
119
|
+
},
|
|
120
|
+
"stopFailed": "Couldn't stop Browser VS Code",
|
|
121
|
+
"updateFailed": "Couldn't update Browser VS Code",
|
|
122
|
+
"updateRequiresStop": "Stop Browser VS Code before updating it.",
|
|
123
|
+
"stopReleased": {
|
|
124
|
+
"title": "Let go of the previous Browser VS Code server",
|
|
125
|
+
"body": "A server from an earlier run is still answering on port {{port}}. Ycodium cannot confirm which process it is, so it did not end it and only stopped managing it. If you need it gone, end it yourself. Opening again starts a fresh one."
|
|
126
|
+
},
|
|
127
|
+
"openMachine": "Open in Browser VS Code",
|
|
128
|
+
"progressStatus": {
|
|
129
|
+
"pending": "Waiting",
|
|
130
|
+
"started": "Running",
|
|
131
|
+
"succeeded": "Done",
|
|
132
|
+
"skipped": "Skipped",
|
|
133
|
+
"failed": "Failed"
|
|
134
|
+
}
|
|
38
135
|
}
|
|
39
136
|
}
|
package/locales/zh-CN.json
CHANGED
|
@@ -35,5 +35,102 @@
|
|
|
35
35
|
},
|
|
36
36
|
"adopt": {
|
|
37
37
|
"notOurs": "上次运行留下的工作台服务不接受此机器的令牌,Ycodium 已放弃接管它。请重新打开,会另起一个新的。"
|
|
38
|
+
},
|
|
39
|
+
"workbench": {
|
|
40
|
+
"sectionTitle": "浏览器版 VS Code",
|
|
41
|
+
"open": "打开",
|
|
42
|
+
"stop": "停止",
|
|
43
|
+
"update": "更新",
|
|
44
|
+
"opening": "正在打开…",
|
|
45
|
+
"stopping": "正在停止…",
|
|
46
|
+
"updating": "正在更新…",
|
|
47
|
+
"status": {
|
|
48
|
+
"loading": "正在检查状态…",
|
|
49
|
+
"unknown": "状态未知",
|
|
50
|
+
"notInstalled": "尚未安装",
|
|
51
|
+
"stopped": "已安装,未运行",
|
|
52
|
+
"running": "正在 {{port}} 端口运行",
|
|
53
|
+
"runningNoPort": "正在运行",
|
|
54
|
+
"external": "正在使用您自己的 {{port}} 端口上的 code-server"
|
|
55
|
+
},
|
|
56
|
+
"gate": {
|
|
57
|
+
"webNeedsDesktop": "浏览器版 VS Code 需要 Ycodium 桌面应用。",
|
|
58
|
+
"desktopNeedsUpgrade": "更新 Ycodium 桌面应用以打开浏览器版 VS Code。",
|
|
59
|
+
"pluginMissing": "此机器未启用浏览器版 VS Code 插件。",
|
|
60
|
+
"environmentOffline": "此机器未连接。"
|
|
61
|
+
},
|
|
62
|
+
"license": {
|
|
63
|
+
"title": "确认 VS Code Server 许可条款",
|
|
64
|
+
"body": "首次启动时,会在此机器上接受 VS Code Server 许可条款。您需要自行确认这些条款。Ycodium 不会对其进行解释。",
|
|
65
|
+
"link": "VS Code Server 许可条款",
|
|
66
|
+
"accept": "我确认这些条款",
|
|
67
|
+
"cancel": "取消"
|
|
68
|
+
},
|
|
69
|
+
"wizard": {
|
|
70
|
+
"title": "正在打开浏览器版 VS Code",
|
|
71
|
+
"close": "关闭",
|
|
72
|
+
"retry": "重试",
|
|
73
|
+
"copyLog": "复制日志",
|
|
74
|
+
"copiedLog": "已复制",
|
|
75
|
+
"openPlugins": "打开插件",
|
|
76
|
+
"logTitle": "日志"
|
|
77
|
+
},
|
|
78
|
+
"openError": {
|
|
79
|
+
"forwardingUnavailable": "桌面端口转发不可用。",
|
|
80
|
+
"missingPort": "插件未返回端口。"
|
|
81
|
+
},
|
|
82
|
+
"stage": {
|
|
83
|
+
"license": "许可条款",
|
|
84
|
+
"checkCli": "正在检查 VS Code CLI",
|
|
85
|
+
"downloadCli": "正在下载 VS Code CLI",
|
|
86
|
+
"startServer": "正在启动服务器",
|
|
87
|
+
"downloadServer": "正在下载 VS Code 服务器",
|
|
88
|
+
"registerPort": "正在注册端口",
|
|
89
|
+
"openChannel": "正在打开安全通道",
|
|
90
|
+
"openForward": "正在转发到此计算机",
|
|
91
|
+
"openBrowser": "正在打开浏览器"
|
|
92
|
+
},
|
|
93
|
+
"skipReason": {
|
|
94
|
+
"alreadyAccepted": "此前已确认",
|
|
95
|
+
"alreadyInstalled": "已安装",
|
|
96
|
+
"alreadyRunning": "已在此机器上运行",
|
|
97
|
+
"alreadyRegistered": "已注册",
|
|
98
|
+
"external": "使用您自己的 code-server"
|
|
99
|
+
},
|
|
100
|
+
"failure": {
|
|
101
|
+
"licenseRequired": "必须先确认 VS Code 服务器许可条款。",
|
|
102
|
+
"downloadFailed": "无法下载 VS Code CLI。请检查此机器是否可以连接网络。",
|
|
103
|
+
"diskFull": "此机器上的磁盘空间不足。",
|
|
104
|
+
"launchFailed": "VS Code 服务器未启动。",
|
|
105
|
+
"portInUse": "该端口已被占用。",
|
|
106
|
+
"serverDownloadFailed": "无法下载 VS Code 服务器文件。",
|
|
107
|
+
"grantExpired": "连接授权已过期。请重新打开。",
|
|
108
|
+
"hostKeyMismatch": "此机器的身份与已保存的身份不匹配。未建立连接。",
|
|
109
|
+
"channelFailed": "无法打开安全通道。",
|
|
110
|
+
"unknown": "无法打开浏览器版 VS Code。"
|
|
111
|
+
},
|
|
112
|
+
"next": {
|
|
113
|
+
"retry": "重试",
|
|
114
|
+
"plugins": "在此机器上启用插件",
|
|
115
|
+
"log": "查看日志"
|
|
116
|
+
},
|
|
117
|
+
"transfer": {
|
|
118
|
+
"downloading": "正在下载"
|
|
119
|
+
},
|
|
120
|
+
"stopFailed": "没能停止浏览器版 VS Code",
|
|
121
|
+
"updateFailed": "没能更新浏览器版 VS Code",
|
|
122
|
+
"updateRequiresStop": "更新前请先停止浏览器版 VS Code。",
|
|
123
|
+
"stopReleased": {
|
|
124
|
+
"title": "已放弃接管上一次的浏览器版 VS Code 服务",
|
|
125
|
+
"body": "端口 {{port}} 上仍有上一次运行留下的服务在响应。Ycodium 无法确认它是哪个进程,所以没有结束它,只是不再管理它。需要彻底关掉的话请自行结束该进程;再次打开会另起一个新的。"
|
|
126
|
+
},
|
|
127
|
+
"openMachine": "在浏览器版 VS Code 中打开",
|
|
128
|
+
"progressStatus": {
|
|
129
|
+
"pending": "等待",
|
|
130
|
+
"started": "进行中",
|
|
131
|
+
"succeeded": "完成",
|
|
132
|
+
"skipped": "跳过",
|
|
133
|
+
"failed": "失败"
|
|
134
|
+
}
|
|
38
135
|
}
|
|
39
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-browser-workbench",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5542",
|
|
4
4
|
"description": "Installs the official VS Code CLI on this machine and opens it in a system browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser-workbench",
|
|
@@ -21,10 +21,17 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@effect/vitest": "4.0.0-beta.103",
|
|
24
|
+
"@tailwindcss/node": "^4.3.0",
|
|
25
|
+
"@tailwindcss/oxide": "^4.3.0",
|
|
26
|
+
"@types/react": "~19.2.14",
|
|
27
|
+
"@types/react-dom": "^19.2.3",
|
|
24
28
|
"esbuild": "0.28.1",
|
|
29
|
+
"react": "19.2.6",
|
|
30
|
+
"react-dom": "19.2.6",
|
|
31
|
+
"tailwindcss": "^4.0.0",
|
|
25
32
|
"typescript": "~6.0.3",
|
|
26
33
|
"vite-plus": "0.2.2",
|
|
27
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
34
|
+
"@ycodium-ai/plugin-api": "0.2.5542",
|
|
28
35
|
"ycodium-plugin-testing": "0.0.0"
|
|
29
36
|
},
|
|
30
37
|
"ycodium": {
|
|
@@ -45,12 +52,23 @@
|
|
|
45
52
|
},
|
|
46
53
|
{
|
|
47
54
|
"kind": "ports.register"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "ui.seats",
|
|
58
|
+
"seats": [
|
|
59
|
+
"sidebar.machine.actions",
|
|
60
|
+
"machine.overview.section"
|
|
61
|
+
]
|
|
48
62
|
}
|
|
49
|
-
]
|
|
63
|
+
],
|
|
64
|
+
"ui": {
|
|
65
|
+
"assets": "./assets",
|
|
66
|
+
"entry": "ui.js"
|
|
67
|
+
}
|
|
50
68
|
},
|
|
51
69
|
"scripts": {
|
|
52
70
|
"build": "node build.mjs",
|
|
53
|
-
"typecheck": "tsgo --noEmit",
|
|
71
|
+
"typecheck": "tsgo --noEmit && tsgo --noEmit -p tsconfig.ui.json",
|
|
54
72
|
"test": "vp test run"
|
|
55
73
|
}
|
|
56
74
|
}
|