feat(aircoding): AirCoding V2 baseline — deterministic multi-agent architecture
Forked from OpenCode v1.17.4 with multi-agent system: - 5 agents: aircoding, scheduler, worker, architect, reviewer - Deterministic DAG scheduling engine (coordinator_tick) - Tool whitelists as hard enforcement - AirCoding validation plugin - V1 requirements: C4 docs, ADR, AGENTS.md, debug-log.md - Design documents in docs/
This commit is contained in:
42
packages/opencode/src/cli/cmd/github.ts
Normal file
42
packages/opencode/src/cli/cmd/github.ts
Normal file
@@ -0,0 +1,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() {},
|
||||
})
|
||||
Reference in New Issue
Block a user