agent-package-manager 0.3.1 → 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/cli-contract.yaml CHANGED
@@ -465,7 +465,6 @@ commandSets:
465
465
  - agent-pkg publish ./agent-kit-lite --registry github:myorg/agent-pkg-registry
466
466
  - agent-pkg publish ../aidev-skeleton/agent-kit --version 1.0.0
467
467
  - agent-pkg publish ./packages/backend-api --dry-run
468
- - agent-pkg publish ./my-pkg --no-push
469
468
 
470
469
  arguments:
471
470
  - name: path
@@ -508,11 +507,6 @@ commandSets:
508
507
  type: boolean
509
508
  default: false
510
509
 
511
- - name: no-push
512
- description: Commit locally but do not push to remote.
513
- schema:
514
- type: boolean
515
- default: false
516
510
 
517
511
  exits:
518
512
  "0":
package/dist/cli/index.js CHANGED
@@ -31,7 +31,7 @@ function createProgram(handlers2, version) {
31
31
  program2.command("check").description("Run full verification pipeline for CI.").action(async (opts, cmd) => {
32
32
  await handlers2.check({}, cmd.optsWithGlobals());
33
33
  });
34
- program2.command("publish").description("Publish a package to a registry repository.").argument("<path>", "Path to the local package directory to publish.").option("--version <semver>", "Override version for this publish.").option("-r, --registry <url>", "Target registry in the format github:<owner>/<repo>. Falls back to the default registry in agent-pkg.json if not specified.").option("--name <name>", "Override package name (defaults to id in agent-pkg.package.json).").option("--dry-run", "Show what would be published without making changes.", false).option("--no-push", "Commit locally but do not push to remote.", false).action(async (path, opts, cmd) => {
34
+ program2.command("publish").description("Publish a package to a registry repository.").argument("<path>", "Path to the local package directory to publish.").option("--version <semver>", "Override version for this publish.").option("-r, --registry <url>", "Target registry in the format github:<owner>/<repo>. Falls back to the default registry in agent-pkg.json if not specified.").option("--name <name>", "Override package name (defaults to id in agent-pkg.package.json).").option("--dry-run", "Show what would be published without making changes.", false).action(async (path, opts, cmd) => {
35
35
  await handlers2.publish(path, opts, cmd.optsWithGlobals());
36
36
  });
37
37
  return program2;
@@ -5319,19 +5319,14 @@ async function runPublish(input, projectDir) {
5319
5319
  `Register ${packageName}@${version} in manifest`
5320
5320
  );
5321
5321
  log.debug(`Manifest commit: ${manifestCommit.slice(0, 12)}`);
5322
- let pushed = false;
5323
- if (!input.noPush) {
5324
- await pushBranch(workDir);
5325
- pushed = true;
5326
- log.success("Pushed to remote");
5327
- }
5322
+ await pushBranch(workDir);
5323
+ log.success("Pushed to remote");
5328
5324
  const result = {
5329
5325
  package: packageName,
5330
5326
  version,
5331
5327
  registry: `github:${owner}/${repo}`,
5332
5328
  commit: packageCommit,
5333
- contentHash,
5334
- pushed
5329
+ contentHash
5335
5330
  };
5336
5331
  log.success(`Published ${packageName}@${version}`);
5337
5332
  console.log(JSON.stringify(result, null, 2));
@@ -5411,14 +5406,12 @@ var handlers = {
5411
5406
  console.error("\u2717 Package path is required. Usage: agent-pkg publish <path>");
5412
5407
  process.exit(1);
5413
5408
  }
5414
- const o = opts;
5415
5409
  await runPublish({
5416
5410
  path,
5417
5411
  version: opts.version,
5418
5412
  registry: opts.registry,
5419
5413
  name: opts.name,
5420
- dryRun: opts.dryRun,
5421
- noPush: o.push === false
5414
+ dryRun: opts.dryRun
5422
5415
  }, cwd).catch(handleError);
5423
5416
  }
5424
5417
  };