grok-bot-cli 0.5.0 → 0.7.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/CHANGELOG.md +20 -0
- package/README.md +84 -7
- package/dist/.claude-plugin/marketplace.json +1 -1
- package/dist/.claude-plugin/plugin.json +1 -1
- package/dist/.codex-plugin/plugin.json +1 -1
- package/dist/.cursor-plugin/marketplace.json +1 -1
- package/dist/.cursor-plugin/plugin.json +1 -1
- package/dist/INSTALL.md +7 -7
- package/dist/README.md +84 -7
- package/dist/agent-bundle.compile-evidence.json +1 -1
- package/dist/agent-bundle.manifest.json +1 -1
- package/dist/agent-bundle.package-compile-evidence.json +1 -1
- package/dist/bin/gbot-flight.mjs +2966 -453
- package/dist/bin/gbot-install.js +9087 -9084
- package/dist/bin/gbot.mjs +3551 -728
- package/dist/install.mjs +6 -3
- package/dist/mcp/mcp-grok-bot-b8c2461e-flight.mjs +9675 -4968
- package/dist/mcp/mcp-grok-bot-b8c2461e.mjs +5057 -726
- package/dist/package.json +4 -4
- package/dist/plugin.json +1 -1
- package/dist/scripts/gbot-relay.mjs +59091 -0
- package/dist/skills/talk-to-grok-bot/SKILL.md +77 -5
- package/package.json +4 -4
package/dist/install.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { basename, dirname, isAbsolute, join, relative, resolve, sep } from 'nod
|
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
|
|
9
9
|
const pluginName = "gbot";
|
|
10
|
-
const pluginVersion = "0.
|
|
10
|
+
const pluginVersion = "0.7.0";
|
|
11
11
|
const receiptFile = ".agent-bundle-install.json";
|
|
12
12
|
const receiptFormat = "agent-bundle-install-receipt/2";
|
|
13
13
|
const legacyReceiptFormat = "agent-bundle-install-receipt/1";
|
|
@@ -39,7 +39,7 @@ const marketplacePlugin = join(marketplaceRepo, 'plugins', pluginName);
|
|
|
39
39
|
const pluginData = join(cursorRoot, 'agent-bundle', 'plugin-data', pluginName);
|
|
40
40
|
const receiptsRoot = join(cursorRoot, 'agent-bundle', 'receipts');
|
|
41
41
|
const marketplaceReceipt = join(receiptsRoot, `${pluginName}.marketplace.json`);
|
|
42
|
-
const usage = 'Usage: node install.mjs [--mode local|marketplace] [--replace
|
|
42
|
+
const usage = 'Usage: node install.mjs [--mode local|marketplace] [--replace] [--help]\n node install.mjs --uninstall [--mode local|marketplace] [--keep-data | --purge-data --confirm-purge] [--force] [--plan]';
|
|
43
43
|
|
|
44
44
|
let replace = false;
|
|
45
45
|
let force = false;
|
|
@@ -52,7 +52,8 @@ let mode = 'local';
|
|
|
52
52
|
const argv = process.argv.slice(2);
|
|
53
53
|
for (let index = 0; index < argv.length; index += 1) {
|
|
54
54
|
const argument = argv[index];
|
|
55
|
-
if (argument === '--replace'
|
|
55
|
+
if (argument === '--replace') { replace = true; continue; }
|
|
56
|
+
if (argument === '--force') { force = true; continue; }
|
|
56
57
|
if (argument === '--uninstall') { uninstall = true; continue; }
|
|
57
58
|
if (argument === '--plan') { plan = true; continue; }
|
|
58
59
|
if (argument === '--keep-data') { keepData = true; continue; }
|
|
@@ -68,6 +69,8 @@ for (let index = 0; index < argv.length; index += 1) {
|
|
|
68
69
|
console.error(`Unknown installer argument ${JSON.stringify(argument)}.\n${usage}`);
|
|
69
70
|
process.exit(2);
|
|
70
71
|
}
|
|
72
|
+
if (!uninstall && force) { console.error(`--force applies to --uninstall only. Use --replace to replace an install.\n${usage}`); process.exit(2); }
|
|
73
|
+
if (uninstall && replace) { console.error(`--replace applies to installation only. Use --force to override uninstall ownership checks.\n${usage}`); process.exit(2); }
|
|
71
74
|
if (!uninstall && (plan || keepData || purgeData || confirmPurge)) {
|
|
72
75
|
console.error(`--plan, --keep-data, --purge-data, and --confirm-purge apply to --uninstall only.\n${usage}`);
|
|
73
76
|
process.exit(2);
|