@mark1russell7/guidebook-preparedness 0.1.6 → 0.2.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mark1russell7/guidebook-preparedness
2
2
 
3
- The preparedness content of `@mark1russell7/guidebook`. It gives the steps of a household plan for 12 cases and 6 cuts, in each phase of the time ladder. It also gives 40 topics to learn and a catalog of offline bundles.
3
+ The preparedness content of `@mark1russell7/guidebook`. It gives the steps of a household plan for 12 cases and 7 cuts, in each phase of the time ladder. It also gives 40 topics to learn and a catalog of offline bundles.
4
4
 
5
5
  ```sh
6
6
  pnpm add @mark1russell7/guidebook @mark1russell7/guidebook-plans @mark1russell7/guidebook-preparedness
@@ -14,10 +14,10 @@ The core and the plans add-on name no topic. This package is the first topic.
14
14
  | --- | --- |
15
15
  | `SOURCES` | The 70 sources. The 63 sources of the steps are 55 pages of US federal agencies in the US public domain, 3 pages of the UK Government under the Open Government Licence v3.0, 3 pages of the Finnish 72 hours guidance and 2 pages of the Swedish civil defence agency. A step is a summary of its sources, not a quote. The 5 sources of the bundles are 4 open wikis and the Stack Exchange network, under CC BY-SA 4.0. The 2 sources of the media rates are reports of Backblaze. |
16
16
  | `CASE_STEPS` | The steps of the 12 cases and of the 14 more cases |
17
- | `CUT_STEPS` | The steps of the 6 cuts |
17
+ | `CUT_STEPS` | The steps of the 7 cuts |
18
18
  | `STEPS` | All the steps |
19
19
  | `GAPS` | The marked gaps: each key and phase with no step on purpose, with the reason |
20
- | `RULES` | The 36 trigger rules of the decision chart. Each rule cites its sources and sends the reader to the steps of a key. |
20
+ | `RULES` | The 37 trigger rules of the decision chart. Each rule cites its sources and sends the reader to the steps of a key. |
21
21
  | `CASES` | The codes of the 12 cases |
22
22
  | `MORE_CASES` | The codes of 14 more cases, with the same gates |
23
23
  | `CUTS` | The ids of the cuts |
@@ -37,7 +37,7 @@ The steps are full from `ready` to `P3`. `P4` and `P5` are an outline. Each cell
37
37
  import { stepsFor, phaseOf } from "@mark1russell7/guidebook-plans";
38
38
  import { STEPS } from "@mark1russell7/guidebook-preparedness";
39
39
 
40
- const steps = stepsFor(STEPS, ["met.winter.storm", "energy.grid", "road.local"], [phaseOf(2 * 86_400)]);
40
+ const steps = stepsFor(STEPS, ["met.winter.storm", "power.grid", "road.local"], [phaseOf(2 * 86_400)]);
41
41
  ```
42
42
 
43
43
  ## The keys
@@ -50,13 +50,13 @@ The code `health.medical-emergency` is new in the taxonomy. A household starts t
50
50
 
51
51
  An evacuation is a set of steps of the hurricane, the flood and the wildfire, not a case. The power outage and the water outage use the steps of their cuts.
52
52
 
53
- The 9 more cases are `cbrne.hazardous-materials`, `cbrne.radiological`, `civic.ai-collapse`, `health.outbreak.pandemic`, `infra.supply-chain.food`, `infra.power.grid-collapse`, `cyber.infrastructure-attack`, `civic.economy.collapse`, `security.civil-unrest`, `cbrne.nuclear-detonation`, `security.nuclear-war`, `cbrne.emp`, `geo.space-weather.geomagnetic-storm` and `security.armed-conflict`. The case `civic.ai-collapse` is a collapse that AI causes. It includes a loss of jobs and income, fraud with cloned voices and false images, and attacks on accounts and homes. Its steps go from `ready` to `P5`.
53
+ The 14 more cases are `cbrne.hazardous-materials`, `cbrne.radiological`, `civic.ai-collapse`, `health.outbreak.pandemic`, `infra.supply-chain.food`, `infra.power.grid-collapse`, `cyber.infrastructure-attack`, `civic.economy.collapse`, `security.civil-unrest`, `cbrne.nuclear-detonation`, `security.nuclear-war`, `cbrne.emp`, `geo.space-weather.geomagnetic-storm` and `security.armed-conflict`. The case `civic.ai-collapse` is a collapse that AI causes. It includes a loss of jobs and income, fraud with cloned voices and false images, and attacks on accounts and homes. Its steps go from `ready` to `P5`.
54
54
 
