stitchkit 0.118.1 → 0.119.0

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.
Files changed (144) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/browser/http.d.ts.map +1 -1
  3. package/dist/contract/client-types.d.ts +6 -3
  4. package/dist/contract/client-types.d.ts.map +1 -1
  5. package/dist/contract/define-validation.d.ts.map +1 -1
  6. package/dist/contract/define.d.ts +18 -12
  7. package/dist/contract/define.d.ts.map +1 -1
  8. package/dist/contract/endpoint-capabilities.d.ts +28 -0
  9. package/dist/contract/endpoint-capabilities.d.ts.map +1 -0
  10. package/dist/contract/factory.d.ts +49 -19
  11. package/dist/contract/factory.d.ts.map +1 -1
  12. package/dist/contract/tool-view.d.ts +1 -1
  13. package/dist/contract/tool-view.d.ts.map +1 -1
  14. package/dist/contract/transports.d.ts +5 -0
  15. package/dist/contract/transports.d.ts.map +1 -0
  16. package/dist/entrypoints/agent-runtime/coding-tools.js +6 -5
  17. package/dist/entrypoints/agent-runtime/harness.js +6 -5
  18. package/dist/entrypoints/agent-runtime/sandbox.js +6 -5
  19. package/dist/entrypoints/agent-runtime/sqlite/bun.js +9 -8
  20. package/dist/entrypoints/agent-runtime/sqlite/node.js +9 -8
  21. package/dist/entrypoints/agent-runtime/testing.js +9 -8
  22. package/dist/entrypoints/agent-runtime.js +14 -13
  23. package/dist/entrypoints/application/diagnostic-journal.js +3 -3
  24. package/dist/entrypoints/application/directory-inbox.js +4 -4
  25. package/dist/entrypoints/application/opentelemetry.js +1 -1
  26. package/dist/entrypoints/application.js +5 -5
  27. package/dist/entrypoints/cli/publish.js +4 -4
  28. package/dist/entrypoints/cli.js +8 -7
  29. package/dist/entrypoints/contract.d.ts +1 -1
  30. package/dist/entrypoints/contract.d.ts.map +1 -1
  31. package/dist/entrypoints/contract.js +6 -4
  32. package/dist/entrypoints/files.js +3 -3
  33. package/dist/entrypoints/geo/contract.d.ts +7 -0
  34. package/dist/entrypoints/geo/contract.d.ts.map +1 -0
  35. package/dist/entrypoints/geo/contract.js +6 -0
  36. package/dist/entrypoints/geo.js +60 -23
  37. package/dist/entrypoints/http.js +2 -2
  38. package/dist/entrypoints/index.js +8 -6
  39. package/dist/entrypoints/live.js +1 -1
  40. package/dist/entrypoints/node.js +7 -6
  41. package/dist/entrypoints/primitives.js +1 -1
  42. package/dist/entrypoints/process/owner-loss.js +1 -1
  43. package/dist/entrypoints/process.js +3 -3
  44. package/dist/entrypoints/react.js +1 -1
  45. package/dist/entrypoints/remote.js +4 -3
  46. package/dist/entrypoints/server.js +11 -10
  47. package/dist/entrypoints/telegram.js +2 -2
  48. package/dist/entrypoints/testing.js +7 -6
  49. package/dist/entrypoints/tools/connections.js +3 -2
  50. package/dist/entrypoints/tools/contract.js +1 -1
  51. package/dist/entrypoints/tools/invoker.js +5 -4
  52. package/dist/entrypoints/tools/mcp.js +7 -6
  53. package/dist/entrypoints/tools.js +17 -15
  54. package/dist/entrypoints/tracking/contract.js +5 -3
  55. package/dist/entrypoints/tracking/performance.js +3 -3
  56. package/dist/entrypoints/tracking.d.ts +1 -1
  57. package/dist/entrypoints/tracking.d.ts.map +1 -1
  58. package/dist/entrypoints/tracking.js +63 -83
  59. package/dist/entrypoints/xlsx.js +1 -1
  60. package/dist/geo/index.d.ts +2 -1
  61. package/dist/geo/index.d.ts.map +1 -1
  62. package/dist/geo/record.d.ts +8 -0
  63. package/dist/geo/record.d.ts.map +1 -0
  64. package/dist/geo/resolver.d.ts +1 -3
  65. package/dist/geo/resolver.d.ts.map +1 -1
  66. package/dist/geo/schema.d.ts +44 -0
  67. package/dist/geo/schema.d.ts.map +1 -0
  68. package/dist/geo/types.d.ts +2 -13
  69. package/dist/geo/types.d.ts.map +1 -1
  70. package/dist/{index-n5sv4z0w.js → index-1k18qzqa.js} +13 -15
  71. package/dist/{index-tsngj2b5.js → index-2dfvv1jg.js} +206 -206
  72. package/dist/{index-d9hq291n.js → index-4jpykzvw.js} +70 -81
  73. package/dist/{index-ghtpfz4z.js → index-57gqaq8b.js} +2 -2
  74. package/dist/index-69t14s4a.js +39 -0
  75. package/dist/{index-6p3frkv5.js → index-6a69xzrx.js} +4 -4
  76. package/dist/{index-dky0dcmf.js → index-72r9k0av.js} +6 -2
  77. package/dist/{index-vv1sch8a.js → index-8vzh5wpv.js} +13 -8
  78. package/dist/{index-xx1j310k.js → index-8yxgcyt6.js} +171 -169
  79. package/dist/{index-p6apg0jg.js → index-9frf01t9.js} +16 -9
  80. package/dist/{index-q0th8q0z.js → index-9mjrnqxs.js} +1 -3
  81. package/dist/{index-ega3yz4c.js → index-aqwg2dm5.js} +1 -1
  82. package/dist/{index-073nw9qr.js → index-ba7are04.js} +524 -522
  83. package/dist/{index-095ya5hm.js → index-bbvc59gw.js} +13 -11
  84. package/dist/{index-txg1npmg.js → index-cyxp8rbf.js} +1 -1
  85. package/dist/index-d3xdyjt6.js +38 -0
  86. package/dist/{index-n8z3rvzw.js → index-f4njz9j0.js} +3 -5
  87. package/dist/{index-90p34rts.js → index-fcqj44mb.js} +3 -1
  88. package/dist/{index-86nbfysb.js → index-ff39f9dr.js} +3 -3
  89. package/dist/{index-75ns2ybj.js → index-fqd4yqwd.js} +1 -1
  90. package/dist/{index-nqxrm176.js → index-g444vfz2.js} +1 -1
  91. package/dist/{index-vwhrnp67.js → index-kz9734jc.js} +3 -3
  92. package/dist/{index-dr3t5n1v.js → index-nn9qvkww.js} +46 -46
  93. package/dist/{index-qezhmp51.js → index-nz06qw5a.js} +3 -1
  94. package/dist/{index-1bx1xv1k.js → index-pfvde2fz.js} +5 -2
  95. package/dist/{index-s80awwsw.js → index-qch1vcaa.js} +3 -1
  96. package/dist/{index-cycp3r3e.js → index-rxcgp4b9.js} +2 -2
  97. package/dist/{index-w7jq3fz9.js → index-s0qjs6ee.js} +1198 -1196
  98. package/dist/{index-p0rf7sq9.js → index-s20s2mad.js} +209 -209
  99. package/dist/{index-v6vb5qx8.js → index-s3yxw6kt.js} +1 -1
  100. package/dist/{index-cqmqyjax.js → index-sa99p98w.js} +1 -1
  101. package/dist/{index-0gxvns6s.js → index-sba3e6m4.js} +1 -0
  102. package/dist/{index-f24bdt13.js → index-v1swr26p.js} +3 -1
  103. package/dist/{index-rhzkndr5.js → index-x4p3kw1p.js} +533 -530
  104. package/dist/{index-hdjmdwsj.js → index-x8d9fdeg.js} +513 -507
  105. package/dist/{index-htxh46ej.js → index-ycqhyars.js} +2 -2
  106. package/dist/{index-9bwcthxw.js → index-yj6saztf.js} +31 -13
  107. package/dist/{index-tdpmfks8.js → index-ynrf908v.js} +1 -1
  108. package/dist/{index-f6m4c545.js → index-zrdcmg6j.js} +4 -6
  109. package/dist/process/bun-child.d.ts +3 -2
  110. package/dist/process/bun-child.d.ts.map +1 -1
  111. package/dist/server/contract-method.d.ts.map +1 -1
  112. package/dist/tools/internal/surface-projector.d.ts.map +1 -1
  113. package/dist/tools/operations/async-operation-canonical-types.d.ts +1 -1
  114. package/dist/tracking/attribution.d.ts +21 -25
  115. package/dist/tracking/attribution.d.ts.map +1 -1
  116. package/dist/tracking/client-visit.d.ts +5 -7
  117. package/dist/tracking/client-visit.d.ts.map +1 -1
  118. package/dist/tracking/client.d.ts +2 -2
  119. package/dist/tracking/client.d.ts.map +1 -1
  120. package/dist/tracking/contract.d.ts +1 -1
  121. package/dist/tracking/host.d.ts +0 -1
  122. package/dist/tracking/host.d.ts.map +1 -1
  123. package/dist/tracking/privacy.d.ts +6 -0
  124. package/dist/tracking/privacy.d.ts.map +1 -1
  125. package/dist/tracking/schemas.d.ts +2 -2
  126. package/dist/tracking/schemas.d.ts.map +1 -1
  127. package/llms/contract.txt +46 -24
  128. package/llms/geo-contract.txt +23 -0
  129. package/llms/geo.txt +40 -4
  130. package/llms/stitchkit.txt +4 -3
  131. package/llms/tools.2.txt +2 -2
  132. package/llms/tools.3.txt +1 -1
  133. package/llms/tracking-contract.txt +1 -1
  134. package/llms/tracking.txt +27 -5
  135. package/llms/{upgrading-0.105.0-0.118.0.txt → upgrading-0.106.0-0.119.0.txt} +121 -410
  136. package/llms/upgrading-0.37.0-0.53.0.txt +969 -0
  137. package/llms/{upgrading-0.44.0-0.62.0.txt → upgrading-0.55.0-0.68.0.txt} +509 -528
  138. package/llms/{upgrading-0.63.0-0.83.0.txt → upgrading-0.69.0-0.95.0.txt} +506 -509
  139. package/llms/{upgrading-0.84.0-0.104.0.txt → upgrading-0.96.0-0.105.0.txt} +410 -506
  140. package/llms/upgrading.txt +5 -5
  141. package/llms-full.txt +247 -38
  142. package/llms.txt +10 -9
  143. package/package.json +23 -19
  144. package/llms/upgrading-0.37.0-0.44.0.txt +0 -444
