@vrsen/agentswarm 1.4.8
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 +21 -0
- package/README.md +13 -0
- package/bin/agentswarm +40 -0
- package/package.json +29 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 opencode
|
|
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,13 @@
|
|
|
1
|
+
# @vrsen/agentswarm
|
|
2
|
+
|
|
3
|
+
Run Agent Swarm with a single command:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx @vrsen/agentswarm
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The launcher can reuse the current Agency Swarm project, create a starter project, or connect to an existing agency server.
|
|
10
|
+
|
|
11
|
+
It prepares the local Python environment, starts the Agency Swarm server, and opens the terminal UI.
|
|
12
|
+
|
|
13
|
+
If you want the standalone CLI package instead, use `agentswarm-cli`.
|
package/bin/agentswarm
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import * as childProcess from "node:child_process"
|
|
4
|
+
import path from "node:path"
|
|
5
|
+
import { fileURLToPath } from "node:url"
|
|
6
|
+
import * as fs from "node:fs"
|
|
7
|
+
|
|
8
|
+
function resolveCliBinary(startDir) {
|
|
9
|
+
let current = startDir
|
|
10
|
+
for (;;) {
|
|
11
|
+
const candidate = path.join(current, "node_modules", "agentswarm-cli", "bin", "agentswarm")
|
|
12
|
+
if (fs.existsSync(candidate)) return candidate
|
|
13
|
+
const parent = path.dirname(current)
|
|
14
|
+
if (parent === current) return
|
|
15
|
+
current = parent
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const scriptDir = path.dirname(fileURLToPath(import.meta.url))
|
|
20
|
+
const binary = resolveCliBinary(scriptDir)
|
|
21
|
+
|
|
22
|
+
if (!binary) {
|
|
23
|
+
console.error('Could not find the "agentswarm-cli" dependency for @vrsen/agentswarm.')
|
|
24
|
+
process.exit(1)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const result = childProcess.spawnSync(process.execPath, [binary, ...process.argv.slice(2)], {
|
|
28
|
+
stdio: "inherit",
|
|
29
|
+
env: {
|
|
30
|
+
...process.env,
|
|
31
|
+
AGENTSWARM_NPX: "1",
|
|
32
|
+
},
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
if (result.error) {
|
|
36
|
+
console.error(result.error.message)
|
|
37
|
+
process.exit(1)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
process.exit(typeof result.status === "number" ? result.status : 0)
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vrsen/agentswarm",
|
|
3
|
+
"version": "1.4.8",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "One-command Agent Swarm launcher.",
|
|
7
|
+
"homepage": "https://github.com/VRSEN/agentswarm-cli",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/VRSEN/agentswarm-cli.git"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"agent-swarm",
|
|
14
|
+
"agents",
|
|
15
|
+
"cli",
|
|
16
|
+
"tui",
|
|
17
|
+
"terminal"
|
|
18
|
+
],
|
|
19
|
+
"bin": {
|
|
20
|
+
"agentswarm": "./bin/agentswarm"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"agentswarm-cli": "1.4.8"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
}
|
|
29
|
+
}
|