@adl-spec/cli 0.1.0 → 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 ADDED
@@ -0,0 +1,58 @@
1
+ # ADL CLI
2
+
3
+ The official command-line tool for the [Agent Definition Language (ADL)](https://adl-spec.org). Validate agent definitions against the spec, convert them to A2A Agent Cards or MCP configurations, and scaffold new documents from templates.
4
+
5
+ ## Quick start
6
+
7
+ ```bash
8
+ npx @adl-spec/cli init # scaffold a new agent definition
9
+ npx @adl-spec/cli validate agent.adl.json # validate it against the schema
10
+ ```
11
+
12
+ Or install globally:
13
+
14
+ ```bash
15
+ npm install -g @adl-spec/cli
16
+ adl validate agent.adl.yaml
17
+ ```
18
+
19
+ > **Note:** The CLI requires [Bun](https://bun.sh/) (>= 1.0.0) as its runtime.
20
+
21
+ ## Commands
22
+
23
+ ### `adl validate <files...>`
24
+
25
+ Validate one or more ADL documents against the spec schema. Returns a non-zero exit code if any document is invalid — useful for CI pipelines and pre-commit hooks.
26
+
27
+ ```bash
28
+ adl validate agent.adl.yaml
29
+ adl validate agents/*.yaml
30
+ ```
31
+
32
+ ### `adl convert <file> --to <format>`
33
+
34
+ Generate an [A2A Agent Card](https://google.github.io/A2A/) or [MCP](https://modelcontextprotocol.io/) configuration from an ADL document. One source of truth, multiple output formats.
35
+
36
+ ```bash
37
+ adl convert agent.adl.yaml --to a2a
38
+ adl convert agent.adl.yaml --to mcp --output mcp-config.json
39
+ ```
40
+
41
+ ### `adl init`
42
+
43
+ Scaffold a new ADL document from a built-in template. Choose `minimal` for the basics, `full` for every field, or `governance` for compliance-ready definitions.
44
+
45
+ ```bash
46
+ adl init
47
+ adl init --template governance --output my-agent.adl.json
48
+ ```
49
+
50
+ ## Learn more
51
+
52
+ - [ADL Specification](https://adl-spec.org/specification)
53
+ - [Governance Profile](https://adl-spec.org/profiles/governance/overview)
54
+ - [GitHub](https://github.com/Ironstead-Group/agent-definition-language)
55
+
56
+ ## License
57
+
58
+ [Apache-2.0](https://github.com/Ironstead-Group/agent-definition-language/blob/main/LICENSE)
package/dist/index.js CHANGED
@@ -18054,7 +18054,7 @@ function registerInitCommand(program2) {
18054
18054
 
18055
18055
  // src/index.ts
18056
18056
  var program2 = new Command;
18057
- program2.name("adl").description("CLI tooling for the Agent Definition Language (ADL)").version("0.1.0");
18057
+ program2.name("adl").description("CLI tooling for the Agent Definition Language (ADL)").version("0.1.1");
18058
18058
  registerValidateCommand(program2);
18059
18059
  registerConvertCommand(program2);
18060
18060
  registerInitCommand(program2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adl-spec/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI tooling for the Agent Definition Language (ADL)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,7 +14,8 @@
14
14
  "build": "bun build src/index.ts --outdir dist --target node",
15
15
  "build:bin": "bun run scripts/build-binaries.ts",
16
16
  "test": "bun test",
17
- "typecheck": "tsc --noEmit"
17
+ "typecheck": "tsc --noEmit",
18
+ "bump": "bun run scripts/bump-version.ts"
18
19
  },
19
20
  "dependencies": {
20
21
  "ajv": "^8.17.1",
@@ -37,7 +38,7 @@
37
38
  "license": "Apache-2.0",
38
39
  "repository": {
39
40
  "type": "git",
40
- "url": "git+https://github.com/IronsteadGroup/agent-definition-language.git",
41
+ "url": "git+https://github.com/Ironstead-Group/agent-definition-language.git",
41
42
  "directory": "packages/adl-cli"
42
43
  },
43
44
  "keywords": [