@uniqueli/openwork 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 LangChain, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # @uniqueli/openwork
2
+
3
+ [![npm][npm-badge]][npm-url] [![License: MIT][license-badge]][license-url]
4
+
5
+ [npm-badge]: https://img.shields.io/npm/v/@uniqueli/openwork.svg
6
+ [npm-url]: https://www.npmjs.com/package/@uniqueli/openwork
7
+ [license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
8
+ [license-url]: https://opensource.org/licenses/MIT
9
+
10
+ A desktop interface for [deepagentsjs](https://github.com/langchain-ai/deepagentsjs) — an opinionated harness for building deep agents with filesystem capabilities, planning, and subagent delegation.
11
+
12
+ **Enhanced with Custom API Support** - Configure any OpenAI-compatible API endpoint!
13
+
14
+ ![openwork screenshot](docs/screenshot.png)
15
+
16
+ > [!CAUTION]
17
+ > openwork gives AI agents direct access to your filesystem and the ability to execute shell commands. Always review tool calls before approving them, and only run in workspaces you trust.
18
+
19
+ ## Get Started
20
+
21
+ ```bash
22
+ # Run directly with npx
23
+ npx @uniqueli/openwork
24
+
25
+ # Or install globally
26
+ npm install -g @uniqueli/openwork
27
+ openwork
28
+ ```
29
+
30
+ Requires Node.js 18+.
31
+
32
+ ### From Source
33
+
34
+ ```bash
35
+ git clone https://github.com/uniqueli/openwork.git
36
+ cd openwork
37
+ npm install
38
+ npm run dev
39
+ ```
40
+ Or configure them in-app via the settings panel.
41
+
42
+ ## Supported Models
43
+
44
+ | Provider | Models |
45
+ | --------- | ----------------------------------------------------------------- |
46
+ | Anthropic | Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4 |
47
+ | OpenAI | GPT-5.2, GPT-5.1, o3, o3 Mini, o4 Mini, o1, GPT-4.1, GPT-4o |
48
+ | Google | Gemini 3 Pro Preview, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite |
49
+ | Custom | Any OpenAI-compatible API endpoint |
50
+
51
+ ### Custom API Configuration
52
+
53
+ You can now configure custom OpenAI-compatible API endpoints. This allows you to use:
54
+ - Self-hosted models (vLLM, Text Generation WebUI, etc.)
55
+ - Azure OpenAI
56
+ - Other OpenAI-compatible services
57
+
58
+ Configure via Settings UI or by setting environment variables:
59
+ ```bash
60
+ CUSTOM_BASE_URL=https://api.example.com/v1
61
+ CUSTOM_API_KEY=your-api-key
62
+ CUSTOM_MODEL=your-model-name # optional
63
+ ```
64
+
65
+ See [CUSTOM_API.md](CUSTOM_API.md) for detailed instructions.
66
+
67
+ ## Contributing
68
+
69
+ We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
70
+
71
+ Report bugs via [GitHub Issues](https://github.com/uniqueli/openwork/issues).
72
+
73
+ ## Credits
74
+
75
+ This project is a fork of [openwork by LangChain](https://github.com/langchain-ai/openwork) with enhanced custom API support.
76
+
77
+ ## License
78
+
79
+ MIT — see [LICENSE](LICENSE) for details.
package/bin/cli.js ADDED
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable @typescript-eslint/no-require-imports */
3
+ /**
4
+ * openwork CLI - Launches the Electron app
5
+ */
6
+
7
+ const { spawn } = require('child_process')
8
+ const path = require('path')
9
+
10
+ // Set process title for Activity Monitor
11
+ process.title = 'openwork'
12
+
13
+ const args = process.argv.slice(2)
14
+
15
+ // Handle --version flag
16
+ if (args.includes('--version') || args.includes('-v')) {
17
+ const { version } = require('../package.json')
18
+ console.log(`openwork v${version}`)
19
+ process.exit(0)
20
+ }
21
+
22
+ // Handle --help flag
23
+ if (args.includes('--help') || args.includes('-h')) {
24
+ console.log(`
25
+ openwork - A tactical agent interface for deepagentsjs
26
+
27
+ Usage:
28
+ openwork Launch the application
29
+ openwork --version Show version
30
+ openwork --help Show this help
31
+ `)
32
+ process.exit(0)
33
+ }
34
+
35
+ // Get the path to electron
36
+ const electron = require('electron')
37
+
38
+ // Launch electron with our main process
39
+ const mainPath = path.join(__dirname, '..', 'out', 'main', 'index.js')
40
+
41
+ const child = spawn(electron, [mainPath, ...args], {
42
+ stdio: 'inherit'
43
+ })
44
+
45
+ // Forward signals to child process
46
+ function forwardSignal(signal) {
47
+ if (child.pid) {
48
+ process.kill(child.pid, signal)
49
+ }
50
+ }
51
+
52
+ process.on('SIGINT', () => forwardSignal('SIGINT'))
53
+ process.on('SIGTERM', () => forwardSignal('SIGTERM'))
54
+
55
+ // Exit with the same code as the child
56
+ child.on('close', (code) => {
57
+ process.exit(code ?? 0)
58
+ })
59
+
60
+ child.on('error', (err) => {
61
+ console.error('Failed to start openwork:', err.message)
62
+ process.exit(1)
63
+ })