agent-package-manager 0.3.0 → 0.3.2
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 +16 -0
- package/cli-contract.yaml +8 -10
- package/dist/{chunk-5XXBSF75.js → chunk-YZR4CVBR.js} +8 -1
- package/dist/{chunk-5XXBSF75.js.map → chunk-YZR4CVBR.js.map} +1 -1
- package/dist/cli/index.js +4080 -26
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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.
|
|
458
|
-
|
|
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.
|
|
@@ -463,15 +465,13 @@ commandSets:
|
|
|
463
465
|
- agent-pkg publish ./agent-kit-lite --registry github:myorg/agent-pkg-registry
|
|
464
466
|
- agent-pkg publish ../aidev-skeleton/agent-kit --version 1.0.0
|
|
465
467
|
- agent-pkg publish ./packages/backend-api --dry-run
|
|
466
|
-
- agent-pkg publish ./my-pkg --no-push
|
|
467
468
|
|
|
468
469
|
arguments:
|
|
469
470
|
- name: path
|
|
470
471
|
index: 0
|
|
471
472
|
required: true
|
|
472
473
|
description: >-
|
|
473
|
-
Path to the local package directory to publish.
|
|
474
|
-
relative to the current working directory.
|
|
474
|
+
Path to the local package directory to publish.
|
|
475
475
|
schema:
|
|
476
476
|
type: string
|
|
477
477
|
file:
|
|
@@ -507,11 +507,6 @@ commandSets:
|
|
|
507
507
|
type: boolean
|
|
508
508
|
default: false
|
|
509
509
|
|
|
510
|
-
- name: no-push
|
|
511
|
-
description: Commit locally but do not push to remote.
|
|
512
|
-
schema:
|
|
513
|
-
type: boolean
|
|
514
|
-
default: false
|
|
515
510
|
|
|
516
511
|
exits:
|
|
517
512
|
"0":
|
|
@@ -699,3 +694,6 @@ components:
|
|
|
699
694
|
pushed:
|
|
700
695
|
type: boolean
|
|
701
696
|
description: Whether the commit was pushed to remote.
|
|
697
|
+
dryRun:
|
|
698
|
+
type: boolean
|
|
699
|
+
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-
|
|
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":"
|
|
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":[]}
|