@mifune/agro 0.14.0 → 0.15.0-minimal.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.
Files changed (2) hide show
  1. package/dist/agro.js +5 -34
  2. package/package.json +1 -1
package/dist/agro.js CHANGED
@@ -1479,11 +1479,6 @@ fi
1479
1479
  # shellcheck source=paths.sh
1480
1480
  . "$PATHS_SH"
1481
1481
 
1482
- MIGRATOR="$SCRIPT_DIR/migrate-harness-yaml.sh"
1483
- if [ -f "$REPO_DIR/harness.yaml" ] && [ -f "$MIGRATOR" ]; then
1484
- sh "$MIGRATOR" "$REPO_DIR" >&2 || true
1485
- fi
1486
-
1487
1482
  ENV_FILE="$REPO_DIR/.env"
1488
1483
  [ -f "$ENV_FILE" ] || ENV_FILE="$REPO_DIR/.devcontainer/.env"
1489
1484
 
@@ -2222,9 +2217,9 @@ function resolveExecutionTarget(opts) {
2222
2217
  }
2223
2218
 
2224
2219
  // src/lib/version.ts
2225
- var AGRO_VERSION = true ? "0.14.0" : "0.0.0-dev";
2220
+ var AGRO_VERSION = true ? "0.15.0-minimal.1" : "0.0.0-dev";
2226
2221
  var OFFICIAL_IMAGE = "ghcr.io/mifunedev/agro";
2227
- var RELEASE_VERSION = /^[0-9]+\.[0-9]+\.[0-9]+$/;
2222
+ var RELEASE_VERSION = /^[0-9]+\.[0-9]+\.[0-9]+(?:-[a-z][a-z0-9]*\.[0-9]+)?$/;
2228
2223
  function parseReleaseVersion(value) {
2229
2224
  const bare = value.startsWith("v") ? value.slice(1) : value;
2230
2225
  return RELEASE_VERSION.test(bare) ? bare : void 0;
@@ -4436,19 +4431,6 @@ async function runHarnessStatus(name, opts, io) {
4436
4431
  function hermesTargetRoot(target) {
4437
4432
  return target.kind === "docker-compose" ? "/home/sandbox/harness" : target.workspace.targetRoot;
4438
4433
  }
4439
- async function reconcileHermes(target, io, bin, user, root = hermesTargetRoot(target)) {
4440
- const result = await target.exec({
4441
- argv: remoteControlDirScript(root, "scripts/link-providers.sh", ["--init", "--hermes-only"]),
4442
- env: agroEnvPair("PROJECT_ROOT", root),
4443
- ...user ? { user } : {},
4444
- stdio: "inherit"
4445
- });
4446
- if (result.exitCode !== 0) {
4447
- io.stderr(`${bin} harness: Hermes integration failed (exit ${result.exitCode}); no installation success reported.
4448
- `);
4449
- }
4450
- return result.exitCode;
4451
- }
4452
4434
  function unreachableReason(status) {
4453
4435
  return runtimeIsAbsent(status) ? "No container runtime is on PATH." : `The sandbox is not running (${status}).`;
4454
4436
  }
@@ -4531,7 +4513,7 @@ async function installOnHost(entry, opts, io, run, status) {
4531
4513
  });
4532
4514
  if (linked.exitCode !== 0) {
4533
4515
  io.stderr(
4534
- `${bin} harness: could not link provider skills in ${root} (exit ${linked.exitCode}); nothing was installed.
4516
+ `${bin} harness: could not link provider hooks in ${root} (exit ${linked.exitCode}); nothing was installed.
4535
4517
  Run: bash ${root}/.agro/scripts/link-providers.sh --init
4536
4518
  `
4537
4519
  );
@@ -4542,10 +4524,6 @@ Run: bash ${root}/.agro/scripts/link-providers.sh --init
4542
4524
  ...agroEnvPair("PROJECT_ROOT", root),
4543
4525
  HERMES_HOME: `${root}/.hermes`
4544
4526
  } : void 0;
4545
- if (hermes) {
4546
- const code = await reconcileHermes(target, io, bin, void 0, root);
4547
- if (code !== 0) return code;
4548
- }
4549
4527
  if (await probeInstalled(target, entry, prefix, void 0, installEnv) === true) {
4550
4528
  io.stdout(`${entry.id}: already installed (${entry.binary})
4551
4529
  `);
@@ -4576,8 +4554,6 @@ Run: bash ${root}/.agro/scripts/link-providers.sh --init
4576
4554
  `);
4577
4555
  return 1;
4578
4556
  }
4579
- const code = await reconcileHermes(target, io, bin, void 0, root);
4580
- if (code !== 0) return code;
4581
4557
  }
4582
4558
  const receipt = {
4583
4559
  prefix,
@@ -4731,10 +4707,6 @@ async function runHarnessInstall(name, opts, io) {
4731
4707
  ...agroEnvPair("PROJECT_ROOT", hermesTargetRoot(target)),
4732
4708
  HERMES_HOME: `${hermesTargetRoot(target)}/.hermes`
4733
4709
  } : void 0;
4734
- if (hermes) {
4735
- const code = await reconcileHermes(target, io, opts.bin, "sandbox");
4736
- if (code !== 0) return code;
4737
- }
4738
4710
  const already = await probeInstalled(target, entry, SANDBOX_HARNESS_PREFIX, "sandbox", installEnv);
4739
4711
  if (already === true) {
4740
4712
  io.stdout(`${entry.id}: already installed (${entry.binary})
@@ -4764,8 +4736,6 @@ async function runHarnessInstall(name, opts, io) {
4764
4736
  `);
4765
4737
  return 1;
4766
4738
  }
4767
- const code = await reconcileHermes(target, io, opts.bin, "sandbox");
4768
- if (code !== 0) return code;
4769
4739
  }
4770
4740
  io.stdout(`${entry.id}: installed \u2014 see ${sourceDocsUrl(entry.docsPath)} for authentication
4771
4741
  `);
@@ -5914,7 +5884,8 @@ Flags:
5914
5884
  --yes Non-interactive: keep every default and ask nothing
5915
5885
  --version <X.Y.Z>
5916
5886
  Run the official release image ghcr.io/mifunedev/agro:<X.Y.Z>
5917
- (implies --image). A leading v is accepted
5887
+ (implies --image). A leading v and a -<channel>.<n>
5888
+ pre-release suffix are accepted
5918
5889
  --image Run the prebuilt image instead of building (implies
5919
5890
  --no-build). The ref resolves first-match: --version or
5920
5891
  --image=<ref> > ${stateNames(bin).envPrefix}SANDBOX_IMAGE >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mifune/agro",
3
- "version": "0.14.0",
3
+ "version": "0.15.0-minimal.1",
4
4
  "description": "AGRO CLI — create and manage sandboxes for coding agents.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mifunedev/agro#readme",