@uniqueli/openwork 0.4.0 → 0.4.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.
package/out/main/index.js CHANGED
@@ -4,6 +4,7 @@ const path = require("path");
4
4
  const messages = require("@langchain/core/messages");
5
5
  const langgraph = require("@langchain/langgraph");
6
6
  const deepagents = require("deepagents");
7
+ const langchain = require("langchain");
7
8
  const Store = require("electron-store");
8
9
  const fs$1 = require("fs/promises");
9
10
  const fs = require("fs");
@@ -7455,7 +7456,22 @@ async function createAgentRuntime(options) {
7455
7456
  backend,
7456
7457
  systemPrompt,
7457
7458
  // Require human approval for all shell commands
7458
- interruptOn: { execute: true }
7459
+ interruptOn: { execute: true },
7460
+ // Add retry middleware for better reliability
7461
+ middleware: [
7462
+ langchain.modelRetryMiddleware({
7463
+ maxRetries: 3,
7464
+ backoffFactor: 2,
7465
+ initialDelayMs: 1e3,
7466
+ onFailure: "continue"
7467
+ // Return error message instead of throwing
7468
+ }),
7469
+ langchain.toolRetryMiddleware({
7470
+ maxRetries: 2,
7471
+ backoffFactor: 2,
7472
+ initialDelayMs: 1e3
7473
+ })
7474
+ ]
7459
7475
  };
7460
7476
  if (shouldEnableSkills && hasEnabledSkills) {
7461
7477
  const skillsDir = getSkillsFileDir();
@@ -78962,7 +78962,7 @@ function App() {
78962
78962
  },
78963
78963
  children: [
78964
78964
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-name", children: "OPENWORK" }),
78965
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-version", children: "0.4.0" })
78965
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-version", children: "0.4.1" })
78966
78966
  ]
78967
78967
  }
78968
78968
  ),
@@ -7,7 +7,7 @@
7
7
  http-equiv="Content-Security-Policy"
8
8
  content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:"
9
9
  />
10
- <script type="module" crossorigin src="./assets/index-CloINEXy.js"></script>
10
+ <script type="module" crossorigin src="./assets/index-BwYKBEJR.js"></script>
11
11
  <link rel="stylesheet" crossorigin href="./assets/index-BUG0lOAH.css">
12
12
  </head>
13
13
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniqueli/openwork",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "A tactical agent interface for deepagentsjs with multiple custom API support",
5
5
  "main": "./out/main/index.js",
6
6
  "files": [