@intentius/chant-lexicon-fly 0.61.0 → 0.62.0

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.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "d7a46a468e80b85269f4b867abef32903ffb57ffa286cf71de78967a095ec00f",
5
- "meta.json": "e46e65ba7544fafc6dbb3fd48b841904b5ae6f7cb4d517a940ed68b01626c097",
6
- "types/index.d.ts": "f2b1e6908d2ff33662ffe978452d9427dd7c0366edd88b5bfa7a8fc744517bfd",
4
+ "manifest.json": "3d3e53150a38aba665dfb9ac8e1a04eab178a58633c22e30cfb5b5efa1aebe77",
5
+ "meta.json": "273f2a523b66f08ca91642dba2592c44765ab59ddf7329998884a0b08c6c3f24",
6
+ "types/index.d.ts": "170137cd781d0075ff35284d91ec6e21892dab95bd90b2f6fe53e055d105a1f1",
7
7
  "rules/guest-sizing.ts": "bc749d218df8f3cc3d8fbe388205ae96e6b204ae0d6d77e8bf82cb936cc53ff6",
8
8
  "rules/no-secret-literals.ts": "4846d55118c9a66ad524b815ac28c3f548bfe114d5899e79c394f271c8b2c478",
9
9
  "rules/valid-region.ts": "674550b3b112aa1e526572b319601dce0c1a84f537c05b1e07828f8b84511c75",
@@ -15,5 +15,5 @@
15
15
  "skills/chant-fly-ops.md": "b8eef6504e203133e6a35c83aabb08404eec95060705395515a0046d42269cf1",
16
16
  "skills/chant-fly-sprites.md": "3ebbbd9a2751b91fc573c21bafa9a8e490c53e1bdcee16cc61f4051c9e12e526"
17
17
  },
18
- "composite": "2ae2cd88ff288b4dbba9e63fe5cf950202c801e4b2417d96870fd1558065a8d7"
18
+ "composite": "123380f99850fcca7a154de866c5072b415ef41bc01be2e12cf24955d5396d37"
19
19
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fly",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Fly"
6
6
  }
package/dist/meta.json CHANGED
@@ -167,8 +167,7 @@
167
167
  "enum": [
168
168
  "no",
169
169
  "always",
170
- "on-failure",
171
- "spot-price"
170
+ "on-failure"
172
171
  ]
173
172
  }
174
173
  }
@@ -156,8 +156,7 @@ ExecOverride is used to override the default command of the image. */
156
156
  image?: string;
157
157
  /** Name is used to identify the container in the machine. */
158
158
  name?: string;
159
- /** Restart is used to define the restart policy for the container. NOTE: spot-price is not
160
- supported for containers. */
159
+ /** Restart is used to define the restart policy for the container. */
161
160
  restart?: MachineRestart;
162
161
  /** Secrets can be provided at the process level to explicitly indicate which secrets should be
163
162
  used for the process. If not provided, the secrets provided at the machine level will be used. */
@@ -415,8 +414,13 @@ export declare class MachineMetrics {
415
414
  export declare class MachineMount {
416
415
  constructor(props: {
417
416
  add_size_gb?: number;
417
+ /** AddSizePercent grows by a percentage of the current size, rounded up to GiB.
418
+ It is mutually exclusive with AddSizeGb. */
419
+ add_size_percent?: number;
418
420
  encrypted?: boolean;
419
421
  extend_threshold_percent?: number;
422
+ /** MinAddSizeGb is the minimum proportional growth in GiB (default 1). */
423
+ min_add_size_gb?: number;
420
424
  name?: string;
421
425
  path?: string;
422
426
  size_gb?: number;
@@ -459,15 +463,12 @@ used for the process. If not provided, the secrets provided at the machine level
459
463
 
460
464
  export declare class MachineRestart {
461
465
  constructor(props: {
462
- /** GPU bid price for spot Machines. */
463
- gpu_bid_price?: number;
464
466
  /** When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop. */
465
467
  max_retries?: number;
466
468
  /** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.
467
469
  * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.
468
- * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules.
469
- * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price. */
470
- policy?: "always" | "no" | "on-failure" | "spot-price";
470
+ * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. */
471
+ policy?: "always" | "no" | "on-failure";
471
472
  });
472
473
  }
473
474
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-fly",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/",
@@ -62,7 +62,7 @@
62
62
  "typescript": "^5.9.3"
63
63
  },
64
64
  "peerDependencies": {
65
- "@intentius/chant": "^0.61.0",
65
+ "@intentius/chant": "^0.62.0",
66
66
  "typescript": "^5.9.3"
67
67
  },
68
68
  "description": "Fly.io Machines lexicon for chant — declarative IaC in TypeScript",
@@ -156,8 +156,7 @@ ExecOverride is used to override the default command of the image. */
156
156
  image?: string;
157
157
  /** Name is used to identify the container in the machine. */
158
158
  name?: string;
159
- /** Restart is used to define the restart policy for the container. NOTE: spot-price is not
160
- supported for containers. */
159
+ /** Restart is used to define the restart policy for the container. */
161
160
  restart?: MachineRestart;
162
161
  /** Secrets can be provided at the process level to explicitly indicate which secrets should be
163
162
  used for the process. If not provided, the secrets provided at the machine level will be used. */
@@ -415,8 +414,13 @@ export declare class MachineMetrics {
415
414
  export declare class MachineMount {
416
415
  constructor(props: {
417
416
  add_size_gb?: number;
417
+ /** AddSizePercent grows by a percentage of the current size, rounded up to GiB.
418
+ It is mutually exclusive with AddSizeGb. */
419
+ add_size_percent?: number;
418
420
  encrypted?: boolean;
419
421
  extend_threshold_percent?: number;
422
+ /** MinAddSizeGb is the minimum proportional growth in GiB (default 1). */
423
+ min_add_size_gb?: number;
420
424
  name?: string;
421
425
  path?: string;
422
426
  size_gb?: number;
@@ -459,15 +463,12 @@ used for the process. If not provided, the secrets provided at the machine level
459
463
 
460
464
  export declare class MachineRestart {
461
465
  constructor(props: {
462
- /** GPU bid price for spot Machines. */
463
- gpu_bid_price?: number;
464
466
  /** When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop. */
465
467
  max_retries?: number;
466
468
  /** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.
467
469
  * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.
468
- * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules.
469
- * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price. */
470
- policy?: "always" | "no" | "on-failure" | "spot-price";
470
+ * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. */
471
+ policy?: "always" | "no" | "on-failure";
471
472
  });
472
473
  }
473
474
 
@@ -167,8 +167,7 @@
167
167
  "enum": [
168
168
  "no",
169
169
  "always",
170
- "on-failure",
171
- "spot-price"
170
+ "on-failure"
172
171
  ]
173
172
  }
174
173
  }