@skj1724/oh-my-opencode 3.19.11 → 3.19.12
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/dist/cli/index.js +1 -1
- package/dist/index.js +13 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -8467,7 +8467,7 @@ var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
|
8467
8467
|
// package.json
|
|
8468
8468
|
var package_default = {
|
|
8469
8469
|
name: "@skj1724/oh-my-opencode",
|
|
8470
|
-
version: "3.19.
|
|
8470
|
+
version: "3.19.12",
|
|
8471
8471
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
8472
8472
|
main: "dist/index.js",
|
|
8473
8473
|
types: "dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -25023,11 +25023,19 @@ function createRuntimeFallbackHook(ctx, options) {
|
|
|
25023
25023
|
}
|
|
25024
25024
|
return false;
|
|
25025
25025
|
}
|
|
25026
|
-
if (event.type !== "session.error")
|
|
25026
|
+
if (event.type !== "session.error" && event.type !== "message.updated")
|
|
25027
25027
|
return false;
|
|
25028
25028
|
const props = event.properties;
|
|
25029
|
-
|
|
25030
|
-
|
|
25029
|
+
let sessionID;
|
|
25030
|
+
let error;
|
|
25031
|
+
if (event.type === "session.error") {
|
|
25032
|
+
sessionID = props?.sessionID;
|
|
25033
|
+
error = props?.error;
|
|
25034
|
+
} else {
|
|
25035
|
+
const info = props?.info;
|
|
25036
|
+
sessionID = info?.sessionID;
|
|
25037
|
+
error = info?.error;
|
|
25038
|
+
}
|
|
25031
25039
|
if (!sessionID || error === undefined || error === null)
|
|
25032
25040
|
return false;
|
|
25033
25041
|
if (options?.sessionRecovery?.isRecoverableError(error)) {
|
|
@@ -25040,7 +25048,8 @@ function createRuntimeFallbackHook(ctx, options) {
|
|
|
25040
25048
|
errorType: typeof error,
|
|
25041
25049
|
errorKeys: error && typeof error === "object" ? Object.keys(error) : [],
|
|
25042
25050
|
messageSnippet: classification.reason?.substring(0, 100),
|
|
25043
|
-
sessionID
|
|
25051
|
+
sessionID,
|
|
25052
|
+
eventType: event.type
|
|
25044
25053
|
});
|
|
25045
25054
|
if (classification.category === "context_overflow") {
|
|
25046
25055
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skj1724/oh-my-opencode",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.12",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|