argsbarg 6.1.9 → 6.2.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/README.md +187 -93
  3. package/docs/README.md +3 -2
  4. package/docs/ai-skills.md +36 -23
  5. package/docs/cli-program.md +12 -11
  6. package/docs/config-schema.md +3 -3
  7. package/docs/configure.md +12 -16
  8. package/docs/decisions.md +74 -37
  9. package/docs/developing.md +6 -6
  10. package/docs/distribution-homebrew.md +117 -104
  11. package/docs/mcp.md +21 -57
  12. package/docs/output-schema.md +2 -2
  13. package/examples/formats.ts +5 -6
  14. package/examples/full-example/README.md +7 -69
  15. package/examples/full-example/docs/cli-schema.json +1 -1659
  16. package/examples/full-example/docs/cli.md +2 -1538
  17. package/examples/full-example/docs/http.md +3 -8
  18. package/examples/full-example/docs/mcp.md +23 -59
  19. package/examples/full-example/docs/openapi.json +2 -782
  20. package/examples/full-example/docs/skill.md +18 -14
  21. package/examples/full-example/justfile +22 -14
  22. package/examples/full-example/scripts/create-identity.ts +2 -1
  23. package/examples/full-example/src/commands/status/command.test.ts +2 -2
  24. package/examples/full-example/src/commands/status/command.ts +7 -6
  25. package/examples/full-example/src/program.ts +4 -10
  26. package/examples/full-example-json/Formula/.gitkeep +0 -0
  27. package/examples/full-example-json/Formula/full-example-json.rb +35 -0
  28. package/examples/full-example-json/README.md +27 -0
  29. package/examples/full-example-json/biome.json +22 -0
  30. package/examples/full-example-json/bun.lock +48 -0
  31. package/examples/full-example-json/docs/README.md +27 -0
  32. package/examples/full-example-json/docs/cli-schema.json +2145 -0
  33. package/examples/full-example-json/docs/cli.md +1990 -0
  34. package/examples/full-example-json/docs/http.md +92 -0
  35. package/examples/full-example-json/docs/mcp.md +116 -0
  36. package/examples/full-example-json/docs/openapi.json +1246 -0
  37. package/examples/full-example-json/docs/skill.md +57 -0
  38. package/examples/full-example-json/justfile +171 -0
  39. package/examples/full-example-json/package.json +22 -0
  40. package/examples/full-example-json/scripts/create-identity.ts +12 -0
  41. package/examples/full-example-json/scripts/dev-formula.ts +97 -0
  42. package/examples/full-example-json/scripts/formula-shared.test.ts +68 -0
  43. package/examples/full-example-json/scripts/formula-shared.ts +170 -0
  44. package/examples/full-example-json/scripts/print-identity.ts +28 -0
  45. package/examples/full-example-json/scripts/release.ts +212 -0
  46. package/examples/full-example-json/src/commands/echo/command.ts +26 -0
  47. package/examples/full-example-json/src/commands/status/command.test.ts +10 -0
  48. package/examples/full-example-json/src/commands/status/command.ts +28 -0
  49. package/examples/full-example-json/src/index.ts +10 -0
  50. package/examples/full-example-json/src/program.ts +33 -0
  51. package/examples/full-example-json/src/types/md.d.ts +4 -0
  52. package/examples/full-example-json/tsconfig.json +17 -0
  53. package/examples/minimal.ts +17 -17
  54. package/examples/nested.ts +10 -10
  55. package/examples/option-required.ts +13 -13
  56. package/examples/servers.ts +10 -10
  57. package/index.d.ts +17 -43
  58. package/package.json +1 -1
  59. package/src/cli-tool/create.test.ts +44 -68
  60. package/src/cli-tool/create.ts +81 -17
  61. package/src/cli-tool/full-example-capabilities.test.ts +33 -18
  62. package/src/cli-tool/post-create.ts +31 -17
  63. package/src/cli-tool/program.ts +16 -7
  64. package/src/cli-tool/prompt.ts +27 -0
  65. package/src/cli-tool/run-create.ts +19 -7
  66. package/src/cli-tool/schemagen/schemagen.test.ts +3 -3
  67. package/src/configure/artifacts/install-validate.test.ts +20 -33
  68. package/src/configure/artifacts/paths.ts +9 -53
  69. package/src/configure/artifacts/status.test.ts +13 -16
  70. package/src/configure/artifacts/status.ts +5 -22
  71. package/src/configure/artifacts/target-base.ts +6 -15
  72. package/src/configure/artifacts/target-effective.ts +16 -54
  73. package/src/configure/artifacts/target-mcp-json.ts +2 -5
  74. package/src/configure/artifacts/target-registry.ts +0 -7
  75. package/src/configure/artifacts/target-scope.ts +7 -17
  76. package/src/configure/artifacts/target-skill.ts +6 -15
  77. package/src/configure/artifacts/target-types.ts +6 -54
  78. package/src/configure/artifacts/targets/agents-mcp.ts +11 -0
  79. package/src/configure/artifacts/targets/configure.ts +1 -5
  80. package/src/configure/artifacts/targets/index.ts +4 -44
  81. package/src/configure/artifacts/targets/skill.ts +12 -0
  82. package/src/configure/artifacts/targets.test.ts +21 -59
  83. package/src/configure/configure.test.ts +35 -46
  84. package/src/configure/index.ts +19 -19
  85. package/src/configure/prompt.ts +2 -12
  86. package/src/core/parse.test.ts +21 -32
  87. package/src/core/types.ts +18 -44
  88. package/src/core/validate.ts +28 -45
  89. package/src/docs/docs.test.ts +4 -4
  90. package/src/docs/http-guide.ts +1 -1
  91. package/src/docs/mcp-guide.ts +41 -71
  92. package/src/docs/resolve.ts +1 -1
  93. package/src/docs/save.ts +1 -1
  94. package/src/exports/cli.ts +1 -1
  95. package/src/index.ts +1 -1
  96. package/src/skill/generate.ts +26 -45
  97. package/src/skill/install.ts +18 -38
  98. package/src/skill/naming.ts +3 -27
  99. package/src/test/integration/config.test.ts +3 -3
  100. package/src/test/integration/mcp.test.ts +4 -4
  101. package/{examples/mcp-test.ts → src/test/mcp-integration-fixture.ts} +20 -22
  102. package/src/configure/artifacts/target-mcp-cli.ts +0 -127
  103. package/src/configure/artifacts/targets/chatgpt-mcp.ts +0 -12
  104. package/src/configure/artifacts/targets/claude-code-mcp.ts +0 -15
  105. package/src/configure/artifacts/targets/claude-desktop-mcp.ts +0 -12
  106. package/src/configure/artifacts/targets/claude-skill.ts +0 -16
  107. package/src/configure/artifacts/targets/codex-mcp.ts +0 -25
  108. package/src/configure/artifacts/targets/codex-skill.ts +0 -14
  109. package/src/configure/artifacts/targets/cursor-mcp.ts +0 -15
  110. package/src/configure/artifacts/targets/cursor-skill.ts +0 -16
  111. package/src/configure/artifacts/targets/openclaw-mcp.ts +0 -25
  112. package/src/configure/artifacts/targets/openclaw-skill.ts +0 -17
  113. package/src/configure/artifacts/targets/opencode-mcp.ts +0 -96
  114. package/src/configure/artifacts/targets/opencode-skill.ts +0 -15
  115. /package/examples/{full-example → full-example-json}/src/commands/render-json/__generated__/RenderJsonInputSchema.json +0 -0
  116. /package/examples/{full-example → full-example-json}/src/commands/render-json/__generated__/index.ts +0 -0
  117. /package/examples/{full-example → full-example-json}/src/commands/render-json/command.test.ts +0 -0
  118. /package/examples/{full-example → full-example-json}/src/commands/render-json/command.ts +0 -0
  119. /package/examples/{full-example → full-example-json}/src/commands/render-json/types.ts +0 -0
  120. /package/examples/{full-example → full-example-json}/src/commands/status/__generated__/StatusJsonOutputSchema.json +0 -0
  121. /package/examples/{full-example → full-example-json}/src/commands/status/__generated__/index.ts +0 -0
  122. /package/examples/{full-example → full-example-json}/src/commands/status/types.ts +0 -0
  123. /package/examples/{full-example → full-example-json}/src/commands/workspaces/__generated__/WorkspaceNameInputSchema.json +0 -0
  124. /package/examples/{full-example → full-example-json}/src/commands/workspaces/__generated__/index.ts +0 -0
  125. /package/examples/{full-example → full-example-json}/src/commands/workspaces/command.test.ts +0 -0
  126. /package/examples/{full-example → full-example-json}/src/commands/workspaces/command.ts +0 -0
  127. /package/examples/{full-example → full-example-json}/src/commands/workspaces/types.ts +0 -0
  128. /package/examples/{full-example → full-example-json}/src/db/index.test.ts +0 -0
  129. /package/examples/{full-example → full-example-json}/src/db/index.ts +0 -0
  130. /package/examples/{full-example → full-example-json}/src/db/migrate.test.ts +0 -0
  131. /package/examples/{full-example → full-example-json}/src/db/migrate.ts +0 -0
  132. /package/examples/{full-example → full-example-json}/src/db/migrations/001_workspaces.sql +0 -0
  133. /package/examples/{full-example → full-example-json}/src/db/tables/workspaces.ts +0 -0
  134. /package/examples/{full-example → full-example-json}/src/types/argsbarg.d.ts +0 -0
