Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
bun.lock
*.tgz

# OpenCode session-specific files (not shared)
Expand Down
169 changes: 104 additions & 65 deletions README.md

Large diffs are not rendered by default.

572 changes: 572 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Plugin } from "@opencode-ai/plugin";
declare const plugin: Plugin;
import { Plugin } from "@opencode/plugin";
declare const plugin: Plugin.Plugin;
export default plugin;
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,687 changes: 780 additions & 907 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions dist/recovery.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export interface AssistantEvidence {
id: string;
finish?: string;
outputTokens: number;
sawText: boolean;
error: boolean;
}
export interface TurnEvidence {
assistant?: AssistantEvidence;
aborted: boolean;
waitingForQuestion: boolean;
waitingForPermission: boolean;
}
export declare function createTurnEvidence(): TurnEvidence;
export declare function updateAssistantEvidence(turn: TurnEvidence, info: {
id?: string;
finish?: string;
tokens?: {
output?: number;
};
error?: unknown;
}): void;
export declare function recordTextPart(turn: TurnEvidence, part: {
messageID?: string;
type?: string;
text?: string;
}): void;
export declare function isCompletedEmptyResponse(turn: TurnEvidence): boolean;
//# sourceMappingURL=recovery.d.ts.map
1 change: 1 addition & 0 deletions dist/recovery.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions dist/recovery.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/recovery.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// OpenCode v2 loads local directory plugins by resolving <directory>/index
// (Host.resolve does not consult package.json main/exports for directory
// targets). This root entry re-exports the compiled plugin from dist/ so the
// repository checkout itself can be configured directly:
// { "plugins": ["../opencode-auto-continue"] }
export { default } from "./dist/index.js";
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-auto-continue",
"version": "1.0.0",
"version": "2.0.0",
"description": "OpenCode plugin that auto-sends 'continue' when bad request (400) errors occur",
"type": "module",
"main": "dist/index.js",
Expand All @@ -13,12 +13,15 @@
},
"scripts": {
"build": "tsc",
"test": "bun test",
"check": "tsc --noEmit",
"dev": "tsc --watch",
"prepublishOnly": "tsc"
},
"files": [
"dist",
"src",
"index.js",
"README.md"
],
"keywords": [
Expand All @@ -28,13 +31,11 @@
"error-recovery"
],
"license": "MIT",
"peerDependencies": {
"@opencode-ai/plugin": ">=1.0.0",
"@opencode-ai/sdk": ">=1.0.0"
"dependencies": {
"@opencode/plugin": "^2.0.28"
},
"devDependencies": {
"@opencode-ai/plugin": "^1.3.15",
"@opencode-ai/sdk": "1.2.27",
"@opencode/client": "2.0.32",
"@types/node": "^25.5.2",
"typescript": "^5.9.3"
}
Expand Down
Loading