@forgezero/agent 0.1.52 → 0.1.53

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.
@@ -749,7 +749,7 @@ async function postSignedNode(options, path, body) {
749
749
  }
750
750
 
751
751
  // src/version.ts
752
- var VERSION3 = "0.1.52";
752
+ var VERSION3 = "0.1.53";
753
753
 
754
754
  // src/agent-heartbeat.ts
755
755
  var unquote = (value) => value.replace(/^['"]|['"]$/g, "");
package/dist/bootstrap.js CHANGED
@@ -1207,7 +1207,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1207
1207
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1208
1208
 
1209
1209
  // src/version.ts
1210
- var VERSION = "0.1.52";
1210
+ var VERSION = "0.1.53";
1211
1211
 
1212
1212
  // src/software.ts
1213
1213
  var PINNED_BUN_VERSION = "1.3.14";
@@ -88,7 +88,7 @@ async function executeSoftwareOperation(operation) {
88
88
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
89
89
  }
90
90
  if (software === "arangodb") {
91
- const binary = await run(["/usr/bin/arangod", "--version"]);
91
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
92
92
  if (!successful(binary, /3\.11\.14/))
93
93
  return { ...binary, exitCode: 1 };
94
94
  const [active, enabled] = await Promise.all([
@@ -387,7 +387,7 @@ function planCommunityRehearsalPrepare(request) {
387
387
  const node = exactNode(request.node);
388
388
  const releaseRoot = `${COMMUNITY_REHEARSAL_ROOT}/releases/${request.release}`;
389
389
  return [
390
- { kind: "exec", argv: ["/usr/bin/arangod", "--version"] },
390
+ { kind: "exec", argv: ["/usr/sbin/arangod", "--version"] },
391
391
  { kind: "exec", argv: ["/usr/bin/systemctl", "stop", "forgezero-community-api.service"], accepted: [0, 5] },
392
392
  { kind: "exec", argv: ["/usr/bin/systemctl", "stop", "forgezero-rehearsal-db.service"], accepted: [0, 5] },
393
393
  { kind: "remove-tree", path: COMMUNITY_DATABASE_ROOT },
@@ -442,7 +442,7 @@ async function applyOperations(operations) {
442
442
  const result = await exec(operation.argv, operation.stdin);
443
443
  if (!(operation.accepted ?? [0]).includes(result.exitCode))
444
444
  throw new Error(`${operation.argv[0]} failed (${result.exitCode}): ${result.output.trim()}`);
445
- if (operation.argv[0] === "/usr/bin/arangod" && !result.output.split(/\r?\n/, 1)[0]?.includes(COMMUNITY_REHEARSAL_VERSION)) {
445
+ if (operation.argv[0] === "/usr/sbin/arangod" && !result.output.split(/\r?\n/, 1)[0]?.includes(COMMUNITY_REHEARSAL_VERSION)) {
446
446
  throw new Error(`community rehearsal requires ArangoDB ${COMMUNITY_REHEARSAL_VERSION}`);
447
447
  }
448
448
  }
@@ -88,7 +88,7 @@ async function executeSoftwareOperation(operation) {
88
88
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
89
89
  }
90
90
  if (software === "arangodb") {
91
- const binary = await run(["/usr/bin/arangod", "--version"]);
91
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
92
92
  if (!successful(binary, /3\.11\.14/))
93
93
  return { ...binary, exitCode: 1 };
94
94
  const [active, enabled] = await Promise.all([
@@ -88,7 +88,7 @@ async function executeSoftwareOperation(operation) {
88
88
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
89
89
  }
90
90
  if (software === "arangodb") {
91
- const binary = await run(["/usr/bin/arangod", "--version"]);
91
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
92
92
  if (!successful(binary, /3\.11\.14/))
93
93
  return { ...binary, exitCode: 1 };
94
94
  const [active, enabled] = await Promise.all([
package/dist/fz-agent.js CHANGED
@@ -5037,7 +5037,7 @@ async function executeSoftwareOperation(operation) {
5037
5037
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
5038
5038
  }
5039
5039
  if (software === "arangodb") {
5040
- const binary = await run(["/usr/bin/arangod", "--version"]);
5040
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
5041
5041
  if (!successful(binary, /3\.11\.14/))
5042
5042
  return { ...binary, exitCode: 1 };
5043
5043
  const [active, enabled] = await Promise.all([
@@ -7010,7 +7010,7 @@ function assertSupportedGuestImage(imageKey) {
7010
7010
  }
7011
7011
 
7012
7012
  // src/version.ts
7013
- var VERSION = "0.1.52";
7013
+ var VERSION = "0.1.53";
7014
7014
 
7015
7015
  // src/ssh-bootstrap.ts
7016
7016
  class SshBootstrapError extends Error {
@@ -13352,7 +13352,7 @@ function planCommunityRehearsalPrepare(request) {
13352
13352
  const node = exactNode(request.node);
13353
13353
  const releaseRoot = `${COMMUNITY_REHEARSAL_ROOT}/releases/${request.release}`;
13354
13354
  return [
13355
- { kind: "exec", argv: ["/usr/bin/arangod", "--version"] },
13355
+ { kind: "exec", argv: ["/usr/sbin/arangod", "--version"] },
13356
13356
  { kind: "exec", argv: ["/usr/bin/systemctl", "stop", "forgezero-community-api.service"], accepted: [0, 5] },
13357
13357
  { kind: "exec", argv: ["/usr/bin/systemctl", "stop", "forgezero-rehearsal-db.service"], accepted: [0, 5] },
13358
13358
  { kind: "remove-tree", path: COMMUNITY_DATABASE_ROOT },
@@ -13407,7 +13407,7 @@ async function applyOperations(operations) {
13407
13407
  const result = await exec(operation.argv, operation.stdin);
13408
13408
  if (!(operation.accepted ?? [0]).includes(result.exitCode))
13409
13409
  throw new Error(`${operation.argv[0]} failed (${result.exitCode}): ${result.output.trim()}`);
13410
- if (operation.argv[0] === "/usr/bin/arangod" && !result.output.split(/\r?\n/, 1)[0]?.includes(COMMUNITY_REHEARSAL_VERSION)) {
13410
+ if (operation.argv[0] === "/usr/sbin/arangod" && !result.output.split(/\r?\n/, 1)[0]?.includes(COMMUNITY_REHEARSAL_VERSION)) {
13411
13411
  throw new Error(`community rehearsal requires ArangoDB ${COMMUNITY_REHEARSAL_VERSION}`);
13412
13412
  }
13413
13413
  }
package/dist/fz.js CHANGED
@@ -4830,7 +4830,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
4830
4830
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
4831
4831
 
4832
4832
  // src/version.ts
4833
- var VERSION2 = "0.1.52";
4833
+ var VERSION2 = "0.1.53";
4834
4834
 
4835
4835
  // src/software.ts
4836
4836
  var PINNED_BUN_VERSION = "1.3.14";
@@ -292,7 +292,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
292
292
  }
293
293
 
294
294
  // src/version.ts
295
- var VERSION = "0.1.52";
295
+ var VERSION = "0.1.53";
296
296
 
297
297
  // src/otel-collector.ts
298
298
  var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
@@ -1207,7 +1207,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1207
1207
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1208
1208
 
1209
1209
  // src/version.ts
1210
- var VERSION = "0.1.52";
1210
+ var VERSION = "0.1.53";
1211
1211
 
1212
1212
  // src/software.ts
1213
1213
  var PINNED_BUN_VERSION = "1.3.14";
@@ -766,7 +766,7 @@ async function executeSoftwareOperation(operation) {
766
766
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
767
767
  }
768
768
  if (software === "arangodb") {
769
- const binary = await run(["/usr/bin/arangod", "--version"]);
769
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
770
770
  if (!successful(binary, /3\.11\.14/))
771
771
  return { ...binary, exitCode: 1 };
772
772
  const [active, enabled] = await Promise.all([
@@ -1707,7 +1707,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
1707
1707
  }
1708
1708
 
1709
1709
  // src/version.ts
1710
- var VERSION3 = "0.1.52";
1710
+ var VERSION3 = "0.1.53";
1711
1711
 
1712
1712
  // src/egress-policy.ts
1713
1713
  import { realpathSync as realpathSync2 } from "node:fs";
package/dist/provision.js CHANGED
@@ -766,7 +766,7 @@ async function executeSoftwareOperation(operation) {
766
766
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
767
767
  }
768
768
  if (software === "arangodb") {
769
- const binary = await run(["/usr/bin/arangod", "--version"]);
769
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
770
770
  if (!successful(binary, /3\.11\.14/))
771
771
  return { ...binary, exitCode: 1 };
772
772
  const [active, enabled] = await Promise.all([
@@ -1707,7 +1707,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
1707
1707
  }
1708
1708
 
1709
1709
  // src/version.ts
1710
- var VERSION3 = "0.1.52";
1710
+ var VERSION3 = "0.1.53";
1711
1711
 
1712
1712
  // src/egress-policy.ts
1713
1713
  import { realpathSync as realpathSync2 } from "node:fs";
@@ -88,7 +88,7 @@ async function executeSoftwareOperation(operation) {
88
88
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
89
89
  }
90
90
  if (software === "arangodb") {
91
- const binary = await run(["/usr/bin/arangod", "--version"]);
91
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
92
92
  if (!successful(binary, /3\.11\.14/))
93
93
  return { ...binary, exitCode: 1 };
94
94
  const [active, enabled] = await Promise.all([
package/dist/software.js CHANGED
@@ -88,7 +88,7 @@ async function executeSoftwareOperation(operation) {
88
88
  return binary.exitCode === 0 ? run(["/usr/bin/systemctl", "is-active", "--quiet", "nginx.service"]) : binary;
89
89
  }
90
90
  if (software === "arangodb") {
91
- const binary = await run(["/usr/bin/arangod", "--version"]);
91
+ const binary = await run(["/usr/sbin/arangod", "--version"]);
92
92
  if (!successful(binary, /3\.11\.14/))
93
93
  return { ...binary, exitCode: 1 };
94
94
  const [active, enabled] = await Promise.all([
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** One package version shared by both public binaries. Pinned to package.json by tests. */
2
- export declare const VERSION = "0.1.52";
2
+ export declare const VERSION = "0.1.53";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgezero/agent",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsc --noEmit",