FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
browsercode/packages/opencode/src/cli/bootstrap.ts at main · code2labgit/browsercode · GitHub
code2labgit
/
browsercode
Public
forked from
browser-use/browsercode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
browsercode
/
packages
/
opencode
/
src
/
cli
/
bootstrap.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (10 loc) · 368 Bytes
Breadcrumbs
browsercode
/
packages
/
opencode
/
src
/
cli
/
bootstrap.ts
Copy path
File metadata and controls
11 lines (10 loc) · 368 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
import
{
InstanceRuntime
}
from
"../project/instance-runtime"
import
{
context
}
from
"../project/instance-context"
export
async
function
bootstrap
<
T
>
(
directory
:
string
,
cb
:
(
)
=>
Promise
<
T
>
)
{
const
ctx
=
await
InstanceRuntime
.
load
(
{
directory
}
)
try
{
return
await
context
.
provide
(
ctx
,
cb
)
}
finally
{
await
InstanceRuntime
.
disposeInstance
(
ctx
)
}
}
Back
|
FazBrowse Home
|
New Git URL