@intentius/chant-lexicon-fly 0.60.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": "ea06152b8f8197909158a38ca1bc68afffbc5ccba82ed015f4443c0480d2db98",
5
- "meta.json": "e46e65ba7544fafc6dbb3fd48b841904b5ae6f7cb4d517a940ed68b01626c097",
6
- "types/index.d.ts": "4d0f9fa32bddbce96e6de87f948b4abaa4222d31dcec74ff3b39344c376ee4cb",
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": "23be18c5cc49981fd6ccd9e529872fd34049a6e05fe0c7ca3903ea4b4189f230"
18
+ "composite": "123380f99850fcca7a154de866c5072b415ef41bc01be2e12cf24955d5396d37"
19
19
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fly",
3
- "version": "0.60.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
  }
@@ -11,6 +11,7 @@ resource_type: Fly::Machines::App
11
11
  ## Properties
12
12
 
13
13
  - `enable_subdomains` (`boolean`, optional)
14
+ - `idempotency_key` (`string`, optional): When set, makes a retry of this exact request safe: a second create with the same key and the same name (or no name) returns the app the first request created, instead of erroring on a false name conflict or creating a duplicate. A second create with the same key but a *different* name is rejected outright; it won't silently hand back the first app.
14
15
  - `name` (`string`, optional)
15
16
  - `network` (`string`, optional)
16
17
  - `org_slug` (`string`, optional)
@@ -5,6 +5,13 @@
5
5
  export declare class App {
6
6
  constructor(props: {
7
7
  enable_subdomains?: boolean;
8
+ /** When set, makes a retry of this exact request safe: a
9
+ second create with the same key and the same name (or no name) returns
10
+ the app the first request created, instead of erroring on a false name
11
+ conflict or creating a duplicate. A second create with the same key
12
+ but a *different* name is rejected outright; it won't silently
13
+ hand back the first app. */
14
+ idempotency_key?: string;
8
15
  name?: string;
9
16
  network?: string;
10
17
  org_slug?: string;
@@ -149,8 +156,7 @@ ExecOverride is used to override the default command of the image. */
149
156
  image?: string;
150
157
  /** Name is used to identify the container in the machine. */
151
158
  name?: string;
152
- /** Restart is used to define the restart policy for the container. NOTE: spot-price is not
153
- supported for containers. */
159
+ /** Restart is used to define the restart policy for the container. */
154
160
  restart?: MachineRestart;
155
161
  /** Secrets can be provided at the process level to explicitly indicate which secrets should be
156
162
  used for the process. If not provided, the secrets provided at the machine level will be used. */
@@ -408,8 +414,13 @@ export declare class MachineMetrics {
408
414
  export declare class MachineMount {
409
415
  constructor(props: {
410
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;
411
420
  encrypted?: boolean;
412
421
  extend_threshold_percent?: number;
422
+ /** MinAddSizeGb is the minimum proportional growth in GiB (default 1). */
423
+ min_add_size_gb?: number;
413
424
  name?: string;
414
425
  path?: string;
415
426
  size_gb?: number;
@@ -452,15 +463,12 @@ used for the process. If not provided, the secrets provided at the machine level
452
463
 
453
464
  export declare class MachineRestart {
454
465
  constructor(props: {
455
- /** GPU bid price for spot Machines. */
456
- gpu_bid_price?: number;
457
466
  /** When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop. */
458
467
  max_retries?: number;
459
468
  /** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.
460
469
  * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.
461
- * 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.
462
- * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price. */
463
- 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";
464
472
  });
465
473
  }
466
474
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-fly",
3
- "version": "0.60.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.60.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",
@@ -5,6 +5,13 @@
5
5
  export declare class App {
6
6
  constructor(props: {
7
7
  enable_subdomains?: boolean;
8
+ /** When set, makes a retry of this exact request safe: a
9
+ second create with the same key and the same name (or no name) returns
10
+ the app the first request created, instead of erroring on a false name
11
+ conflict or creating a duplicate. A second create with the same key
12
+ but a *different* name is rejected outright; it won't silently
13
+ hand back the first app. */
14
+ idempotency_key?: string;
8
15
  name?: string;
9
16
  network?: string;
10
17
  org_slug?: string;
@@ -149,8 +156,7 @@ ExecOverride is used to override the default command of the image. */
149
156
  image?: string;
150
157
  /** Name is used to identify the container in the machine. */
151
158
  name?: string;
152
- /** Restart is used to define the restart policy for the container. NOTE: spot-price is not
153
- supported for containers. */
159
+ /** Restart is used to define the restart policy for the container. */
154
160
  restart?: MachineRestart;
155
161
  /** Secrets can be provided at the process level to explicitly indicate which secrets should be
156
162
  used for the process. If not provided, the secrets provided at the machine level will be used. */
@@ -408,8 +414,13 @@ export declare class MachineMetrics {
408
414
  export declare class MachineMount {
409
415
  constructor(props: {
410
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;
411
420
  encrypted?: boolean;
412
421
  extend_threshold_percent?: number;
422
+ /** MinAddSizeGb is the minimum proportional growth in GiB (default 1). */
423
+ min_add_size_gb?: number;
413
424
  name?: string;
414
425
  path?: string;
415
426
  size_gb?: number;
@@ -452,15 +463,12 @@ used for the process. If not provided, the secrets provided at the machine level
452
463
 
453
464
  export declare class MachineRestart {
454
465
  constructor(props: {
455
- /** GPU bid price for spot Machines. */
456
- gpu_bid_price?: number;
457
466
  /** When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop. */
458
467
  max_retries?: number;
459
468
  /** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.
460
469
  * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.
461
- * 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.
462
- * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price. */
463
- 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";
464
472
  });
465
473
  }
466
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
  }