agent-package-manager 0.3.0 → 0.3.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 CHANGED
@@ -81,6 +81,22 @@ agent-pkg publish ../aidev-skeleton/agent-kit
81
81
  agent-pkg publish ./my-pkg --registry github:myorg/registry --dry-run
82
82
  ```
83
83
 
84
+ ## Package Manifest
85
+
86
+ Each package must contain an `agent-pkg.package.json` with a strict schema (no additional properties allowed):
87
+
88
+ ```json
89
+ {
90
+ "schemaVersion": 1,
91
+ "id": "my-package",
92
+ "version": "1.0.0",
93
+ "description": "Optional description",
94
+ "entrypoint": "agent-contracts.yaml"
95
+ }
96
+ ```
97
+
98
+ DSL-derivable metadata (provides, exports, requires, compatible) is intentionally excluded — the DSL itself is the single source of truth for what a package contains.
99
+
84
100
  ## How It Works
85
101
 
86
102
  1. **Registry**: A GitHub repository containing versioned DSL packages under `packages/` and a manifest file (`agent-pkg.registry.json`) that indexes all packages and their versions with commit SHAs
package/cli-contract.yaml CHANGED
@@ -454,8 +454,10 @@ commandSets:
454
454
  summary: Publish a package to a registry repository.
455
455
  description: >-
456
456
  Publishes a local package directory to a GitHub registry
457
- repository. Validates the package, copies files into the
458
- registry working copy, updates the registry manifest
457
+ repository. Reads package.json and agent-pkg.package.json
458
+ (strict schema validation), checks version consistency,
459
+ computes content hash, copies files into the registry
460
+ working copy, updates the registry manifest
459
461
  (agent-pkg.registry.json), commits, and pushes. Can be
460
462
  run from any project — specify the source directory and
461
463
  target registry.
@@ -470,8 +472,7 @@ commandSets:
470
472
  index: 0
471
473
  required: true
472
474
  description: >-
473
- Path to the local package directory to publish. Can be
474
- relative to the current working directory.
475
+ Path to the local package directory to publish.
475
476
  schema:
476
477
  type: string
477
478
  file:
@@ -699,3 +700,6 @@ components:
699
700
  pushed:
700
701
  type: boolean
701
702
  description: Whether the commit was pushed to remote.
703
+ dryRun:
704
+ type: boolean
705
+ description: Whether this was a dry run.
@@ -1,3 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
1
7
  // src/index.ts
2
8
  import { readFileSync } from "fs";
3
9
  import { fileURLToPath } from "url";
@@ -7,6 +13,7 @@ var pkg = JSON.parse(readFileSync(resolve(__dirname, "../package.json"), "utf8")
7
13
  var VERSION = pkg.version;
8
14
 
9
15
  export {
16
+ __export,
10
17
  VERSION
11
18
  };
12
- //# sourceMappingURL=chunk-5XXBSF75.js.map
19
+ //# sourceMappingURL=chunk-YZR4CVBR.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport { fileURLToPath } from \"node:url\";\nimport { resolve, dirname } from \"node:path\";\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst pkg = JSON.parse(readFileSync(resolve(__dirname, \"../package.json\"), \"utf8\"));\n\nexport const VERSION: string = pkg.version;\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;AAC9B,SAAS,SAAS,eAAe;AAEjC,IAAM,YAAY,QAAQ,cAAc,YAAY,GAAG,CAAC;AACxD,IAAM,MAAM,KAAK,MAAM,aAAa,QAAQ,WAAW,iBAAiB,GAAG,MAAM,CAAC;AAE3E,IAAM,UAAkB,IAAI;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport { fileURLToPath } from \"node:url\";\nimport { resolve, dirname } from \"node:path\";\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst pkg = JSON.parse(readFileSync(resolve(__dirname, \"../package.json\"), \"utf8\"));\n\nexport const VERSION: string = pkg.version;\n"],"mappings":";;;;;;;AAAA,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;AAC9B,SAAS,SAAS,eAAe;AAEjC,IAAM,YAAY,QAAQ,cAAc,YAAY,GAAG,CAAC;AACxD,IAAM,MAAM,KAAK,MAAM,aAAa,QAAQ,WAAW,iBAAiB,GAAG,MAAM,CAAC;AAE3E,IAAM,UAAkB,IAAI;","names":[]}