mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 13:42:21 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1294fcede1 | ||
|
|
8b85bc4a39 | ||
|
|
78784fabb6 | ||
|
|
c6698e7c22 | ||
|
|
cb9c973868 | ||
|
|
f58cd1e897 | ||
|
|
4e20a03359 |
@@ -81,11 +81,12 @@ bun run typecheck && bun run lint
|
|||||||
- Group imports: external packages, internal modules, types
|
- Group imports: external packages, internal modules, types
|
||||||
- Biome automatically organizes imports
|
- Biome automatically organizes imports
|
||||||
|
|
||||||
### JSDoc Comments
|
### Documentation
|
||||||
|
|
||||||
- Use JSDoc for all exported functions
|
- Use JSDoc for all exported functions
|
||||||
- Include `@example`, `@param`, and `@returns` descriptions
|
- Include `@example`, `@param`, and `@returns` descriptions
|
||||||
- Add inline comments for hard-to-understand code
|
- Add inline comments for hard-to-understand code
|
||||||
|
- Modify Readme.md, if implementation details have changed.
|
||||||
|
|
||||||
### Error Handling
|
### Error Handling
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "opencode-multi-model",
|
"name": "opencode-multi-model",
|
||||||
"version": "0.1.1",
|
"version": "0.1.4",
|
||||||
"description": "Launch multiple AI models in tmux sessions - OpenCode Plugin, CLI, and Project Tool",
|
"description": "Launch multiple AI models in tmux sessions - OpenCode Plugin, CLI, and Project Tool",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bun
|
#!/usr/bin/env bun
|
||||||
import { Command } from "commander";
|
import { Command } from "commander";
|
||||||
|
import pkg from "../package.json";
|
||||||
import { cleanupMultiModel } from "./core/cleanup";
|
import { cleanupMultiModel } from "./core/cleanup";
|
||||||
import { closeMultiModel } from "./core/close";
|
import { closeMultiModel } from "./core/close";
|
||||||
import { openMultiModel } from "./core/open";
|
import { openMultiModel } from "./core/open";
|
||||||
@@ -10,7 +11,7 @@ const program = new Command();
|
|||||||
program
|
program
|
||||||
.name("opencode-multi-model")
|
.name("opencode-multi-model")
|
||||||
.description("Launch multiple OpenCode models in tmux sessions")
|
.description("Launch multiple OpenCode models in tmux sessions")
|
||||||
.version("1.0.0");
|
.version(pkg.version);
|
||||||
|
|
||||||
program
|
program
|
||||||
.command("open")
|
.command("open")
|
||||||
|
|||||||
@@ -15,19 +15,14 @@ Arguments:
|
|||||||
- \`noRemote\` (boolean, optional): When true, only delete local tags and do not push deletions to any remote.`,
|
- \`noRemote\` (boolean, optional): When true, only delete local tags and do not push deletions to any remote.`,
|
||||||
args: {
|
args: {
|
||||||
remote: tool.schema
|
remote: tool.schema
|
||||||
.union([
|
|
||||||
tool.schema
|
|
||||||
.string()
|
.string()
|
||||||
.describe(
|
|
||||||
"Remote name to push deletions to. Error if doesn't exist.",
|
|
||||||
)
|
|
||||||
])
|
|
||||||
.optional()
|
.optional()
|
||||||
.describe(
|
.describe(
|
||||||
"Remote handling: string=specific remote, undefined=first available remote",
|
"Remote handling: string=specific remote, undefined=first available remote",
|
||||||
),
|
),
|
||||||
noRemote: tool.schema
|
noRemote: tool.schema
|
||||||
.literal(true)
|
.boolean()
|
||||||
|
.default(false)
|
||||||
.describe("Only delete local tags, don't push to remote.")
|
.describe("Only delete local tags, don't push to remote.")
|
||||||
.optional(),
|
.optional(),
|
||||||
},
|
},
|
||||||
|
|||||||
+3
-1
@@ -12,7 +12,9 @@
|
|||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"types": ["bun-types"]
|
"types": ["bun-types"],
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"esModuleInterop": true
|
||||||
},
|
},
|
||||||
"include": ["src/**/*", "tests/**/*"],
|
"include": ["src/**/*", "tests/**/*"],
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
|
|||||||
Reference in New Issue
Block a user