argsbarg 6.3.1 → 7.0.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 +21 -3
- package/README.md +2 -2
- package/docs/README.md +2 -2
- package/docs/ai-skills.md +7 -7
- package/docs/bundled-docs.md +2 -2
- package/docs/cli-program.md +4 -4
- package/docs/configure.md +57 -85
- package/docs/developing.md +3 -3
- package/docs/distribution-homebrew.md +25 -25
- package/docs/mcp.md +3 -3
- package/examples/full-example/Formula/full-example.rb +7 -9
- package/examples/full-example/docs/cli-schema.json +48 -60
- package/examples/full-example/docs/cli.md +66 -36
- package/examples/full-example/docs/mcp.md +2 -2
- package/examples/full-example/docs/skill.md +1 -1
- package/examples/full-example/justfile +19 -36
- package/examples/full-example/scripts/formula-shared.ts +7 -13
- package/examples/full-example-json/Formula/full-example-json.rb +7 -9
- package/examples/full-example-json/docs/cli-schema.json +216 -270
- package/examples/full-example-json/docs/cli.md +297 -162
- package/examples/full-example-json/docs/mcp.md +2 -2
- package/examples/full-example-json/docs/skill.md +1 -1
- package/examples/full-example-json/justfile +19 -37
- package/examples/full-example-json/scripts/formula-shared.ts +7 -13
- package/index.d.ts +7 -8
- package/package.json +1 -1
- package/src/builtins/builtins.test.ts +21 -28
- package/src/builtins/configure-copy.ts +17 -20
- package/src/builtins/configure.ts +45 -74
- package/src/builtins/dispatch.ts +1 -8
- package/src/builtins/index.ts +1 -1
- package/src/cli-tool/create.ts +3 -1
- package/src/cli-tool/post-create.ts +5 -1
- package/src/config/file.ts +1 -0
- package/src/config/resolve.ts +1 -1
- package/src/configure/artifacts/mcp-config.ts +18 -12
- package/src/configure/artifacts/target-mcp-json.ts +19 -18
- package/src/configure/artifacts/target-skill.ts +8 -3
- package/src/configure/artifacts/targets/agents-mcp.ts +1 -1
- package/src/configure/artifacts/targets/configure.ts +2 -3
- package/src/configure/artifacts/uninstall.ts +5 -1
- package/src/configure/configure.test.ts +45 -113
- package/src/configure/index.ts +64 -354
- package/src/core/types.ts +7 -8
- package/src/docs/docs.test.ts +2 -2
- package/src/docs/mcp-guide.ts +2 -2
- package/src/skill/generate.ts +1 -1
- package/src/skill/install.ts +2 -1
|
@@ -21,42 +21,36 @@
|
|
|
21
21
|
{
|
|
22
22
|
"key": "configure",
|
|
23
23
|
"description": "Set up agent skills and MCP config for this app (binary via Homebrew).",
|
|
24
|
-
"notes": "Set up agent artifacts after the binary is installed via Homebrew (see README for tap install).\n\nHomebrew
|
|
25
|
-
"
|
|
24
|
+
"notes": "Set up agent artifacts after the binary is installed via Homebrew (see README for tap install).\n\nHomebrew installs the binary and shell completions only. Agent artifacts live under ~/.agents and are not written during brew install.\n\nAfter install or upgrade:\n full-example configure install\n\nUpgrade:\n brew upgrade full-example\n full-example configure install\n\nShell completions are installed by Homebrew during brew install.\nSee: https://docs.brew.sh/Shell-Completion\n\nSee what is installed:\n full-example configure status\n\nUninstall:\n full-example configure uninstall\n brew uninstall <tap>/full-example\n\nUse `configure status --json` for machine-readable output.",
|
|
25
|
+
"commands": [
|
|
26
26
|
{
|
|
27
|
-
"
|
|
28
|
-
"description": "
|
|
29
|
-
"kind": "presence"
|
|
27
|
+
"key": "install",
|
|
28
|
+
"description": "Install agent artifacts and bootstrap app config."
|
|
30
29
|
},
|
|
31
30
|
{
|
|
32
|
-
"
|
|
33
|
-
"description": "Remove
|
|
34
|
-
"
|
|
31
|
+
"key": "uninstall",
|
|
32
|
+
"description": "Remove agent artifacts and app config.",
|
|
33
|
+
"options": [
|
|
34
|
+
{
|
|
35
|
+
"name": "yes",
|
|
36
|
+
"description": "Skip uninstall confirmation.",
|
|
37
|
+
"kind": "presence",
|
|
38
|
+
"shortName": "y"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
35
41
|
},
|
|
36
42
|
{
|
|
37
|
-
"
|
|
43
|
+
"key": "status",
|
|
38
44
|
"description": "Print what is currently installed (read-only).",
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "dry",
|
|
49
|
-
"description": "Show what would change without writing files.",
|
|
50
|
-
"kind": "presence"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "json",
|
|
54
|
-
"description": "Print changed paths or status JSON on stdout.",
|
|
55
|
-
"kind": "presence"
|
|
45
|
+
"options": [
|
|
46
|
+
{
|
|
47
|
+
"name": "json",
|
|
48
|
+
"description": "Print status JSON on stdout.",
|
|
49
|
+
"kind": "presence"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
56
52
|
}
|
|
57
|
-
]
|
|
58
|
-
"fallbackCommand": "run",
|
|
59
|
-
"fallbackMode": "missingOnly"
|
|
53
|
+
]
|
|
60
54
|
},
|
|
61
55
|
{
|
|
62
56
|
"key": "docs",
|
|
@@ -138,7 +132,7 @@
|
|
|
138
132
|
},
|
|
139
133
|
{
|
|
140
134
|
"key": "skill",
|
|
141
|
-
"description": "Print a reference agent SKILL; run `configure` to install an optimized copy.",
|
|
135
|
+
"description": "Print a reference agent SKILL; run `configure install` to install an optimized copy.",
|
|
142
136
|
"options": [
|
|
143
137
|
{
|
|
144
138
|
"name": "save",
|
|
@@ -261,42 +255,36 @@
|
|
|
261
255
|
{
|
|
262
256
|
"key": "configure",
|
|
263
257
|
"description": "Set up agent skills and MCP config for this app (binary via Homebrew).",
|
|
264
|
-
"notes": "Set up agent artifacts after the binary is installed via Homebrew (see README for tap install).\n\nHomebrew
|
|
265
|
-
"
|
|
258
|
+
"notes": "Set up agent artifacts after the binary is installed via Homebrew (see README for tap install).\n\nHomebrew installs the binary and shell completions only. Agent artifacts live under ~/.agents and are not written during brew install.\n\nAfter install or upgrade:\n full-example configure install\n\nUpgrade:\n brew upgrade full-example\n full-example configure install\n\nShell completions are installed by Homebrew during brew install.\nSee: https://docs.brew.sh/Shell-Completion\n\nSee what is installed:\n full-example configure status\n\nUninstall:\n full-example configure uninstall\n brew uninstall <tap>/full-example\n\nUse `configure status --json` for machine-readable output.",
|
|
259
|
+
"commands": [
|
|
266
260
|
{
|
|
267
|
-
"
|
|
268
|
-
"description": "
|
|
269
|
-
"kind": "presence"
|
|
261
|
+
"key": "install",
|
|
262
|
+
"description": "Install agent artifacts and bootstrap app config."
|
|
270
263
|
},
|
|
271
264
|
{
|
|
272
|
-
"
|
|
273
|
-
"description": "Remove
|
|
274
|
-
"
|
|
265
|
+
"key": "uninstall",
|
|
266
|
+
"description": "Remove agent artifacts and app config.",
|
|
267
|
+
"options": [
|
|
268
|
+
{
|
|
269
|
+
"name": "yes",
|
|
270
|
+
"description": "Skip uninstall confirmation.",
|
|
271
|
+
"kind": "presence",
|
|
272
|
+
"shortName": "y"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
|
-
"
|
|
277
|
+
"key": "status",
|
|
278
278
|
"description": "Print what is currently installed (read-only).",
|
|
279
|
-
"
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"name": "dry",
|
|
289
|
-
"description": "Show what would change without writing files.",
|
|
290
|
-
"kind": "presence"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"name": "json",
|
|
294
|
-
"description": "Print changed paths or status JSON on stdout.",
|
|
295
|
-
"kind": "presence"
|
|
279
|
+
"options": [
|
|
280
|
+
{
|
|
281
|
+
"name": "json",
|
|
282
|
+
"description": "Print status JSON on stdout.",
|
|
283
|
+
"kind": "presence"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
296
286
|
}
|
|
297
|
-
]
|
|
298
|
-
"fallbackCommand": "run",
|
|
299
|
-
"fallbackMode": "missingOnly"
|
|
287
|
+
]
|
|
300
288
|
},
|
|
301
289
|
{
|
|
302
290
|
"key": "docs",
|
|
@@ -378,7 +366,7 @@
|
|
|
378
366
|
},
|
|
379
367
|
{
|
|
380
368
|
"key": "skill",
|
|
381
|
-
"description": "Print a reference agent SKILL; run `configure` to install an optimized copy.",
|
|
369
|
+
"description": "Print a reference agent SKILL; run `configure install` to install an optimized copy.",
|
|
382
370
|
"options": [
|
|
383
371
|
{
|
|
384
372
|
"name": "save",
|
|
@@ -43,41 +43,56 @@ Set up agent skills and MCP config for this app (binary via Homebrew).
|
|
|
43
43
|
|
|
44
44
|
> Set up agent artifacts after the binary is installed via Homebrew (see README for tap install).
|
|
45
45
|
>
|
|
46
|
-
> Homebrew
|
|
47
|
-
> full-example configure --refresh --yes
|
|
46
|
+
> Homebrew installs the binary and shell completions only. Agent artifacts live under ~/.agents and are not written during brew install.
|
|
48
47
|
>
|
|
49
|
-
>
|
|
50
|
-
> full-example configure
|
|
48
|
+
> After install or upgrade:
|
|
49
|
+
> full-example configure install
|
|
51
50
|
>
|
|
52
51
|
> Upgrade:
|
|
53
52
|
> brew upgrade full-example
|
|
53
|
+
> full-example configure install
|
|
54
54
|
>
|
|
55
55
|
> Shell completions are installed by Homebrew during brew install.
|
|
56
56
|
> See: https://docs.brew.sh/Shell-Completion
|
|
57
57
|
>
|
|
58
58
|
> See what is installed:
|
|
59
|
-
> full-example configure
|
|
59
|
+
> full-example configure status
|
|
60
60
|
>
|
|
61
61
|
> Uninstall:
|
|
62
|
+
> full-example configure uninstall
|
|
62
63
|
> brew uninstall <tap>/full-example
|
|
63
64
|
>
|
|
64
|
-
>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
> Use `configure status --json` for machine-readable output.
|
|
66
|
+
|
|
67
|
+
#### Subcommands
|
|
68
|
+
|
|
69
|
+
- `install` — Install agent artifacts and bootstrap app config.
|
|
70
|
+
- `uninstall` — Remove agent artifacts and app config.
|
|
71
|
+
- `status` — Print what is currently installed (read-only).
|
|
72
|
+
|
|
73
|
+
##### `full-example echo configure install`
|
|
74
|
+
|
|
75
|
+
Install agent artifacts and bootstrap app config.
|
|
76
|
+
|
|
77
|
+
##### `full-example echo configure uninstall`
|
|
78
|
+
|
|
79
|
+
Remove agent artifacts and app config.
|
|
80
|
+
|
|
81
|
+
#### Options
|
|
82
|
+
|
|
83
|
+
| Option | Type | Required | Format / default | Description |
|
|
84
|
+
| --- | --- | --- | --- | --- |
|
|
85
|
+
| `--yes` (`-y`) | flag | optional | — | Skip uninstall confirmation. |
|
|
86
|
+
|
|
87
|
+
##### `full-example echo configure status`
|
|
68
88
|
|
|
69
|
-
|
|
89
|
+
Print what is currently installed (read-only).
|
|
70
90
|
|
|
71
91
|
#### Options
|
|
72
92
|
|
|
73
93
|
| Option | Type | Required | Format / default | Description |
|
|
74
94
|
| --- | --- | --- | --- | --- |
|
|
75
|
-
| `--
|
|
76
|
-
| `--remove-all` | flag | optional | — | Remove all detected agent artifacts (skills and MCP). |
|
|
77
|
-
| `--status` | flag | optional | — | Print what is currently installed (read-only). |
|
|
78
|
-
| `--yes` (`-y`) | flag | optional | — | Skip confirmation (required for --refresh, --remove-all, --remove-config). |
|
|
79
|
-
| `--dry` | flag | optional | — | Show what would change without writing files. |
|
|
80
|
-
| `--json` | flag | optional | — | Print changed paths or status JSON on stdout. |
|
|
95
|
+
| `--json` | flag | optional | — | Print status JSON on stdout. |
|
|
81
96
|
|
|
82
97
|
#### `full-example echo docs`
|
|
83
98
|
|
|
@@ -99,7 +114,7 @@ Print bundled CLI documentation.
|
|
|
99
114
|
- `openapi` — Print the HTTP OpenAPI 3.1 document as JSON.
|
|
100
115
|
- `cli-schema` — Print the full CLI command tree as JSON.
|
|
101
116
|
- `cli` — Print the full command reference as markdown.
|
|
102
|
-
- `skill` — Print a reference agent SKILL; run `configure` to install an optimized copy.
|
|
117
|
+
- `skill` — Print a reference agent SKILL; run `configure install` to install an optimized copy.
|
|
103
118
|
|
|
104
119
|
##### `full-example echo docs readme`
|
|
105
120
|
|
|
@@ -163,7 +178,7 @@ Print the full command reference as markdown.
|
|
|
163
178
|
|
|
164
179
|
##### `full-example echo docs skill`
|
|
165
180
|
|
|
166
|
-
Print a reference agent SKILL; run `configure` to install an optimized copy.
|
|
181
|
+
Print a reference agent SKILL; run `configure install` to install an optimized copy.
|
|
167
182
|
|
|
168
183
|
#### Options
|
|
169
184
|
|
|
@@ -262,41 +277,56 @@ Set up agent skills and MCP config for this app (binary via Homebrew).
|
|
|
262
277
|
|
|
263
278
|
> Set up agent artifacts after the binary is installed via Homebrew (see README for tap install).
|
|
264
279
|
>
|
|
265
|
-
> Homebrew
|
|
266
|
-
> full-example configure --refresh --yes
|
|
280
|
+
> Homebrew installs the binary and shell completions only. Agent artifacts live under ~/.agents and are not written during brew install.
|
|
267
281
|
>
|
|
268
|
-
>
|
|
269
|
-
> full-example configure
|
|
282
|
+
> After install or upgrade:
|
|
283
|
+
> full-example configure install
|
|
270
284
|
>
|
|
271
285
|
> Upgrade:
|
|
272
286
|
> brew upgrade full-example
|
|
287
|
+
> full-example configure install
|
|
273
288
|
>
|
|
274
289
|
> Shell completions are installed by Homebrew during brew install.
|
|
275
290
|
> See: https://docs.brew.sh/Shell-Completion
|
|
276
291
|
>
|
|
277
292
|
> See what is installed:
|
|
278
|
-
> full-example configure
|
|
293
|
+
> full-example configure status
|
|
279
294
|
>
|
|
280
295
|
> Uninstall:
|
|
296
|
+
> full-example configure uninstall
|
|
281
297
|
> brew uninstall <tap>/full-example
|
|
282
298
|
>
|
|
283
|
-
>
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
299
|
+
> Use `configure status --json` for machine-readable output.
|
|
300
|
+
|
|
301
|
+
#### Subcommands
|
|
302
|
+
|
|
303
|
+
- `install` — Install agent artifacts and bootstrap app config.
|
|
304
|
+
- `uninstall` — Remove agent artifacts and app config.
|
|
305
|
+
- `status` — Print what is currently installed (read-only).
|
|
306
|
+
|
|
307
|
+
##### `full-example status configure install`
|
|
308
|
+
|
|
309
|
+
Install agent artifacts and bootstrap app config.
|
|
310
|
+
|
|
311
|
+
##### `full-example status configure uninstall`
|
|
312
|
+
|
|
313
|
+
Remove agent artifacts and app config.
|
|
314
|
+
|
|
315
|
+
#### Options
|
|
316
|
+
|
|
317
|
+
| Option | Type | Required | Format / default | Description |
|
|
318
|
+
| --- | --- | --- | --- | --- |
|
|
319
|
+
| `--yes` (`-y`) | flag | optional | — | Skip uninstall confirmation. |
|
|
320
|
+
|
|
321
|
+
##### `full-example status configure status`
|
|
287
322
|
|
|
288
|
-
|
|
323
|
+
Print what is currently installed (read-only).
|
|
289
324
|
|
|
290
325
|
#### Options
|
|
291
326
|
|
|
292
327
|
| Option | Type | Required | Format / default | Description |
|
|
293
328
|
| --- | --- | --- | --- | --- |
|
|
294
|
-
| `--
|
|
295
|
-
| `--remove-all` | flag | optional | — | Remove all detected agent artifacts (skills and MCP). |
|
|
296
|
-
| `--status` | flag | optional | — | Print what is currently installed (read-only). |
|
|
297
|
-
| `--yes` (`-y`) | flag | optional | — | Skip confirmation (required for --refresh, --remove-all, --remove-config). |
|
|
298
|
-
| `--dry` | flag | optional | — | Show what would change without writing files. |
|
|
299
|
-
| `--json` | flag | optional | — | Print changed paths or status JSON on stdout. |
|
|
329
|
+
| `--json` | flag | optional | — | Print status JSON on stdout. |
|
|
300
330
|
|
|
301
331
|
#### `full-example status docs`
|
|
302
332
|
|
|
@@ -318,7 +348,7 @@ Print bundled CLI documentation.
|
|
|
318
348
|
- `openapi` — Print the HTTP OpenAPI 3.1 document as JSON.
|
|
319
349
|
- `cli-schema` — Print the full CLI command tree as JSON.
|
|
320
350
|
- `cli` — Print the full command reference as markdown.
|
|
321
|
-
- `skill` — Print a reference agent SKILL; run `configure` to install an optimized copy.
|
|
351
|
+
- `skill` — Print a reference agent SKILL; run `configure install` to install an optimized copy.
|
|
322
352
|
|
|
323
353
|
##### `full-example status docs readme`
|
|
324
354
|
|
|
@@ -382,7 +412,7 @@ Print the full command reference as markdown.
|
|
|
382
412
|
|
|
383
413
|
##### `full-example status docs skill`
|
|
384
414
|
|
|
385
|
-
Print a reference agent SKILL; run `configure` to install an optimized copy.
|
|
415
|
+
Print a reference agent SKILL; run `configure install` to install an optimized copy.
|
|
386
416
|
|
|
387
417
|
#### Options
|
|
388
418
|
|
|
@@ -8,12 +8,12 @@ full-example exposes an MCP server with features similar to the CLI.
|
|
|
8
8
|
|
|
9
9
|
### `.agents` auto-install
|
|
10
10
|
|
|
11
|
-
When `mcpServer.enabled` is set, `configure
|
|
11
|
+
When `mcpServer.enabled` is set, `configure install` merges this server into `~/.agents/mcp.json` per the https://dotagentsprotocol.com.
|
|
12
12
|
|
|
13
13
|
Install the CLI first so `full-example` is on your PATH (e.g. `brew install full-example`).
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
full-example configure
|
|
16
|
+
full-example configure install
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Writes or updates `~/.agents/mcp.json` with a `mcpServers` entry for this app.
|
|
@@ -36,7 +36,7 @@ For full detail, open `reference.md` in this skill directory (same as `full-exam
|
|
|
36
36
|
|
|
37
37
|
Install follows the https://dotagentsprotocol.com:
|
|
38
38
|
|
|
39
|
-
- Auto-install: `full-example configure
|
|
39
|
+
- Auto-install: `full-example configure install` when `skill.enabled` → `~/.agents/skills/full-example/`
|
|
40
40
|
- Cursor and most coding agents read `~/.agents/skills/` natively
|
|
41
41
|
|
|
42
42
|
**Claude Code (manual):** symlink or copy into Claude's skill directory:
|
|
@@ -66,31 +66,32 @@ http:
|
|
|
66
66
|
# Alias for backward compatibility
|
|
67
67
|
install: install-local
|
|
68
68
|
|
|
69
|
-
# Dev install: build, stage dev formula, brew install,
|
|
70
|
-
install-local: build
|
|
71
|
-
@NONINTERACTIVE=1 brew untap {{tap}} 2>/dev/null || true
|
|
69
|
+
# Dev install: build, stage dev formula, brew install, refresh agent artifacts
|
|
70
|
+
install-local: uninstall build
|
|
72
71
|
mkdir -p {{tap_parent}}
|
|
73
72
|
ln -sfn '{{justfile_directory()}}' {{tap_path}}
|
|
74
73
|
bun scripts/dev-formula.ts install
|
|
75
|
-
|
|
74
|
+
HOMEBREW_NO_ASK=1 brew reinstall --formula {{tap}}/{{cli_key}} || HOMEBREW_NO_ASK=1 brew install --force --formula {{tap}}/{{cli_key}}
|
|
76
75
|
bun scripts/dev-formula.ts reset
|
|
77
|
-
|
|
78
|
-
@echo "Next: {{cli_key}} configure"
|
|
76
|
+
{{cli_key}} configure install
|
|
79
77
|
|
|
80
78
|
# Remove local dev install, then install from GitHub tap (requires gh auth login)
|
|
81
79
|
install-production: uninstall
|
|
82
80
|
brew tap {{release_repo}} {{tap_git_url}}
|
|
83
81
|
brew install --formula {{release_repo}}/{{cli_key}}
|
|
84
|
-
|
|
85
|
-
@echo "Next: {{cli_key}} configure"
|
|
82
|
+
{{cli_key}} configure install
|
|
86
83
|
|
|
87
84
|
# Alias for backward compatibility
|
|
88
85
|
reinstall: reinstall-local
|
|
89
86
|
|
|
90
|
-
# Rebuild binary and swap into Cellar (run install-local first)
|
|
87
|
+
# Rebuild binary and swap into Cellar (run install-local first; run `just refresh` for skills/MCP)
|
|
91
88
|
reinstall-local: build
|
|
92
89
|
install -m 755 dist/{{cli_key}} "$(brew --prefix {{cli_key}})/bin/{{cli_key}}"
|
|
93
90
|
|
|
91
|
+
# Refresh agent skills/MCP without reinstalling the binary
|
|
92
|
+
refresh:
|
|
93
|
+
{{cli_key}} configure install
|
|
94
|
+
|
|
94
95
|
# Lint sources without writing
|
|
95
96
|
lint:
|
|
96
97
|
bun run biome check ./src ./scripts
|
|
@@ -106,6 +107,7 @@ schemagen:
|
|
|
106
107
|
# Install bun/npm dependencies
|
|
107
108
|
setup:
|
|
108
109
|
bun install
|
|
110
|
+
test -f node_modules/argsbarg/bin/argsbarg && ln -sf ../argsbarg/bin/argsbarg node_modules/.bin/argsbarg
|
|
109
111
|
|
|
110
112
|
# Run unit tests (after check)
|
|
111
113
|
test: check
|
|
@@ -117,10 +119,10 @@ release *ARGS:
|
|
|
117
119
|
|
|
118
120
|
# Install release formula from tap and run formula test
|
|
119
121
|
test-release:
|
|
120
|
-
|
|
122
|
+
HOMEBREW_NO_ASK=1 brew untap {{tap}} 2>/dev/null || true
|
|
121
123
|
mkdir -p {{tap_parent}}
|
|
122
124
|
ln -sfn '{{justfile_directory()}}' {{tap_path}}
|
|
123
|
-
|
|
125
|
+
HOMEBREW_NO_ASK=1 brew uninstall --formula {{tap}}/{{cli_key}} 2>/dev/null || true
|
|
124
126
|
brew install --formula {{tap}}/{{cli_key}}
|
|
125
127
|
brew test {{cli_key}}
|
|
126
128
|
|
|
@@ -128,28 +130,9 @@ test-release:
|
|
|
128
130
|
typecheck:
|
|
129
131
|
bun run tsc --noEmit
|
|
130
132
|
|
|
131
|
-
# Undo
|
|
132
|
-
uninstall:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
uninstall-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
# Remove app config file only
|
|
139
|
-
uninstall-config:
|
|
140
|
-
just run configure --remove-config --yes
|
|
141
|
-
|
|
142
|
-
# Remove formula and untap
|
|
143
|
-
uninstall-formula:
|
|
144
|
-
@NONINTERACTIVE=1 brew uninstall --formula {{tap}}/{{cli_key}} 2>/dev/null || true
|
|
145
|
-
@NONINTERACTIVE=1 brew uninstall --formula {{tap}}/{{cli_key}}-local 2>/dev/null || true
|
|
146
|
-
@NONINTERACTIVE=1 brew untap {{tap}} 2>/dev/null || true
|
|
147
|
-
|
|
148
|
-
# Remove release formula (does not untap)
|
|
149
|
-
uninstall-release:
|
|
150
|
-
@NONINTERACTIVE=1 brew uninstall --formula {{tap}}/{{cli_key}} 2>/dev/null || true
|
|
151
|
-
|
|
152
|
-
# Remove release formula and untap
|
|
153
|
-
uninstall-release-tap:
|
|
154
|
-
@NONINTERACTIVE=1 brew uninstall --formula {{tap}}/{{cli_key}} 2>/dev/null || true
|
|
155
|
-
@NONINTERACTIVE=1 brew untap {{tap}} 2>/dev/null || true
|
|
133
|
+
# Undo dev/Homebrew install (remove agent artifacts, then keg + untap)
|
|
134
|
+
uninstall:
|
|
135
|
+
@{{cli_key}} configure uninstall --yes 2>/dev/null || just run configure uninstall --yes
|
|
136
|
+
@HOMEBREW_NO_ASK=1 brew uninstall --formula {{tap}}/{{cli_key}} 2>/dev/null || true
|
|
137
|
+
@HOMEBREW_NO_ASK=1 brew uninstall --formula {{tap}}/{{cli_key}}-local 2>/dev/null || true
|
|
138
|
+
@HOMEBREW_NO_ASK=1 brew untap {{tap}} 2>/dev/null || true
|
|
@@ -19,17 +19,15 @@ export const formulaInstallRuby = `def install
|
|
|
19
19
|
generate_completions_from_executable(bin/"${key}", "completion", base_name: "${key}")
|
|
20
20
|
end`;
|
|
21
21
|
|
|
22
|
-
export const formulaPostInstallRuby = `def post_install
|
|
23
|
-
system bin/"${key}", "configure", "--refresh", "--yes"
|
|
24
|
-
end`;
|
|
25
|
-
|
|
26
|
-
export const formulaUninstallRuby = `def uninstall
|
|
27
|
-
system bin/"${key}", "configure", "--remove-all", "--yes"
|
|
28
|
-
end`;
|
|
29
|
-
|
|
30
22
|
export const formulaCaveatsRuby = `def caveats
|
|
31
23
|
<<~EOS
|
|
32
|
-
|
|
24
|
+
After install or upgrade:
|
|
25
|
+
${key} configure install
|
|
26
|
+
|
|
27
|
+
Before uninstall:
|
|
28
|
+
${key} configure uninstall
|
|
29
|
+
brew uninstall <tap>/${key}
|
|
30
|
+
|
|
33
31
|
Restart MCP chat apps (Cursor, Claude Desktop, etc.) after install or upgrade so they load the updated server.
|
|
34
32
|
EOS
|
|
35
33
|
end`;
|
|
@@ -136,10 +134,6 @@ export function renderFormula(coords: FormulaCoords): string {
|
|
|
136
134
|
|
|
137
135
|
${formulaInstallRuby}
|
|
138
136
|
|
|
139
|
-
${formulaPostInstallRuby}
|
|
140
|
-
|
|
141
|
-
${formulaUninstallRuby}
|
|
142
|
-
|
|
143
137
|
${formulaCaveatsRuby}
|
|
144
138
|
|
|
145
139
|
${formulaTestRuby}
|
|
@@ -10,17 +10,15 @@ class FullExampleJson < Formula
|
|
|
10
10
|
generate_completions_from_executable(bin/"full-example-json", "completion", base_name: "full-example-json")
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
def post_install
|
|
14
|
-
system bin/"full-example-json", "configure", "--refresh", "--yes"
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def uninstall
|
|
18
|
-
system bin/"full-example-json", "configure", "--remove-all", "--yes"
|
|
19
|
-
end
|
|
20
|
-
|
|
21
13
|
def caveats
|
|
22
14
|
<<~EOS
|
|
23
|
-
|
|
15
|
+
After install or upgrade:
|
|
16
|
+
full-example-json configure install
|
|
17
|
+
|
|
18
|
+
Before uninstall:
|
|
19
|
+
full-example-json configure uninstall
|
|
20
|
+
brew uninstall <tap>/full-example-json
|
|
21
|
+
|
|
24
22
|
Restart MCP chat apps (Cursor, Claude Desktop, etc.) after install or upgrade so they load the updated server.
|
|
25
23
|
EOS
|
|
26
24
|
end
|