@@ -8,17 +8,17 @@ import {
8
8
  validateResolvedInputRounds,
9
9
  presentationMetadata,
10
10
  prepareProjectedMcpTools
11
- } from "./index-rhzkndr5.js";
11
+ } from "./index-x4p3kw1p.js";
12
12
  import {
13
13
  parseToolCallArguments,
14
14
  toolResultFromError,
15
15
  observed
16
- } from "./index-v6vb5qx8.js";
16
+ } from "./index-s3yxw6kt.js";
17
17
  import {
18
18
  collectTools2,
19
19
  createToolRunner,
20
20
  formatToolError
21
- } from "./index-htxh46ej.js";
21
+ } from "./index-ycqhyars.js";
22
22
  import {
23
23
  DEFAULT_CORS_ALLOW_HEADERS2,
24
24
  DEFAULT_PROCESS_SIGNALS,
@@ -31,7 +31,7 @@ import {
31
31
  } from "./index-e6c2spsd.js";
32
32
  import {
33
33
  collectToolSurface
34
- } from "./index-86nbfysb.js";
34
+ } from "./index-ff39f9dr.js";
35
35
  import {
36
36
  runWithRequestContext2,
37
37
  getRequestContext2
@@ -174,6 +174,15 @@ function stampToolResult(result, stamp) {
174
174
  return { ...result, _meta: { ...result._meta, ...mcpCatalogMeta2(stamp) } };
175
175
  }
176
176
 
177
+ // src/tools/mcp/handler.ts
178
+ import {
179
+ createMcpHandler as createSdkMcpHandler,
180
+ hostHeaderValidationResponse,
181
+ localhostAllowedHostnames,
182
+ localhostAllowedOrigins,
183
+ originValidationResponse
184
+ } from "@modelcontextprotocol/server";
185
+
177
186
  // src/tools/mcp/mount.ts
178
187
  import {
179
188
  createRequestStateCodec,
@@ -911,13 +920,6 @@ function mountMcpResource2(server, resource) {
911
920
  }
912
921
 
913
922
  // src/tools/mcp/handler.ts
914
- import {
915
- createMcpHandler as createSdkMcpHandler,
916
- hostHeaderValidationResponse,
917
- localhostAllowedHostnames,
918
- localhostAllowedOrigins,
919
- originValidationResponse
920
- } from "@modelcontextprotocol/server";
921
923
  function jsonRpcError(code, message, status, headers) {
922
924
  return Response.json({ jsonrpc: "2.0", error: { code, message }, id: null }, { status, headers });
923
925
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ShutdownOptionsSchema2
3
- } from "./index-q0th8q0z.js";
3
+ } from "./index-9mjrnqxs.js";
4
4
  import {
5
5
  ApplicationIdSchema2,
6
6
  ApplicationSnapshotSchema2,
@@ -0,0 +1,38 @@
1
+ // src/geo/schema.ts
2
+ import { z } from "zod";
3
+ var GeoTextSchema = z.string().min(1);
4
+ var GeoNonnegativeIntegerSchema = z.number().int().nonnegative();
5
+ var GeoLocalizedNamesSchema = z.record(GeoTextSchema, GeoTextSchema).readonly();
6
+ var GeoLocalizedNameSetSchema = z.strictObject({
7
+ continent: GeoLocalizedNamesSchema.optional(),
8
+ country: GeoLocalizedNamesSchema.optional(),
9
+ registeredCountry: GeoLocalizedNamesSchema.optional(),
10
+ region: GeoLocalizedNamesSchema.optional(),
11
+ city: GeoLocalizedNamesSchema.optional()
12
+ }).readonly();
13
+ var GeoAttributionSchema2 = z.strictObject({
14
+ continentCode: GeoTextSchema.optional(),
15
+ continentName: GeoTextSchema.optional(),
16
+ continentGeonameId: GeoNonnegativeIntegerSchema.optional(),
17
+ countryCode: GeoTextSchema.optional(),
18
+ countryName: GeoTextSchema.optional(),
19
+ countryGeonameId: GeoNonnegativeIntegerSchema.optional(),
20
+ registeredCountryCode: GeoTextSchema.optional(),
21
+ registeredCountryName: GeoTextSchema.optional(),
22
+ registeredCountryGeonameId: GeoNonnegativeIntegerSchema.optional(),
23
+ regionCode: GeoTextSchema.optional(),
24
+ regionName: GeoTextSchema.optional(),
25
+ regionGeonameId: GeoNonnegativeIntegerSchema.optional(),
26
+ city: GeoTextSchema.optional(),
27
+ cityGeonameId: GeoNonnegativeIntegerSchema.optional(),
28
+ postalCode: GeoTextSchema.optional(),
29
+ latitude: z.number().min(-90).max(90).optional(),
30
+ longitude: z.number().min(-180).max(180).optional(),
31
+ timezone: GeoTextSchema.optional(),
32
+ accuracyRadiusKm: GeoNonnegativeIntegerSchema.optional(),
33
+ autonomousSystemNumber: z.number().optional(),
34
+ autonomousSystemOrganization: GeoTextSchema.optional(),
35
+ localizedNames: GeoLocalizedNameSetSchema.optional()
36
+ }).readonly();
37
+
38
+ export { GeoTextSchema, GeoAttributionSchema2 };
@@ -8,11 +8,6 @@ import {
8
8
  isRecord
9
9
  } from "./index-9jfdm5tg.js";
10
10
 
11
- // src/internal/process-instance.ts
12
- import { readFile as readFile2, readlink } from "node:fs/promises";
13
- import { platform as platform2 } from "node:os";
14
- import { z } from "zod";
15
-
16
11
  // src/internal/process-identity.ts
17
12
  import { execFile } from "node:child_process";
18
13
  import { readFile } from "node:fs/promises";
@@ -86,6 +81,9 @@ async function isZombieProcess(pid, seam = {}) {
86
81
  }
87
82
 
88
83
  // src/internal/process-instance.ts
84
+ import { readFile as readFile2, readlink } from "node:fs/promises";
85
+ import { platform as platform2 } from "node:os";
86
+ import { z } from "zod";
89
87
  var ProcessInstanceSchema2 = z.object({
90
88
  platform: z.enum(["linux", "darwin"]),
91
89
  bootId: z.string().min(1),
@@ -19,6 +19,9 @@ import {
19
19
  serializeCanonicalJson
20
20
  } from "./index-zsvzhjtk.js";
21
21
 
22
+ // src/tools/cli/manifest.ts
23
+ import { z as z2 } from "zod";
24
+
22
25
  // src/tools/cli/signature.ts
23
26
  import {
24
27
  createPrivateKey,
@@ -87,7 +90,6 @@ function cliSignatureAccepted2(verdict) {
87
90
  }
88
91
 
89
92
  // src/tools/cli/manifest.ts
90
- import { z as z2 } from "zod";
91
93
  var CliBuildTargetSchema2 = z2.object({
92
94
  platform: z2.string().min(1),
93
95
  arch: z2.string().min(1)
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  projectToolSurface
3
- } from "./index-rhzkndr5.js";
3
+ } from "./index-x4p3kw1p.js";
4
4
  import {
5
5
  contractToolMountable
6
- } from "./index-htxh46ej.js";
6
+ } from "./index-ycqhyars.js";
7
7
  import {
8
8
  runtimeToolMountable
9
- } from "./index-ega3yz4c.js";
9
+ } from "./index-aqwg2dm5.js";
10
10
 
11
11
  // src/tools/surface.ts
12
12
  function collectToolSurface({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withExclusiveLock2
3
- } from "./index-nqxrm176.js";
3
+ } from "./index-g444vfz2.js";
4
4
  import {
5
5
  readBoundedFile
6
6
  } from "./index-m616f0yz.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  attemptExclusiveLock
3
- } from "./index-tdpmfks8.js";
3
+ } from "./index-ynrf908v.js";
4
4
  import {
5
5
  sleep
6
6
  } from "./index-eemvahkc.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  assertUniqueToolName
3
- } from "./index-rhzkndr5.js";
3
+ } from "./index-x4p3kw1p.js";
4
4
  import {
5
5
  toolErrorFromResult
6
- } from "./index-v6vb5qx8.js";
6
+ } from "./index-s3yxw6kt.js";
7
7
  import {
8
8
  collectTools2,
9
9
  createToolRunner
10
- } from "./index-htxh46ej.js";
10
+ } from "./index-ycqhyars.js";
11
11
  import {
12
12
  AppError2
13
13
  } from "./index-qcn84byh.js";
