stitchkit 0.59.2 → 0.59.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.
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  isRecord
3
3
  } from "./index-smpbdg6k.js";
4
- import"./index-1bx83sw4.js";
5
4
 
6
5
  // src/agent-runtime-openrouter.ts
7
6
  import {
@@ -43,7 +43,6 @@ import {
43
43
  createTraceContext
44
44
  } from "./index-y2rb7dwx.js";
45
45
  import"./index-smpbdg6k.js";
46
- import"./index-1bx83sw4.js";
47
46
 
48
47
  // src/agent-runtime/compaction.ts
49
48
  function providerValidTurn(messages) {
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  defineManagedResource
3
3
  } from "./index-yr276yz0.js";
4
- import"./index-1bx83sw4.js";
5
4
 
6
5
  // src/application/grammy.ts
7
6
  import { Context } from "grammy";
@@ -7,7 +7,6 @@ import {
7
7
  import {
8
8
  createBoundedSinkManager
9
9
  } from "./index-0nc0cddp.js";
10
- import"./index-1bx83sw4.js";
11
10
 
12
11
  // src/application/activity.ts
13
12
  import { z as z2 } from "zod";
package/dist/cli.js CHANGED
@@ -16,7 +16,6 @@ import"./index-ps5pxp3h.js";
16
16
  import"./index-6k1937bx.js";
17
17
  import"./index-y2rb7dwx.js";
18
18
  import"./index-smpbdg6k.js";
19
- import"./index-1bx83sw4.js";
20
19
  export {
21
20
  DEFAULT_EXIT_CODES,
22
21
  createCli,
package/dist/files.js CHANGED
@@ -7,7 +7,6 @@ import {
7
7
  ManagedFilePathSchema,
8
8
  ManagedFileRefSchema
9
9
  } from "./index-6k1937bx.js";
10
- import"./index-1bx83sw4.js";
11
10
  export {
12
11
  ManagedFileError,
13
12
  ManagedFilePathSchema,
@@ -41,9 +41,6 @@ import {
41
41
  isRecord,
42
42
  transportResult
43
43
  } from "./index-smpbdg6k.js";
44
- import {
45
- __require
46
- } from "./index-1bx83sw4.js";
47
44
 
48
45
  // src/server/multipart.ts
49
46
  var DEFAULT_MAX_REQUEST_BYTES = 25 * 1024 * 1024;
@@ -1846,6 +1843,8 @@ function composeWebSocketHandlers(lanes, config) {
1846
1843
  }
1847
1844
 
1848
1845
  // src/server/socket-io.ts
1846
+ var SOCKET_IO_SERVER = "socket.io";
1847
+ var SOCKET_IO_BUN_ENGINE = "@socket.io/bun-engine";
1849
1848
  var noop = () => {};
1850
1849
  function isModuleNotFound(err) {
1851
1850
  if (typeof err !== "object" || err === null)
@@ -1940,7 +1939,7 @@ async function createSocketIOServer(config) {
1940
1939
  });
1941
1940
  checkRequest(webRequest).then(() => done(null, true), (error) => done(error instanceof Error ? error.message : "Request rejected", false));
1942
1941
  };
1943
- const { Server } = await importPeer(() => import("socket.io"), "socket.io");
1942
+ const { Server } = await importPeer(() => import(SOCKET_IO_SERVER).then((module) => module), SOCKET_IO_SERVER);
1944
1943
  const io = new Server({
1945
1944
  ...config.serverOptions,
1946
1945
  path,
@@ -1967,7 +1966,7 @@ async function createSocketIOServer(config) {
1967
1966
  }
1968
1967
  };
1969
1968
  if (onBun) {
1970
- const { Server: Engine } = await importPeer(() => import("@socket.io/bun-engine"), "@socket.io/bun-engine");
1969
+ const { Server: Engine } = await importPeer(() => import(SOCKET_IO_BUN_ENGINE).then((module) => module), SOCKET_IO_BUN_ENGINE);
1971
1970
  const engineOpts = {
1972
1971
  path,
1973
1972
  cors,
package/dist/node.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  bindRealtimeServer,
4
4
  createHandler,
5
5
  createSocketIOServer
6
- } from "./index-he4psyve.js";
6
+ } from "./index-0tszzfxp.js";
7
7
  import {
8
8
  ShutdownOptionsSchema,
9
9
  ShutdownResultSchema,
@@ -35,7 +35,6 @@ import {
35
35
  import"./index-6k1937bx.js";
36
36
  import"./index-y2rb7dwx.js";
37
37
  import"./index-smpbdg6k.js";
38
- import"./index-1bx83sw4.js";
39
38
  // src/server/node.ts
40
39
  import { serve } from "srvx/node";
41
40
 
@@ -36,7 +36,6 @@ import {
36
36
  import {
37
37
  isRecord
38
38
  } from "../index-smpbdg6k.js";
39
- import"../index-1bx83sw4.js";
40
39
 
41
40
  // src/observability/audit.ts
42
41
  function toolErrorMessage(result) {
package/dist/remote.js CHANGED
@@ -12,7 +12,6 @@ import"./index-y2rb7dwx.js";
12
12
  import {
13
13
  isRecord
14
14
  } from "./index-smpbdg6k.js";
15
- import"./index-1bx83sw4.js";
16
15
 
17
16
  // src/tools/remote.ts
18
17
  var HTTP_ONLY = Object.freeze(["HTTP"]);
@@ -7,7 +7,7 @@ import {
7
7
  parseMultipart,
8
8
  socketIoLane,
9
9
  webSocketLane
10
- } from "../index-he4psyve.js";
10
+ } from "../index-0tszzfxp.js";
11
11
  import {
12
12
  ShutdownOptionsSchema,
13
13
  ShutdownResultSchema,
@@ -85,7 +85,6 @@ import {
85
85
  import {
86
86
  isRecord
87
87
  } from "../index-smpbdg6k.js";
88
- import"../index-1bx83sw4.js";
89
88
  // src/server/bun.ts
90
89
  import { chmodSync, statSync, unlinkSync } from "node:fs";
91
90
  function reclaimStaleUnixSocket(path) {
@@ -1 +1 @@
1
- {"version":3,"file":"socket-io.d.ts","sourceRoot":"","sources":["../../src/server/socket-io.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EACV,MAAM,IAAI,SAAS,EAEpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,gBAAgB,EAChB,MAAM,IAAI,cAAc,EAGzB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAA2B,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC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AAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;CAC3E;AA8GD,wBAAsB,oBAAoB,CACxC,aAAa,SAAS,cAAc,EACpC,aAAa,SAAS,cAAc,EAKpC,OAAO,GAAG,GAAG,EACb,KAAK,GAAG,OAAO,EAEf,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,KAAK,CAAC,GAC3C,OAAO,CAAC,oBAAoB,CAAC,aAAa,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC,CAmJpE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAC1B,SAAS,EAAE,oBAAoB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,WAAW,CAAC,GAC3E,YAAY,CAMd"}
package/dist/testing.js CHANGED
@@ -25,7 +25,6 @@ import"./index-y2rb7dwx.js";
25
25
  import {
26
26
  isRecord
27
27
  } from "./index-smpbdg6k.js";
28
- import"./index-1bx83sw4.js";
29
28
 
30
29
  // src/agent-runtime/testing.ts
31
30
  function createAgentRaceBarrier(timeoutMs = 5000) {
package/dist/tools.js CHANGED
@@ -74,7 +74,6 @@ import {
74
74
  import {
75
75
  isRecord
76
76
  } from "./index-smpbdg6k.js";
77
- import"./index-1bx83sw4.js";
78
77
 
79
78
  // src/tools/agent.ts
80
79
  import { jsonSchema, tool } from "ai";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stitchkit",
3
- "version": "0.59.2",
3
+ "version": "0.59.3",
4
4
  "description": "Contract-first backend framework — one defineContract() into an HTTP API, MCP tools, AI-agent tools and a typed client. Bun and Node.",
5
5
  "keywords": [
6
6
  "bun",
@@ -1,4 +0,0 @@
1
- import { createRequire } from "node:module";
2
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
3
-
4
- export { __require };