agentbar-cli 0.1.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/README.md +19 -0
- package/bin/agentbar.js +21 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# agentbar-cli
|
|
2
|
+
|
|
3
|
+
Global wrapper for the Agent Plugin Bar CLI.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g agentbar-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
agentbar init
|
|
15
|
+
agentbar snippet
|
|
16
|
+
agentbar set siteUrl https://your-site.com
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This package forwards to `@arjun-shah/agentbar-cli`.
|
package/bin/agentbar.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
let resolved;
|
|
7
|
+
|
|
8
|
+
try {
|
|
9
|
+
resolved = require.resolve("@arjun-shah/agentbar-cli/bin/agentbar.js");
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error("AgentBar CLI is missing. Reinstall with npm install -g agentbar-cli.");
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const child = spawn(process.execPath, [resolved, ...process.argv.slice(2)], {
|
|
16
|
+
stdio: "inherit",
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
child.on("exit", (code) => {
|
|
20
|
+
process.exit(code ?? 0);
|
|
21
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agentbar-cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Global wrapper for the Agent Plugin Bar CLI.",
|
|
6
|
+
"bin": {
|
|
7
|
+
"agentbar": "./bin/agentbar.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/arjunkshah/plug-your-agent.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"agent",
|
|
19
|
+
"ai",
|
|
20
|
+
"cli",
|
|
21
|
+
"chatbot"
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@arjun-shah/agentbar-cli": "^0.1.0"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
}
|
|
29
|
+
}
|