55
- The 6 cuts are the services that an event stops:
55
+ The 7 cuts are the services that an event stops. Their ids are the ids of `SUPPLY_PARTS` in `@mark1russell7/stack-hazards`:
56
56
 
57
- `energy.grid`, `water.main`, `road.local`, `telecom.network`, `gas.main`, `store.pharmacy`.
57
+ `power.grid`, `water.main`, `road.local`, `phone.network`, `network.access`, `gas.main`, `care.local`.
58
58
 
59
- The ids of the cuts are a proposal. A model of the system stack can give other ids. Then this package changes its ids to agree.
59
+ The other parts of `SUPPLY_PARTS` have no steps yet.
60
60
 
61
61
  ## The words
62
62
 
package/build/index.d.ts CHANGED
@@ -54,8 +54,8 @@ export declare const CASES: readonly ["met.winter.storm", "met.tropical.hurrican
54
54
  * The code `civic.ai-collapse` is new. The hazard catalog of `stack-hazards` gives its cuts.
55
55
  */
56
56
  export declare const MORE_CASES: readonly ["cbrne.hazardous-materials", "cbrne.radiological", "civic.ai-collapse", "health.outbreak.pandemic", "infra.supply-chain.food", "infra.power.grid-collapse", "cyber.infrastructure-attack", "civic.economy.collapse", "security.civil-unrest", "cbrne.nuclear-detonation", "security.nuclear-war", "cbrne.emp", "geo.space-weather.geomagnetic-storm", "security.armed-conflict"];
57
- /** The cuts of the content. A cut is a service that an event stops. These ids are a proposal until the stack model names them. */
58
- export declare const CUTS: readonly ["energy.grid", "water.main", "road.local", "telecom.network", "gas.main", "store.pharmacy"];
57
+ /** The cuts of the content. A cut is a service that an event stops. The ids are the ids of `SUPPLY_PARTS` in `stack-hazards`. */
58
+ export declare const CUTS: readonly ["power.grid", "water.main", "road.local", "phone.network", "network.access", "gas.main", "care.local"];
59
59
  /** The need codes that the steps protect. */
60
60
  export declare const NEEDS: readonly ["hydration.drink", "food.energy", "health.medicine", "power.electric"];
61
61
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/sources.ts","../src/data/steps.ts","../src/data/gaps.ts","../src/data/coverage.ts","../src/data/rules.ts","../src/data/topics.ts","../src/data/bundles.ts","../src/data/media.ts","../src/index.ts"],"mappings":";;;;;qBAOa;;qBAKA,kBAAkB;;qBCyClB,qBAAqB;;qBAkgBrB,oBAAoB;;qBA8EpB,gBAAgB;;qBCznBhB,eAAe;;;;;qBCLf;;qBCEA,gBAAgB;;qBCHhB;;qBAyDA,iBAAiB;;qBCvDjB;;;;;;qBAOA;;qBAKA,kBAAkB;;qBCblB,sBAAsB;;qBAkBtB,eAAe,SAAS,QAAQ,OAAO;WAAuB;WAA6B;;;qBAM3F,sBAAsB;;;;;qBCftB;;;;;qBAmBA;;qBAGA;;qBAGA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/sources.ts","../src/data/steps.ts","../src/data/gaps.ts","../src/data/coverage.ts","../src/data/rules.ts","../src/data/topics.ts","../src/data/bundles.ts","../src/data/media.ts","../src/index.ts"],"mappings":";;;;;qBAOa;;qBAKA,kBAAkB;;qBCyClB,qBAAqB;;qBAkgBrB,oBAAoB;;qBAoFpB,gBAAgB;;qBC/nBhB,eAAe;;;;;qBCLf;;qBCEA,gBAAgB;;qBCHhB;;qBAyDA,iBAAiB;;qBCvDjB;;;;;;qBAOA;;qBAKA,kBAAkB;;qBCblB,sBAAsB;;qBAkBtB,eAAe,SAAS,QAAQ,OAAO;WAAuB;WAA6B;;;qBAM3F,sBAAsB;;;;;qBCftB;;;;;qBAmBA;;qBAGA;;qBAGA"}
package/build/index.js CHANGED
@@ -3175,7 +3175,7 @@ const CASE_STEPS = [
3175
3175
  ];
3176
3176
  /** The steps of the cuts. A cut is a service that an event stops. A plan of a case adds the steps of its cuts. */
3177
3177
  const CUT_STEPS = [
3178
- ...stepsOf("energy.grid", [
3178
+ ...stepsOf("power.grid", [
3179
3179
  [
3180
3180
  "ready",
3181
3181
  "list",
@@ -3436,7 +3436,7 @@ const CUT_STEPS = [
3436
3436
  [DRINK, FOOD]
3437
3437
  ]
3438
3438
  ]),
3439
- ...stepsOf("telecom.network", [
3439
+ ...stepsOf("phone.network", [
3440
3440
  [
3441
3441
  "ready",
3442
3442
  "radio",
@@ -3481,6 +3481,32 @@ const CUT_STEPS = [
3481
3481
  ["ready-earthquakes"]
3482
3482
  ]
3483
3483
  ]),
3484
+ ...stepsOf("network.access", [
3485
+ [
3486
+ "ready",
3487
+ "radio",
3488
+ "Keep a radio with batteries or a hand crank, so that news comes without the internet.",
3489
+ ["ready-kit"]
3490
+ ],
3491
+ [
3492
+ "ready",
3493
+ "paper",
3494
+ "Keep on paper the addresses, the phone numbers and the documents that you keep online.",
3495
+ ["uk-ready"]
3496
+ ],
3497
+ [
3498
+ "ready",
3499
+ "backup",
3500
+ "Make backups of important information on an external drive or a USB drive.",
3501
+ ["se-brochure-en"]
3502
+ ],
3503
+ [
3504
+ "P1",
3505
+ "news",
3506
+ "With no internet, get the news and the instructions of officials from a local radio station.",
3507
+ ["ready-earthquakes"]
3508
+ ]
3509
+ ]),
3484
3510
  ...stepsOf("gas.main", [
3485
3511
  [
3486
3512
  "ready",
@@ -3525,7 +3551,7 @@ const CUT_STEPS = [
3525
3551
  ["cdc-co"]
3526
3552
  ]
3527
3553
  ]),
3528
- ...stepsOf("store.pharmacy", [
3554
+ ...stepsOf("care.local", [
3529
3555
  [
3530
3556
  "ready",
3531
3557
  "list",
@@ -3601,10 +3627,10 @@ const CUT_STEPS = [
3601
3627
  /** All the steps of the content. */
3602
3628
  const STEPS = [...CASE_STEPS, ...CUT_STEPS];
3603
3629
  // src/data/gaps.ts
3604
- const OF_GRID = "This case is the power cut itself. The steps of the cut `energy.grid` apply.";
3630
+ const OF_GRID = "This case is the power cut itself. The steps of the cut `power.grid` apply.";
3605
3631
  const OF_WATER = "This case is the water cut itself. The steps of the cut `water.main` apply.";
3606
3632
  const NO_HOME_STEP = "The emergency team and the hospital give the care after the first minutes. The sources give no household step.";
3607
- const NO_EMP = "The sources give no household step for this phase of an EMP. The steps of the cuts `energy.grid` and `telecom.network` apply.";
3633
+ const NO_EMP = "The sources give no household step for this phase of an EMP. The steps of the cuts `power.grid` and `phone.network` apply.";
3608
3634
  const NO_LONG_STEP = "The sources give no step for a cut of this length. The steps of the earlier phases continue.";
3609
3635
  /** The marked gaps of the cases and the cuts. */
3610
3636
  const GAPS = [
@@ -3704,17 +3730,17 @@ const GAPS = [
3704
3730
  why: "No official household page read gives a step for unrest that continues for weeks."
3705
3731
  },
3706
3732
  {
3707
- on: "energy.grid",
3733
+ on: "power.grid",
3708
3734
  phase: "warned",
3709
3735
  why: "A power cut often comes with no warning. The warning steps of the case and of the network apply."
3710
3736
  },
3711
3737
  {
3712
- on: "energy.grid",
3738
+ on: "power.grid",
3713
3739
  phase: "P4",
3714
3740
  why: NO_LONG_STEP
3715
3741
  },
3716
3742
  {
3717
- on: "energy.grid",
3743
+ on: "power.grid",
3718
3744
  phase: "P5",
3719
3745
  why: NO_LONG_STEP
3720
3746
  },
@@ -3749,22 +3775,52 @@ const GAPS = [
3749
3775
  why: NO_LONG_STEP
3750
3776
  },
3751
3777
  {
3752
- on: "telecom.network",
3778
+ on: "phone.network",
3753
3779
  phase: "P0",
3754
3780
  why: "A cut of the network does not change the first minutes. The steps of the case apply."
3755
3781
  },
3756
3782
  {
3757
- on: "telecom.network",
3783
+ on: "phone.network",
3758
3784
  phase: "P3",
3759
3785
  why: NO_LONG_STEP
3760
3786
  },
3761
3787
  {
3762
- on: "telecom.network",
3788
+ on: "phone.network",
3763
3789
  phase: "P4",
3764
3790
  why: NO_LONG_STEP
3765
3791
  },
3766
3792
  {
3767
- on: "telecom.network",
3793
+ on: "phone.network",
3794
+ phase: "P5",
3795
+ why: NO_LONG_STEP
3796
+ },
3797
+ {
3798
+ on: "network.access",
3799
+ phase: "warned",
3800
+ why: "A loss of the internet access often comes with no warning. The steps of `ready` are the protection."
3801
+ },
3802
+ {
3803
+ on: "network.access",
3804
+ phase: "P0",
3805
+ why: "A loss of the internet access does not change the first minutes. The steps of the case apply."
3806
+ },
3807
+ {
3808
+ on: "network.access",
3809
+ phase: "P2",
3810
+ why: NO_LONG_STEP
3811
+ },
3812
+ {
3813
+ on: "network.access",
3814
+ phase: "P3",
3815
+ why: NO_LONG_STEP
3816
+ },
3817
+ {
3818
+ on: "network.access",
3819
+ phase: "P4",
3820
+ why: NO_LONG_STEP
3821
+ },
3822
+ {
3823
+ on: "network.access",
3768
3824
  phase: "P5",
3769
3825
  why: NO_LONG_STEP
3770
3826
  },
@@ -3789,17 +3845,17 @@ const GAPS = [
3789
3845
  why: NO_LONG_STEP
3790
3846
  },
3791
3847
  {
3792
- on: "store.pharmacy",
3848
+ on: "care.local",
3793
3849
  phase: "P0",
3794
3850
  why: "A closed pharmacy does not change the first minutes. The steps of the case apply."
3795
3851
  },
3796
3852
  {
3797
- on: "store.pharmacy",
3853
+ on: "care.local",
3798
3854
  phase: "P1",
3799
3855
  why: "A closed pharmacy does not change the first hours. The medicines of the ready phase are the protection."
3800
3856
  },
3801
3857
  {
3802
- on: "store.pharmacy",
3858
+ on: "care.local",
3803
3859
  phase: "P5",
3804
3860
  why: NO_LONG_STEP
3805
3861
  },
@@ -3936,23 +3992,28 @@ const OPEN_CELLS = [
3936
3992
  "cbrne.emp/P2",
3937
3993
  "cbrne.emp/P3",
3938
3994
  "geo.space-weather.geomagnetic-storm/P0",
3939
- "energy.grid/P4",
3940
- "energy.grid/P5",
3995
+ "power.grid/P4",
3996
+ "power.grid/P5",
3941
3997
  "water.main/P4",
3942
3998
  "water.main/P5",
3943
3999
  "road.local/P0",
3944
4000
  "road.local/P4",
3945
4001
  "road.local/P5",
3946
- "telecom.network/P0",
3947
- "telecom.network/P3",
3948
- "telecom.network/P4",
3949
- "telecom.network/P5",
4002
+ "phone.network/P0",
4003
+ "phone.network/P3",
4004
+ "phone.network/P4",
4005
+ "phone.network/P5",
4006
+ "network.access/P0",
4007
+ "network.access/P2",
4008
+ "network.access/P3",
4009
+ "network.access/P4",
4010
+ "network.access/P5",
3950
4011
  "gas.main/P3",
3951
4012
  "gas.main/P4",
3952
4013
  "gas.main/P5",
3953
- "store.pharmacy/P0",
3954
- "store.pharmacy/P1",
3955
- "store.pharmacy/P5"
4014
+ "care.local/P0",
4015
+ "care.local/P1",
4016
+ "care.local/P5"
3956
4017
  ];
3957
4018
  // src/data/rules.ts
3958
4019
  const NOW = ["P0"];
@@ -4159,9 +4220,9 @@ const RULES = [
4159
4220
  id: "module.power",
4160
4221
  kind: "module",
4161
4222
  rank: 1,
4162
- on: ["energy.grid"],
4223
+ on: ["power.grid"],
4163
4224
  target: {
4164
- on: "energy.grid",
4225
+ on: "power.grid",
4165
4226
  phases: FIRST_DAYS
4166
4227
  },
4167
4228
  sources: ["ready-power"],
@@ -4185,14 +4246,27 @@ const RULES = [
4185
4246
  id: "module.phone",
4186
4247
  kind: "module",
4187
4248
  rank: 3,
4188
- on: ["telecom.network"],
4249
+ on: ["phone.network"],
4189
4250
  target: {
4190
- on: "telecom.network",
4251
+ on: "phone.network",
4191
4252
  phases: FIRST_DAYS
4192
4253
  },
4193
4254
  sources: ["ready-alerts"],
4194
- when: "The phone or the internet does not operate.",
4195
- then: "Use the module: no phone or internet."
4255
+ when: "The phone network does not operate.",
4256
+ then: "Use the module: no phone network."
4257
+ },
4258
+ {
4259
+ id: "module.internet",
4260
+ kind: "module",
4261
+ rank: 3,
4262
+ on: ["network.access"],
4263
+ target: {
4264
+ on: "network.access",
4265
+ phases: FIRST_DAYS
4266
+ },
4267
+ sources: ["ready-kit", "uk-ready"],
4268
+ when: "The internet does not operate.",
4269
+ then: "Use the module: no internet access."
4196
4270
  },
4197
4271
  {
4198
4272
  id: "module.gas",
@@ -4224,9 +4298,9 @@ const RULES = [
4224
4298
  id: "module.pharmacy",
4225
4299
  kind: "module",
4226
4300
  rank: 6,
4227
- on: ["store.pharmacy"],
4301
+ on: ["care.local"],
4228
4302
  target: {
4229
- on: "store.pharmacy",
4303
+ on: "care.local",
4230
4304
  phases: [
4231
4305
  "ready",
4232
4306
  "warned",
@@ -4296,7 +4370,7 @@ const RULES = [
4296
4370
  rank: 3,
4297
4371
  on: [],
4298
4372
  target: {
4299
- on: "energy.grid",
4373
+ on: "power.grid",
4300
4374
  phases: FIRST_DAYS
4301
4375
  },
4302
4376
  sources: ["uk-hazards", "ready-shelter"],
@@ -4346,9 +4420,9 @@ const RULES = [
4346
4420
  id: "fallback.heat-cold",
4347
4421
  kind: "fallback",
4348
4422
  rank: 1,
4349
- on: ["energy.grid"],
4423
+ on: ["power.grid"],
4350
4424
  target: {
4351
- on: "energy.grid",
4425
+ on: "power.grid",
4352
4426
  phases: ["P2"]
4353
4427
  },
4354
4428
  sources: ["ready-power"],
@@ -4372,9 +4446,9 @@ const RULES = [
4372
4446
  id: "long.fridge",
4373
4447
  kind: "long-plan",
4374
4448
  rank: 1,
4375
- on: ["energy.grid", "food.energy"],
4449
+ on: ["power.grid", "food.energy"],
4376
4450
  target: {
4377
- on: "energy.grid",
4451
+ on: "power.grid",
4378
4452
  phases: ["P2"]
4379
4453
  },
4380
4454
  sources: ["ready-power", "ready-food"],
@@ -4385,9 +4459,9 @@ const RULES = [
4385
4459
  id: "long.medicine",
4386
4460
  kind: "long-plan",
4387
4461
  rank: 2,
4388
- on: ["energy.grid", "health.medicine"],
4462
+ on: ["power.grid", "health.medicine"],
4389
4463
  target: {
4390
- on: "energy.grid",
4464
+ on: "power.grid",
4391
4465
  phases: ["P2", "P3"]
4392
4466
  },
4393
4467
  sources: ["ready-power"],
@@ -4400,7 +4474,7 @@ const RULES = [
4400
4474
  rank: 3,
4401
4475
  on: [],
4402
4476
  target: {
4403
- on: "energy.grid",
4477
+ on: "power.grid",
4404
4478
  phases: ["P3"]
4405
4479
  },
4406
4480
  sources: ["uk-ready"],
@@ -4813,14 +4887,15 @@ const MORE_CASES = [
4813
4887
  "geo.space-weather.geomagnetic-storm",
4814
4888
  "security.armed-conflict"
4815
4889
  ];
4816
- /** The cuts of the content. A cut is a service that an event stops. These ids are a proposal until the stack model names them. */
4890
+ /** The cuts of the content. A cut is a service that an event stops. The ids are the ids of `SUPPLY_PARTS` in `stack-hazards`. */
4817
4891
  const CUTS = [
4818
- "energy.grid",
4892
+ "power.grid",
4819
4893
  "water.main",
4820
4894
  "road.local",
4821
- "telecom.network",
4895
+ "phone.network",
4896
+ "network.access",
4822
4897
  "gas.main",
4823
- "store.pharmacy"
4898
+ "care.local"
4824
4899
  ];
4825
4900
  /** The need codes that the steps protect. */
4826
4901
  const NEEDS = [