openwork 0.1.2 → 0.1.4

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 CHANGED
@@ -35,15 +35,16 @@ cd openwork
35
35
  npm install
36
36
  npm run dev
37
37
  ```
38
+
38
39
  Or configure them in-app via the settings panel.
39
40
 
40
41
  ## Supported Models
41
42
 
42
- | Provider | Models |
43
- | --------- | ----------------------------------------------------------------- |
43
+ | Provider | Models |
44
+ | --------- | -------------------------------------------------------------------------------------- |
44
45
  | Anthropic | Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4 |
45
- | OpenAI | GPT-5.2, GPT-5.1, o3, o3 Mini, o4 Mini, o1, GPT-4.1, GPT-4o |
46
- | Google | Gemini 3 Pro Preview, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite |
46
+ | OpenAI | GPT-5.2, GPT-5.1, o3, o3 Mini, o4 Mini, o1, GPT-4.1, GPT-4o |
47
+ | Google | Gemini 3 Pro Preview, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite |
47
48
 
48
49
  ## Contributing
49
50
 
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('child_process')
8
- const path = require('path')
7
+ const { spawn } = require("child_process")
8
+ const path = require("path")
9
9
 
10
10
  // Set process title for Activity Monitor
11
- process.title = 'openwork'
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('--version') || args.includes('-v')) {
17
- const { version } = require('../package.json')
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('--help') || args.includes('-h')) {
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('electron')
36
+ const electron = require("electron")
37
37
 
38
38
  // Launch electron with our main process
39
- const mainPath = path.join(__dirname, '..', 'out', 'main', 'index.js')
39
+ const mainPath = path.join(__dirname, "..", "out", "main", "index.js")
40
40
 
41
41
  const child = spawn(electron, [mainPath, ...args], {
42
- stdio: 'inherit'
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('SIGINT', () => forwardSignal('SIGINT'))
53
- process.on('SIGTERM', () => forwardSignal('SIGTERM'))
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('close', (code) => {
57
+ child.on("close", (code) => {
57
58
  process.exit(code ?? 0)
58
59
  })
59
60
 
60
- child.on('error', (err) => {
61
- console.error('Failed to start openwork:', err.message)
61
+ child.on("error", (err) => {
62
+ console.error("Failed to start openwork:", err.message)
62
63
  process.exit(1)
63
64
  })