@openai/agents-extensions 0.8.5 → 0.9.1

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 (213) hide show
  1. package/dist/metadata.js +2 -2
  2. package/dist/metadata.mjs +2 -2
  3. package/dist/sandbox/blaxel/index.d.ts +2 -0
  4. package/dist/sandbox/blaxel/index.js +19 -0
  5. package/dist/sandbox/blaxel/index.js.map +1 -0
  6. package/dist/sandbox/blaxel/index.mjs +3 -0
  7. package/dist/sandbox/blaxel/index.mjs.map +1 -0
  8. package/dist/sandbox/blaxel/mounts.d.ts +101 -0
  9. package/dist/sandbox/blaxel/mounts.js +542 -0
  10. package/dist/sandbox/blaxel/mounts.js.map +1 -0
  11. package/dist/sandbox/blaxel/mounts.mjs +529 -0
  12. package/dist/sandbox/blaxel/mounts.mjs.map +1 -0
  13. package/dist/sandbox/blaxel/sandbox.d.ts +155 -0
  14. package/dist/sandbox/blaxel/sandbox.js +1110 -0
  15. package/dist/sandbox/blaxel/sandbox.js.map +1 -0
  16. package/dist/sandbox/blaxel/sandbox.mjs +1072 -0
  17. package/dist/sandbox/blaxel/sandbox.mjs.map +1 -0
  18. package/dist/sandbox/cloudflare/index.d.ts +2 -0
  19. package/dist/sandbox/cloudflare/index.js +19 -0
  20. package/dist/sandbox/cloudflare/index.js.map +1 -0
  21. package/dist/sandbox/cloudflare/index.mjs +3 -0
  22. package/dist/sandbox/cloudflare/index.mjs.map +1 -0
  23. package/dist/sandbox/cloudflare/mounts.d.ts +28 -0
  24. package/dist/sandbox/cloudflare/mounts.js +150 -0
  25. package/dist/sandbox/cloudflare/mounts.js.map +1 -0
  26. package/dist/sandbox/cloudflare/mounts.mjs +143 -0
  27. package/dist/sandbox/cloudflare/mounts.mjs.map +1 -0
  28. package/dist/sandbox/cloudflare/sandbox.d.ts +91 -0
  29. package/dist/sandbox/cloudflare/sandbox.js +1163 -0
  30. package/dist/sandbox/cloudflare/sandbox.js.map +1 -0
  31. package/dist/sandbox/cloudflare/sandbox.mjs +1125 -0
  32. package/dist/sandbox/cloudflare/sandbox.mjs.map +1 -0
  33. package/dist/sandbox/daytona/index.d.ts +2 -0
  34. package/dist/sandbox/daytona/index.js +19 -0
  35. package/dist/sandbox/daytona/index.js.map +1 -0
  36. package/dist/sandbox/daytona/index.mjs +3 -0
  37. package/dist/sandbox/daytona/index.mjs.map +1 -0
  38. package/dist/sandbox/daytona/mounts.d.ts +11 -0
  39. package/dist/sandbox/daytona/mounts.js +17 -0
  40. package/dist/sandbox/daytona/mounts.js.map +1 -0
  41. package/dist/sandbox/daytona/mounts.mjs +12 -0
  42. package/dist/sandbox/daytona/mounts.mjs.map +1 -0
  43. package/dist/sandbox/daytona/sandbox.d.ts +160 -0
  44. package/dist/sandbox/daytona/sandbox.js +938 -0
  45. package/dist/sandbox/daytona/sandbox.js.map +1 -0
  46. package/dist/sandbox/daytona/sandbox.mjs +900 -0
  47. package/dist/sandbox/daytona/sandbox.mjs.map +1 -0
  48. package/dist/sandbox/e2b/index.d.ts +2 -0
  49. package/dist/sandbox/e2b/index.js +19 -0
  50. package/dist/sandbox/e2b/index.js.map +1 -0
  51. package/dist/sandbox/e2b/index.mjs +3 -0
  52. package/dist/sandbox/e2b/index.mjs.map +1 -0
  53. package/dist/sandbox/e2b/mounts.d.ts +11 -0
  54. package/dist/sandbox/e2b/mounts.js +17 -0
  55. package/dist/sandbox/e2b/mounts.js.map +1 -0
  56. package/dist/sandbox/e2b/mounts.mjs +12 -0
  57. package/dist/sandbox/e2b/mounts.mjs.map +1 -0
  58. package/dist/sandbox/e2b/sandbox.d.ts +169 -0
  59. package/dist/sandbox/e2b/sandbox.js +829 -0
  60. package/dist/sandbox/e2b/sandbox.js.map +1 -0
  61. package/dist/sandbox/e2b/sandbox.mjs +791 -0
  62. package/dist/sandbox/e2b/sandbox.mjs.map +1 -0
  63. package/dist/sandbox/modal/index.d.ts +2 -0
  64. package/dist/sandbox/modal/index.js +19 -0
  65. package/dist/sandbox/modal/index.js.map +1 -0
  66. package/dist/sandbox/modal/index.mjs +3 -0
  67. package/dist/sandbox/modal/index.mjs.map +1 -0
  68. package/dist/sandbox/modal/mounts.d.ts +24 -0
  69. package/dist/sandbox/modal/mounts.js +194 -0
  70. package/dist/sandbox/modal/mounts.js.map +1 -0
  71. package/dist/sandbox/modal/mounts.mjs +188 -0
  72. package/dist/sandbox/modal/mounts.mjs.map +1 -0
  73. package/dist/sandbox/modal/sandbox.d.ts +220 -0
  74. package/dist/sandbox/modal/sandbox.js +1621 -0
  75. package/dist/sandbox/modal/sandbox.js.map +1 -0
  76. package/dist/sandbox/modal/sandbox.mjs +1581 -0
  77. package/dist/sandbox/modal/sandbox.mjs.map +1 -0
  78. package/dist/sandbox/runloop/index.d.ts +2 -0
  79. package/dist/sandbox/runloop/index.js +19 -0
  80. package/dist/sandbox/runloop/index.js.map +1 -0
  81. package/dist/sandbox/runloop/index.mjs +3 -0
  82. package/dist/sandbox/runloop/index.mjs.map +1 -0
  83. package/dist/sandbox/runloop/mounts.d.ts +11 -0
  84. package/dist/sandbox/runloop/mounts.js +17 -0
  85. package/dist/sandbox/runloop/mounts.js.map +1 -0
  86. package/dist/sandbox/runloop/mounts.mjs +12 -0
  87. package/dist/sandbox/runloop/mounts.mjs.map +1 -0
  88. package/dist/sandbox/runloop/sandbox.d.ts +266 -0
  89. package/dist/sandbox/runloop/sandbox.js +1390 -0
  90. package/dist/sandbox/runloop/sandbox.js.map +1 -0
  91. package/dist/sandbox/runloop/sandbox.mjs +1346 -0
  92. package/dist/sandbox/runloop/sandbox.mjs.map +1 -0
  93. package/dist/sandbox/shared/archive.d.ts +34 -0
  94. package/dist/sandbox/shared/archive.js +397 -0
  95. package/dist/sandbox/shared/archive.js.map +1 -0
  96. package/dist/sandbox/shared/archive.mjs +389 -0
  97. package/dist/sandbox/shared/archive.mjs.map +1 -0
  98. package/dist/sandbox/shared/editor.d.ts +17 -0
  99. package/dist/sandbox/shared/editor.js +65 -0
  100. package/dist/sandbox/shared/editor.js.map +1 -0
  101. package/dist/sandbox/shared/editor.mjs +61 -0
  102. package/dist/sandbox/shared/editor.mjs.map +1 -0
  103. package/dist/sandbox/shared/environment.d.ts +1 -0
  104. package/dist/sandbox/shared/environment.js +13 -0
  105. package/dist/sandbox/shared/environment.js.map +1 -0
  106. package/dist/sandbox/shared/environment.mjs +2 -0
  107. package/dist/sandbox/shared/environment.mjs.map +1 -0
  108. package/dist/sandbox/shared/git.d.ts +4 -0
  109. package/dist/sandbox/shared/git.js +20 -0
  110. package/dist/sandbox/shared/git.js.map +1 -0
  111. package/dist/sandbox/shared/git.mjs +17 -0
  112. package/dist/sandbox/shared/git.mjs.map +1 -0
  113. package/dist/sandbox/shared/inContainerMounts.d.ts +40 -0
  114. package/dist/sandbox/shared/inContainerMounts.js +670 -0
  115. package/dist/sandbox/shared/inContainerMounts.js.map +1 -0
  116. package/dist/sandbox/shared/inContainerMounts.mjs +662 -0
  117. package/dist/sandbox/shared/inContainerMounts.mjs.map +1 -0
  118. package/dist/sandbox/shared/index.d.ts +23 -0
  119. package/dist/sandbox/shared/index.js +112 -0
  120. package/dist/sandbox/shared/index.js.map +1 -0
  121. package/dist/sandbox/shared/index.mjs +18 -0
  122. package/dist/sandbox/shared/index.mjs.map +1 -0
  123. package/dist/sandbox/shared/localSources.d.ts +8 -0
  124. package/dist/sandbox/shared/localSources.js +378 -0
  125. package/dist/sandbox/shared/localSources.js.map +1 -0
  126. package/dist/sandbox/shared/localSources.mjs +372 -0
  127. package/dist/sandbox/shared/localSources.mjs.map +1 -0
  128. package/dist/sandbox/shared/manifest.d.ts +38 -0
  129. package/dist/sandbox/shared/manifest.js +254 -0
  130. package/dist/sandbox/shared/manifest.js.map +1 -0
  131. package/dist/sandbox/shared/manifest.mjs +233 -0
  132. package/dist/sandbox/shared/manifest.mjs.map +1 -0
  133. package/dist/sandbox/shared/media.d.ts +1 -0
  134. package/dist/sandbox/shared/media.js +10 -0
  135. package/dist/sandbox/shared/media.js.map +1 -0
  136. package/dist/sandbox/shared/media.mjs +2 -0
  137. package/dist/sandbox/shared/media.mjs.map +1 -0
  138. package/dist/sandbox/shared/metadata.d.ts +7 -0
  139. package/dist/sandbox/shared/metadata.js +87 -0
  140. package/dist/sandbox/shared/metadata.js.map +1 -0
  141. package/dist/sandbox/shared/metadata.mjs +81 -0
  142. package/dist/sandbox/shared/metadata.mjs.map +1 -0
  143. package/dist/sandbox/shared/output.d.ts +1 -0
  144. package/dist/sandbox/shared/output.js +8 -0
  145. package/dist/sandbox/shared/output.js.map +1 -0
  146. package/dist/sandbox/shared/output.mjs +2 -0
  147. package/dist/sandbox/shared/output.mjs.map +1 -0
  148. package/dist/sandbox/shared/paths.d.ts +27 -0
  149. package/dist/sandbox/shared/paths.js +245 -0
  150. package/dist/sandbox/shared/paths.js.map +1 -0
  151. package/dist/sandbox/shared/paths.mjs +236 -0
  152. package/dist/sandbox/shared/paths.mjs.map +1 -0
  153. package/dist/sandbox/shared/ports.d.ts +14 -0
  154. package/dist/sandbox/shared/ports.js +75 -0
  155. package/dist/sandbox/shared/ports.js.map +1 -0
  156. package/dist/sandbox/shared/ports.mjs +69 -0
  157. package/dist/sandbox/shared/ports.mjs.map +1 -0
  158. package/dist/sandbox/shared/process.d.ts +16 -0
  159. package/dist/sandbox/shared/process.js +90 -0
  160. package/dist/sandbox/shared/process.js.map +1 -0
  161. package/dist/sandbox/shared/process.mjs +86 -0
  162. package/dist/sandbox/shared/process.mjs.map +1 -0
  163. package/dist/sandbox/shared/pty.d.ts +81 -0
  164. package/dist/sandbox/shared/pty.js +382 -0
  165. package/dist/sandbox/shared/pty.js.map +1 -0
  166. package/dist/sandbox/shared/pty.mjs +335 -0
  167. package/dist/sandbox/shared/pty.mjs.map +1 -0
  168. package/dist/sandbox/shared/runAs.d.ts +46 -0
  169. package/dist/sandbox/shared/runAs.js +149 -0
  170. package/dist/sandbox/shared/runAs.js.map +1 -0
  171. package/dist/sandbox/shared/runAs.mjs +141 -0
  172. package/dist/sandbox/shared/runAs.mjs.map +1 -0
  173. package/dist/sandbox/shared/session.d.ts +16 -0
  174. package/dist/sandbox/shared/session.js +138 -0
  175. package/dist/sandbox/shared/session.js.map +1 -0
  176. package/dist/sandbox/shared/session.mjs +128 -0
  177. package/dist/sandbox/shared/session.mjs.map +1 -0
  178. package/dist/sandbox/shared/sessionBase.d.ts +90 -0
  179. package/dist/sandbox/shared/sessionBase.js +446 -0
  180. package/dist/sandbox/shared/sessionBase.js.map +1 -0
  181. package/dist/sandbox/shared/sessionBase.mjs +442 -0
  182. package/dist/sandbox/shared/sessionBase.mjs.map +1 -0
  183. package/dist/sandbox/shared/sessionState.d.ts +7 -0
  184. package/dist/sandbox/shared/sessionState.js +35 -0
  185. package/dist/sandbox/shared/sessionState.js.map +1 -0
  186. package/dist/sandbox/shared/sessionState.mjs +31 -0
  187. package/dist/sandbox/shared/sessionState.mjs.map +1 -0
  188. package/dist/sandbox/shared/snapshots.d.ts +9 -0
  189. package/dist/sandbox/shared/snapshots.js +62 -0
  190. package/dist/sandbox/shared/snapshots.js.map +1 -0
  191. package/dist/sandbox/shared/snapshots.mjs +57 -0
  192. package/dist/sandbox/shared/snapshots.mjs.map +1 -0
  193. package/dist/sandbox/shared/typeGuards.d.ts +10 -0
  194. package/dist/sandbox/shared/typeGuards.js +50 -0
  195. package/dist/sandbox/shared/typeGuards.js.map +1 -0
  196. package/dist/sandbox/shared/typeGuards.mjs +38 -0
  197. package/dist/sandbox/shared/typeGuards.mjs.map +1 -0
  198. package/dist/sandbox/shared/types.d.ts +24 -0
  199. package/dist/sandbox/shared/types.js +3 -0
  200. package/dist/sandbox/shared/types.js.map +1 -0
  201. package/dist/sandbox/shared/types.mjs +2 -0
  202. package/dist/sandbox/shared/types.mjs.map +1 -0
  203. package/dist/sandbox/vercel/index.d.ts +1 -0
  204. package/dist/sandbox/vercel/index.js +18 -0
  205. package/dist/sandbox/vercel/index.js.map +1 -0
  206. package/dist/sandbox/vercel/index.mjs +2 -0
  207. package/dist/sandbox/vercel/index.mjs.map +1 -0
  208. package/dist/sandbox/vercel/sandbox.d.ts +135 -0
  209. package/dist/sandbox/vercel/sandbox.js +1001 -0
  210. package/dist/sandbox/vercel/sandbox.js.map +1 -0
  211. package/dist/sandbox/vercel/sandbox.mjs +963 -0
  212. package/dist/sandbox/vercel/sandbox.mjs.map +1 -0
  213. package/package.json +108 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inContainerMounts.mjs","sourceRoot":"","sources":["../../../src/sandbox/shared/inContainerMounts.ts"],"names":[],"mappings":"OAAO,EACL,iBAAiB,EACjB,8BAA8B,GAS/B,MAAM,6BAA6B;OAC7B,EAAE,UAAU,EAAE;OACd,EAAE,kBAAkB,EAAE;AAmD7B,MAAM,wBAAwB,GAAyB,CAAC,KAAK,CAAC,CAAC;AAC/D,MAAM,0BAA0B,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;EAgB3C,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,KAAY,EACZ,YAAoB;IAEpB,OAAO,CACL,mBAAmB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,EAAE,IAAI,KAAK,YAAY,CACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,QAAmC;IAEnC,MAAM,OAAO,GAAI,QAA8C,EAAE,OAAO,CAAC;IACzE,IAAI,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,OAAsC;IAEtC,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,8BAA8B,CACtC,GAAG,OAAO,CAAC,YAAY,kBAAkB,OAAO,CAAC,YAAY,sDAAsD,EACnH;YACE,QAAQ,EA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AO,IAAI,IAAI,OAAO,CAAC;AACzB,CAAC;AAED,SAAS,sBAAsB,CAAC,IAAwB;IACtD,OAAO,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,23 @@
