fix(den): stop slow regular expressions from stalling the API (#7389)

Security hardening. A regular expression matches synchronously, so no
timer, including a Workflow's own timeout, can stop one that backtracks
exponentially. Den now stops caller-supplied patterns itself.

- time-limit.ts: runWithTimeLimit runs synchronous work under Node's
  script timeout, whose watchdog thread can end a match in progress.
- JSON Schema checks for Workflow input and output and for remote MCP
  tool arguments run under it (250 ms) and report a check that took too
  long as a validation failure.
- Programs match through a RegExp subclass that allows 250 ms of
  matching per event-loop turn, so slow matches in a loop stop too. The
  program gets a RangeError it can read or catch.
- Both engines build program regular expressions through one hook:
  host-regexp.ts in @openwork/codemode and a two-line patch to
  @opencode/codemode 2.2.5. Hosts that install no constructor are
  unchanged.

Signed-off-by: Jalil <reachjalil@gmail.com>
This commit is contained in:
Jalil authored and GitHub committed 2026-11-13 13:31:53 -08:00
1 parent 88c56b8fba
commit 04909d5fcb
15 files changed
+328 -10

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@
"start": "sh scripts/start.sh",
"typecheck": "pnpm --filter @openwork/mcp-apps build && tsc -p tsconfig.json --noEmit",
"test:api": "node --conditions=development --import tsx --test test/api/*.api.test.ts",
"test:api:security": "node --conditions=development --import tsx --test test/api/admin-security.api.test.ts test/api/audit-secrets.api.test.ts test/api/auth-rate-limits.api.test.ts test/api/computer-disconnect.api.test.ts test/api/feature-outcomes.api.test.ts test/api/ga-shared-roles.api.test.ts test/api/gateway-keys.api.test.ts test/api/gateway-api-keys.api.test.ts test/api/mcp-oauth.api.test.ts test/api/mcp-policy.api.test.ts test/api/mcp-thread-events.api.test.ts test/api/native-mcp-events.api.test.ts test/api/me-invitations.api.test.ts test/api/member-api-keys.api.test.ts test/api/member-features.api.test.ts test/api/remote-devices.api.test.ts test/api/remote-access-off.api.test.ts test/api/remote-session-access.api.test.ts test/api/oauth-token-rate-limit.api.test.ts test/api/session-token-hashing.api.test.ts test/api/skill-access.api.test.ts test/api/tenant-isolation.api.test.ts test/api/workbot-settings-permissions.api.test.ts"
"test:api:security": "node --conditions=development --import tsx --test test/api/admin-security.api.test.ts test/api/audit-secrets.api.test.ts test/api/auth-rate-limits.api.test.ts test/api/computer-disconnect.api.test.ts test/api/feature-outcomes.api.test.ts test/api/ga-shared-roles.api.test.ts test/api/gateway-keys.api.test.ts test/api/gateway-api-keys.api.test.ts test/api/mcp-oauth.api.test.ts test/api/mcp-policy.api.test.ts test/api/mcp-thread-events.api.test.ts test/api/native-mcp-events.api.test.ts test/api/me-invitations.api.test.ts test/api/member-api-keys.api.test.ts test/api/member-features.api.test.ts test/api/remote-devices.api.test.ts test/api/remote-access-off.api.test.ts test/api/remote-session-access.api.test.ts test/api/oauth-token-rate-limit.api.test.ts test/api/pattern-time-limit.api.test.ts test/api/session-token-hashing.api.test.ts test/api/skill-access.api.test.ts test/api/tenant-isolation.api.test.ts test/api/workbot-settings-permissions.api.test.ts"
},
"dependencies": {
"@better-auth/api-key": "1.7.7",
@@ -0,0 +1,71 @@
import { setHostRegExp } from "@openwork/codemode"
import { runWithTimeLimit, TimeLimitExceededError } from "../time-limit.js"
/**
* How long a program's regular expressions may hold Den's event loop before it
* gets a turn. Ordinary matches take microseconds; a pattern that backtracks
* exponentially would otherwise run for hours, where neither the execution
* timeout nor any other timer can fire.
*/
const PATTERN_TIME_LIMIT_MS = 250
// Once a turn's allowance is spent, each further match in that turn gets this
// much: ordinary matches, from any program sharing the turn, still finish.
const SPENT_TURN_MATCH_MS = 2
let spentMs = 0
let turnOpen = false
let matching = false
function limited<T>(match: () => T): T {
// replace and split call exec for each match: those run under the outer call.
if (matching) return match()
// Both engines give the event loop a turn every few milliseconds of program
// work, so the allowance is per turn: many slow matches in a row stop too.
if (!turnOpen) {
turnOpen = true
setImmediate(() => {
turnOpen = false
spentMs = 0
})
}
const startedAt = performance.now()
matching = true
try {
return runWithTimeLimit(match, Math.max(PATTERN_TIME_LIMIT_MS - spentMs, SPENT_TURN_MATCH_MS))
} catch (error) {
if (!(error instanceof TimeLimitExceededError)) throw error
throw new RangeError(
`Regular expression matching took longer than ${PATTERN_TIME_LIMIT_MS}ms and was stopped. Simplify the pattern: nested repetition such as (a+)+ can take exponential time. For literal text use String.includes or String.indexOf.`,
)
} finally {
matching = false
spentMs += performance.now() - startedAt
}
}
/** A RegExp whose matching, through its own methods and String's, stops at the limit. */
class TimeLimitedRegExp extends RegExp {
// test and matchAll call exec, and so do replace and split, once for each match.
override exec(text: string): RegExpExecArray | null {
return matching ? super.exec(text) : limited(() => super.exec(text))
}
}
// String.match, replace, search and split call these.
for (const name of [Symbol.match, Symbol.replace, Symbol.search, Symbol.split]) {
const matcher: unknown = Reflect.get(RegExp.prototype, name)
if (typeof matcher !== "function") continue
Object.defineProperty(TimeLimitedRegExp.prototype, name, {
configurable: true,
writable: true,
value(this: RegExp, ...args: unknown[]): unknown {
return limited(() => Reflect.apply(matcher, this, args))
},
})
}
/** Makes every program Den runs, on either engine, match with a time limit. */
export function limitCodemodePatternTime(): void {
setHostRegExp(TimeLimitedRegExp)
}
+4
View File
@@ -1,9 +1,13 @@
import { CodeMode } from "@openwork/codemode"
import { Effect } from "effect"
import { limitCodemodePatternTime } from "./codemode-pattern-limit.js"
import { runStandardCodeMode } from "./codemode-run-standard.js"
import type { CodemodeLanguage } from "./codemode-script-object.js"
import type { CodemodeToolTree } from "./codemode-tools.js"
// Den runs programs for every organization on one event loop.
limitCodemodePatternTime()
/**
* Which interpreter runs a script: OpenWork's original Code Mode, or the
* standard one, which runs ECMAScript (today `@opencode/codemode`).
@@ -1,5 +1,6 @@
import { AjvJsonSchemaValidator } from "@modelcontextprotocol/sdk/validation/ajv"
import type { JsonSchemaType } from "@modelcontextprotocol/sdk/validation"
import { SCHEMA_CHECK_TIME_LIMIT_MS, SCHEMA_CHECK_TOO_SLOW_MESSAGE, TimeLimitExceededError, runWithTimeLimit } from "../time-limit.js"
export type JsonSchemaObject = JsonSchemaType
@@ -172,7 +173,8 @@ export function validateCodemodeScriptInput(schema: JsonSchemaObject, value: unk
if (hasAsyncSchema(schema)) {
return { ok: false, error: "invalid_schema", message: "Asynchronous Workflow schemas are not supported." }
}
const result = new AjvJsonSchemaValidator().getValidator<unknown>(schema)(value)
// A schema's patterns are regular expressions from the caller: see runWithTimeLimit.
const result = runWithTimeLimit(() => new AjvJsonSchemaValidator().getValidator<unknown>(schema)(value), SCHEMA_CHECK_TIME_LIMIT_MS)
if (result.valid) return { ok: true }
return {
ok: false,
@@ -185,7 +187,10 @@ export function validateCodemodeScriptInput(schema: JsonSchemaObject, value: unk
: result.errorMessage,
}],
}
} catch {
} catch (error) {
if (error instanceof TimeLimitExceededError) {
return { ok: false, error: "invalid_arguments", issues: [{ path: "/", keyword: "schema_validation", message: SCHEMA_CHECK_TOO_SLOW_MESSAGE }] }
}
return {
ok: false,
error: "invalid_schema",
@@ -1,5 +1,6 @@
import { createHash } from "node:crypto"
import { AjvJsonSchemaValidator } from "@modelcontextprotocol/server/validators/ajv"
import { SCHEMA_CHECK_TIME_LIMIT_MS, SCHEMA_CHECK_TOO_SLOW_MESSAGE, TimeLimitExceededError, runWithTimeLimit } from "../time-limit.js"
export type ExternalMcpArgumentIssue = {
path: string
@@ -12,7 +13,7 @@ export type ExternalMcpArgumentValidation =
| { ok: false; error: "invalid_arguments"; issues: ExternalMcpArgumentIssue[] }
| { ok: false; error: "invalid_schema"; message: string }
const validatorProvider = new AjvJsonSchemaValidator()
let validatorProvider = new AjvJsonSchemaValidator()
const VALIDATION_MESSAGE_LIMIT = 1_000
function canonicalJson(value: unknown): string {
@@ -58,7 +59,8 @@ export function validateExternalMcpToolArguments(
}
try {
const result = validatorProvider.getValidator<Record<string, unknown>>(schema)(value)
// The remote server wrote this schema's patterns: see runWithTimeLimit.
const result = runWithTimeLimit(() => validatorProvider.getValidator<Record<string, unknown>>(schema)(value), SCHEMA_CHECK_TIME_LIMIT_MS)
if (result.valid) return { ok: true, arguments: value }
return {
ok: false,
@@ -69,7 +71,12 @@ export function validateExternalMcpToolArguments(
message: boundedMessage(result.errorMessage),
}],
}
} catch {
} catch (error) {
if (error instanceof TimeLimitExceededError) {
// The stopped check may have left this validator half-way through compiling.
validatorProvider = new AjvJsonSchemaValidator()
return { ok: false, error: "invalid_arguments", issues: [{ path: "/", keyword: "schema_validation", message: SCHEMA_CHECK_TOO_SLOW_MESSAGE }] }
}
return {
ok: false,
error: "invalid_schema",
+60
View File
@@ -0,0 +1,60 @@
import { createContext, Script } from "node:vm"
/** Synchronous work was stopped because it ran past its time limit. */
export class TimeLimitExceededError extends Error {
readonly limitMs: number
constructor(limitMs: number) {
super(`Stopped after ${limitMs}ms.`)
this.name = "TimeLimitExceededError"
this.limitMs = limitMs
}
}
/**
* How long checking a value against a caller's JSON Schema may take. Its
* `pattern`s are regular expressions, and one that backtracks exponentially
* would otherwise hold the event loop for hours.
*/
export const SCHEMA_CHECK_TIME_LIMIT_MS = 250
export const SCHEMA_CHECK_TOO_SLOW_MESSAGE = `Checking the value against the schema took longer than ${SCHEMA_CHECK_TIME_LIMIT_MS}ms and was stopped. Simplify the schema's patterns: nested repetition such as (a+)+ can take exponential time.`
const slot: { run?: () => void } = {}
const context = createContext(slot)
const script = new Script("run()")
let running = false
function isScriptTimeout(error: unknown): boolean {
return typeof error === "object" && error !== null && "code" in error && error.code === "ERR_SCRIPT_EXECUTION_TIMEOUT"
}
/**
* Runs synchronous work that nothing else can interrupt, such as matching a
* caller's regular expression, and stops it at the limit. A timer cannot do
* this: it only fires once the work has returned. Node's script timeout ends
* the work from a watchdog thread, wherever it is.
*
* `finally` blocks inside stopped work do not run, so only pass work whose
* half-finished state is thrown away. Work started inside other limited work
* runs under the outer limit.
*/
export function runWithTimeLimit<T>(work: () => T, limitMs: number): T {
if (running) return work()
const done: Array<T> = []
slot.run = () => {
done.push(work())
}
running = true
try {
script.runInContext(context, { timeout: Math.max(1, Math.ceil(limitMs)) })
} catch (error) {
if (isScriptTimeout(error)) throw new TimeLimitExceededError(limitMs)
throw error
} finally {
running = false
slot.run = undefined
}
const [result] = done
if (done.length === 0) throw new Error("Time-limited work did not run.")
return result
}
@@ -0,0 +1,117 @@
import assert from "node:assert/strict"
import { test } from "node:test"
import { runCodemodeScript, type CodemodeRuntime } from "../../src/mcp/codemode-run.js"
import { validateCodemodeScriptInput } from "../../src/mcp/codemode-script-object.js"
import { validateExternalMcpToolArguments } from "../../src/mcp/external-mcp-tool-arguments.js"
/**
* Regular expressions a caller supplies, as a JSON Schema `pattern` or in a
* program, match synchronously: no timer can stop one. Den stops them itself
* (src/time-limit.ts, src/mcp/codemode-pattern-limit.ts), on both engines.
*/
// Backtracks exponentially: unlimited, this subject takes several seconds.
const SLOW_PATTERN = "^(a+)+$"
const SLOW_SUBJECT = `${"a".repeat(30)}!`
const SLOW_SCHEMA = { type: "object", properties: { text: { type: "string", pattern: SLOW_PATTERN } } }
// The limits are 250ms; this leaves room for a busy machine.
const STOPPED_WITHIN_MS = 1_500
const RUNTIMES: CodemodeRuntime[] = ["standard", "openwork"]
const nextTurn = () => new Promise<void>((resolve) => setImmediate(resolve))
async function run(runtime: CodemodeRuntime, code: string) {
await nextTurn()
return runCodemodeScript({ code, tools: {}, timeoutMs: 10_000, runtime })
}
function elapsedMs(startedAt: number): number {
return performance.now() - startedAt
}
test("a slow schema pattern stops instead of holding the event loop", () => {
for (const validate of [
() => validateCodemodeScriptInput(SLOW_SCHEMA, { text: SLOW_SUBJECT }),
() => validateExternalMcpToolArguments(SLOW_SCHEMA, { text: SLOW_SUBJECT }),
]) {
const startedAt = performance.now()
const result = validate()
assert.ok(elapsedMs(startedAt) < STOPPED_WITHIN_MS, `stopped after ${Math.round(elapsedMs(startedAt))}ms`)
assert.equal(result.ok, false)
assert.match(JSON.stringify(result), /took longer than 250ms/)
}
})
test("ordinary schema patterns still validate, also after a stopped check", () => {
const schema = { type: "object", properties: { id: { type: "string", pattern: "^[a-z]+-\\d+$" } }, required: ["id"] }
assert.deepEqual(validateCodemodeScriptInput(schema, { id: "order-42" }), { ok: true })
assert.equal(validateCodemodeScriptInput(schema, { id: "42" }).ok, false)
assert.equal(validateExternalMcpToolArguments(schema, { id: "order-42" }).ok, true)
assert.equal(validateExternalMcpToolArguments(schema, { id: "42" }).ok, false)
})
for (const runtime of RUNTIMES) {
test(`a slow pattern in a ${runtime} program stops with an error the program can read`, async () => {
const subject = JSON.stringify(SLOW_SUBJECT)
for (const code of [
`return /${SLOW_PATTERN}/.test(${subject})`,
`return new RegExp(${JSON.stringify(SLOW_PATTERN)}).exec(${subject})`,
`return ${subject}.match(/${SLOW_PATTERN}/)`,
`return ${subject}.replace(/${SLOW_PATTERN}/, "")`,
`return ${subject}.search(/${SLOW_PATTERN}/)`,
`return ${subject}.split(/${SLOW_PATTERN}/)`,
]) {
const startedAt = performance.now()
const result = await run(runtime, code)
assert.ok(elapsedMs(startedAt) < STOPPED_WITHIN_MS, `${code} stopped after ${Math.round(elapsedMs(startedAt))}ms`)
assert.equal(result.ok, false, code)
if (!result.ok) assert.match(result.error.message, /took longer than 250ms/, code)
}
const caught = await run(runtime, `try { /${SLOW_PATTERN}/.test(${subject}) } catch (error) { return String(error) }`)
assert.equal(caught.ok, true)
if (caught.ok) assert.match(String(caught.value), /RangeError: Regular expression matching took longer than 250ms/)
})
test(`slow patterns in a row in a ${runtime} program keep giving the event loop turns`, async () => {
let longestGapMs = 0
let lastTurnAt = performance.now()
let watching = true
const watch = () => {
longestGapMs = Math.max(longestGapMs, elapsedMs(lastTurnAt))
lastTurnAt = performance.now()
if (watching) setImmediate(watch)
}
setImmediate(watch)
const result = await run(
runtime,
`let stopped = 0; for (let i = 0; i < 100; i++) { try { /${SLOW_PATTERN}/.test(${JSON.stringify(SLOW_SUBJECT)}) } catch { stopped++ } } return stopped`,
)
watching = false
assert.deepEqual(result.ok && result.value, 100)
assert.ok(longestGapMs < STOPPED_WITHIN_MS, `the event loop waited ${Math.round(longestGapMs)}ms for a turn`)
})
test(`ordinary patterns in a ${runtime} program match as before`, async () => {
const cases: Array<[string, unknown]> = [
[`return /^[a-z]+\\d+$/.test("abc123")`, true],
[`const found = /(\\w+)@(\\w+)\\.com/.exec("mail bob@example.com now"); return [found[0], found[1], found[2]]`, ["bob@example.com", "bob", "example"]],
[`return "2026-11-13".match(/(?<year>\\d+)-(?<month>\\d+)/).groups.month`, "11"],
[`return "a1b22c333".match(/\\d+/g)`, ["1", "22", "333"]],
[`return Array.from("a1b22c333".matchAll(/\\d+/g)).map((found) => found[0])`, ["1", "22", "333"]],
[`return "a-b-c".replace(/-/g, "+")`, "a+b+c"],
[`return "a1b22".replace(/\\d+/g, (digits) => String(digits.length))`, "a1b2"],
[`return "John Smith".replace(/(\\w+)\\s(\\w+)/, "$2, $1")`, "Smith, John"],
[`return "a, b;c".split(/[,;]\\s*/)`, ["a", "b", "c"]],
[`return "a1b2c".split(/(\\d)/, 4)`, ["a", "1", "b", "2"]],
[`return "hello world".search(/wor/)`, 6],
[`const pattern = /a/g; pattern.test("aa"); const first = pattern.lastIndex; pattern.test("aa"); return [first, pattern.lastIndex]`, [1, 2]],
[`const pattern = new RegExp("x", "gi"); return [pattern.source, pattern.flags, String(pattern)]`, ["x", "gi", "/x/gi"]],
[`return "a.b".match("a.b")[0]`, "a.b"],
[`let matched = 0; const pattern = /^row-\\d+$/; for (let i = 0; i < 2000; i++) { if (pattern.test("row-" + i)) matched++ } return matched`, 2000],
]
for (const [code, expected] of cases) {
const result = await run(runtime, code)
assert.deepEqual(result.ok ? result.value : result.error, expected, code)
}
})
}
+1
View File
@@ -18,3 +18,4 @@
- Host-supplied named bindings can be exposed as read-only program-scope variables through `CodeMode.execute` and `CodeMode.make`.
- Upstream pins `acorn` 8.15.0; this workspace pins 8.16.0 to reuse the existing workspace resolution.
- `async` functions return promises and run their bodies concurrently, each call with its own scope chain. A per-execution turn (`src/interpreter/turn.ts`) keeps code between awaits from interleaving. This follows the design of anomalyco/opencode#48082 (per-call frames) and anomalyco/opencode#54276 (the turn); upstream has since replaced it with one job queue (anomalyco/opencode#57976), which is not vendored here. Unlike upstream, callbacks whose result the interpreter uses, and `forEach`, await an async callback's promise, so programs written against the earlier inline behavior keep their results.
- Program regular expressions are built through `src/host-regexp.ts`, so a host that runs programs for many callers can install a RegExp subclass that limits match time (`setHostRegExp`). `patches/@opencode__codemode@2.2.5.patch` gives the standard engine the same two construction sites; port it when that version changes. Without an installed constructor both engines use `RegExp` as before.
+21
View File
@@ -0,0 +1,21 @@
/** Builds a host regular expression for a program's pattern. */
export type HostRegExpConstructor = new (pattern: string, flags?: string) => RegExp
declare global {
// The standard engine reads the same global: see patches/@opencode__codemode.
var __openworkCodemodeRegExp: HostRegExpConstructor | undefined
}
/**
* Makes both engines build program regular expressions with this constructor.
* A regular expression matches synchronously, so no execution timeout can stop
* one: a host that runs programs for many callers installs a RegExp subclass
* that limits match time. Without one, programs use RegExp itself.
*/
export function setHostRegExp(regExp: HostRegExpConstructor | undefined): void {
globalThis.__openworkCodemodeRegExp = regExp
}
export function hostRegExp(pattern: string, flags?: string): RegExp {
return new (globalThis.__openworkCodemodeRegExp ?? RegExp)(pattern, flags)
}
+1
View File
@@ -3,3 +3,4 @@ export * as StandardCodeMode from "./standard.js"
export * as Tool from "./tool.js"
export * as WorkflowGraph from "./workflow-graph.js"
export { ToolError, toolError } from "./tool-error.js"
export { setHostRegExp } from "./host-regexp.js"
+2 -1
View File
@@ -22,7 +22,7 @@ export const toHostRegex = (arg: unknown, method: string, node: AstNode, extraFl
if (arg instanceof SandboxRegExp) return arg.regex
if (typeof arg === "string") {
try {
return new RegExp(arg, extraFlags)
return hostRegExp(arg, extraFlags)
} catch (error) {
throw new InterpreterRuntimeError(
`String.${method} received the string ${JSON.stringify(arg)}, which is not a valid regular expression pattern (${regexFailureReason(error)}). ${escapeRegexHint}`,
@@ -68,6 +68,7 @@ export const invokeRegExpMethod = (
throw new InterpreterRuntimeError(`RegExp method '${name}' is not available in CodeMode.`, node)
}
}
import { hostRegExp } from "../host-regexp.js"
import { type AstNode, InterpreterRuntimeError } from "../interpreter/model.js"
import { isBlockedMember, type SafeObject } from "../tool-runtime.js"
import { SandboxRegExp } from "../values.js"
+2 -1
View File
@@ -1,4 +1,5 @@
import type { Effect, Fiber } from "effect"
import { hostRegExp } from "./host-regexp.js"
export class SandboxPromise {
interrupted = false
@@ -15,7 +16,7 @@ export class SandboxDate {
export class SandboxRegExp {
readonly regex: RegExp
constructor(pattern: string, flags: string) {
this.regex = new RegExp(pattern, flags)
this.regex = hostRegExp(pattern, flags)
}
}
+27
View File
@@ -0,0 +1,27 @@
diff --git a/dist/interpreter/objects.js b/dist/interpreter/objects.js
index 702a490bb177561d76fc3e9fff2758be3489ef44..c3c643d3db8cb5701dfaaf8ed762d1c06e8fbd1e 100644
--- a/dist/interpreter/objects.js
+++ b/dist/interpreter/objects.js
@@ -260,7 +260,8 @@ export class RegExpObj extends Wrapper {
regex;
constructor(proto, pattern, flags) {
super(proto);
- this.regex = new RegExp(pattern, flags);
+ // OpenWork: a host may install a RegExp subclass, for example one that limits match time.
+ this.regex = new (globalThis.__openworkCodemodeRegExp ?? RegExp)(pattern, flags);
}
toString() {
return `/${this.regex.source}/${this.regex.flags}`;
diff --git a/dist/stdlib/regexp.js b/dist/stdlib/regexp.js
index 4caa44f962e5bcd6d84788a86b2fdd8d1c925779..a17e5a294bf37d0a176edc52982f88b1c4bb008b 100644
--- a/dist/stdlib/regexp.js
+++ b/dist/stdlib/regexp.js
@@ -19,7 +19,7 @@ export const toHostRegex = (arg, method, extraFlags = "") => {
// Anything else is a pattern string, as `new RegExp(arg)` would read it: undefined is the empty pattern.
const source = arg === undefined ? "" : coerceToString(arg);
try {
- return new RegExp(source, extraFlags);
+ return new (globalThis.__openworkCodemodeRegExp ?? RegExp)(source, extraFlags);
}
catch (error) {
throw syntaxError(`String.${method} received the string ${JSON.stringify(source)}, which is not a valid regular expression pattern (${regexFailureReason(error)}). ${escapeRegexHint}`);
+3 -2
View File
@@ -110,6 +110,7 @@ patchedDependencies:
'@better-auth/sso@1.7.7': c949a8c9335b88b8d3ee50d693aaff8a687182f3d6b1d079e5182a8dde955883
'@modelcontextprotocol/client@2.3.1': 276c86ab47f7056638d00fa9f29759a9d3a60ac21635ceebe41f513414797476
'@modelcontextprotocol/sdk': 9b32612a84a84cbc1bfe77dde0164b4a76bf6d36b589254aec8128c7d6e91745
'@opencode/codemode@2.2.5': 5b5016ae6cd77dd5dc814ef12966b224b0c9460cbfedee30b6358e6e2123679c
deepmerge@4.3.1: 63c2ec2d0750f4ca9572b366693782a43346fd0a9fce7173bbaa0653a193df14
importers:
@@ -1570,7 +1571,7 @@ importers:
dependencies:
'@opencode/codemode':
specifier: 2.2.5
version: 2.2.5
version: 2.2.5(patch_hash=5b5016ae6cd77dd5dc814ef12966b224b0c9460cbfedee30b6358e6e2123679c)
acorn:
specifier: 8.16.0
version: 8.16.0
@@ -13637,7 +13638,7 @@ snapshots:
dependencies:
cross-spawn: 7.0.6
'@opencode/codemode@2.2.5':
'@opencode/codemode@2.2.5(patch_hash=5b5016ae6cd77dd5dc814ef12966b224b0c9460cbfedee30b6358e6e2123679c)':
dependencies:
acorn: 8.15.0
effect: 4.0.6
+1
View File
@@ -156,4 +156,5 @@ patchedDependencies:
'@better-auth/sso@1.7.7': patches/@better-auth__sso@1.7.7.patch
'@modelcontextprotocol/client@2.3.1': patches/@modelcontextprotocol__client@2.3.1.patch
'@modelcontextprotocol/sdk': patches/@modelcontextprotocol__sdk.patch
'@opencode/codemode@2.2.5': patches/@opencode__codemode@2.2.5.patch
deepmerge@4.3.1: patches/deepmerge@4.3.1.patch