@@ -11,7 +11,7 @@ import {
11
11
  spawnBunChild,
12
12
  spawnBunInheritedChild,
13
13
  ownerLossGuardEntry
14
- } from "./index-f6m4c545.js";
14
+ } from "./index-zrdcmg6j.js";
15
15
  import {
16
16
  errnoOf
17
17
  } from "./index-jj9228tt.js";
@@ -325,51 +325,6 @@ function waitForCommandClose(closed, timeoutMs) {
325
325
  return raceAbort(closed, deadline.signal).finally(() => deadline.cancel());
326
326
  }
327
327
 
328
- // src/process/cleanup.ts
329
- async function cleanupNativeCommand(input) {
330
- const signalled = Promise.resolve().then(input.signal);
331
- const teardown = () => input.transport?.destroy();
332
- const destroyed = signalled.then(teardown, teardown);
333
- const awaitRelease = async () => {
334
- if (!input.transport)
335
- return;
336
- try {
337
- await waitForCommandClose(input.transport.released, input.timeoutMs);
338
- } catch (cause) {
339
- throw new Error(`Command handles remained open: ${[...input.transport.pendingHandles].join(", ")}`, { cause });
340
- }
341
- };
342
- const released = signalled.then(awaitRelease, () => {
343
- return;
344
- });
345
- const stopped = async () => {
346
- const failed = { kind: "error", cause: input.error };
347
- if (!input.transport)
348
- return failed;
349
- await signalled.catch(() => {
350
- return;
351
- });
352
- const leader = await waitForCommandClose(input.transport.leader, input.timeoutMs).catch(() => {
353
- return;
354
- });
355
- return leader?.kind === "exit" ? {
356
- kind: "stopped",
357
- cause: input.error,
358
- exitCode: leader.exitCode,
359
- signal: leader.signal
360
- } : failed;
361
- };
362
- const cleanup = await Promise.allSettled([
363
- input.event ? input.settle(input.event) : stopped().then(input.settle),
364
- destroyed,
365
- signalled,
366
- released
367
- ]);
368
- const failures = cleanup.flatMap((item) => item.status === "rejected" && item.reason !== input.error ? [item.reason] : []);
369
- if (failures.length)
370
- throw commandCleanupError(new AggregateError([input.error, ...failures], "Command failed and cleanup failed"));
371
- }
372
-
373
328
  // src/process/command-lifetime.ts