1
+ export { RemoteSandboxEditor } from './editor';
2
+ export { assertTarWorkspacePersistence, hydrateRemoteWorkspaceTar, persistRemoteWorkspaceTar, toWorkspaceArchiveBytes, validateWorkspaceTarArchive, workspaceTarExcludeArgs, } from './archive';
3
+ export { assertShellEnvironmentName, deserializePersistedEnvironmentForRuntime, materializeEnvironment, mergeMaterializedEnvironment, serializeManifestEnvironment, serializeRuntimeEnvironmentForPersistence, } from './environment';
4
+ export { normalizeGitRepository } from './git';
5
+ export { cloneManifestWithRoot, cloneManifestWithoutMountEntries, deserializeManifest, applyInlineManifestEntryToState, applyInlineManifestToState, entryContainsLocalSource, materializeInlineManifestEntry, materializeInlineManifest, manifestContainsLocalSource, mergeManifestDelta, mergeManifestEntryDelta, serializeManifestRecord, } from './manifest';
6
+ export type { ManifestMaterializationOptions } from './manifest';
7
+ export { assertSandboxEntryMetadataSupported, assertSandboxManifestMetadataSupported, MOUNT_MANIFEST_METADATA_SUPPORT, SANDBOX_MANIFEST_METADATA_SUPPORT, sandboxEntryPermissionsMode, } from './metadata';
8
+ export { assertViewImageByteLength, imageOutputFromBytes, MAX_VIEW_IMAGE_BYTES, sniffImageMediaType, toUint8Array, } from './media';
9
+ export { elapsedSeconds, formatExecResponse, truncateOutput } from './output';
10
+ export { assertConfiguredExposedPort, getCachedExposedPortEndpoint, parseExposedPortEndpoint, recordResolvedExposedPortEndpoint, } from './ports';
11
+ export { addPtyWebSocketListener, appendPtyOutput, createPtyProcessEntry, formatPtyExecUpdate, markPtyDone, openPtyWebSocket, PtyProcessRegistry, shellCommandForPty, watchPtyProcess, writePtyStdin, } from './pty';
12
+ export { resolveSandboxAbsolutePath, resolveSandboxRelativePath, resolveSandboxWorkdir, posixDirname, shellQuote, validateRemoteSandboxPath, validateRemoteSandboxPathForManifest, } from './paths';
13
+ export { assertCoreConcurrencyLimitsUnsupported, assertCoreSnapshotUnsupported, assertResumeRecreateAllowed, assertRunAsUnsupported, closeRemoteSessionOnManifestError, isProviderSandboxNotFoundError, withProviderError, withSandboxSpan, } from './session';
14
+ export { createRunAsRemoteEditor, manifestMaterializationOptionsWithRunAs, readRunAsRemoteFile, runAsRemotePathExists, sandboxUserShellCommand, writeRunAsRemoteText, type RemoteRunAsCommandResult, type RemoteRunAsCommandRunner, } from './runAs';
15
+ export { RemoteSandboxSessionBase, type RemoteSandboxCommandKind, type RemoteSandboxCommandOptions, type RemoteSandboxCommandResult, type RemoteSandboxSessionBaseOptions, } from './sessionBase';
16
+ export { deserializeRemoteSandboxSessionStateValues, serializeRemoteSandboxSessionState, } from './sessionState';
17
+ export { isRecord, isStringRecord, readOptionalBoolean, readOptionalNumber, readOptionalNumberArray, readOptionalRecord, readOptionalRecordArray, readOptionalString, readOptionalStringRecord, readString, } from './typeGuards';
18
+ export { decodeNativeSnapshotRef, encodeNativeSnapshotRef, requireNativeSnapshotRef, } from './snapshots';
19
+ export type { NativeSnapshotProvider, NativeSnapshotRef } from './snapshots';
20
+ export type { PtyProcessEntry, PtyWebSocket } from './pty';
21
+ export type { RemoteWorkspaceTarCommandResult, RemoteWorkspaceTarIo, WorkspaceTarValidationOptions, } from './archive';
22
+ export type { RemoteEditorIo, RemoteManifestWriter, RemoteSandboxPathOptions, RemoteSandboxPathResolver, SandboxManifestMetadataSupport, } from './types';
23
+ export type { RemoteSandboxSessionStateValues } from './sessionState';
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PtyProcessRegistry = exports.openPtyWebSocket = exports.markPtyDone = exports.formatPtyExecUpdate = exports.createPtyProcessEntry = exports.appendPtyOutput = exports.addPtyWebSocketListener = exports.recordResolvedExposedPortEndpoint = exports.parseExposedPortEndpoint = exports.getCachedExposedPortEndpoint = exports.assertConfiguredExposedPort = exports.truncateOutput = exports.formatExecResponse = exports.elapsedSeconds = exports.toUint8Array = exports.sniffImageMediaType = exports.MAX_VIEW_IMAGE_BYTES = exports.imageOutputFromBytes = exports.assertViewImageByteLength = exports.sandboxEntryPermissionsMode = exports.SANDBOX_MANIFEST_METADATA_SUPPORT = exports.MOUNT_MANIFEST_METADATA_SUPPORT = exports.assertSandboxManifestMetadataSupported = exports.assertSandboxEntryMetadataSupported = exports.serializeManifestRecord = exports.mergeManifestEntryDelta = exports.mergeManifestDelta = exports.manifestContainsLocalSource = exports.materializeInlineManifest = exports.materializeInlineManifestEntry = exports.entryContainsLocalSource = exports.applyInlineManifestToState = exports.applyInlineManifestEntryToState = exports.deserializeManifest = exports.cloneManifestWithoutMountEntries = exports.cloneManifestWithRoot = exports.normalizeGitRepository = exports.serializeRuntimeEnvironmentForPersistence = exports.serializeManifestEnvironment = exports.mergeMaterializedEnvironment = exports.materializeEnvironment = exports.deserializePersistedEnvironmentForRuntime = exports.assertShellEnvironmentName = exports.workspaceTarExcludeArgs = exports.validateWorkspaceTarArchive = exports.toWorkspaceArchiveBytes = exports.persistRemoteWorkspaceTar = exports.hydrateRemoteWorkspaceTar = exports.assertTarWorkspacePersistence = exports.RemoteSandboxEditor = void 0;
4
+ exports.requireNativeSnapshotRef = exports.encodeNativeSnapshotRef = exports.decodeNativeSnapshotRef = exports.readString = exports.readOptionalStringRecord = exports.readOptionalString = exports.readOptionalRecordArray = exports.readOptionalRecord = exports.readOptionalNumberArray = exports.readOptionalNumber = exports.readOptionalBoolean = exports.isStringRecord = exports.isRecord = exports.serializeRemoteSandboxSessionState = exports.deserializeRemoteSandboxSessionStateValues = exports.RemoteSandboxSessionBase = exports.writeRunAsRemoteText = exports.sandboxUserShellCommand = exports.runAsRemotePathExists = exports.readRunAsRemoteFile = exports.manifestMaterializationOptionsWithRunAs = exports.createRunAsRemoteEditor = exports.withSandboxSpan = exports.withProviderError = exports.isProviderSandboxNotFoundError = exports.closeRemoteSessionOnManifestError = exports.assertRunAsUnsupported = exports.assertResumeRecreateAllowed = exports.assertCoreSnapshotUnsupported = exports.assertCoreConcurrencyLimitsUnsupported = exports.validateRemoteSandboxPathForManifest = exports.validateRemoteSandboxPath = exports.shellQuote = exports.posixDirname = exports.resolveSandboxWorkdir = exports.resolveSandboxRelativePath = exports.resolveSandboxAbsolutePath = exports.writePtyStdin = exports.watchPtyProcess = exports.shellCommandForPty = void 0;
5
+ var editor_1 = require("./editor.js");
6
+ Object.defineProperty(exports, "RemoteSandboxEditor", { enumerable: true, get: function () { return editor_1.RemoteSandboxEditor; } });
7
+ var archive_1 = require("./archive.js");
8
+ Object.defineProperty(exports, "assertTarWorkspacePersistence", { enumerable: true, get: function () { return archive_1.assertTarWorkspacePersistence; } });
9
+ Object.defineProperty(exports, "hydrateRemoteWorkspaceTar", { enumerable: true, get: function () { return archive_1.hydrateRemoteWorkspaceTar; } });
10
+ Object.defineProperty(exports, "persistRemoteWorkspaceTar", { enumerable: true, get: function () { return archive_1.persistRemoteWorkspaceTar; } });
11
+ Object.defineProperty(exports, "toWorkspaceArchiveBytes", { enumerable: true, get: function () { return archive_1.toWorkspaceArchiveBytes; } });
12
+ Object.defineProperty(exports, "validateWorkspaceTarArchive", { enumerable: true, get: function () { return archive_1.validateWorkspaceTarArchive; } });
13
+ Object.defineProperty(exports, "workspaceTarExcludeArgs", { enumerable: true, get: function () { return archive_1.workspaceTarExcludeArgs; } });
14
+ var environment_1 = require("./environment.js");
15
+ Object.defineProperty(exports, "assertShellEnvironmentName", { enumerable: true, get: function () { return environment_1.assertShellEnvironmentName; } });
16
+ Object.defineProperty(exports, "deserializePersistedEnvironmentForRuntime", { enumerable: true, get: function () { return environment_1.deserializePersistedEnvironmentForRuntime; } });
17
+ Object.defineProperty(exports, "materializeEnvironment", { enumerable: true, get: function () { return environment_1.materializeEnvironment; } });
18
+ Object.defineProperty(exports, "mergeMaterializedEnvironment", { enumerable: true, get: function () { return environment_1.mergeMaterializedEnvironment; } });
19
+ Object.defineProperty(exports, "serializeManifestEnvironment", { enumerable: true, get: function () { return environment_1.serializeManifestEnvironment; } });
20
+ Object.defineProperty(exports, "serializeRuntimeEnvironmentForPersistence", { enumerable: true, get: function () { return environment_1.serializeRuntimeEnvironmentForPersistence; } });
21
+ var git_1 = require("./git.js");
22
+ Object.defineProperty(exports, "normalizeGitRepository", { enumerable: true, get: function () { return git_1.normalizeGitRepository; } });
23
+ var manifest_1 = require("./manifest.js");
24
+ Object.defineProperty(exports, "cloneManifestWithRoot", { enumerable: true, get: function () { return manifest_1.cloneManifestWithRoot; } });
25
+ Object.defineProperty(exports, "cloneManifestWithoutMountEntries", { enumerable: true, get: function () { return manifest_1.cloneManifestWithoutMountEntries; } });
26
+ Object.defineProperty(exports, "deserializeManifest", { enumerable: true, get: function () { return manifest_1.deserializeManifest; } });
27
+ Object.defineProperty(exports, "applyInlineManifestEntryToState", { enumerable: true, get: function () { return manifest_1.applyInlineManifestEntryToState; } });
28
+ Object.defineProperty(exports, "applyInlineManifestToState", { enumerable: true, get: function () { return manifest_1.applyInlineManifestToState; } });
29
+ Object.defineProperty(exports, "entryContainsLocalSource", { enumerable: true, get: function () { return manifest_1.entryContainsLocalSource; } });
30
+ Object.defineProperty(exports, "materializeInlineManifestEntry", { enumerable: true, get: function () { return manifest_1.materializeInlineManifestEntry; } });
31
+ Object.defineProperty(exports, "materializeInlineManifest", { enumerable: true, get: function () { return manifest_1.materializeInlineManifest; } });
32
+ Object.defineProperty(exports, "manifestContainsLocalSource", { enumerable: true, get: function () { return manifest_1.manifestContainsLocalSource; } });
33
+ Object.defineProperty(exports, "mergeManifestDelta", { enumerable: true, get: function () { return manifest_1.mergeManifestDelta; } });
34
+ Object.defineProperty(exports, "mergeManifestEntryDelta", { enumerable: true, get: function () { return manifest_1.mergeManifestEntryDelta; } });
35
+ Object.defineProperty(exports, "serializeManifestRecord", { enumerable: true, get: function () { return manifest_1.serializeManifestRecord; } });
36
+ var metadata_1 = require("./metadata.js");
37
+ Object.defineProperty(exports, "assertSandboxEntryMetadataSupported", { enumerable: true, get: function () { return metadata_1.assertSandboxEntryMetadataSupported; } });
38
+ Object.defineProperty(exports, "assertSandboxManifestMetadataSupported", { enumerable: true, get: function () { return metadata_1.assertSandboxManifestMetadataSupported; } });
39
+ Object.defineProperty(exports, "MOUNT_MANIFEST_METADATA_SUPPORT", { enumerable: true, get: function () { return metadata_1.MOUNT_MANIFEST_METADATA_SUPPORT; } });
40
+ Object.defineProperty(exports, "SANDBOX_MANIFEST_METADATA_SUPPORT", { enumerable: true, get: function () { return metadata_1.SANDBOX_MANIFEST_METADATA_SUPPORT; } });
41
+ Object.defineProperty(exports, "sandboxEntryPermissionsMode", { enumerable: true, get: function () { return metadata_1.sandboxEntryPermissionsMode; } });
42
+ var media_1 = require("./media.js");
43
+ Object.defineProperty(exports, "assertViewImageByteLength", { enumerable: true, get: function () { return media_1.assertViewImageByteLength; } });
44
+ Object.defineProperty(exports, "imageOutputFromBytes", { enumerable: true, get: function () { return media_1.imageOutputFromBytes; } });
45
+ Object.defineProperty(exports, "MAX_VIEW_IMAGE_BYTES", { enumerable: true, get: function () { return media_1.MAX_VIEW_IMAGE_BYTES; } });
46
+ Object.defineProperty(exports, "sniffImageMediaType", { enumerable: true, get: function () { return media_1.sniffImageMediaType; } });
47
+ Object.defineProperty(exports, "toUint8Array", { enumerable: true, get: function () { return media_1.toUint8Array; } });
48
+ var output_1 = require("./output.js");
49
+ Object.defineProperty(exports, "elapsedSeconds", { enumerable: true, get: function () { return output_1.elapsedSeconds; } });
50
+ Object.defineProperty(exports, "formatExecResponse", { enumerable: true, get: function () { return output_1.formatExecResponse; } });
51
+ Object.defineProperty(exports, "truncateOutput", { enumerable: true, get: function () { return output_1.truncateOutput; } });
52
+ var ports_1 = require("./ports.js");
53
+ Object.defineProperty(exports, "assertConfiguredExposedPort", { enumerable: true, get: function () { return ports_1.assertConfiguredExposedPort; } });
54
+ Object.defineProperty(exports, "getCachedExposedPortEndpoint", { enumerable: true, get: function () { return ports_1.getCachedExposedPortEndpoint; } });
55
+ Object.defineProperty(exports, "parseExposedPortEndpoint", { enumerable: true, get: function () { return ports_1.parseExposedPortEndpoint; } });
56
+ Object.defineProperty(exports, "recordResolvedExposedPortEndpoint", { enumerable: true, get: function () { return ports_1.recordResolvedExposedPortEndpoint; } });
57
+ var pty_1 = require("./pty.js");
58
+ Object.defineProperty(exports, "addPtyWebSocketListener", { enumerable: true, get: function () { return pty_1.addPtyWebSocketListener; } });
59
+ Object.defineProperty(exports, "appendPtyOutput", { enumerable: true, get: function () { return pty_1.appendPtyOutput; } });
60
+ Object.defineProperty(exports, "createPtyProcessEntry", { enumerable: true, get: function () { return pty_1.createPtyProcessEntry; } });
61
+ Object.defineProperty(exports, "formatPtyExecUpdate", { enumerable: true, get: function () { return pty_1.formatPtyExecUpdate; } });
62
+ Object.defineProperty(exports, "markPtyDone", { enumerable: true, get: function () { return pty_1.markPtyDone; } });
63
+ Object.defineProperty(exports, "openPtyWebSocket", { enumerable: true, get: function () { return pty_1.openPtyWebSocket; } });
64
+ Object.defineProperty(exports, "PtyProcessRegistry", { enumerable: true, get: function () { return pty_1.PtyProcessRegistry; } });
65
+ Object.defineProperty(exports, "shellCommandForPty", { enumerable: true, get: function () { return pty_1.shellCommandForPty; } });
66
+ Object.defineProperty(exports, "watchPtyProcess", { enumerable: true, get: function () { return pty_1.watchPtyProcess; } });
67
+ Object.defineProperty(exports, "writePtyStdin", { enumerable: true, get: function () { return pty_1.writePtyStdin; } });
68
+ var paths_1 = require("./paths.js");
69
+ Object.defineProperty(exports, "resolveSandboxAbsolutePath", { enumerable: true, get: function () { return paths_1.resolveSandboxAbsolutePath; } });
70
+ Object.defineProperty(exports, "resolveSandboxRelativePath", { enumerable: true, get: function () { return paths_1.resolveSandboxRelativePath; } });
71
+ Object.defineProperty(exports, "resolveSandboxWorkdir", { enumerable: true, get: function () { return paths_1.resolveSandboxWorkdir; } });
72
+ Object.defineProperty(exports, "posixDirname", { enumerable: true, get: function () { return paths_1.posixDirname; } });
73
+ Object.defineProperty(exports, "shellQuote", { enumerable: true, get: function () { return paths_1.shellQuote; } });
74
+ Object.defineProperty(exports, "validateRemoteSandboxPath", { enumerable: true, get: function () { return paths_1.validateRemoteSandboxPath; } });
75
+ Object.defineProperty(exports, "validateRemoteSandboxPathForManifest", { enumerable: true, get: function () { return paths_1.validateRemoteSandboxPathForManifest; } });
76
+ var session_1 = require("./session.js");
77
+ Object.defineProperty(exports, "assertCoreConcurrencyLimitsUnsupported", { enumerable: true, get: function () { return session_1.assertCoreConcurrencyLimitsUnsupported; } });
78
+ Object.defineProperty(exports, "assertCoreSnapshotUnsupported", { enumerable: true, get: function () { return session_1.assertCoreSnapshotUnsupported; } });
79
+ Object.defineProperty(exports, "assertResumeRecreateAllowed", { enumerable: true, get: function () { return session_1.assertResumeRecreateAllowed; } });
80
+ Object.defineProperty(exports, "assertRunAsUnsupported", { enumerable: true, get: function () { return session_1.assertRunAsUnsupported; } });
81
+ Object.defineProperty(exports, "closeRemoteSessionOnManifestError", { enumerable: true, get: function () { return session_1.closeRemoteSessionOnManifestError; } });
82
+ Object.defineProperty(exports, "isProviderSandboxNotFoundError", { enumerable: true, get: function () { return session_1.isProviderSandboxNotFoundError; } });
83
+ Object.defineProperty(exports, "withProviderError", { enumerable: true, get: function () { return session_1.withProviderError; } });
84
+ Object.defineProperty(exports, "withSandboxSpan", { enumerable: true, get: function () { return session_1.withSandboxSpan; } });
85
+ var runAs_1 = require("./runAs.js");
86
+ Object.defineProperty(exports, "createRunAsRemoteEditor", { enumerable: true, get: function () { return runAs_1.createRunAsRemoteEditor; } });
87
+ Object.defineProperty(exports, "manifestMaterializationOptionsWithRunAs", { enumerable: true, get: function () { return runAs_1.manifestMaterializationOptionsWithRunAs; } });
88
+ Object.defineProperty(exports, "readRunAsRemoteFile", { enumerable: true, get: function () { return runAs_1.readRunAsRemoteFile; } });
89
+ Object.defineProperty(exports, "runAsRemotePathExists", { enumerable: true, get: function () { return runAs_1.runAsRemotePathExists; } });
90
+ Object.defineProperty(exports, "sandboxUserShellCommand", { enumerable: true, get: function () { return runAs_1.sandboxUserShellCommand; } });
91
+ Object.defineProperty(exports, "writeRunAsRemoteText", { enumerable: true, get: function () { return runAs_1.writeRunAsRemoteText; } });
92
+ var sessionBase_1 = require("./sessionBase.js");
93
+ Object.defineProperty(exports, "RemoteSandboxSessionBase", { enumerable: true, get: function () { return sessionBase_1.RemoteSandboxSessionBase; } });
94
+ var sessionState_1 = require("./sessionState.js");
95
+ Object.defineProperty(exports, "deserializeRemoteSandboxSessionStateValues", { enumerable: true, get: function () { return sessionState_1.deserializeRemoteSandboxSessionStateValues; } });
96
+ Object.defineProperty(exports, "serializeRemoteSandboxSessionState", { enumerable: true, get: function () { return sessionState_1.serializeRemoteSandboxSessionState; } });
97
+ var typeGuards_1 = require("./typeGuards.js");
98
+ Object.defineProperty(exports, "isRecord", { enumerable: true, get: function () { return typeGuards_1.isRecord; } });
99
+ Object.defineProperty(exports, "isStringRecord", { enumerable: true, get: function () { return typeGuards_1.isStringRecord; } });
100
+ Object.defineProperty(exports, "readOptionalBoolean", { enumerable: true, get: function () { return typeGuards_1.readOptionalBoolean; } });
101
+ Object.defineProperty(exports, "readOptionalNumber", { enumerable: true, get: function () { return typeGuards_1.readOptionalNumber; } });
102
+ Object.defineProperty(exports, "readOptionalNumberArray", { enumerable: true, get: function () { return typeGuards_1.readOptionalNumberArray; } });
103
+ Object.defineProperty(exports, "readOptionalRecord", { enumerable: true, get: function () { return typeGuards_1.readOptionalRecord; } });
104
+ Object.defineProperty(exports, "readOptionalRecordArray", { enumerable: true, get: function () { return typeGuards_1.readOptionalRecordArray; } });
105
+ Object.defineProperty(exports, "readOptionalString", { enumerable: true, get: function () { return typeGuards_1.readOptionalString; } });
106
+ Object.defineProperty(exports, "readOptionalStringRecord", { enumerable: true, get: function () { return typeGuards_1.readOptionalStringRecord; } });
107
+ Object.defineProperty(exports, "readString", { enumerable: true, get: function () { return typeGuards_1.readString; } });
108
+ var snapshots_1 = require("./snapshots.js");
109
+ Object.defineProperty(exports, "decodeNativeSnapshotRef", { enumerable: true, get: function () { return snapshots_1.decodeNativeSnapshotRef; } });
110
+ Object.defineProperty(exports, "encodeNativeSnapshotRef", { enumerable: true, get: function () { return snapshots_1.encodeNativeSnapshotRef; } });
111
+ Object.defineProperty(exports, "requireNativeSnapshotRef", { enumerable: true, get: function () { return snapshots_1.requireNativeSnapshotRef; } });
112
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sandbox/shared/index.ts"],"names":[],"mappings":";;;;AAAA,sCAA+C;AAAtC,6GAAA,mBAAmB,OAAA;AAC5B,wCAOmB;AANjB,wHAAA,6BAA6B,OAAA;AAC7B,oHAAA,yBAAyB,OAAA;AACzB,oHAAA,yBAAyB,OAAA;AACzB,kHAAA,uBAAuB,OAAA;AACvB,sHAAA,2BAA2B,OAAA;AAC3B,kHAAA,uBAAuB,OAAA;AAEzB,gDAOuB;AANrB,yHAAA,0BAA0B,OAAA;AAC1B,wIAAA,yCAAyC,OAAA;AACzC,qHAAA,sBAAsB,OAAA;AACtB,2HAAA,4BAA4B,OAAA;AAC5B,2HAAA,4BAA4B,OAAA;AAC5B,wIAAA,yCAAyC,OAAA;AAE3C,gCAA+C;AAAtC,6GAAA,sBAAsB,OAAA;AAC/B,0CAaoB;AAZlB,iHAAA,qBAAqB,OAAA;AACrB,4HAAA,gCAAgC,OAAA;AAChC,+GAAA,mBAAmB,OAAA;AACnB,2HAAA,+BAA+B,OAAA;AAC/B,sHAAA,0BAA0B,OAAA;AAC1B,oHAAA,wBAAwB,OAAA;AACxB,0HAAA,8BAA8B,OAAA;AAC9B,qHAAA,yBAAyB,OAAA;AACzB,uHAAA,2BAA2B,OAAA;AAC3B,8GAAA,kBAAkB,OAAA;AAClB,mHAAA,uBAAuB,OAAA;AAC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iBAAiB,OAAA;AACjB,0GAAA,eAAe,OAAA;AAEjB,oCASiB;AARf,gHAAA,uBAAuB,OAAA;AACvB,gIAAA,uCAAuC,OAAA;AACvC,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,gHAAA,uBAAuB,OAAA;AACvB,6GAAA,oBAAoB,OAAA;AAItB,gDAMuB;AALrB,uHAAA,wBAAwB,OAAA;AAM1B,kDAGwB;AAFtB,0IAAA,0CAA0C,OAAA;AAC1C,kIAAA,kCAAkC,OAAA;AAEpC,8CAWsB;AAVpB,sGAAA,QAAQ,OAAA;AACR,4GAAA,cAAc,OAAA;AACd,iHAAA,mBAAmB,OAAA;AACnB,gHAAA,kBAAkB,OAAA;AAClB,qHAAA,uBAAuB,OAAA;AACvB,gHAAA,kBAAkB,OAAA;AAClB,qHAAA,uBAAuB,OAAA;AACvB,gHAAA,kBAAkB,OAAA;AAClB,sHAAA,wBAAwB,OAAA;AACxB,wGAAA,UAAU,OAAA;AAEZ,4CAIqB;AAHnB,oHAAA,uBAAuB,OAAA;AACvB,oHAAA,uBAAuB,OAAA;AACvB,qHAAA,wBAAwB,OAAA"}
@@ -0,0 +1,18 @@
1
+ export { RemoteSandboxEditor } from "./editor.mjs";
2
+ export { assertTarWorkspacePersistence, hydrateRemoteWorkspaceTar, persistRemoteWorkspaceTar, toWorkspaceArchiveBytes, validateWorkspaceTarArchive, workspaceTarExcludeArgs, } from "./archive.mjs";
3
+ export { assertShellEnvironmentName, deserializePersistedEnvironmentForRuntime, materializeEnvironment, mergeMaterializedEnvironment, serializeManifestEnvironment, serializeRuntimeEnvironmentForPersistence, } from "./environment.mjs";
4
+ export { normalizeGitRepository } from "./git.mjs";
5
+ export { cloneManifestWithRoot, cloneManifestWithoutMountEntries, deserializeManifest, applyInlineManifestEntryToState, applyInlineManifestToState, entryContainsLocalSource, materializeInlineManifestEntry, materializeInlineManifest, manifestContainsLocalSource, mergeManifestDelta, mergeManifestEntryDelta, serializeManifestRecord, } from "./manifest.mjs";
6
+ export { assertSandboxEntryMetadataSupported, assertSandboxManifestMetadataSupported, MOUNT_MANIFEST_METADATA_SUPPORT, SANDBOX_MANIFEST_METADATA_SUPPORT, sandboxEntryPermissionsMode, } from "./metadata.mjs";
7
+ export { assertViewImageByteLength, imageOutputFromBytes, MAX_VIEW_IMAGE_BYTES, sniffImageMediaType, toUint8Array, } from "./media.mjs";
8
+ export { elapsedSeconds, formatExecResponse, truncateOutput } from "./output.mjs";
9
+ export { assertConfiguredExposedPort, getCachedExposedPortEndpoint, parseExposedPortEndpoint, recordResolvedExposedPortEndpoint, } from "./ports.mjs";
10
+ export { addPtyWebSocketListener, appendPtyOutput, createPtyProcessEntry, formatPtyExecUpdate, markPtyDone, openPtyWebSocket, PtyProcessRegistry, shellCommandForPty, watchPtyProcess, writePtyStdin, } from "./pty.mjs";
11
+ export { resolveSandboxAbsolutePath, resolveSandboxRelativePath, resolveSandboxWorkdir, posixDirname, shellQuote, validateRemoteSandboxPath, validateRemoteSandboxPathForManifest, } from "./paths.mjs";
12
+ export { assertCoreConcurrencyLimitsUnsupported, assertCoreSnapshotUnsupported, assertResumeRecreateAllowed, assertRunAsUnsupported, closeRemoteSessionOnManifestError, isProviderSandboxNotFoundError, withProviderError, withSandboxSpan, } from "./session.mjs";
13
+ export { createRunAsRemoteEditor, manifestMaterializationOptionsWithRunAs, readRunAsRemoteFile, runAsRemotePathExists, sandboxUserShellCommand, writeRunAsRemoteText, } from "./runAs.mjs";
14
+ export { RemoteSandboxSessionBase, } from "./sessionBase.mjs";
15
+ export { deserializeRemoteSandboxSessionStateValues, serializeRemoteSandboxSessionState, } from "./sessionState.mjs";
16
+ export { isRecord, isStringRecord, readOptionalBoolean, readOptionalNumber, readOptionalNumberArray, readOptionalRecord, readOptionalRecordArray, readOptionalString, readOptionalStringRecord, readString, } from "./typeGuards.mjs";
17
+ export { decodeNativeSnapshotRef, encodeNativeSnapshotRef, requireNativeSnapshotRef, } from "./snapshots.mjs";
18
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/sandbox/shared/index.ts"],"names":[],"mappings":"OAAO,EAAE,mBAAmB,EAAE;OACvB,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,GACxB;OACM,EACL,0BAA0B,EAC1B,yCAAyC,EACzC,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC5B,yCAAyC,GAC1C;OACM,EAAE,sBAAsB,EAAE;OAC1B,EACL,qBAAqB,EACrB,gCAAgC,EAChC,mBAAmB,EACnB,+BAA+B,EAC/B,0BAA0B,EAC1B,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,GACxB;OAEM,EACL,mCAAmC,EACnC,sCAAsC,EACtC,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,GAC5B;OACM,EACL,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,GACb;OACM,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE;OACtD,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,iCAAiC,GAClC;OACM,EACL,uBAAuB,EACvB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,aAAa,GACd;OACM,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,UAAU,EACV,yBAAyB,EACzB,oCAAoC,GACrC;OACM,EACL,sCAAsC,EACtC,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,iCAAiC,EACjC,8BAA8B,EAC9B,iBAAiB,EACjB,eAAe,GAChB;OACM,EACL,uBAAuB,EACvB,uCAAuC,EACvC,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GAGrB;OACM,EACL,wBAAwB,GAKzB;OACM,EACL,0CAA0C,EAC1C,kCAAkC,GACnC;OACM,EACL,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,wBAAwB,EACxB,UAAU,GACX;OACM,EACL,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB"}
@@ -0,0 +1,8 @@
1
+ import { type Entry, type Manifest } from '@openai/agents-core/sandbox';
2
+ import type { ManifestMaterializationOptions, MaterializedManifestEntryState, MaterializedManifestState } from './manifest';
3
+ import type { RemoteManifestWriter } from './types';
4
+ import type { RemoteSandboxPathResolver } from './types';
5
+ export declare function applyLocalSourceManifestEntryToState(state: MaterializedManifestEntryState, path: string, entry: Entry, providerLabel: string, writer: RemoteManifestWriter, resolvePath: RemoteSandboxPathResolver, options?: ManifestMaterializationOptions): Promise<void>;
6
+ export declare function applyLocalSourceManifestToState(state: MaterializedManifestState, manifest: Manifest, providerLabel: string, writer: RemoteManifestWriter, resolvePath: RemoteSandboxPathResolver, options?: ManifestMaterializationOptions): Promise<void>;
7
+ export declare function materializeLocalSourceManifest(writer: RemoteManifestWriter, manifest: Manifest, providerLabel: string, resolvePath: RemoteSandboxPathResolver, options?: ManifestMaterializationOptions): Promise<void>;
8
+ export declare function materializeLocalSourceManifestEntry(writer: RemoteManifestWriter, absolutePath: string, entry: Entry, providerLabel: string, options?: ManifestMaterializationOptions): Promise<void>;
@@ -0,0 +1,378 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applyLocalSourceManifestEntryToState = applyLocalSourceManifestEntryToState;
4
+ exports.applyLocalSourceManifestToState = applyLocalSourceManifestToState;
5
+ exports.materializeLocalSourceManifest = materializeLocalSourceManifest;
6
+ exports.materializeLocalSourceManifestEntry = materializeLocalSourceManifestEntry;
7
+ const agents_core_1 = require("@openai/agents-core");
8
+ const internal_1 = require("@openai/agents-core/sandbox/internal");
9
+ const node_fs_1 = require("node:fs");
10
+ const promises_1 = require("node:fs/promises");
11
+ const node_os_1 = require("node:os");
12
+ const node_path_1 = require("node:path");
13
+ const git_1 = require("./git.js");
14
+ const process_1 = require("./process.js");
15
+ const manifest_1 = require("./manifest.js");
16
+ const GIT_VERSION_TIMEOUT_MS = 10_000;
17
+ const GIT_CLONE_TIMEOUT_MS = 5 * 60_000;
18
+ const COMMIT_REF_PATTERN = /^[0-9a-fA-F]{7,40}$/;
19
+ const LOCAL_SOURCE_FILE_READ_FLAGS = node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW;
20
+ const LOCAL_SOURCE_DIRECTORY_READ_FLAGS = node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW | node_fs_1.constants.O_DIRECTORY;
21
+ async function applyLocalSourceManifestEntryToState(state, path, entry, providerLabel, writer, resolvePath, options = {}) {
22
+ await (0, manifest_1.applyMaterializedManifestEntryToState)(state, path, entry, providerLabel, writer, resolvePath, materializeLocalSourceManifestEntry, options);
23
+ }
24
+ async function applyLocalSourceManifestToState(state, manifest, providerLabel, writer, resolvePath, options = {}) {
25
+ await (0, manifest_1.applyMaterializedManifestToState)(state, manifest, providerLabel, writer, resolvePath, materializeLocalSourceManifestEntry, options);
26
+ }
27
+ async function materializeLocalSourceManifest(writer, manifest, providerLabel, resolvePath, options = {}) {
28
+ await (0, manifest_1.materializeManifestEntries)(writer, manifest, providerLabel, resolvePath, materializeLocalSourceManifestEntry, options);
29
+ }
30
+ async function materializeLocalSourceManifestEntry(writer, absolutePath, entry, providerLabel, options = {}) {
31
+ switch (entry.type) {
32
+ case 'dir':
33
+ await writer.mkdir(absolutePath);
34
+ if (entry.children) {
35
+ for (const [childPath, childEntry] of Object.entries(entry.children)) {
36
+ const child = await (0, manifest_1.resolveMaterializedChildPath)(absolutePath, childPath, options);
37
+ await materializeLocalSourceManifestEntry(writer, child.absolutePath, childEntry, providerLabel, {
38
+ ...options,
39
+ logicalPath: child.logicalPath,
40
+ });
41
+ }
42
+ }
43
+ break;
44
+ case 'local_file':
45
+ await writer.writeFile(absolutePath, await readStableLocalFile(entry.src));
46
+ break;
47
+ case 'local_dir':
48
+ await materializeLocalDirectory(writer, absolutePath, entry.src, options);
49
+ break;
50
+ case 'git_repo':
51
+ await materializeGitRepo(writer, absolutePath, entry, entry.ref, providerLabel, options);
52
+ break;
53
+ default:
54
+ await (0, manifest_1.materializeInlineManifestEntry)(writer, absolutePath, entry, providerLabel, options);
55
+ return;
56
+ }
57
+ await options.applyMetadata?.(absolutePath, entry);
58
+ }
59
+ async function materializeLocalDirectory(writer, absolutePath, sourceDir, options, expectedSourceStat) {
60
+ const source = await resolveStableLocalDirectorySource(sourceDir, expectedSourceStat);
61
+ await writer.mkdir(absolutePath);
62
+ const entries = await readStableLocalDirectoryEntries(sourceDir, source.stat);
63
+ await (0, manifest_1.runLimited)(entries, (0, manifest_1.resolveLocalDirFileConcurrency)(options.concurrencyLimits), async (entry) => {
64
+ const sourcePath = (0, node_path_1.join)(sourceDir, entry.name);
65
+ const destinationPath = `${absolutePath}/${entry.name}`;
66
+ if (entry.isDirectory()) {
67
+ const childSourceStat = await assertStableLocalDirectoryChild(source.root, sourcePath);
68
+ await materializeLocalDirectory(writer, destinationPath, sourcePath, options, childSourceStat);
69
+ return;
70
+ }
71
+ if (entry.isFile()) {
72
+ await writer.writeFile(destinationPath, await readStableLocalDirectoryFile(source.root, sourcePath));
73
+ return;
74
+ }
75
+ if (entry.isSymbolicLink()) {
76
+ throw new agents_core_1.UserError(`local_dir entries do not support symbolic links: ${sourcePath}`);
77
+ }
78
+ });
79
+ }
80
+ async function resolveStableLocalDirectorySource(sourceDir, expectedSourceStat) {
81
+ await assertNoLocalSourceSymlinkAncestors(sourceDir, 'local_dir', localDirectoryPathChangedError);
82
+ const sourceStat = await statStableLocalSourcePath(sourceDir);
83
+ if (sourceStat.isSymbolicLink()) {
84
+ throw new agents_core_1.UserError(`local_dir entries do not support symbolic links: ${sourceDir}`);
85
+ }
86
+ if (!sourceStat.isDirectory()) {
87
+ throw new agents_core_1.UserError(`local_dir source must be a directory: ${sourceDir}`);
88
+ }
89
+ if (expectedSourceStat &&
90
+ !sameFilesystemEntry(sourceStat, expectedSourceStat)) {
91
+ throw localDirectoryPathChangedError(sourceDir);
92
+ }
93
+ const sourceRoot = await realpathStableLocalSourcePath(sourceDir);
94
+ let handle;
95
+ try {
96
+ handle = await (0, promises_1.open)(sourceDir, LOCAL_SOURCE_DIRECTORY_READ_FLAGS);
97
+ }
98
+ catch (error) {
99
+ if (isPathChangedError(error)) {
100
+ throw localDirectoryPathChangedError(sourceDir);
101
+ }
102
+ throw error;
103
+ }
104
+ try {
105
+ const openedStat = await handle.stat();
106
+ if (!openedStat.isDirectory() ||
107
+ !sameFilesystemEntry(openedStat, sourceStat)) {
108
+ throw localDirectoryPathChangedError(sourceDir);
109
+ }
110
+ return { root: sourceRoot, stat: openedStat };
111
+ }
112
+ finally {
113
+ await handle.close();
114
+ }
115
+ }
116
+ async function readStableLocalDirectoryEntries(sourceDir, expectedStat) {
117
+ let entries;
118
+ try {
119
+ entries = await (0, promises_1.readdir)(sourceDir, { withFileTypes: true });
120
+ }
121
+ catch (error) {
122
+ if (isPathChangedError(error)) {
123
+ throw localDirectoryPathChangedError(sourceDir);
124
+ }
125
+ throw error;
126
+ }
127
+ await assertStableLocalDirectoryPath(sourceDir, expectedStat);
128
+ return entries;
129
+ }
130
+ async function assertStableLocalDirectoryPath(sourcePath, expectedStat) {
131
+ const currentStat = await statStableLocalSourcePath(sourcePath);
132
+ if (currentStat.isSymbolicLink() ||
133
+ !currentStat.isDirectory() ||
134
+ !sameFilesystemEntry(currentStat, expectedStat)) {
135
+ throw localDirectoryPathChangedError(sourcePath);
136
+ }
137
+ }
138
+ async function readStableLocalFile(sourcePath) {
139
+ await assertNoLocalSourceSymlinkAncestors(sourcePath, 'local_file', localFilePathChangedError);
140
+ const sourceStat = await statStableLocalSourcePath(sourcePath, localFilePathChangedError);
141
+ if (sourceStat.isSymbolicLink()) {
142
+ throw new agents_core_1.UserError(`local_file entries do not support symbolic links: ${sourcePath}`);
143
+ }
144
+ if (!sourceStat.isFile()) {
145
+ throw localFilePathChangedError(sourcePath);
146
+ }
147
+ let handle;
148
+ try {
149
+ handle = await (0, promises_1.open)(sourcePath, LOCAL_SOURCE_FILE_READ_FLAGS);
150
+ }
151
+ catch (error) {
152
+ if (isPathChangedError(error)) {
153
+ throw localFilePathChangedError(sourcePath);
154
+ }
155
+ throw error;
156
+ }
157
+ try {
158
+ const openedStat = await handle.stat();
159
+ if (!openedStat.isFile() || !sameFilesystemEntry(openedStat, sourceStat)) {
160
+ throw localFilePathChangedError(sourcePath);
161
+ }
162
+ return await handle.readFile();
163
+ }
164
+ finally {
165
+ await handle.close();
166
+ }
167
+ }
168
+ async function assertNoLocalSourceSymlinkAncestors(sourcePath, entryType, pathChangedError) {
169
+ const resolvedPath = (0, node_path_1.resolve)(sourcePath);
170
+ let current = (0, node_path_1.dirname)(resolvedPath);
171
+ while (current !== (0, node_path_1.dirname)(current)) {
172
+ const parent = (0, node_path_1.dirname)(current);
173
+ if (parent === (0, node_path_1.dirname)(parent)) {
174
+ break;
175
+ }
176
+ let currentStat;
177
+ try {
178
+ currentStat = await (0, promises_1.lstat)(current);
179
+ }
180
+ catch (error) {
181
+ if (isPathChangedError(error)) {
182
+ throw pathChangedError(sourcePath);
183
+ }
184
+ throw error;
185
+ }
186
+ if (currentStat.isSymbolicLink()) {
187
+ throw new agents_core_1.UserError(`${entryType} entries do not support symbolic link ancestors: ${sourcePath}`);
188
+ }
189
+ current = parent;
190
+ }
191
+ }
192
+ async function readStableLocalDirectoryFile(sourceRoot, sourcePath) {
193
+ // local_dir expands on the host before upload, so reject symlinks and pin the
194
+ // opened inode to avoid leaking swapped-in files outside the declared directory.
195
+ const sourceStat = await statStableLocalSourcePath(sourcePath);
196
+ if (sourceStat.isSymbolicLink()) {
197
+ throw new agents_core_1.UserError(`local_dir entries do not support symbolic links: ${sourcePath}`);
198
+ }
199
+ if (!sourceStat.isFile()) {
200
+ throw localDirectoryPathChangedError(sourcePath);
201
+ }
202
+ const resolvedSourcePath = await realpathStableLocalSourcePath(sourcePath);
203
+ assertPathInsideRootChild(sourceRoot, resolvedSourcePath, `local_dir entry path changed while materializing: ${sourcePath}`);
204
+ let handle;
205
+ try {
206
+ handle = await (0, promises_1.open)(sourcePath, LOCAL_SOURCE_FILE_READ_FLAGS);
207
+ }
208
+ catch (error) {
209
+ if (isPathChangedError(error)) {
210
+ throw localDirectoryPathChangedError(sourcePath);
211
+ }
212
+ throw error;
213
+ }
214
+ try {
215
+ const openedStat = await handle.stat();
216
+ if (!openedStat.isFile() || !sameFilesystemEntry(openedStat, sourceStat)) {
217
+ throw localDirectoryPathChangedError(sourcePath);
218
+ }
219
+ return await handle.readFile();
220
+ }
221
+ finally {
222
+ await handle.close();
223
+ }
224
+ }
225
+ async function assertStableLocalDirectoryChild(sourceRoot, sourcePath) {
226
+ const sourceStat = await statStableLocalSourcePath(sourcePath);
227
+ if (sourceStat.isSymbolicLink()) {
228
+ throw new agents_core_1.UserError(`local_dir entries do not support symbolic links: ${sourcePath}`);
229
+ }
230
+ if (!sourceStat.isDirectory()) {
231
+ throw localDirectoryPathChangedError(sourcePath);
232
+ }
233
+ const resolvedSourcePath = await realpathStableLocalSourcePath(sourcePath);
234
+ assertPathInsideRootChild(sourceRoot, resolvedSourcePath, `local_dir entry path changed while materializing: ${sourcePath}`);
235
+ return sourceStat;
236
+ }
237
+ async function statStableLocalSourcePath(sourcePath, pathChangedError = localDirectoryPathChangedError) {
238
+ try {
239
+ return await (0, promises_1.lstat)(sourcePath);
240
+ }
241
+ catch (error) {
242
+ if (isPathChangedError(error)) {
243
+ throw pathChangedError(sourcePath);
244
+ }
245
+ throw error;
246
+ }
247
+ }
248
+ async function realpathStableLocalSourcePath(sourcePath, pathChangedError = localDirectoryPathChangedError) {
249
+ try {
250
+ return await (0, promises_1.realpath)(sourcePath);
251
+ }
252
+ catch (error) {
253
+ if (isPathChangedError(error)) {
254
+ throw pathChangedError(sourcePath);
255
+ }
256
+ throw error;
257
+ }
258
+ }
259
+ function localDirectoryPathChangedError(sourcePath) {
260
+ return new agents_core_1.UserError(`local_dir entry path changed while materializing: ${sourcePath}`);
261
+ }
262
+ function localFilePathChangedError(sourcePath) {
263
+ return new agents_core_1.UserError(`local_file entry path changed while materializing: ${sourcePath}`);
264
+ }
265
+ function isPathChangedError(error) {
266
+ return (typeof error === 'object' &&
267
+ error !== null &&
268
+ 'code' in error &&
269
+ (error.code === 'ELOOP' ||
270
+ error.code === 'ENOENT' ||
271
+ error.code === 'ENOTDIR'));
272
+ }
273
+ function sameFilesystemEntry(left, right) {
274
+ return left.dev === right.dev && left.ino === right.ino;
275
+ }
276
+ function assertPathInsideRootChild(sourceRoot, resolvedSourcePath, errorMessage) {
277
+ if (!(0, internal_1.isHostPathStrictlyWithinRoot)(sourceRoot, resolvedSourcePath)) {
278
+ throw new agents_core_1.UserError(errorMessage);
279
+ }
280
+ }
281
+ async function materializeGitRepo(writer, absolutePath, repository, ref, providerLabel, options) {
282
+ const gitVersion = await (0, process_1.runSandboxProcess)('git', ['--version'], {
283
+ timeoutMs: GIT_VERSION_TIMEOUT_MS,
284
+ });
285
+ if (gitVersion.status !== 0) {
286
+ throw new agents_core_1.UserError('git_repo entries require a local `git` executable, but `git` was not found.');
287
+ }
288
+ const tempDir = await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_os_1.tmpdir)(), `openai-agents-${providerLabel}-git-`));
289
+ try {
290
+ const repositoryUrl = (0, git_1.normalizeGitRepository)(repository);
291
+ const { result: cloneResult, commitFetchError } = await cloneGitRepo(repositoryUrl, tempDir, ref);
292
+ if (cloneResult.status !== 0) {
293
+ throw new agents_core_1.UserError(`Failed to materialize git_repo entry ${formatGitRepositoryForError(repository)}: ${(0, process_1.formatSandboxProcessError)(commitFetchError ?? cloneResult)}`);
294
+ }
295
+ const subpath = typeof repository === 'string' ? undefined : repository.subpath;
296
+ const sourcePath = subpath ? (0, node_path_1.join)(tempDir, subpath) : tempDir;
297
+ if (subpath) {
298
+ const cloneRoot = await (0, promises_1.realpath)(tempDir);
299
+ const sourceRealpath = await (0, promises_1.realpath)(sourcePath);
300
+ assertPathInsideRootChild(cloneRoot, sourceRealpath, `git_repo subpath escapes the cloned repository: ${subpath}`);
301
+ }
302
+ await materializeGitRepoSource(writer, absolutePath, sourcePath, options, subpath);
303
+ }
304
+ finally {
305
+ await (0, promises_1.rm)(tempDir, { recursive: true, force: true });
306
+ }
307
+ }
308
+ async function cloneGitRepo(repositoryUrl, destination, ref) {
309
+ if (!ref || !looksLikeCommitRef(ref)) {
310
+ return { result: await cloneNamedRef(repositoryUrl, destination, ref) };
311
+ }
312
+ // Branch/tag shallow clone does not reliably fetch arbitrary SHAs, so
313
+ // commit-looking refs take the explicit init/fetch/checkout path first.
314
+ const result = await fetchCommitRef(repositoryUrl, destination, ref);
315
+ if (result.status === 0) {
316
+ return { result };
317
+ }
318
+ await (0, promises_1.rm)(destination, { recursive: true, force: true });
319
+ return {
320
+ result: await cloneNamedRef(repositoryUrl, destination, ref),
321
+ commitFetchError: result,
322
+ };
323
+ }
324
+ async function cloneNamedRef(repositoryUrl, destination, ref) {
325
+ const cloneArgs = ['clone', '--depth', '1', '--no-tags'];
326
+ if (ref) {
327
+ cloneArgs.push('--branch', ref);
328
+ }
329
+ cloneArgs.push(repositoryUrl, destination);
330
+ return await (0, process_1.runSandboxProcess)('git', cloneArgs, {
331
+ timeoutMs: GIT_CLONE_TIMEOUT_MS,
332
+ });
333
+ }
334
+ async function fetchCommitRef(repositoryUrl, destination, ref) {
335
+ const steps = [
336
+ ['init', destination],
337
+ ['-C', destination, 'remote', 'add', 'origin', repositoryUrl],
338
+ ['-C', destination, 'fetch', '--depth', '1', '--no-tags', 'origin', ref],
339
+ ['-C', destination, 'checkout', '--detach', 'FETCH_HEAD'],
340
+ ];
341
+ for (const args of steps) {
342
+ const result = await (0, process_1.runSandboxProcess)('git', args, {
343
+ timeoutMs: GIT_CLONE_TIMEOUT_MS,
344
+ });
345
+ if (result.status !== 0) {
346
+ return result;
347
+ }
348
+ }
349
+ return {
350
+ status: 0,
351
+ signal: null,
352
+ stdout: '',
353
+ stderr: '',
354
+ timedOut: false,
355
+ };
356
+ }
357
+ function looksLikeCommitRef(ref) {
358
+ return COMMIT_REF_PATTERN.test(ref);
359
+ }
360
+ async function materializeGitRepoSource(writer, absolutePath, sourcePath, options, subpath) {
361
+ const sourceInfo = await (0, promises_1.lstat)(sourcePath);
362
+ if (sourceInfo.isDirectory()) {
363
+ await materializeLocalDirectory(writer, absolutePath, sourcePath, options);
364
+ return;
365
+ }
366
+ if (sourceInfo.isFile()) {
367
+ await writer.writeFile(absolutePath, await (0, promises_1.readFile)(sourcePath));
368
+ return;
369
+ }
370
+ throw new agents_core_1.UserError(`git_repo subpath must resolve to a file or directory: ${subpath ?? '.'}`);
371
+ }
372
+ function formatGitRepositoryForError(repository) {
373
+ if (typeof repository === 'string') {
374
+ return repository;
375
+ }
376
+ return repository.repo;
377
+ }
378
+ //# sourceMappingURL=localSources.js.map