@thinair/factory 0.1.138 → 0.1.142
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.
|
@@ -3,13 +3,15 @@ import { AUTHORED, authoredHead, head, type Authored, type LiveRows } from "./no
|
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
* A pool names a provider and an optional narrowing, nothing else.
|
|
6
|
-
* `pool.macs()` means every Mac that granted this factory `work
|
|
6
|
+
* `pool.macs()` means every Mac that granted this factory `work`: host
|
|
7
|
+
* commands. `pool.fleet()` means sealed Linux VMs on the computers that lend
|
|
8
|
+
* to the factory's owner. Room, os,
|
|
7
9
|
* arch, VMs, identities and reserve come only from each machine's facts, so
|
|
8
10
|
* two factories never give placement two truths about one machine. The
|
|
9
11
|
* plane gives pools their meaning: its executors.
|
|
10
12
|
*/
|
|
11
13
|
|
|
12
|
-
export const PROVIDERS = ["macs", "thinair-cloud", "namespace", "github-actions"] as const;
|
|
14
|
+
export const PROVIDERS = ["macs", "fleet", "thinair-cloud", "namespace", "github-actions"] as const;
|
|
13
15
|
export const Provider = Schema.Literals(PROVIDERS);
|
|
14
16
|
export type Provider = typeof Provider.Type;
|
|
15
17
|
|
|
@@ -44,6 +46,11 @@ const made = <const P extends Provider>(provider: P, narrow: Narrow | undefined)
|
|
|
44
46
|
export const pool = {
|
|
45
47
|
/** Every Mac that granted this factory `work`. */
|
|
46
48
|
macs: (narrow?: Narrow) => made("macs", narrow),
|
|
49
|
+
/**
|
|
50
|
+
* Sealed Linux VMs on the computers that lend to the factory's owner: a job whose `needs.os` is `["linux"]` runs in
|
|
51
|
+
* one. `arch` narrows the CPU families its VMs run on; `os` names the guest (only `linux`).
|
|
52
|
+
*/
|
|
53
|
+
fleet: (narrow?: Narrow) => made("fleet", narrow),
|
|
47
54
|
/** Thinair Cloud VMs, on Thinair Computer Inc's account. */
|
|
48
55
|
thinairCloud: (narrow?: Narrow) => made("thinair-cloud", narrow),
|
|
49
56
|
/** Namespace instances, with the Profile's key. */
|
package/package.json
CHANGED