@forgezero/agent 0.1.110 → 0.1.112

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.
@@ -917,7 +917,7 @@ async function postSignedNode(options, path, body) {
917
917
  }
918
918
 
919
919
  // src/version.ts
920
- var VERSION3 = "0.1.110";
920
+ var VERSION3 = "0.1.112";
921
921
 
922
922
  // src/agent-heartbeat.ts
923
923
  function readAgentHostMetrics() {
package/dist/bootstrap.js CHANGED
@@ -1460,7 +1460,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1460
1460
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1461
1461
 
1462
1462
  // src/version.ts
1463
- var VERSION = "0.1.110";
1463
+ var VERSION = "0.1.112";
1464
1464
 
1465
1465
  // src/software.ts
1466
1466
  var PINNED_BUN_VERSION = "1.3.14";
@@ -2600,6 +2600,7 @@ function planProvision(options) {
2600
2600
  ...deploymentEnabled ? [step("deployment directories", { kind: "directories", directories: [
2601
2601
  { path: deployRoot, mode: 493, owner: "root", group: "root" },
2602
2602
  { path: `${deployRoot}/releases`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
2603
+ { path: `${deployRoot}/slots`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
2603
2604
  { path: `${deployRoot}/cache`, mode: 488, owner: user, group: user },
2604
2605
  { path: `${deployRoot}/capacity`, mode: 448, owner: user, group: user },
2605
2606
  { path: `${deployRoot}/agent-home`, mode: 448, owner: user, group: user },
@@ -4131,7 +4132,7 @@ User=arangodb
4131
4132
  Group=arangodb
4132
4133
  LoadCredentialEncrypted=arangodb-jwt:${JWT_CREDENTIAL}
4133
4134
  LoadCredentialEncrypted=arangodb-root-password:${ARANGO_ROOT_CREDENTIAL}
4134
- ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");require("@arangodb/users").update("root",password,true);'
4135
+ ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
4135
4136
  ExecStart=/usr/local/bin/fz-agent database-auth-verify --endpoint=http://${unitEscape(address)}:8529
4136
4137
  RemainAfterExit=yes
4137
4138
  TimeoutStartSec=200
package/dist/fz-agent.js CHANGED
@@ -9528,7 +9528,7 @@ async function writeAndCloseProcessInput(input, value) {
9528
9528
  }
9529
9529
 
9530
9530
  // src/version.ts
9531
- var VERSION2 = "0.1.110";
9531
+ var VERSION2 = "0.1.112";
9532
9532
 
9533
9533
  // src/ssh-bootstrap.ts
9534
9534
  class SshBootstrapError extends Error {
@@ -16235,6 +16235,7 @@ function planProvision(options) {
16235
16235
  ...deploymentEnabled ? [step2("deployment directories", { kind: "directories", directories: [
16236
16236
  { path: deployRoot, mode: 493, owner: "root", group: "root" },
16237
16237
  { path: `${deployRoot}/releases`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
16238
+ { path: `${deployRoot}/slots`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
16238
16239
  { path: `${deployRoot}/cache`, mode: 488, owner: user, group: user },
16239
16240
  { path: `${deployRoot}/capacity`, mode: 448, owner: user, group: user },
16240
16241
  { path: `${deployRoot}/agent-home`, mode: 448, owner: user, group: user },
package/dist/fz.js CHANGED
@@ -4841,7 +4841,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
4841
4841
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
4842
4842
 
4843
4843
  // src/version.ts
4844
- var VERSION2 = "0.1.110";
4844
+ var VERSION2 = "0.1.112";
4845
4845
 
4846
4846
  // src/software.ts
4847
4847
  var PINNED_BUN_VERSION = "1.3.14";
@@ -6352,6 +6352,7 @@ function planProvision(options) {
6352
6352
  ...deploymentEnabled ? [step("deployment directories", { kind: "directories", directories: [
6353
6353
  { path: deployRoot, mode: 493, owner: "root", group: "root" },
6354
6354
  { path: `${deployRoot}/releases`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
6355
+ { path: `${deployRoot}/slots`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
6355
6356
  { path: `${deployRoot}/cache`, mode: 488, owner: user, group: user },
6356
6357
  { path: `${deployRoot}/capacity`, mode: 448, owner: user, group: user },
6357
6358
  { path: `${deployRoot}/agent-home`, mode: 448, owner: user, group: user },
@@ -14516,7 +14517,7 @@ User=arangodb
14516
14517
  Group=arangodb
14517
14518
  LoadCredentialEncrypted=arangodb-jwt:${JWT_CREDENTIAL}
14518
14519
  LoadCredentialEncrypted=arangodb-root-password:${ARANGO_ROOT_CREDENTIAL}
14519
- ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");require("@arangodb/users").update("root",password,true);'
14520
+ ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
14520
14521
  ExecStart=/usr/local/bin/fz-agent database-auth-verify --endpoint=http://${unitEscape(address)}:8529
14521
14522
  RemainAfterExit=yes
14522
14523
  TimeoutStartSec=200
@@ -366,7 +366,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
366
366
  }
367
367
 
368
368
  // src/version.ts
369
- var VERSION = "0.1.110";
369
+ var VERSION = "0.1.112";
370
370
 
371
371
  // src/otel-collector.ts
372
372
  var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
@@ -1460,7 +1460,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1460
1460
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1461
1461
 
1462
1462
  // src/version.ts
1463
- var VERSION = "0.1.110";
1463
+ var VERSION = "0.1.112";
1464
1464
 
1465
1465
  // src/software.ts
1466
1466
  var PINNED_BUN_VERSION = "1.3.14";
@@ -2600,6 +2600,7 @@ function planProvision(options) {
2600
2600
  ...deploymentEnabled ? [step("deployment directories", { kind: "directories", directories: [
2601
2601
  { path: deployRoot, mode: 493, owner: "root", group: "root" },
2602
2602
  { path: `${deployRoot}/releases`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
2603
+ { path: `${deployRoot}/slots`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
2603
2604
  { path: `${deployRoot}/cache`, mode: 488, owner: user, group: user },
2604
2605
  { path: `${deployRoot}/capacity`, mode: 448, owner: user, group: user },
2605
2606
  { path: `${deployRoot}/agent-home`, mode: 448, owner: user, group: user },
@@ -4131,7 +4132,7 @@ User=arangodb
4131
4132
  Group=arangodb
4132
4133
  LoadCredentialEncrypted=arangodb-jwt:${JWT_CREDENTIAL}
4133
4134
  LoadCredentialEncrypted=arangodb-root-password:${ARANGO_ROOT_CREDENTIAL}
4134
- ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");require("@arangodb/users").update("root",password,true);'
4135
+ ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
4135
4136
  ExecStart=/usr/local/bin/fz-agent database-auth-verify --endpoint=http://${unitEscape(address)}:8529
4136
4137
  RemainAfterExit=yes
4137
4138
  TimeoutStartSec=200
@@ -3004,7 +3004,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
3004
3004
  }
3005
3005
 
3006
3006
  // src/version.ts
3007
- var VERSION3 = "0.1.110";
3007
+ var VERSION3 = "0.1.112";
3008
3008
 
3009
3009
  // src/egress-policy.ts
3010
3010
  import { realpathSync as realpathSync3 } from "node:fs";
@@ -4002,6 +4002,7 @@ function planProvision(options) {
4002
4002
  ...deploymentEnabled ? [step("deployment directories", { kind: "directories", directories: [
4003
4003
  { path: deployRoot, mode: 493, owner: "root", group: "root" },
4004
4004
  { path: `${deployRoot}/releases`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
4005
+ { path: `${deployRoot}/slots`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
4005
4006
  { path: `${deployRoot}/cache`, mode: 488, owner: user, group: user },
4006
4007
  { path: `${deployRoot}/capacity`, mode: 448, owner: user, group: user },
4007
4008
  { path: `${deployRoot}/agent-home`, mode: 448, owner: user, group: user },
package/dist/provision.js CHANGED
@@ -3004,7 +3004,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
3004
3004
  }
3005
3005
 
3006
3006
  // src/version.ts
3007
- var VERSION3 = "0.1.110";
3007
+ var VERSION3 = "0.1.112";
3008
3008
 
3009
3009
  // src/egress-policy.ts
3010
3010
  import { realpathSync as realpathSync3 } from "node:fs";
@@ -4002,6 +4002,7 @@ function planProvision(options) {
4002
4002
  ...deploymentEnabled ? [step("deployment directories", { kind: "directories", directories: [
4003
4003
  { path: deployRoot, mode: 493, owner: "root", group: "root" },
4004
4004
  { path: `${deployRoot}/releases`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
4005
+ { path: `${deployRoot}/slots`, mode: 2040, owner: "root", group: DEPLOYMENT_GROUP },
4005
4006
  { path: `${deployRoot}/cache`, mode: 488, owner: user, group: user },
4006
4007
  { path: `${deployRoot}/capacity`, mode: 448, owner: user, group: user },
4007
4008
  { path: `${deployRoot}/agent-home`, mode: 448, owner: user, group: user },
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.110";
2
+ export declare const VERSION = "0.1.112";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgezero/agent",
3
- "version": "0.1.110",
3
+ "version": "0.1.112",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsc --noEmit",