agent-package-manager 0.4.4 → 0.5.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.
package/README.md CHANGED
@@ -40,7 +40,6 @@ npm install -D agent-package-manager
40
40
  | `agent-pkg sync` | Restore `agent_modules/` from lock file |
41
41
  | `agent-pkg update [pkg]` | Update packages to newer versions |
42
42
  | `agent-pkg diff <pkg>` | Show semantic diff between versions |
43
- | `agent-pkg materialize` | Build resolved DSL and generate runtime artifacts |
44
43
  | `agent-pkg check` | Run full CI verification pipeline |
45
44
  | `agent-pkg publish <path>` | Publish a package to a registry |
46
45
 
@@ -59,9 +58,6 @@ agent-pkg add backend-api@1.0.0
59
58
  mkdir -p agent_overrides
60
59
  # Edit agent_overrides/backend-api.yaml
61
60
 
62
- # Rebuild
63
- agent-pkg materialize
64
-
65
61
  # CI check
66
62
  agent-pkg check
67
63
  ```
package/cli-contract.yaml CHANGED
@@ -7,7 +7,7 @@ info:
7
7
  description: >-
8
8
  Package manager for agent-contracts DSL. Manages shared agent team
9
9
  definitions stored in GitHub private repositories with npm-like UX.
10
- Supports add, sync, update, diff, materialize, check, and publish
10
+ Supports add, sync, update, diff, check, and publish
11
11
  workflows backed by git tags and content hashing.
12
12
  license:
13
13
  name: MIT
@@ -48,14 +48,11 @@ commandSets:
48
48
  Creates the initial configuration files and directory structure
49
49
  for managing agent-contracts DSL packages. Generates
50
50
  agent-pkg.json, agent-pkg.lock.json, agent-contracts.yaml,
51
- agent-runtime.config.yaml, and the agent_modules/,
52
- agent_overrides/, and .agent-pkg/build/ directories.
51
+ and the agent_modules/ and agent_overrides/ directories.
53
52
  usage:
54
53
  - agent-pkg init
55
54
  - agent-pkg init --registry github:foo/agent-pkg-registry
56
55
  - agent-pkg init --modules-dir agent_modules
57
- - agent-pkg init --build-dir .agent-pkg/build
58
-
59
56
  options:
60
57
  - name: registry
61
58
  aliases: [r]
@@ -72,13 +69,6 @@ commandSets:
72
69
  type: string
73
70
  default: agent_modules
74
71
 
75
- - name: build-dir
76
- description: Directory for build artifacts.
77
- valueName: path
78
- schema:
79
- type: string
80
- default: .agent-pkg/build
81
-
82
72
  exits:
83
73
  "0":
84
74
  description: Project initialized successfully.
@@ -106,12 +96,10 @@ commandSets:
106
96
  Fetches a package from a GitHub registry repository by resolving
107
97
  the git tag, clones/fetches into the local cache, extracts the
108
98
  package into agent_modules/, updates agent-pkg.json and
109
- agent-pkg.lock.json, adds extends entry to agent-contracts.yaml,
110
- and runs materialize.
99
+ agent-pkg.lock.json, and adds extends entry to agent-contracts.yaml.
111
100
  usage:
112
101
  - agent-pkg add backend-api@1.2.3
113
102
  - "agent-pkg add github:foo/agent-pkg-registry//packages/backend-api@1.2.3"
114
- - agent-pkg add backend-api@1.2.3 --no-materialize
115
103
  - agent-pkg add backend-api@1.2.3 --alias api
116
104
 
117
105
  arguments:
@@ -139,15 +127,9 @@ commandSets:
139
127
  schema:
140
128
  type: string
141
129
 
142
- - name: no-materialize
143
- description: Skip the materialize step after adding.
144
- schema:
145
- type: boolean
146
- default: false
147
-
148
130
  exits:
149
131
  "0":
150
- description: Package added and materialized successfully.
132
+ description: Package added successfully.
151
133
  stdout:
152
134
  format: json
153
135
  schema:
@@ -156,7 +138,7 @@ commandSets:
156
138
  "1":
157
139
  description: >-
158
140
  Add failed — package not found, tag resolution failed,
159
- git fetch error, or materialize error.
141
+ or git fetch error.
160
142
  stderr:
161
143
  format: text
162
144
 
@@ -174,9 +156,8 @@ commandSets:
174
156
  description: >-
175
157
  Reads agent-pkg.lock.json and restores all packages into
176
158
  agent_modules/ at the exact commits recorded in the lock file.
177
- Verifies content hashes, regenerates the resolved DSL, and
178
- runs agent-runtime generate. Use --check for CI to detect
179
- any drift without modifying files.
159
+ Verifies content hashes. Use --check for CI to detect any
160
+ drift without modifying files.
180
161
  usage:
181
162
  - agent-pkg sync
182
163
  - agent-pkg sync --check
@@ -219,8 +200,8 @@ commandSets:
219
200
  summary: Update packages to newer versions.
220
201
  description: >-
221
202
  Fetches the latest tags from the registry repository, selects
222
- update candidates based on semver range, updates agent_modules/,
223
- and runs materialize. Without arguments, updates all packages.
203
+ update candidates based on semver range, and updates
204
+ agent_modules/. Without arguments, updates all packages.
224
205
  With a package name, updates only that package. With --dry-run,
225
206
  shows what would be updated without making changes.
226
207
  usage:
@@ -283,8 +264,7 @@ commandSets:
283
264
 
284
265
  "1":
285
266
  description: >-
286
- Update failed — registry fetch error, no update candidates,
287
- or materialize error.
267
+ Update failed — registry fetch error or no update candidates.
288
268
  stderr:
289
269
  format: text
290
270
 
@@ -357,74 +337,14 @@ commandSets:
357
337
  sideEffects:
358
338
  - git_fetch
359
339
 
360
- # ── materialize ────────────────────────────────────
361
- materialize:
362
- summary: Build resolved DSL and generate runtime artifacts.
363
- description: >-
364
- Reads agent-pkg.json and agent_modules/ package manifests,
365
- resolves agent-contracts.yaml with extends and overrides,
366
- applies vars, writes the resolved DSL to .agent-pkg/build/,
367
- runs agent-contracts validate and lint, then runs
368
- agent-runtime generate to produce typed contracts and hooks.
369
- usage:
370
- - agent-pkg materialize
371
- - agent-pkg materialize --no-generate
372
- - agent-pkg materialize --no-lint
373
- - agent-pkg materialize --clean
374
-
375
- options:
376
- - name: no-generate
377
- description: Skip agent-runtime generate step.
378
- schema:
379
- type: boolean
380
- default: false
381
-
382
- - name: no-lint
383
- description: Skip agent-contracts lint step.
384
- schema:
385
- type: boolean
386
- default: false
387
-
388
- - name: clean
389
- description: Clean build directory before materializing.
390
- schema:
391
- type: boolean
392
- default: false
393
-
394
- exits:
395
- "0":
396
- description: Materialize completed successfully.
397
- stdout:
398
- format: json
399
- schema:
400
- $ref: "#/components/schemas/MaterializeResult"
401
-
402
- "1":
403
- description: >-
404
- Materialize failed — DSL resolution error, validation
405
- error, lint error, or generation error.
406
- stderr:
407
- format: text
408
-
409
- x-agent:
410
- riskLevel: medium
411
- requiresConfirmation: false
412
- idempotent: true
413
- sideEffects:
414
- - filesystem_write
415
- recommendedBeforeUse:
416
- - Ensure agent_modules/ is populated (run sync or add first).
417
-
418
340
  # ── check ──────────────────────────────────────────
419
341
  check:
420
342
  summary: Run full verification pipeline for CI.
421
343
  description: >-
422
344
  Executes the complete verification pipeline: validates
423
345
  agent-pkg.json and lock file schemas, checks version/lock
424
- consistency, verifies agent_modules content hashes, checks
425
- resolved DSL hash, runs agent-contracts validate and lint
426
- --strict, runs agent-runtime generate --check, and runs
427
- agent-runtime doctor. Returns non-zero on any failure.
346
+ consistency, and verifies agent_modules content hashes.
347
+ Returns non-zero on any failure.
428
348
  usage:
429
349
  - agent-pkg check
430
350
 
@@ -572,9 +492,6 @@ components:
572
492
  installedTo:
573
493
  type: string
574
494
  description: Path where the package was installed.
575
- materialized:
576
- type: boolean
577
- description: Whether materialize was run after install.
578
495
 
579
496
  SyncResult:
580
497
  type: object
@@ -628,23 +545,6 @@ components:
628
545
  hasBreakingChanges:
629
546
  type: boolean
630
547
 
631
- MaterializeResult:
632
- type: object
633
- required: [resolvedDslPath]
634
- properties:
635
- resolvedDslPath:
636
- type: string
637
- description: Path to the resolved DSL file.
638
- resolvedDslHash:
639
- type: string
640
- description: SHA-256 hash of the resolved DSL.
641
- validated:
642
- type: boolean
643
- linted:
644
- type: boolean
645
- generated:
646
- type: boolean
647
-
648
548
  CheckResult:
649
549
  type: object
650
550
  required: [checks, allPassed]