FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
browsercode/packages/opencode/src/cli/cmd/github.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
/
cmd
/
github.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (38 loc) · 1.25 KB
Breadcrumbs
browsercode
/
packages
/
opencode
/
src
/
cli
/
cmd
/
github.ts
Copy path
File metadata and controls
42 lines (38 loc) · 1.25 KB
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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import
{
Effect
}
from
"effect"
import
{
cmd
}
from
"./cmd"
import
{
effectCmd
}
from
"../effect-cmd"
export
{
extractResponseText
,
formatPromptTooLargeError
,
parseGitHubRemote
}
from
"./github.shared"
export
const
GithubInstallCommand
=
effectCmd
(
{
command
:
"install"
,
describe
:
"install the GitHub agent"
,
handler
:
(
)
=>
Effect
.
gen
(
function
*
(
)
{
const
{
githubInstall
}
=
yield
*
Effect
.
promise
(
(
)
=>
import
(
"./github.handler"
)
)
return
yield
*
githubInstall
(
)
}
)
,
}
)
export
const
GithubRunCommand
=
effectCmd
(
{
command
:
"run"
,
describe
:
"run the GitHub agent"
,
builder
:
(
yargs
)
=>
yargs
.
option
(
"event"
,
{
type
:
"string"
,
describe
:
"GitHub mock event to run the agent for"
,
}
)
.
option
(
"token"
,
{
type
:
"string"
,
describe
:
"GitHub personal access token (github_pat_********)"
,
}
)
,
handler
:
(
args
)
=>
Effect
.
gen
(
function
*
(
)
{
const
{
githubRun
}
=
yield
*
Effect
.
promise
(
(
)
=>
import
(
"./github.handler"
)
)
return
yield
*
githubRun
(
args
)
}
)
,
}
)
export
const
GithubCommand
=
cmd
(
{
command
:
"github"
,
describe
:
"manage GitHub agent"
,
builder
:
(
yargs
)
=>
yargs
.
command
(
GithubInstallCommand
)
.
command
(
GithubRunCommand
)
.
demandCommand
(
)
,
async
handler
(
)
{
}
,
}
)
Back
|
FazBrowse Home
|
New Git URL