374
329
  class CommandStopped extends DOMException {
375
330
  constructor() {
@@ -417,6 +372,51 @@ function createCommandLifetime(input) {
417
372
  };
418
373
  }
419
374
 
375
+ // src/process/cleanup.ts
376
+ async function cleanupNativeCommand(input) {
377
+ const signalled = Promise.resolve().then(input.signal);
378
+ const teardown = () => input.transport?.destroy();
379
+ const destroyed = signalled.then(teardown, teardown);
380
+ const awaitRelease = async () => {
381
+ if (!input.transport)
382
+ return;
383
+ try {
384
+ await waitForCommandClose(input.transport.released, input.timeoutMs);
385
+ } catch (cause) {
386
+ throw new Error(`Command handles remained open: ${[...input.transport.pendingHandles].join(", ")}`, { cause });
387
+ }
388
+ };
389
+ const released = signalled.then(awaitRelease, () => {
390
+ return;
391
+ });
392
+ const stopped = async () => {
393
+ const failed = { kind: "error", cause: input.error };
394
+ if (!input.transport)
395
+ return failed;
396
+ await signalled.catch(() => {
397
+ return;
398
+ });
399
+ const leader = await waitForCommandClose(input.transport.leader, input.timeoutMs).catch(() => {
400
+ return;
401
+ });
402
+ return leader?.kind === "exit" ? {
403
+ kind: "stopped",
404
+ cause: input.error,
405
+ exitCode: leader.exitCode,
406
+ signal: leader.signal
407
+ } : failed;
408
+ };
409
+ const cleanup = await Promise.allSettled([
410
+ input.event ? input.settle(input.event) : stopped().then(input.settle),
411
+ destroyed,
412
+ signalled,
413
+ released
414
+ ]);
415
+ const failures = cleanup.flatMap((item) => item.status === "rejected" && item.reason !== input.error ? [item.reason] : []);
416
+ if (failures.length)
417
+ throw commandCleanupError(new AggregateError([input.error, ...failures], "Command failed and cleanup failed"));
418
+ }
419
+
420
420
  // src/process/launch.ts
421
421
  import { Readable as Readable2 } from "node:stream";
422
422
 
@@ -62,6 +62,9 @@ var DecimalStringSchema2 = z.string().refine((value) => {
62
62
  }, "expected a canonical decimal string");
63
63
  var DecimalInputSchema2 = z.string().regex(DECIMAL_PATTERN, "expected a decimal string").transform((value) => formatDecimal(parseDecimal(value)));
64
64
 
65
+ // src/primitives/money.ts
66
+ import { z as z3 } from "zod";
67
+
65
68
  // src/primitives/rounding.ts
66
69
  import { z as z2 } from "zod";
67
70
  var RoundingModeSchema2 = z2.enum(["half-up", "half-even", "up", "down"]);
@@ -130,7 +133,6 @@ function roundDecimal2(value, policy) {
130
133
  }
131
134
 
132
135
  // src/primitives/money.ts
133
- import { z as z3 } from "zod";
134
136
  var IntegerStringSchema = z3.string().regex(/^-?(?:0|[1-9]\d*)$/);
135
137
  function createMoneySchema2(currency) {
136
138
  return z3.object({
@@ -1,3 +1,7 @@
1
+ import {
2
+ HTTP_ONLY_EXPOSURE,
3
+ isHttpOnlyEndpoint
4
+ } from "./index-69t14s4a.js";
1
5
  import {
2
6
  resolveRouteParamsSchema
3
7
  } from "./index-m38ej7e5.js";
@@ -12,7 +16,6 @@ function mergeMeta(contractMeta, endpointMeta) {
12
16
  }
13
17
 
14
18
  // src/server/contract-method.ts
15
- var HTTP_ONLY = Object.freeze(["HTTP"]);
16
19
  function contractMethodFields(contract, key, endpoint) {
17
20
  const groupScope = contract.meta.scope ?? "public";
18
21
  return {
@@ -22,7 +25,7 @@ function contractMethodFields(contract, key, endpoint) {
22
25
  serviceName: contract.meta.prefix,
23
26
  key,
24
27
  toolName: endpoint.tool?.name,
25
- expose: endpoint.rawResponse || endpoint.rawBody || endpoint.responseMeta || "stream" in endpoint && endpoint.stream ? HTTP_ONLY : endpoint.expose,
28
+ expose: endpoint.expose ?? (isHttpOnlyEndpoint(endpoint) ? HTTP_ONLY_EXPOSURE : undefined),
26
29
  scope: endpoint.scope ?? groupScope,
27
30
  paramsSchema: resolveRouteParamsSchema(endpoint.path, endpoint.params),
28
31
  inputSchema: endpoint.input,
@@ -9,6 +9,9 @@ import {
9
9
  isRecord
10
10
  } from "./index-9jfdm5tg.js";
11
11
 
12
+ // src/live/watch-contract.ts
13
+ import { z as z2 } from "zod";
14
+
12
15
  // src/live/watch-delta.ts
13
16
  import { z } from "zod";
14
17
  var WatchDeltaSchema2 = z.lazy(() => z.union([
@@ -172,7 +175,6 @@ function deltaWins(delta, value) {
172
175
  }
173
176
 
174
177
  // src/live/watch-contract.ts
175
- import { z as z2 } from "zod";
176
178
  var WatchKeySchema2 = z2.object({
177
179
  service: z2.string().min(1),
178
180
  instance: z2.string().min(1).max(128).optional(),
@@ -4,7 +4,7 @@ import {
4
4
  AgentSandboxRestrictionSchema2,
5
5
  AgentSandboxGradeSchema2,
6
6
  AGENT_CODING_TOOL_NAMES
7
- } from "./index-n5sv4z0w.js";
7
+ } from "./index-1k18qzqa.js";
8
8
  import {
9
9
  AgentRecordIdSchema2,
10
10
  AgentRecordVersionSchema2,
@@ -45,7 +45,7 @@ import {
45
45
  AgentSeedReceiptSchema2,
46
46
  isActiveRunState,
47
47
  emptyHead
48
- } from "./index-xx1j310k.js";
48
+ } from "./index-8yxgcyt6.js";
49
49
  import {
50
50
  StepEventPayloadSchema,
51
51
  ParkEventPayloadSchema,