agent-mockingbird 0.0.1
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/.agents/skills/btca-cli/SKILL.md +64 -0
- package/.agents/skills/btca-cli/agents/openai.yaml +3 -0
- package/.agents/skills/frontend-design/SKILL.md +42 -0
- package/.agents/skills/frontend-design/agents/openai.yaml +3 -0
- package/.env.example +36 -0
- package/.githooks/pre-commit +33 -0
- package/.github/workflows/ci.yml +309 -0
- package/.opencode/bun.lock +18 -0
- package/.opencode/package.json +5 -0
- package/.opencode/tools/agent_type_manager.ts +100 -0
- package/.opencode/tools/config_manager.ts +87 -0
- package/.opencode/tools/cron_manager.ts +145 -0
- package/.opencode/tools/memory_get.ts +43 -0
- package/.opencode/tools/memory_remember.ts +53 -0
- package/.opencode/tools/memory_search.ts +48 -0
- package/AGENTS.md +126 -0
- package/MEMORY.md +2 -0
- package/README.md +451 -0
- package/THIRD_PARTY_NOTICES.md +11 -0
- package/agent-mockingbird.config.example.json +135 -0
- package/apps/server/package.json +32 -0
- package/apps/server/src/backend/agents/bootstrapContext.ts +362 -0
- package/apps/server/src/backend/agents/openclawImport.test.ts +133 -0
- package/apps/server/src/backend/agents/openclawImport.ts +797 -0
- package/apps/server/src/backend/agents/opencodeConfig.ts +428 -0
- package/apps/server/src/backend/agents/service.ts +10 -0
- package/apps/server/src/backend/config/example-config.test.ts +20 -0
- package/apps/server/src/backend/config/orchestration.ts +243 -0
- package/apps/server/src/backend/config/policy.ts +158 -0
- package/apps/server/src/backend/config/schema.test.ts +15 -0
- package/apps/server/src/backend/config/schema.ts +391 -0
- package/apps/server/src/backend/config/semantic.test.ts +34 -0
- package/apps/server/src/backend/config/semantic.ts +149 -0
- package/apps/server/src/backend/config/service.test.ts +75 -0
- package/apps/server/src/backend/config/service.ts +207 -0
- package/apps/server/src/backend/config/smoke.ts +77 -0
- package/apps/server/src/backend/config/store.test.ts +123 -0
- package/apps/server/src/backend/config/store.ts +581 -0
- package/apps/server/src/backend/config/testFixtures.ts +5 -0
- package/apps/server/src/backend/config/types.ts +56 -0
- package/apps/server/src/backend/contracts/events.ts +320 -0
- package/apps/server/src/backend/contracts/runtime.ts +111 -0
- package/apps/server/src/backend/cron/executor.ts +435 -0
- package/apps/server/src/backend/cron/repository.ts +170 -0
- package/apps/server/src/backend/cron/service.ts +660 -0
- package/apps/server/src/backend/cron/storage.ts +92 -0
- package/apps/server/src/backend/cron/types.ts +138 -0
- package/apps/server/src/backend/cron/utils.ts +351 -0
- package/apps/server/src/backend/db/client.ts +20 -0
- package/apps/server/src/backend/db/migrate.ts +40 -0
- package/apps/server/src/backend/db/repository.ts +1762 -0
- package/apps/server/src/backend/db/schema.ts +113 -0
- package/apps/server/src/backend/db/usageDashboard.test.ts +102 -0
- package/apps/server/src/backend/db/wipe.ts +13 -0
- package/apps/server/src/backend/defaults.ts +32 -0
- package/apps/server/src/backend/env.ts +48 -0
- package/apps/server/src/backend/heartbeat/activeHours.ts +45 -0
- package/apps/server/src/backend/heartbeat/defaultJob.ts +88 -0
- package/apps/server/src/backend/heartbeat/heartbeat.test.ts +110 -0
- package/apps/server/src/backend/heartbeat/runtimeService.ts +190 -0
- package/apps/server/src/backend/heartbeat/service.ts +176 -0
- package/apps/server/src/backend/heartbeat/state.test.ts +63 -0
- package/apps/server/src/backend/heartbeat/state.ts +167 -0
- package/apps/server/src/backend/heartbeat/types.ts +54 -0
- package/apps/server/src/backend/http/boundedQueue.test.ts +49 -0
- package/apps/server/src/backend/http/boundedQueue.ts +92 -0
- package/apps/server/src/backend/http/parsers.ts +40 -0
- package/apps/server/src/backend/http/router.ts +61 -0
- package/apps/server/src/backend/http/routes/agentRoutes.ts +67 -0
- package/apps/server/src/backend/http/routes/backgroundRoutes.ts +203 -0
- package/apps/server/src/backend/http/routes/chatRoutes.ts +107 -0
- package/apps/server/src/backend/http/routes/configRoutes.ts +602 -0
- package/apps/server/src/backend/http/routes/cronRoutes.ts +221 -0
- package/apps/server/src/backend/http/routes/dashboardRoutes.ts +308 -0
- package/apps/server/src/backend/http/routes/eventRoutes.ts +7 -0
- package/apps/server/src/backend/http/routes/heartbeatRoutes.test.ts +41 -0
- package/apps/server/src/backend/http/routes/heartbeatRoutes.ts +28 -0
- package/apps/server/src/backend/http/routes/index.ts +101 -0
- package/apps/server/src/backend/http/routes/mcpRoutes.ts +213 -0
- package/apps/server/src/backend/http/routes/memoryRoutes.ts +154 -0
- package/apps/server/src/backend/http/routes/runRoutes.ts +310 -0
- package/apps/server/src/backend/http/routes/runtimeRoutes.ts +197 -0
- package/apps/server/src/backend/http/routes/skillRoutes.ts +112 -0
- package/apps/server/src/backend/http/routes/uiRoutes.test.ts +161 -0
- package/apps/server/src/backend/http/routes/uiRoutes.ts +177 -0
- package/apps/server/src/backend/http/routes/usageRoutes.test.ts +104 -0
- package/apps/server/src/backend/http/routes/usageRoutes.ts +767 -0
- package/apps/server/src/backend/http/schemas.ts +64 -0
- package/apps/server/src/backend/http/sse.ts +144 -0
- package/apps/server/src/backend/integration/backend-core.test.ts +2316 -0
- package/apps/server/src/backend/logging/logger.ts +64 -0
- package/apps/server/src/backend/mcp/service.ts +326 -0
- package/apps/server/src/backend/memory/cli.ts +170 -0
- package/apps/server/src/backend/memory/conceptExpansion.test.ts +28 -0
- package/apps/server/src/backend/memory/conceptExpansion.ts +80 -0
- package/apps/server/src/backend/memory/qmdPort.test.ts +54 -0
- package/apps/server/src/backend/memory/qmdPort.ts +61 -0
- package/apps/server/src/backend/memory/records.test.ts +66 -0
- package/apps/server/src/backend/memory/records.ts +229 -0
- package/apps/server/src/backend/memory/service.ts +2012 -0
- package/apps/server/src/backend/memory/sqliteVec.ts +58 -0
- package/apps/server/src/backend/memory/types.ts +104 -0
- package/apps/server/src/backend/opencode/agentMockingbirdPlugin.test.ts +396 -0
- package/apps/server/src/backend/opencode/client.ts +98 -0
- package/apps/server/src/backend/opencode/models.ts +41 -0
- package/apps/server/src/backend/opencode/systemPrompt.test.ts +146 -0
- package/apps/server/src/backend/opencode/systemPrompt.ts +284 -0
- package/apps/server/src/backend/paths.ts +57 -0
- package/apps/server/src/backend/prompts/service.ts +100 -0
- package/apps/server/src/backend/queue/queue.test.ts +189 -0
- package/apps/server/src/backend/queue/service.ts +177 -0
- package/apps/server/src/backend/queue/types.ts +39 -0
- package/apps/server/src/backend/run/service.ts +576 -0
- package/apps/server/src/backend/run/storage.ts +47 -0
- package/apps/server/src/backend/run/types.ts +44 -0
- package/apps/server/src/backend/runtime/errors.ts +61 -0
- package/apps/server/src/backend/runtime/index.ts +72 -0
- package/apps/server/src/backend/runtime/memoryPromptDedup.test.ts +153 -0
- package/apps/server/src/backend/runtime/memoryPromptDedup.ts +76 -0
- package/apps/server/src/backend/runtime/opencodeRuntime/backgroundMethods.ts +765 -0
- package/apps/server/src/backend/runtime/opencodeRuntime/coreMethods.ts +705 -0
- package/apps/server/src/backend/runtime/opencodeRuntime/eventMethods.ts +503 -0
- package/apps/server/src/backend/runtime/opencodeRuntime/memoryMethods.ts +462 -0
- package/apps/server/src/backend/runtime/opencodeRuntime/promptMethods.ts +1167 -0
- package/apps/server/src/backend/runtime/opencodeRuntime/shared.ts +254 -0
- package/apps/server/src/backend/runtime/opencodeRuntime.test.ts +2899 -0
- package/apps/server/src/backend/runtime/opencodeRuntime.ts +135 -0
- package/apps/server/src/backend/runtime/sessionScope.ts +45 -0
- package/apps/server/src/backend/skills/service.ts +442 -0
- package/apps/server/src/backend/workspace/resolve.ts +27 -0
- package/apps/server/src/cli/agent-mockingbird.mjs +2522 -0
- package/apps/server/src/cli/agent-mockingbird.test.ts +68 -0
- package/apps/server/src/cli/runtime-assets.mjs +269 -0
- package/apps/server/src/cli/runtime-assets.test.ts +52 -0
- package/apps/server/src/cli/runtime-layout.mjs +75 -0
- package/apps/server/src/cli/standaloneBuild.test.ts +19 -0
- package/apps/server/src/cli/standaloneBuild.ts +19 -0
- package/apps/server/src/cli/standaloneCronBinary.test.ts +187 -0
- package/apps/server/src/index.ts +178 -0
- package/apps/server/tsconfig.json +12 -0
- package/backlog.md +5 -0
- package/bin/agent-mockingbird +2522 -0
- package/bin/runtime-layout.mjs +75 -0
- package/build-bin.ts +34 -0
- package/build-cli.mjs +37 -0
- package/build.ts +40 -0
- package/bun-env.d.ts +11 -0
- package/bun.lock +888 -0
- package/bunfig.toml +2 -0
- package/components.json +21 -0
- package/config.json +130 -0
- package/deploy/RELEASE_INSTALL.md +112 -0
- package/deploy/docker-compose.yml +42 -0
- package/deploy/systemd/README.md +46 -0
- package/deploy/systemd/agent-mockingbird.service +28 -0
- package/deploy/systemd/opencode.service +25 -0
- package/docs/legacy-config-ui-reference.md +51 -0
- package/docs/memory-e2e-trace-2026-03-04.md +63 -0
- package/docs/memory-ops.md +96 -0
- package/docs/memory-runtime-contract.md +42 -0
- package/docs/memory-tuning-remote-2026-03-04.md +59 -0
- package/docs/opencode-rebase-workflow-plan.md +614 -0
- package/docs/opencode-startup-sync-plan.md +94 -0
- package/docs/vendor-opencode.md +41 -0
- package/drizzle/0000_famous_turbo.sql +49 -0
- package/drizzle/0001_cron_memory_aux.sql +160 -0
- package/drizzle/0002_runtime_session_bindings.sql +28 -0
- package/drizzle/0003_background_runs.sql +27 -0
- package/drizzle/0004_memory_open_write.sql +63 -0
- package/drizzle/0005_signal_channel.sql +47 -0
- package/drizzle/0006_usage_event_dimensions.sql +7 -0
- package/drizzle/meta/0000_snapshot.json +341 -0
- package/drizzle/meta/_journal.json +55 -0
- package/drizzle.config.ts +14 -0
- package/eslint.config.mjs +77 -0
- package/knip.json +18 -0
- package/memory/2026-03-04.md +4 -0
- package/opencode.lock.json +16 -0
- package/package.json +67 -0
- package/packages/agent-mockingbird-installer/README.md +31 -0
- package/packages/agent-mockingbird-installer/bin/agent-mockingbird-installer.mjs +44 -0
- package/packages/agent-mockingbird-installer/opencode.lock.json +16 -0
- package/packages/agent-mockingbird-installer/package.json +23 -0
- package/packages/contracts/package.json +19 -0
- package/packages/contracts/src/agentTypes.ts +122 -0
- package/packages/contracts/src/cron.ts +146 -0
- package/packages/contracts/src/dashboard.ts +378 -0
- package/packages/contracts/src/index.ts +3 -0
- package/packages/contracts/tsconfig.json +4 -0
- package/patches/opencode/0001-Wafflebot-OpenCode-baseline.patch +2341 -0
- package/patches/opencode/0002-Fix-OpenCode-web-entry-and-settings-icons.patch +104 -0
- package/patches/opencode/0003-fix-app-remove-duplicate-sidebar-mount.patch +32 -0
- package/patches/opencode/0004-Add-heartbeat-settings-and-usage-nav.patch +506 -0
- package/patches/opencode/0005-Use-chart-icon-for-usage-nav.patch +38 -0
- package/patches/opencode/0006-Modernize-cron-settings.patch +399 -0
- package/patches/opencode/0007-Rename-waffle-namespaces-to-mockingbird.patch +1110 -0
- package/patches/opencode/0008-Remove-cron-contract-section.patch +178 -0
- package/patches/opencode/0009-Rework-cron-tab-as-operations-console.patch +414 -0
- package/patches/opencode/0010-Refine-heartbeat-settings-controls.patch +208 -0
- package/runtime-assets/opencode-config/opencode.jsonc +25 -0
- package/runtime-assets/opencode-config/package.json +5 -0
- package/runtime-assets/opencode-config/plugins/agent-mockingbird.ts +715 -0
- package/runtime-assets/workspace/.agents/skills/config-auditor/SKILL.md +25 -0
- package/runtime-assets/workspace/.agents/skills/config-editor/SKILL.md +24 -0
- package/runtime-assets/workspace/.agents/skills/cron-manager/SKILL.md +57 -0
- package/runtime-assets/workspace/.agents/skills/memory-ops/SKILL.md +120 -0
- package/runtime-assets/workspace/.agents/skills/runtime-diagnose/SKILL.md +25 -0
- package/runtime-assets/workspace/AGENTS.md +56 -0
- package/runtime-assets/workspace/MEMORY.md +4 -0
- package/scripts/build-release-bundle.sh +66 -0
- package/scripts/check-ship.ts +383 -0
- package/scripts/dev-opencode.sh +17 -0
- package/scripts/dev-stack-opencode.sh +15 -0
- package/scripts/dev-stack.sh +61 -0
- package/scripts/install-systemd.sh +87 -0
- package/scripts/memory-e2e.sh +76 -0
- package/scripts/memory-trace-e2e.sh +141 -0
- package/scripts/migrate-opencode-env.ts +108 -0
- package/scripts/onboard/bootstrap.sh +32 -0
- package/scripts/opencode-swap.ts +78 -0
- package/scripts/opencode-sync.ts +715 -0
- package/scripts/runtime-assets-sync.mjs +83 -0
- package/scripts/setup-git-hooks.ts +39 -0
- package/tsconfig.json +45 -0
- package/tui.json +98 -0
- package/turbo.json +36 -0
- package/vendor/OPENCODE_VENDOR.md +13 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import process from "node:process";
|
|
3
|
+
import { syncRuntimeWorkspaceAssets } from "../apps/server/src/cli/runtime-assets.mjs";
|
|
4
|
+
|
|
5
|
+
const { console } = globalThis;
|
|
6
|
+
|
|
7
|
+
function parseArgs(argv) {
|
|
8
|
+
const args = {
|
|
9
|
+
source: "",
|
|
10
|
+
target: "",
|
|
11
|
+
state: "",
|
|
12
|
+
mode: "install",
|
|
13
|
+
interactive: false,
|
|
14
|
+
quiet: false,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
18
|
+
const arg = argv[index];
|
|
19
|
+
const next = argv[index + 1];
|
|
20
|
+
if ((arg === "--source" || arg === "--target" || arg === "--state" || arg === "--mode") && next) {
|
|
21
|
+
if (arg === "--source") args.source = next;
|
|
22
|
+
if (arg === "--target") args.target = next;
|
|
23
|
+
if (arg === "--state") args.state = next;
|
|
24
|
+
if (arg === "--mode") args.mode = next;
|
|
25
|
+
index += 1;
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (arg === "--interactive") {
|
|
29
|
+
args.interactive = true;
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (arg === "--non-interactive") {
|
|
33
|
+
args.interactive = false;
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
if (arg === "--quiet") {
|
|
37
|
+
args.quiet = true;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if (arg === "--help" || arg === "-h") {
|
|
41
|
+
args.help = true;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
throw new Error(`Unknown argument: ${arg}`);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return args;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function printHelp() {
|
|
51
|
+
console.log("Usage: bun scripts/runtime-assets-sync.mjs --source <dir> --target <dir> --state <file> [--mode install|update] [--interactive|--non-interactive] [--quiet]");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function main() {
|
|
55
|
+
const args = parseArgs(process.argv.slice(2));
|
|
56
|
+
if (args.help) {
|
|
57
|
+
printHelp();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (!args.source || !args.target || !args.state) {
|
|
61
|
+
throw new Error("--source, --target, and --state are required");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const result = await syncRuntimeWorkspaceAssets({
|
|
65
|
+
sourceWorkspaceDir: args.source,
|
|
66
|
+
targetWorkspaceDir: args.target,
|
|
67
|
+
stateFilePath: args.state,
|
|
68
|
+
mode: args.mode === "update" ? "update" : "install",
|
|
69
|
+
interactive: Boolean(args.interactive),
|
|
70
|
+
logger: args.quiet ? undefined : message => console.log(message),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
if (!args.quiet) {
|
|
74
|
+
console.log(
|
|
75
|
+
`runtime-assets summary: scanned=${result.scannedFiles}, copied=${result.copied}, overwritten=${result.overwritten}, removed=${result.removed}, unchanged=${result.unchanged}, keptLocal=${result.keptLocal}, conflicts=${result.conflicts}, backups=${result.backupsCreated}`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
await main().catch(error => {
|
|
81
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
82
|
+
process.exit(1);
|
|
83
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import { chmodSync, existsSync } from "node:fs";
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
|
|
6
|
+
function run(command: string, args: string[]) {
|
|
7
|
+
return spawnSync(command, args, {
|
|
8
|
+
stdio: "pipe",
|
|
9
|
+
encoding: "utf8",
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const revParse = run("git", ["rev-parse", "--show-toplevel"]);
|
|
14
|
+
if ((revParse.status ?? 1) !== 0) {
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const rootDir = revParse.stdout.trim();
|
|
19
|
+
if (!rootDir) {
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const hooksDir = path.join(rootDir, ".githooks");
|
|
24
|
+
const preCommitHook = path.join(hooksDir, "pre-commit");
|
|
25
|
+
|
|
26
|
+
if (existsSync(preCommitHook)) {
|
|
27
|
+
chmodSync(preCommitHook, 0o755);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const result = run("git", ["config", "core.hooksPath", ".githooks"]);
|
|
31
|
+
if ((result.status ?? 1) !== 0) {
|
|
32
|
+
const stderr = result.stderr.trim();
|
|
33
|
+
if (stderr) {
|
|
34
|
+
console.warn(`[hooks] Failed to configure core.hooksPath: ${stderr}`);
|
|
35
|
+
}
|
|
36
|
+
process.exit(result.status ?? 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
console.log("[hooks] Configured core.hooksPath=.githooks");
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["ESNext", "DOM"],
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "Preserve",
|
|
6
|
+
"moduleDetection": "force",
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowImportingTsExtensions": true,
|
|
11
|
+
"verbatimModuleSyntax": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"noFallthroughCasesInSwitch": true,
|
|
16
|
+
"noUncheckedIndexedAccess": true,
|
|
17
|
+
"noImplicitOverride": true,
|
|
18
|
+
"baseUrl": ".",
|
|
19
|
+
"paths": {
|
|
20
|
+
"@agent-mockingbird/contracts": ["./packages/contracts/src/index.ts"],
|
|
21
|
+
"@agent-mockingbird/contracts/*": ["./packages/contracts/src/*"]
|
|
22
|
+
},
|
|
23
|
+
"noUnusedLocals": false,
|
|
24
|
+
"noUnusedParameters": false,
|
|
25
|
+
"noPropertyAccessFromIndexSignature": false
|
|
26
|
+
},
|
|
27
|
+
"include": [
|
|
28
|
+
"scripts/**/*.ts",
|
|
29
|
+
"build.ts",
|
|
30
|
+
"build-bin.ts",
|
|
31
|
+
"bun-env.d.ts",
|
|
32
|
+
"eslint.config.mjs",
|
|
33
|
+
"drizzle.config.ts"
|
|
34
|
+
],
|
|
35
|
+
"exclude": [
|
|
36
|
+
"dist",
|
|
37
|
+
"node_modules",
|
|
38
|
+
"openclaw",
|
|
39
|
+
"vendor/opencode",
|
|
40
|
+
"opencode-sdk-js",
|
|
41
|
+
"convex-backend",
|
|
42
|
+
"rivet",
|
|
43
|
+
"sandbox-agent"
|
|
44
|
+
]
|
|
45
|
+
}
|
package/tui.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"keybinds": {
|
|
3
|
+
"leader": "ctrl+x",
|
|
4
|
+
"app_exit": "ctrl+c,ctrl+d,<leader>q",
|
|
5
|
+
"editor_open": "<leader>e",
|
|
6
|
+
"theme_list": "<leader>t",
|
|
7
|
+
"sidebar_toggle": "<leader>b",
|
|
8
|
+
"scrollbar_toggle": "none",
|
|
9
|
+
"username_toggle": "none",
|
|
10
|
+
"status_view": "<leader>s",
|
|
11
|
+
"session_export": "<leader>x",
|
|
12
|
+
"session_new": "<leader>n",
|
|
13
|
+
"session_list": "<leader>l",
|
|
14
|
+
"session_timeline": "<leader>g",
|
|
15
|
+
"session_fork": "none",
|
|
16
|
+
"session_rename": "ctrl+r",
|
|
17
|
+
"session_delete": "ctrl+d",
|
|
18
|
+
"stash_delete": "ctrl+d",
|
|
19
|
+
"model_provider_list": "ctrl+a",
|
|
20
|
+
"model_favorite_toggle": "ctrl+f",
|
|
21
|
+
"session_share": "none",
|
|
22
|
+
"session_unshare": "none",
|
|
23
|
+
"session_interrupt": "escape",
|
|
24
|
+
"session_compact": "<leader>c",
|
|
25
|
+
"messages_page_up": "pageup,ctrl+alt+b",
|
|
26
|
+
"messages_page_down": "pagedown,ctrl+alt+f",
|
|
27
|
+
"messages_line_up": "ctrl+alt+y",
|
|
28
|
+
"messages_line_down": "ctrl+alt+e",
|
|
29
|
+
"messages_half_page_up": "ctrl+alt+u",
|
|
30
|
+
"messages_half_page_down": "ctrl+alt+d",
|
|
31
|
+
"messages_first": "ctrl+g,home",
|
|
32
|
+
"messages_last": "ctrl+alt+g,end",
|
|
33
|
+
"messages_next": "none",
|
|
34
|
+
"messages_previous": "none",
|
|
35
|
+
"messages_last_user": "none",
|
|
36
|
+
"messages_copy": "<leader>y",
|
|
37
|
+
"messages_undo": "<leader>u",
|
|
38
|
+
"messages_redo": "<leader>r",
|
|
39
|
+
"messages_toggle_conceal": "<leader>h",
|
|
40
|
+
"tool_details": "none",
|
|
41
|
+
"model_list": "<leader>m",
|
|
42
|
+
"model_cycle_recent": "f2",
|
|
43
|
+
"model_cycle_recent_reverse": "shift+f2",
|
|
44
|
+
"model_cycle_favorite": "none",
|
|
45
|
+
"model_cycle_favorite_reverse": "none",
|
|
46
|
+
"command_list": "ctrl+p",
|
|
47
|
+
"agent_list": "<leader>a",
|
|
48
|
+
"agent_cycle": "tab",
|
|
49
|
+
"agent_cycle_reverse": "shift+tab",
|
|
50
|
+
"variant_cycle": "ctrl+t",
|
|
51
|
+
"input_clear": "ctrl+c",
|
|
52
|
+
"input_paste": "ctrl+v",
|
|
53
|
+
"input_submit": "return",
|
|
54
|
+
"input_newline": "shift+return,ctrl+return,alt+return,ctrl+j",
|
|
55
|
+
"input_move_left": "left,ctrl+b",
|
|
56
|
+
"input_move_right": "right,ctrl+f",
|
|
57
|
+
"input_move_up": "up",
|
|
58
|
+
"input_move_down": "down",
|
|
59
|
+
"input_select_left": "shift+left",
|
|
60
|
+
"input_select_right": "shift+right",
|
|
61
|
+
"input_select_up": "shift+up",
|
|
62
|
+
"input_select_down": "shift+down",
|
|
63
|
+
"input_line_home": "ctrl+a",
|
|
64
|
+
"input_line_end": "ctrl+e",
|
|
65
|
+
"input_select_line_home": "ctrl+shift+a",
|
|
66
|
+
"input_select_line_end": "ctrl+shift+e",
|
|
67
|
+
"input_visual_line_home": "alt+a",
|
|
68
|
+
"input_visual_line_end": "alt+e",
|
|
69
|
+
"input_select_visual_line_home": "alt+shift+a",
|
|
70
|
+
"input_select_visual_line_end": "alt+shift+e",
|
|
71
|
+
"input_buffer_home": "home",
|
|
72
|
+
"input_buffer_end": "end",
|
|
73
|
+
"input_select_buffer_home": "shift+home",
|
|
74
|
+
"input_select_buffer_end": "shift+end",
|
|
75
|
+
"input_delete_line": "ctrl+shift+d",
|
|
76
|
+
"input_delete_to_line_end": "ctrl+k",
|
|
77
|
+
"input_delete_to_line_start": "ctrl+u",
|
|
78
|
+
"input_backspace": "backspace,shift+backspace",
|
|
79
|
+
"input_delete": "ctrl+d,delete,shift+delete",
|
|
80
|
+
"input_undo": "ctrl+-,super+z",
|
|
81
|
+
"input_redo": "ctrl+.,super+shift+z",
|
|
82
|
+
"input_word_forward": "alt+f,alt+right,ctrl+right",
|
|
83
|
+
"input_word_backward": "alt+b,alt+left,ctrl+left",
|
|
84
|
+
"input_select_word_forward": "alt+shift+f,alt+shift+right",
|
|
85
|
+
"input_select_word_backward": "alt+shift+b,alt+shift+left",
|
|
86
|
+
"input_delete_word_forward": "alt+d,alt+delete,ctrl+delete",
|
|
87
|
+
"input_delete_word_backward": "ctrl+w,ctrl+backspace,alt+backspace",
|
|
88
|
+
"history_previous": "up",
|
|
89
|
+
"history_next": "down",
|
|
90
|
+
"session_child_cycle": "<leader>right",
|
|
91
|
+
"session_child_cycle_reverse": "<leader>left",
|
|
92
|
+
"session_parent": "<leader>up",
|
|
93
|
+
"terminal_suspend": "ctrl+z",
|
|
94
|
+
"terminal_title_toggle": "none",
|
|
95
|
+
"tips_toggle": "<leader>h",
|
|
96
|
+
"display_thinking": "none"
|
|
97
|
+
}
|
|
98
|
+
}
|
package/turbo.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://turbo.build/schema.json",
|
|
3
|
+
"globalDependencies": ["tsconfig.json", "eslint.config.mjs"],
|
|
4
|
+
"tasks": {
|
|
5
|
+
"dev": {
|
|
6
|
+
"cache": false,
|
|
7
|
+
"persistent": true
|
|
8
|
+
},
|
|
9
|
+
"build": {
|
|
10
|
+
"dependsOn": ["^build"],
|
|
11
|
+
"outputs": ["dist/**", "vendor/opencode/packages/app/dist/**"]
|
|
12
|
+
},
|
|
13
|
+
"lint": {
|
|
14
|
+
"dependsOn": ["^lint"]
|
|
15
|
+
},
|
|
16
|
+
"test": {
|
|
17
|
+
"dependsOn": ["^test"],
|
|
18
|
+
"outputs": ["coverage/**"]
|
|
19
|
+
},
|
|
20
|
+
"typecheck": {
|
|
21
|
+
"dependsOn": ["^typecheck"]
|
|
22
|
+
},
|
|
23
|
+
"db:generate": {
|
|
24
|
+
"cache": false
|
|
25
|
+
},
|
|
26
|
+
"db:migrate": {
|
|
27
|
+
"cache": false
|
|
28
|
+
},
|
|
29
|
+
"db:check": {
|
|
30
|
+
"cache": false
|
|
31
|
+
},
|
|
32
|
+
"db:wipe": {
|
|
33
|
+
"cache": false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# OpenCode Notes
|
|
2
|
+
|
|
3
|
+
- `vendor/opencode` is generated by `bun run opencode:sync --rebuild-only`; it is no longer committed to the repo.
|
|
4
|
+
- `cleanroom/opencode` is the pristine upstream clone.
|
|
5
|
+
- `patches/opencode/*.patch` is the tracked patch series.
|
|
6
|
+
- `opencode.lock.json` pins both the shipped UI source and the `opencode-ai` installer version.
|
|
7
|
+
|
|
8
|
+
Primary commands:
|
|
9
|
+
|
|
10
|
+
1. `bun run opencode:sync --status`
|
|
11
|
+
2. `bun run opencode:sync --rebuild-only`
|
|
12
|
+
3. `bun run opencode:sync --export-patches`
|
|
13
|
+
4. `bun run opencode:sync --ref vX.Y.Z`
|