argsbarg 7.1.2 → 7.1.3

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 (58) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/README.md +7 -7
  3. package/docs/README.md +1 -1
  4. package/docs/cli-program.md +1 -1
  5. package/docs/configure.md +2 -2
  6. package/docs/mcp.md +20 -0
  7. package/docs/output-schema.md +6 -0
  8. package/examples/full-example/AGENTS.md +1 -1
  9. package/examples/full-example/bun.lock +83 -1
  10. package/examples/full-example/justfile +5 -3
  11. package/examples/full-example-json/AGENTS.md +1 -1
  12. package/examples/full-example-json/README.md +1 -0
  13. package/examples/full-example-json/bun.lock +83 -1
  14. package/examples/full-example-json/docs/cli-schema.json +284 -9
  15. package/examples/full-example-json/docs/cli.md +236 -18
  16. package/examples/full-example-json/docs/http.md +1 -0
  17. package/examples/full-example-json/docs/mcp.md +18 -0
  18. package/examples/full-example-json/docs/openapi.json +155 -0
  19. package/examples/full-example-json/justfile +5 -3
  20. package/examples/full-example-json/src/commands/shape-area/__generated__/ShapeAreaInputSchema.json +59 -0
  21. package/examples/full-example-json/src/commands/shape-area/__generated__/index.ts +5 -0
  22. package/examples/full-example-json/src/commands/shape-area/command.test.ts +34 -0
  23. package/examples/full-example-json/src/commands/shape-area/command.ts +31 -0
  24. package/examples/full-example-json/src/commands/shape-area/types.ts +28 -0
  25. package/examples/full-example-json/src/program.ts +2 -1
  26. package/examples/mcp-plugin/.claude-plugin/plugin.json +7 -1
  27. package/examples/mcp-plugin/.cursor-plugin/plugin.json +7 -1
  28. package/examples/mcp-plugin/AGENTS.md +14 -1
  29. package/examples/mcp-plugin/README.md +19 -10
  30. package/examples/mcp-plugin/bun.lock +83 -1
  31. package/examples/mcp-plugin/bunfig.toml +4 -0
  32. package/examples/mcp-plugin/docs/node-distro.md +97 -0
  33. package/examples/mcp-plugin/justfile +12 -11
  34. package/examples/mcp-plugin/package.json +2 -1
  35. package/examples/mcp-plugin/scripts/release.ts +10 -11
  36. package/package.json +1 -1
  37. package/src/cli-tool/create.test.ts +14 -0
  38. package/src/cli-tool/create.ts +9 -0
  39. package/src/cli-tool/main.ts +1 -1
  40. package/src/cli-tool/schemagen/run.ts +41 -2
  41. package/src/cli-tool/schemagen/schemagen.test.ts +87 -2
  42. package/src/config/validate.ts +13 -31
  43. package/src/core/json-pointer.ts +46 -0
  44. package/src/core/validate.ts +64 -1
  45. package/src/headless/tool-call.test.ts +74 -2
  46. package/src/headless/tool-call.ts +44 -22
  47. package/src/http/schema-deref.ts +1 -23
  48. package/src/mcp/tools.test.ts +137 -3
  49. package/src/mcp/tools.ts +50 -5
  50. package/examples/mcp-plugin/.mcp.json +0 -6
  51. package/examples/mcp-plugin/mcp.json +0 -8
  52. package/examples/mcp-plugin/scripts/mcp.mjs +0 -11106
  53. package/examples/mcp-plugin/src/commands/render-json/__generated__/RenderJsonInputSchema.json +0 -15
  54. package/examples/mcp-plugin/src/commands/render-json/__generated__/index.ts +0 -5
  55. package/examples/mcp-plugin/src/commands/status/__generated__/StatusJsonOutputSchema.json +0 -15
  56. package/examples/mcp-plugin/src/commands/status/__generated__/index.ts +0 -5
  57. package/examples/mcp-plugin/src/commands/workspaces/__generated__/WorkspaceNameInputSchema.json +0 -15
  58. package/examples/mcp-plugin/src/commands/workspaces/__generated__/index.ts +0 -5
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "message": {
6
- "type": "string",
7
- "description": "Message to echo back."
8
- }
9
- },
10
- "required": [
11
- "message"
12
- ],
13
- "additionalProperties": false,
14
- "definitions": {}
15
- }
@@ -1,5 +0,0 @@
1
- // Auto-generated by argsbarg schemagen — do not edit by hand.
2
-
3
- import RenderJsonInputSchemaJson from "./RenderJsonInputSchema.json";
4
-
5
- export const RenderJsonInputSchema = RenderJsonInputSchemaJson as Record<string, unknown>;
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "version": {
6
- "type": "string",
7
- "description": "App version from program root."
8
- }
9
- },
10
- "required": [
11
- "version"
12
- ],
13
- "additionalProperties": false,
14
- "definitions": {}
15
- }
@@ -1,5 +0,0 @@
1
- // Auto-generated by argsbarg schemagen — do not edit by hand.
2
-
3
- import StatusJsonOutputSchemaJson from "./StatusJsonOutputSchema.json";
4
-
5
- export const StatusJsonOutputSchema = StatusJsonOutputSchemaJson as Record<string, unknown>;
@@ -1,15 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "name": {
6
- "type": "string",
7
- "description": "Workspace display name."
8
- }
9
- },
10
- "required": [
11
- "name"
12
- ],
13
- "additionalProperties": false,
14
- "definitions": {}
15
- }
@@ -1,5 +0,0 @@
1
- // Auto-generated by argsbarg schemagen — do not edit by hand.
2
-
3
- import WorkspaceNameInputSchemaJson from "./WorkspaceNameInputSchema.json";
4
-
5
- export const WorkspaceNameInputSchema = WorkspaceNameInputSchemaJson as Record<string, unknown>;