@@ -1,13 +1,15 @@
1
1
  ---
2
- name: full_example
3
- description: Operates the full-example CLI (echo, render-json, status, workspaces get, workspaces post, and 4 more). Use when the user mentions full-example, echo, render-json, status, or related tasks.
2
+ id: full-example
3
+ name: full-example
4
+ description: Operates the full-example CLI (echo, status). Use when the user mentions full-example, echo, status, or related tasks.
5
+ enabled: true
4
6
  ---
5
7
  <!-- Generated by full-example docs skill --save; do not edit. -->
6
8
 
7
9
 
8
10
  # full-example
9
11
 
10
- Argsbarg full example reference app
12
+ Argsbarg CLI copy template (MCP, HTTP, configure, skills; no schemagen)
11
13
 
12
14
  ## Execution
13
15
 
@@ -20,14 +22,7 @@ full-example <subcommand> [options] [args]
20
22
  ## Commands
21
23
 
22
24
  - **`full-example echo`** — Echo a message (MCP-friendly leaf).
23
- - **`full-example render-json`** — Echo a JSON message (schema-first JSON leaf demo).
24
25
  - **`full-example status`** — Show app version. (flags: --json)
25
- - **`full-example workspaces get`** — List workspaces.
26
- - **`full-example workspaces post`** — Create a workspace.
27
- - **`full-example workspaces :id get`** — Get one workspace.
28
- - **`full-example workspaces :id put`** — Replace a workspace.
29
- - **`full-example workspaces :id patch`** — Patch a workspace name.
30
- - **`full-example workspaces :id delete`** — Delete a workspace.
31
26
 
