@opengeni/runtime 4.0.1 → 4.0.3-canary.36079201993001

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 (48) hide show
  1. package/dist/{agent-RJQLKFIW.js → agent-ME6HT4DH.js} +2 -2
  2. package/dist/assets/codemode-client.json +1 -1
  3. package/dist/browser-action-json-schema.d.ts +4 -0
  4. package/dist/{chunk-J5AR5XAJ.js → chunk-GBVN7WSK.js} +377 -210
  5. package/dist/chunk-GBVN7WSK.js.map +1 -0
  6. package/dist/{chunk-ZG2YH25H.js → chunk-JAYHA6BF.js} +2 -2
  7. package/dist/{chunk-UNICCRW5.js → chunk-LZIXCZUV.js} +6 -3
  8. package/dist/{chunk-UNICCRW5.js.map → chunk-LZIXCZUV.js.map} +1 -1
  9. package/dist/{chunk-J6J3VYFW.js → chunk-OGG5NQLA.js} +597 -65
  10. package/dist/chunk-OGG5NQLA.js.map +1 -0
  11. package/dist/{chunk-SPT3PLMX.js → chunk-PRHMSM6C.js} +2 -2
  12. package/dist/context-compaction.d.ts +4 -2
  13. package/dist/index.d.ts +8 -6
  14. package/dist/index.js +9 -7
  15. package/dist/interaction-tools.d.ts +1 -1
  16. package/dist/{lazy-manifest-OEYEHNVY.js → lazy-manifest-GCGUFIWP.js} +3 -3
  17. package/dist/{localSources-TWHTEKGO.js → localSources-FDH65AFI.js} +4 -4
  18. package/dist/operational-instructions.d.ts +1 -1
  19. package/dist/sandbox/browser-control-client.d.ts +28 -1
  20. package/dist/sandbox/index.d.ts +2 -2
  21. package/dist/sandbox/index.js +6 -6
  22. package/dist/sandbox/providers/modal-command-router-wire.d.ts +8 -0
  23. package/dist/sandbox/providers/modal.d.ts +5 -6
  24. package/dist/workspace-tool-gateway.js +5 -5
  25. package/package.json +11 -11
  26. package/src/browser-action-json-schema.ts +10 -0
  27. package/src/bundled_artifact_skills/opengeni-documents/SKILL.md +4 -1
  28. package/src/bundled_artifact_skills/opengeni-documents/references/api.md +20 -0
  29. package/src/bundled_default_skills/opengeni-client/SKILL.md +4 -1
  30. package/src/bundled_default_skills/opengeni-client/references/discovery-and-autonomy.md +31 -0
  31. package/src/bundled_default_skills/opengeni-client/references/runtime-profile-and-verification.md +32 -0
  32. package/src/context-compaction.ts +19 -3
  33. package/src/index.ts +100 -36
  34. package/src/interaction-tools.ts +656 -48
  35. package/src/operational-instructions.ts +1 -1
  36. package/src/sandbox/browser-control-client.ts +241 -26
  37. package/src/sandbox/index.ts +3 -1
  38. package/src/sandbox/providers/modal-command-control.ts +7 -1
  39. package/src/sandbox/providers/modal-command-router-wire.ts +47 -6
  40. package/src/sandbox/providers/modal.ts +16 -24
  41. package/src/sandbox/routing/routing-session.ts +4 -2
  42. package/dist/chunk-J5AR5XAJ.js.map +0 -1
  43. package/dist/chunk-J6J3VYFW.js.map +0 -1
  44. /package/dist/{agent-RJQLKFIW.js.map → agent-ME6HT4DH.js.map} +0 -0
  45. /package/dist/{chunk-ZG2YH25H.js.map → chunk-JAYHA6BF.js.map} +0 -0
  46. /package/dist/{chunk-SPT3PLMX.js.map → chunk-PRHMSM6C.js.map} +0 -0
  47. /package/dist/{lazy-manifest-OEYEHNVY.js.map → lazy-manifest-GCGUFIWP.js.map} +0 -0
  48. /package/dist/{localSources-TWHTEKGO.js.map → localSources-FDH65AFI.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  UserError,
4
4
  cloneManifest,
5
5
  isRecord
6
- } from "./chunk-UNICCRW5.js";
6
+ } from "./chunk-LZIXCZUV.js";
7
7
 
8
8
  // ../../node_modules/.bun/@openai+agents-core@0.14.3+933c5e7db4cd33c2/node_modules/@openai/agents-core/dist/sandbox/client.mjs
9
9
  var DEFAULT_SANDBOX_ARCHIVE_LIMITS = {
@@ -91,4 +91,4 @@ export {
91
91
  NoopSnapshotSpec,
92
92
  isNoopSnapshotSpec
93
93
  };
94
- //# sourceMappingURL=chunk-ZG2YH25H.js.map
94
+ //# sourceMappingURL=chunk-JAYHA6BF.js.map
@@ -32468,7 +32468,7 @@ var SandboxMemoryGenerationManager = class {
32468
32468
  if (!transcript) {
32469
32469
  throw new UserError(`Memory rollout transcript was not found: ${transcriptPath}`);
32470
32470
  }
32471
- const { SandboxAgent: SandboxAgent2 } = await import("./agent-RJQLKFIW.js");
32471
+ const { SandboxAgent: SandboxAgent2 } = await import("./agent-ME6HT4DH.js");
32472
32472
  const phaseOneAgent = new SandboxAgent2({
32473
32473
  name: "sandbox-memory-phase-one",
32474
32474
  instructions: renderRolloutExtractionInstructions(generate.extraPrompt),
@@ -32529,7 +32529,7 @@ var SandboxMemoryGenerationManager = class {
32529
32529
  })) {
32530
32530
  return;
32531
32531
  }
32532
- const { SandboxAgent: SandboxAgent2 } = await import("./agent-RJQLKFIW.js");
32532
+ const { SandboxAgent: SandboxAgent2 } = await import("./agent-ME6HT4DH.js");
32533
32533
  const phaseTwoAgent = new SandboxAgent2({
32534
32534
  name: "sandbox-memory-phase-two",
32535
32535
  model: generate.phaseTwoModel,
@@ -43787,9 +43787,11 @@ var SHELL_INSTRUCTIONS = [
43787
43787
  var ShellCapability = class extends Capability {
43788
43788
  type = "shell";
43789
43789
  configureTools;
43790
+ execCommandErrorFunction;
43790
43791
  constructor(args = {}) {
43791
43792
  super();
43792
43793
  this.configureTools = args.configureTools;
43794
+ this.execCommandErrorFunction = args.execCommandErrorFunction;
43793
43795
  }
43794
43796
  tools() {
43795
43797
  const session = requireBoundSession(this.type, this._session);
@@ -43799,6 +43801,7 @@ var ShellCapability = class extends Capability {
43799
43801
  const tools = [
43800
43802
  tool({
43801
43803
  name: "exec_command",
43804
+ ...this.execCommandErrorFunction ? { errorFunction: this.execCommandErrorFunction } : {},
43802
43805
  description: "Runs a command in a PTY, returning output or a session ID for ongoing interaction.",
43803
43806
  parameters: external_exports.object({
43804
43807
  cmd: external_exports.string().min(1).describe("Shell command to execute."),
@@ -44266,4 +44269,4 @@ export {
44266
44269
  Runner,
44267
44270
  Agent
44268
44271
  };
44269
- //# sourceMappingURL=chunk-UNICCRW5.js.map
44272
+ //# sourceMappingURL=chunk-LZIXCZUV.js.map