oh-my-opencode 3.8.2 → 3.8.3
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 +8 -8
- package/dist/index.js +3 -13
- package/package.json +8 -8
package/dist/cli/index.js
CHANGED
|
@@ -9248,7 +9248,7 @@ var {
|
|
|
9248
9248
|
// package.json
|
|
9249
9249
|
var package_default = {
|
|
9250
9250
|
name: "oh-my-opencode",
|
|
9251
|
-
version: "3.8.
|
|
9251
|
+
version: "3.8.3",
|
|
9252
9252
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
9253
9253
|
main: "dist/index.js",
|
|
9254
9254
|
types: "dist/index.d.ts",
|
|
@@ -9322,13 +9322,13 @@ var package_default = {
|
|
|
9322
9322
|
typescript: "^5.7.3"
|
|
9323
9323
|
},
|
|
9324
9324
|
optionalDependencies: {
|
|
9325
|
-
"oh-my-opencode-darwin-arm64": "3.8.
|
|
9326
|
-
"oh-my-opencode-darwin-x64": "3.8.
|
|
9327
|
-
"oh-my-opencode-linux-arm64": "3.8.
|
|
9328
|
-
"oh-my-opencode-linux-arm64-musl": "3.8.
|
|
9329
|
-
"oh-my-opencode-linux-x64": "3.8.
|
|
9330
|
-
"oh-my-opencode-linux-x64-musl": "3.8.
|
|
9331
|
-
"oh-my-opencode-windows-x64": "3.8.
|
|
9325
|
+
"oh-my-opencode-darwin-arm64": "3.8.3",
|
|
9326
|
+
"oh-my-opencode-darwin-x64": "3.8.3",
|
|
9327
|
+
"oh-my-opencode-linux-arm64": "3.8.3",
|
|
9328
|
+
"oh-my-opencode-linux-arm64-musl": "3.8.3",
|
|
9329
|
+
"oh-my-opencode-linux-x64": "3.8.3",
|
|
9330
|
+
"oh-my-opencode-linux-x64-musl": "3.8.3",
|
|
9331
|
+
"oh-my-opencode-windows-x64": "3.8.3"
|
|
9332
9332
|
},
|
|
9333
9333
|
trustedDependencies: [
|
|
9334
9334
|
"@ast-grep/cli",
|
package/dist/index.js
CHANGED
|
@@ -48838,10 +48838,9 @@ function createRuntimeFallbackHook(ctx, options) {
|
|
|
48838
48838
|
}
|
|
48839
48839
|
// src/hooks/write-existing-file-guard/hook.ts
|
|
48840
48840
|
import { existsSync as existsSync48, realpathSync as realpathSync4 } from "fs";
|
|
48841
|
-
import { basename as basename4, dirname as dirname15, isAbsolute as isAbsolute7, join as join59, normalize, relative as relative5, resolve as resolve7
|
|
48841
|
+
import { basename as basename4, dirname as dirname15, isAbsolute as isAbsolute7, join as join59, normalize, relative as relative5, resolve as resolve7 } from "path";
|
|
48842
48842
|
var MAX_TRACKED_SESSIONS = 256;
|
|
48843
48843
|
var MAX_TRACKED_PATHS_PER_SESSION = 1024;
|
|
48844
|
-
var OUTSIDE_SESSION_MESSAGE = "Path must be inside session directory.";
|
|
48845
48844
|
function asRecord(value) {
|
|
48846
48845
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
48847
48846
|
return;
|
|
@@ -48886,7 +48885,6 @@ function createWriteExistingFileGuardHook(ctx) {
|
|
|
48886
48885
|
const readPermissionsBySession = new Map;
|
|
48887
48886
|
const sessionLastAccess = new Map;
|
|
48888
48887
|
const canonicalSessionRoot = toCanonicalPath(resolveInputPath(ctx, ctx.directory));
|
|
48889
|
-
const sisyphusRoot = join59(canonicalSessionRoot, ".sisyphus") + sep;
|
|
48890
48888
|
const touchSession = (sessionID) => {
|
|
48891
48889
|
sessionLastAccess.set(sessionID, Date.now());
|
|
48892
48890
|
};
|
|
@@ -48967,15 +48965,7 @@ function createWriteExistingFileGuardHook(ctx) {
|
|
|
48967
48965
|
const canonicalPath = toCanonicalPath(resolvedPath);
|
|
48968
48966
|
const isInsideSessionDirectory = isPathInsideDirectory(canonicalPath, canonicalSessionRoot);
|
|
48969
48967
|
if (!isInsideSessionDirectory) {
|
|
48970
|
-
|
|
48971
|
-
return;
|
|
48972
|
-
}
|
|
48973
|
-
log("[write-existing-file-guard] Blocking write outside session directory", {
|
|
48974
|
-
sessionID: input.sessionID,
|
|
48975
|
-
filePath,
|
|
48976
|
-
resolvedPath
|
|
48977
|
-
});
|
|
48978
|
-
throw new Error(OUTSIDE_SESSION_MESSAGE);
|
|
48968
|
+
return;
|
|
48979
48969
|
}
|
|
48980
48970
|
if (toolName === "read") {
|
|
48981
48971
|
if (!existsSync48(resolvedPath) || !input.sessionID) {
|
|
@@ -48991,7 +48981,7 @@ function createWriteExistingFileGuardHook(ctx) {
|
|
|
48991
48981
|
if (!existsSync48(resolvedPath)) {
|
|
48992
48982
|
return;
|
|
48993
48983
|
}
|
|
48994
|
-
const isSisyphusPath2 = canonicalPath.
|
|
48984
|
+
const isSisyphusPath2 = canonicalPath.includes("/.sisyphus/");
|
|
48995
48985
|
if (isSisyphusPath2) {
|
|
48996
48986
|
log("[write-existing-file-guard] Allowing .sisyphus/** overwrite", {
|
|
48997
48987
|
sessionID: input.sessionID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.3",
|
|
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",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"typescript": "^5.7.3"
|
|
75
75
|
},
|
|
76
76
|
"optionalDependencies": {
|
|
77
|
-
"oh-my-opencode-darwin-arm64": "3.8.
|
|
78
|
-
"oh-my-opencode-darwin-x64": "3.8.
|
|
79
|
-
"oh-my-opencode-linux-arm64": "3.8.
|
|
80
|
-
"oh-my-opencode-linux-arm64-musl": "3.8.
|
|
81
|
-
"oh-my-opencode-linux-x64": "3.8.
|
|
82
|
-
"oh-my-opencode-linux-x64-musl": "3.8.
|
|
83
|
-
"oh-my-opencode-windows-x64": "3.8.
|
|
77
|
+
"oh-my-opencode-darwin-arm64": "3.8.3",
|
|
78
|
+
"oh-my-opencode-darwin-x64": "3.8.3",
|
|
79
|
+
"oh-my-opencode-linux-arm64": "3.8.3",
|
|
80
|
+
"oh-my-opencode-linux-arm64-musl": "3.8.3",
|
|
81
|
+
"oh-my-opencode-linux-x64": "3.8.3",
|
|
82
|
+
"oh-my-opencode-linux-x64-musl": "3.8.3",
|
|
83
|
+
"oh-my-opencode-windows-x64": "3.8.3"
|
|
84
84
|
},
|
|
85
85
|
"trustedDependencies": [
|
|
86
86
|
"@ast-grep/cli",
|