32
27
  ## Pitfalls
33
28
 
@@ -37,10 +32,19 @@ full-example <subcommand> [options] [args]
37
32
 
38
33
  For full detail, open `reference.md` in this skill directory (same as `full-example docs cli`).
39
34
 
40
- ## Cursor install location
35
+ ## Install location
41
36
 
42
- - Project: `.cursor/skills/full_example/`
43
- - Global: `~/.cursor/skills/full_example/`
37
+ Install follows the [.agents protocol](https://dotagentsprotocol.com/):
44
38
 
45
- Do not install under `~/.cursor/skills-cursor/` (reserved for Cursor built-ins).
39
+ - Auto-install: `full-example configure --sync --yes` when `skill.enabled` → `~/.agents/skills/full-example/`
40
+ - Cursor and most coding agents read `~/.agents/skills/` natively
41
+
42
+ **Claude Code (manual):** symlink or copy into Claude's skill directory:
43
+
44
+ ```bash
45
+ mkdir -p ~/.claude/skills
46
+ ln -sf ~/.agents/skills/full-example ~/.claude/skills/full-example
47
+ ```
48
+
49
+ Project override (optional): `.agents/skills/full-example/`
46
50
 
@@ -21,25 +21,31 @@ build:
21
21
  bun build ./src/index.ts --compile --outfile=dist/{{cli_key}}
22
22
  @rm -f .*.bun-build
23
23
 
24
- # Apply SQL migrations in src/db/migrations/ to a SQLite database file
25
- migrate DB="./workspaces.db":
24
+ # Run typecheck and format
25
+ check: format typecheck
26
+
27
+ # demo the HTTP API
28
+ demo-http:
26
29
  #!/usr/bin/env bash
27
30
  set -euo pipefail
28
- mkdir -p "$(dirname '{{DB}}')"
29
- for f in $(ls src/db/migrations/*.sql | sort); do
30
- echo "==> $f"
31
- sqlite3 '{{DB}}' < "$f"
32
- done
31
+ bun ./src/index.ts http --port 13000 &
32
+ trap 'kill $! 2>/dev/null || true' EXIT
33
+ until curl -sf http://127.0.0.1:13000/health/liveness >/dev/null; do sleep 0.1; done
34
+
35
+ # demo a CLI command
36
+ demo-cli:
37
+ @just run {{cli_key}} status
33
38
 
34
- # Run schemagen, typecheck, and format
35
- check: schemagen format typecheck
39
+ # demo a CLI command
40
+ demo-help:
41
+ @just run {{cli_key}} --help
36
42
 
37
43
  # Run the CLI from source with optional args; restarts on file changes
38
44
  dev *ARGS:
39
45
  bun --watch ./src/index.ts {{ARGS}}
40
46
 
41
47
  # Regenerate consumer docs under ./docs/
42
- docgen: schemagen
48
+ docgen:
43
49
  @just run docs cli-schema --save
44
50
  @just run docs cli --save
45
51
  @just run docs skill --save
@@ -53,6 +59,10 @@ alias fmt := format
53
59
  format:
54
60
  bun run biome check ./src ./scripts --write --unsafe
55
61
 
62
+ # Run the HTTP server
63
+ http:
64
+ @just run http
65
+
56
66
  # Alias for backward compatibility
57
67
  install: install-local
58
68
 
@@ -93,15 +103,13 @@ lint:
93
103
  run *ARGS:
94
104
  bun ./src/index.ts {{ARGS}}
95
105
 
96
- # Generate JSON Schema artifacts from TypeScript types
106
+ # Generate JSON Schema artifacts from TypeScript types (not used in this template)
97
107
  schemagen:
98
- argsbarg schemagen
108
+ @echo "This CLI template has no @sg types. Use full-example-json or add /** @sg */ types first."
99
109
 
100
110
  # Install bun/npm dependencies
101
- # Install bun/npm dependencies and generate schemas
102
111
  setup:
103
112
  bun install
104
- just schemagen
105
113
 
106
114
  # Run unit tests (after check)
107
115
  test: check
@@ -6,6 +6,7 @@ export const createIdentity = {
6
6
  tap: "bdombro/bun-argsbarg",
7
7
  homepage: "https://github.com/bdombro/bun-argsbarg",
8
8
  releaseRepo: "bdombro/bun-argsbarg",
9
- desc: "Argsbarg full example reference app",
9
+ desc: "Argsbarg CLI copy template (MCP, HTTP, configure, skills; no schemagen)",
10
10
  envPrefix: "FULL_EXAMPLE",
11
+ template: "cli",
11
12
  } as const;
@@ -2,9 +2,9 @@ import { describe, expect, test } from "bun:test";
2
2
  import { statusCommand } from "./command.ts";
3
3
 
4
4
  describe("status command", () => {
5
- test("exports outputSchema and json option", () => {
5
+ test("exports json option without outputSchema", () => {
6
6
  expect(statusCommand.key).toBe("status");
7
- expect(statusCommand.outputSchema).toBeDefined();
7
+ expect(statusCommand.outputSchema).toBeUndefined();
8
8
  expect(statusCommand.options?.some((o) => o.name === "json")).toBe(true);
9
9
  });
10
10
  });
@@ -1,10 +1,8 @@
1
1
  /*
2
- Status leaf — demonstrates outputSchema.
2
+ Status leaf — version with optional JSON stdout (no schemagen).
3
3
  */
4
4
 
5
5
  import { type CliLeaf, CliOptionKind } from "argsbarg";
6
- import { StatusJsonOutputSchema } from "./__generated__";
7
- import type { StatusJsonOutput } from "./types.ts";
8
6
 
9
7
  export const statusCommand = {
10
8
  key: "status",
@@ -16,13 +14,16 @@ export const statusCommand = {
16
14
  kind: CliOptionKind.Presence,
17
15
  },
18
16
  ],
19
- outputSchema: StatusJsonOutputSchema,
20
17
  handler: (ctx) => {
21
- const out: StatusJsonOutput = { version: ctx.program.version };
18
+ const out = { version: ctx.program.version };
22
19
  if (ctx.hasFlag("json")) {
23
20
  console.log(JSON.stringify(out, null, 2));
24
- } else {
21
+ return;
22
+ }
23
+ if (ctx.invocation === "cli") {
25
24
  console.log(`version=${out.version}`);
25
+ return;
26
26
  }
27
+ return out;
27
28
  },
28
29
  } satisfies CliLeaf;
@@ -6,14 +6,10 @@ import type { CliProgram } from "argsbarg";
6
6
  import readmeText from "../README.md" with { type: "text" };
7
7
  import { createIdentity } from "../scripts/create-identity.ts";
8
8
  import { echoCommand } from "./commands/echo/command.ts";
9
- import { renderJsonCommand } from "./commands/render-json/command.ts";
10
9
  import { statusCommand } from "./commands/status/command.ts";
11
- import { workspacesCommand } from "./commands/workspaces/command.ts";
12
- import { AppDb } from "./db";
13
10
 
14
11
  export const program = {
15
- key: createIdentity.key,
16
- version: "1.0.0",
12
+ commands: [echoCommand, statusCommand],
17
13
  description: createIdentity.desc,
18
14
  docs: {
19
15
  topics: {
@@ -22,11 +18,9 @@ export const program = {
22
18
  },
23
19
  },
24
20
  },
21
+ key: createIdentity.key,
25
22
  mcpServer: { enabled: true },
26
23
  httpServer: { enabled: true },
27
- readiness: AppDb.checkReadiness,
28
- hooks: {
29
- beforeInvoke: AppDb.attach,
30
- },
31
- commands: [echoCommand, renderJsonCommand, statusCommand, workspacesCommand],
24
+ skill: { enabled: true },
25
+ version: "1.0.0",
32
26
  } satisfies CliProgram;
File without changes
@@ -0,0 +1,35 @@
1
+ class FullExampleJson < Formula
2
+ desc "Argsbarg schema-first copy template (@sg schemagen, JSON schemas, REST CRUD)"
3
+ homepage "https://github.com/bdombro/bun-argsbarg"
4
+ version "1.0.0"
5
+ sha256 "d6dbe3233152d2f51feca068b23e6fd133940232fb4bb7c3f08c2d1024c10c30"
6
+
7
+ def install
8
+ bin.install "full-example-json"
9
+ chmod 0755, bin/"full-example-json"
10
+ generate_completions_from_executable(bin/"full-example-json", "completion", base_name: "full-example-json")
11
+ end
12
+
13
+ def post_install
14
+ system bin/"full-example-json", "configure", "--sync", "--yes"
15
+ end
16
+
17
+ def uninstall
18
+ system bin/"full-example-json", "configure", "--remove-all", "--yes"
19
+ end
20
+
21
+ def caveats
22
+ <<~EOS
23
+ Run `full-example-json configure` to set up agent artifacts and app config (interactive).
24
+ Restart MCP chat apps (Cursor, Claude Desktop, etc.) after install or upgrade so they load the updated server.
25
+ EOS
26
+ end
27
+
28
+ test do
29
+ assert_match version.to_s, shell_output("#{bin}/full-example-json version")
30
+ assert_predicate bash_completion/"full-example-json", :exist?
31
+ assert_predicate zsh_completion/"_full-example-json", :exist?
32
+ assert_predicate fish_completion/"full-example-json.fish", :exist?
33
+ end
34
+ url "file:///Users/briandombrowski/dev/bdombro/bun-argsbarg/examples/full-example-json/Formula/.staging/full-example-json"
35
+ end
@@ -0,0 +1,27 @@
1
+ # full-example-json
2
+
3
+ Argsbarg **schema-first copy template** — `@sg` schemagen, JSON Schema validation, REST CRUD demo (not a kitchen-sink product).
4
+
5
+ For a CLI-only template without schemagen, use `examples/full-example/` or `argsbarg create --template cli`.
6
+
7
+ ## What's in this app
8
+
9
+ - **Builtins enabled:** CLI, shell completion, `docs`, MCP, HTTP API, `configure`, agent skills
10
+ - **Commands:**
11
+ - `echo` — simple flags/positionals
12
+ - `render-json` — `kind: "json"` leaf, schemagen `inputSchema`, `ctx.inputsAs`
13
+ - `status` — schemagen `outputSchema`, `--json`
14
+ - `workspaces` — REST CRUD, `:id` param routers, verb leaves, schemagen input schemas
15
+ - **Tooling:** `@sg` schemagen, `just docgen`, Homebrew/just dev workflow, in-memory SQLite (`bun:sqlite`)
16
+
17
+ ## Quick start
18
+
19
+ From a git checkout at this directory (requires [Homebrew](https://brew.sh), [just](https://just.systems), and [Bun](https://bun.sh)):
20
+
21
+ ```bash
22
+ brew install just bun
23
+ just setup
24
+ just schemagen # after changing @sg types in src/
25
+ just run status --json
26
+ just run docs readme
27
+ ```
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
3
+ "assist": { "actions": { "source": { "organizeImports": "on" } } },
4
+ "linter": {
5
+ "enabled": true,
6
+ "rules": {
7
+ "preset": "recommended"
8
+ }
9
+ },
10
+ "formatter": {
11
+ "enabled": true,
12
+ "indentStyle": "space",
13
+ "lineWidth": 120
14
+ },
15
+ "overrides": [
16
+ {
17
+ "includes": ["**/*.json"],
18
+ "formatter": { "enabled": false },
19
+ "linter": { "enabled": false }
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "lockfileVersion": 1,
3
+ "configVersion": 1,
4
+ "workspaces": {
5
+ "": {
6
+ "name": "consumer-app-example",
7
+ "dependencies": {
8
+ "argsbarg": "file:../..",
9
+ },
10
+ "devDependencies": {
11
+ "@biomejs/biome": "^2.5.0",
12
+ "@types/bun": "^1.3.12",
13
+ "typescript": "^5.9.3",
14
+ },
15
+ },
16
+ },
17
+ "packages": {
18
+ "@biomejs/biome": ["@biomejs/biome@2.5.1", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.5.1", "@biomejs/cli-darwin-x64": "2.5.1", "@biomejs/cli-linux-arm64": "2.5.1", "@biomejs/cli-linux-arm64-musl": "2.5.1", "@biomejs/cli-linux-x64": "2.5.1", "@biomejs/cli-linux-x64-musl": "2.5.1", "@biomejs/cli-win32-arm64": "2.5.1", "@biomejs/cli-win32-x64": "2.5.1" }, "bin": { "biome": "bin/biome" } }, "sha512-IXWLCxKmae+rI7LOHS1B3EbVisQ6GRAWbhN9msa6KjNCyFWrvKZWR4oUdinaNssrV852OrSHuSPa95h1GPJc7Q=="],
19
+
20
+ "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.5.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-npqDzvqv7vFaWRiNN1Te71siRgPaqS9MpqgYCdP/CrUbkJ7ApezaeaKjueKHRN/JH/6lRjJQAHi8acQDCAz22w=="],
21
+
22
+ "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.5.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-RgwTqPAM8g2tn1j+b5oRjF/DbSBX8a4gwojtuG9XuhfK7GgomvZ9+T+tqjXiVbjLEeGJOoL6VEk8mvRTVeSybw=="],
23
+
24
+ "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.5.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-yhV35CzZh38VyMvTEXi3JTjxZBs++oCKK9KG8vB6VI5+uvQvZNR3BFWEKKzuOmx9DJJj7sQpZ4LQJcmbGTs3+Q=="],
25
+
26
+ "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.5.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-WMcvMLgByyTqVxGlq918NBBYliq9FRR9GAQVETHb+VjGVqXCZFfHlZHC1FX4ibuYY/Hg6TJE3rHU0xVrdJXNRw=="],
27
+
28
+ "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.5.1", "", { "os": "linux", "cpu": "x64" }, "sha512-J/7uHSX7NfoYDI7HijAkd8lnQIOrRb2W7j3X+tw4R+N5ExvXGsyXFiGdQcfcxfOmNQmZVSQOCDk757fwpzqQcg=="],
29
+
30
+ "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.5.1", "", { "os": "linux", "cpu": "x64" }, "sha512-ANTowtlLmPYm5yeMckWY8Xzb9Ix+JJP3tgHR/n6xRj1VWyIzzWtfRfih9hv9VmClwadpBvZduISZIbBsIlYG3A=="],
31
+
32
+ "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.5.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-zgXnKNgWPC4iPF7Y1lR3STUeCUuZRpD6IiOrC7TZTlh0Lx6FiVUT05myuMQHQ9D+1cc7uyMldi4forE6lp0ivQ=="],
33
+
34
+ "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.5.1", "", { "os": "win32", "cpu": "x64" }, "sha512-6uxpR9hvaglANkZemeSiN/FhYgkGasrEGn267eXIWvjrjJ2LhDlk251IhjVJq6MXzkV2/bcXwLwSroLyPtqRZg=="],
35
+
36
+ "@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="],
37
+
38
+ "@types/node": ["@types/node@26.0.0", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-vf2YFi1iY9lHGwNJMs01biZFbKJkrZR1T6/MlzjhJLPdntOHLhTrDSnSVcdtvjihi4VQNlrFRIxLsDBlQpAipA=="],
39
+
40
+ "argsbarg": ["argsbarg@file:../..", { "devDependencies": { "@biomejs/biome": "^2.5.0", "@types/bun": "^1.3.12", "typescript": "^5.9.3" }, "bin": { "argsbarg": "src/index.ts" } }],
41
+
42
+ "bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="],
43
+
44
+ "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
45
+
46
+ "undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="],
47
+ }
48
+ }
@@ -0,0 +1,27 @@
1
+ # full-example documentation
2
+
3
+ Reference template for argsbarg consumer docgen. Every builtin is enabled in `src/program.ts`.
4
+
5
+ | If you are… | Read |
6
+ | --- | --- |
7
+ | **Using the CLI** | [../README.md](../README.md) |
8
+ | **Authoring argsbarg schema** | `node_modules/argsbarg/docs/cli-program.md` — see `.cursor/rules/cli-program.mdc` |
9
+ | **HTTP API / curl** | [http.md](http.md) — generated; or run `full-example docs http` |
10
+ | **MCP tools** | [mcp.md](mcp.md) — generated; or run `full-example docs mcp` |
11
+ | **Full command tree (markdown)** | [cli.md](cli.md) — generated |
12
+ | **Full command tree (JSON)** | [cli-schema.json](cli-schema.json) — generated |
13
+ | **OpenAPI 3.1** | [openapi.json](openapi.json) — generated |
14
+ | **Agent skill index** | [skill.md](skill.md) — generated |
15
+
16
+ ## Framework docs vs this directory
17
+
18
+ | Layer | Contents |
19
+ | --- | --- |
20
+ | **Argsbarg framework** | How to author `CliProgram`, MCP, HTTP API | `node_modules/argsbarg/docs/` |
21
+ | **This `docs/` folder** | *full-example* command tree and guides | `just docgen` |
22
+
23
+ Do not hand-edit generated files. Refresh with:
24
+
25
+ ```bash
26
+ just docgen
27
+ ```