@uniqueli/openwork 0.2.1 → 0.2.2
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/README.md +13 -6
- package/bin/cli.js +15 -14
- package/out/main/index.js +228 -269
- package/out/preload/index.js +12 -9
- package/out/renderer/assets/{index-BPV5Z3ZG.js → index-BayYTupF.js} +1001 -608
- package/out/renderer/assets/{index-BtAM3QNQ.css → index-iDdc8OMS.css} +86 -17
- package/out/renderer/index.html +2 -2
- package/package.json +8 -7
- package/resources/README.md +0 -16
package/README.md
CHANGED
|
@@ -31,13 +31,22 @@ Requires Node.js 18+.
|
|
|
31
31
|
|
|
32
32
|
### From Source
|
|
33
33
|
|
|
34
|
+
```bash
|
|
35
|
+
git clone https://github.com/langchain-ai/openwork.git
|
|
36
|
+
cd openwork
|
|
37
|
+
npm install
|
|
38
|
+
npm run dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Or configure them in-app via the settings panel.
|
|
42
|
+
|
|
34
43
|
## Supported Models
|
|
35
44
|
|
|
36
|
-
| Provider | Models
|
|
37
|
-
| --------- |
|
|
45
|
+
| Provider | Models |
|
|
46
|
+
| --------- | -------------------------------------------------------------------------------------- |
|
|
38
47
|
| Anthropic | Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4 |
|
|
39
|
-
| OpenAI | GPT-5.2, GPT-5.1, o3, o3 Mini, o4 Mini, o1, GPT-4.1, GPT-4o
|
|
40
|
-
| Google | Gemini 3 Pro Preview, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite |
|
|
48
|
+
| OpenAI | GPT-5.2, GPT-5.1, o3, o3 Mini, o4 Mini, o1, GPT-4.1, GPT-4o |
|
|
49
|
+
| Google | Gemini 3 Pro Preview, Gemini 3 Flash Preview, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite |
|
|
41
50
|
| **Custom** | **Add unlimited custom providers!** |
|
|
42
51
|
|
|
43
52
|
## ✨ Multiple Custom API Providers
|
|
@@ -96,8 +105,6 @@ CUSTOM_API_KEY=your-api-key
|
|
|
96
105
|
CUSTOM_MODEL=your-model-name # optional
|
|
97
106
|
```
|
|
98
107
|
|
|
99
|
-
See [CUSTOM_API.md](CUSTOM_API.md) for detailed instructions.
|
|
100
|
-
|
|
101
108
|
## Changelog
|
|
102
109
|
|
|
103
110
|
### v0.2.1 (2026-01-19)
|
package/bin/cli.js
CHANGED
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
* openwork CLI - Launches the Electron app
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
const { spawn } = require(
|
|
8
|
-
const path = require(
|
|
7
|
+
const { spawn } = require("child_process")
|
|
8
|
+
const path = require("path")
|
|
9
9
|
|
|
10
10
|
// Set process title for Activity Monitor
|
|
11
|
-
process.title =
|
|
11
|
+
process.title = "openwork"
|
|
12
12
|
|
|
13
13
|
const args = process.argv.slice(2)
|
|
14
14
|
|
|
15
15
|
// Handle --version flag
|
|
16
|
-
if (args.includes(
|
|
17
|
-
const { version } = require(
|
|
16
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
17
|
+
const { version } = require("../package.json")
|
|
18
18
|
console.log(`openwork v${version}`)
|
|
19
19
|
process.exit(0)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// Handle --help flag
|
|
23
|
-
if (args.includes(
|
|
23
|
+
if (args.includes("--help") || args.includes("-h")) {
|
|
24
24
|
console.log(`
|
|
25
25
|
openwork - A tactical agent interface for deepagentsjs
|
|
26
26
|
|
|
@@ -33,31 +33,32 @@ Usage:
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Get the path to electron
|
|
36
|
-
const electron = require(
|
|
36
|
+
const electron = require("electron")
|
|
37
37
|
|
|
38
38
|
// Launch electron with our main process
|
|
39
|
-
const mainPath = path.join(__dirname,
|
|
39
|
+
const mainPath = path.join(__dirname, "..", "out", "main", "index.js")
|
|
40
40
|
|
|
41
41
|
const child = spawn(electron, [mainPath, ...args], {
|
|
42
|
-
stdio:
|
|
42
|
+
stdio: "inherit"
|
|
43
43
|
})
|
|
44
44
|
|
|
45
45
|
// Forward signals to child process
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
46
47
|
function forwardSignal(signal) {
|
|
47
48
|
if (child.pid) {
|
|
48
49
|
process.kill(child.pid, signal)
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
process.on(
|
|
53
|
-
process.on(
|
|
53
|
+
process.on("SIGINT", () => forwardSignal("SIGINT"))
|
|
54
|
+
process.on("SIGTERM", () => forwardSignal("SIGTERM"))
|
|
54
55
|
|
|
55
56
|
// Exit with the same code as the child
|
|
56
|
-
child.on(
|
|
57
|
+
child.on("close", (code) => {
|
|
57
58
|
process.exit(code ?? 0)
|
|
58
59
|
})
|
|
59
60
|
|
|
60
|
-
child.on(
|
|
61
|
-
console.error(
|
|
61
|
+
child.on("error", (err) => {
|
|
62
|
+
console.error("Failed to start openwork:", err.message)
|
|
62
63
|
process.exit(1)
|
|
63
64
|
})
|