agent-package-manager 0.4.5 → 0.5.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/cli-contract.yaml CHANGED
@@ -337,6 +337,45 @@ commandSets:
337
337
  sideEffects:
338
338
  - git_fetch
339
339
 
340
+ # ── list ───────────────────────────────────────────
341
+ list:
342
+ summary: List installed packages and their status.
343
+ description: >-
344
+ Shows all installed packages with their current version,
345
+ registry, and whether a newer version is available.
346
+ When the registry is unreachable, only local information
347
+ is displayed with a warning.
348
+ usage:
349
+ - agent-pkg list
350
+ - agent-pkg list --json
351
+
352
+ options:
353
+ - name: json
354
+ description: Output in machine-readable JSON format.
355
+ schema:
356
+ type: boolean
357
+ default: false
358
+
359
+ exits:
360
+ "0":
361
+ description: List displayed successfully.
362
+ stdout:
363
+ format: json
364
+ schema:
365
+ $ref: "#/components/schemas/ListResult"
366
+
367
+ "1":
368
+ description: >-
369
+ List failed — config or lock file missing.
370
+ stderr:
371
+ format: text
372
+
373
+ x-agent:
374
+ riskLevel: none
375
+ requiresConfirmation: false
376
+ idempotent: true
377
+ sideEffects: []
378
+
340
379
  # ── check ──────────────────────────────────────────
341
380
  check:
342
381
  summary: Run full verification pipeline for CI.
@@ -572,6 +611,38 @@ components:
572
611
  type: string
573
612
  description: Human-readable detail.
574
613
 
614
+ ListResult:
615
+ type: object
616
+ required: [packages]
617
+ properties:
618
+ packages:
619
+ type: array
620
+ items:
621
+ $ref: "#/components/schemas/ListPackage"
622
+
623
+ ListPackage:
624
+ type: object
625
+ required: [name, version, registry]
626
+ properties:
627
+ name:
628
+ type: string
629
+ description: Package name.
630
+ version:
631
+ type: string
632
+ description: Currently installed version.
633
+ registry:
634
+ type: string
635
+ description: Registry identifier.
636
+ latestVersion:
637
+ type: string
638
+ description: Latest version available in the registry.
639
+ outdated:
640
+ type: boolean
641
+ description: Whether a newer version is available.
642
+ installedTo:
643
+ type: string
644
+ description: Installation directory path.
645
+
575
646
  PublishResult:
576
647
  type: object
577
648
  required: [package, version]