thebird 1.2.54 → 1.2.55

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.
@@ -6,7 +6,7 @@ function serializeRoutes(routes) {
6
6
  return out;
7
7
  }
8
8
 
9
- const BUILTIN_MODULES = {
9
+ const makeBuiltinModules = term => ({
10
10
  express: () => () => {
11
11
  const routes = { GET: [], POST: [], USE: [] };
12
12
  const app = {
@@ -37,9 +37,10 @@ const BUILTIN_MODULES = {
37
37
  };
38
38
  }
39
39
  },
40
- };
40
+ });
41
41
 
42
42
  export function createNodeEnv({ ctx, term }) {
43
+ const BUILTIN_MODULES = makeBuiltinModules(term);
43
44
  const scope = {
44
45
  process: {
45
46
  argv: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thebird",
3
- "version": "1.2.54",
3
+ "version": "1.2.55",
4
4
  "description": "Anthropic SDK to Gemini streaming bridge — drop-in proxy that translates Anthropic message format and tool calls to Google Gemini",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",