@forgezero/agent 0.1.21 → 0.1.22

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.
@@ -7,7 +7,6 @@ export interface SoftwareRequirement {
7
7
  }
8
8
  export interface PipelineRole {
9
9
  name: string;
10
- count: number;
11
10
  software: readonly SoftwareRequirement[];
12
11
  }
13
12
  export interface DeployStep extends PipelineStep {
@@ -50,17 +50,12 @@ function parseDeployDefinition(value) {
50
50
  }
51
51
  const roles = root.roles.map((raw, index) => {
52
52
  const role = record(raw, `roles[${index}]`);
53
- exactKeys(role, ["name", "count", "software"], `roles[${index}]`);
54
- const count = Number(role.count);
55
- if (!Number.isSafeInteger(count) || count < 1) {
56
- throw new DefinitionError(`roles[${index}].count must be a positive integer.`);
57
- }
53
+ exactKeys(role, ["name", "software"], `roles[${index}]`);
58
54
  if (!Array.isArray(role.software)) {
59
55
  throw new DefinitionError(`roles[${index}].software must be an array.`);
60
56
  }
61
57
  return {
62
58
  name: text(role.name, `roles[${index}].name`),
63
- count,
64
59
  software: role.software.map((rawSoftware, softwareIndex) => {
65
60
  const software = record(rawSoftware, `roles[${index}].software[${softwareIndex}]`);
66
61
  exactKeys(software, ["name", "check", "install"], `roles[${index}].software[${softwareIndex}]`);
@@ -79,6 +79,7 @@ export declare function createDeploymentManager(options: DeploymentOptions): {
79
79
  latestRevision(): Promise<string>;
80
80
  deploy(request?: DeploymentRequest): QueueTask<DeploymentResult>;
81
81
  snapshot: () => {
82
+ width: number;
82
83
  running: number;
83
84
  queued: number;
84
85
  keys: number;
package/dist/fz-agent.js CHANGED
@@ -473,17 +473,12 @@ function parseDeployDefinition(value) {
473
473
  }
474
474
  const roles = root.roles.map((raw, index) => {
475
475
  const role = record(raw, `roles[${index}]`);
476
- exactKeys(role, ["name", "count", "software"], `roles[${index}]`);
477
- const count = Number(role.count);
478
- if (!Number.isSafeInteger(count) || count < 1) {
479
- throw new DefinitionError(`roles[${index}].count must be a positive integer.`);
480
- }
476
+ exactKeys(role, ["name", "software"], `roles[${index}]`);
481
477
  if (!Array.isArray(role.software)) {
482
478
  throw new DefinitionError(`roles[${index}].software must be an array.`);
483
479
  }
484
480
  return {
485
481
  name: text(role.name, `roles[${index}].name`),
486
- count,
487
482
  software: role.software.map((rawSoftware, softwareIndex) => {
488
483
  const software = record(rawSoftware, `roles[${index}].software[${softwareIndex}]`);
489
484
  exactKeys(software, ["name", "check", "install"], `roles[${index}].software[${softwareIndex}]`);
@@ -2738,7 +2733,7 @@ async function closeServerWithin(server, timeoutMs) {
2738
2733
  }
2739
2734
 
2740
2735
  // src/version.ts
2741
- var VERSION = "0.1.21";
2736
+ var VERSION = "0.1.22";
2742
2737
 
2743
2738
  // src/index.ts
2744
2739
  function loadOrCreateSeed(path) {
package/dist/fz.js CHANGED
@@ -774,7 +774,7 @@ async function resolveIdentity(selector, socketPath) {
774
774
  }
775
775
 
776
776
  // src/version.ts
777
- var VERSION = "0.1.21";
777
+ var VERSION = "0.1.22";
778
778
 
779
779
  // src/cli/index.ts
780
780
  var DEFAULT_MODE = THRESHOLD_MODES[0].id;
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.21";
2
+ export declare const VERSION = "0.1.22";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "//": "Publishing happens from an operator's machine, not CI \u2014 CLAUDE.md records that the absence of CI is deliberate. npm's `provenance` attests a tarball was built by a recognised CI provider from a named commit, so it cannot be produced here: it was set, and the first publish failed with `Automatic provenance generation not supported for provider: null`. A setting that can never be satisfied is worse than none, because it reads as a guarantee nobody is getting. Restore it the day this publishes from CI, and not before.",
3
3
  "name": "@forgezero/agent",
4
- "version": "0.1.21",
4
+ "version": "0.1.22",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "check": "tsc --noEmit",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@forgezero/access": "^0.1.0",
21
- "@forgezero/runtime": "^0.1.3",
21
+ "@forgezero/runtime": "^0.1.4",
22
22
  "@forgezero/vault": "^0.1.5",
23
23
  "@noble/curves": "^2.2.0",
24
24
  "@noble/hashes": "^2.2.0",