@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/guidebook-preparedness",
4
- "version": "0.1.6",
4
+ "version": "0.2.0",
5
5
  "description": "The preparedness content of the guidebook: cited sources, the steps and marked gaps of 12 cases and 6 cuts, 40 topics in 12 areas, and the catalog of offline bundles.",
6
6
  "keywords": [
7
7
  "guidebook",
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@mark1russell7/guidebook": "0.1.1",
59
59
  "@mark1russell7/guidebook-library": "0.1.1",
60
- "@mark1russell7/guidebook-plans": "0.1.2",
60
+ "@mark1russell7/guidebook-plans": "0.1.3",
61
61
  "@mark1russell7/guidebook-topics": "0.1.1"
62
62
  },
63
63
  "scripts": {
@@ -32,21 +32,26 @@ export const OPEN_CELLS: readonly string[] = [
32
32
  "cbrne.emp/P2",
33
33
  "cbrne.emp/P3",
34
34
  "geo.space-weather.geomagnetic-storm/P0",
35
- "energy.grid/P4",
36
- "energy.grid/P5",
35
+ "power.grid/P4",
36
+ "power.grid/P5",
37
37
  "water.main/P4",
38
38
  "water.main/P5",
39
39
  "road.local/P0",
40
40
  "road.local/P4",
41
41
  "road.local/P5",
42
- "telecom.network/P0",
43
- "telecom.network/P3",
44
- "telecom.network/P4",
45
- "telecom.network/P5",
42
+ "phone.network/P0",
43
+ "phone.network/P3",
44
+ "phone.network/P4",
45
+ "phone.network/P5",
46
+ "network.access/P0",
47
+ "network.access/P2",
48
+ "network.access/P3",
49
+ "network.access/P4",
50
+ "network.access/P5",
46
51
  "gas.main/P3",
47
52
  "gas.main/P4",
48
53
  "gas.main/P5",
49
- "store.pharmacy/P0",
50
- "store.pharmacy/P1",
51
- "store.pharmacy/P5",
54
+ "care.local/P0",
55
+ "care.local/P1",
56
+ "care.local/P5",
52
57
  ];
package/src/data/gaps.ts CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  import type { Gap } from "@mark1russell7/guidebook-plans";
4
4
 
5
- const OF_GRID = "This case is the power cut itself. The steps of the cut `energy.grid` apply.";
5
+ const OF_GRID = "This case is the power cut itself. The steps of the cut `power.grid` apply.";
6
6
  const OF_WATER = "This case is the water cut itself. The steps of the cut `water.main` apply.";
7
7
  const NO_HOME_STEP = "The emergency team and the hospital give the care after the first minutes. The sources give no household step.";
8
8
 
9
- 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.";
9
+ 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.";
10
10
  const NO_LONG_STEP = "The sources give no step for a cut of this length. The steps of the earlier phases continue.";
11
11
 
12
12
  /** The marked gaps of the cases and the cuts. */
@@ -30,26 +30,32 @@ export const GAPS: readonly Gap[] = [
30
30
  { on: "civic.economy.collapse", phase: "P1", why: "A financial collapse grows over days, not hours. The steps of the ready phase are the protection." },
31
31
  { on: "security.civil-unrest", phase: "warned", why: "No official household page read gives a step for a warning of unrest." },
32
32
  { on: "security.civil-unrest", phase: "P3", why: "No official household page read gives a step for unrest that continues for weeks." },
33
- { on: "energy.grid", phase: "warned", why: "A power cut often comes with no warning. The warning steps of the case and of the network apply." },
34
- { on: "energy.grid", phase: "P4", why: NO_LONG_STEP },
35
- { on: "energy.grid", phase: "P5", why: NO_LONG_STEP },
33
+ { on: "power.grid", phase: "warned", why: "A power cut often comes with no warning. The warning steps of the case and of the network apply." },
34
+ { on: "power.grid", phase: "P4", why: NO_LONG_STEP },
35
+ { on: "power.grid", phase: "P5", why: NO_LONG_STEP },
36
36
  { on: "water.main", phase: "warned", why: "A break of a water main comes with no warning. The stored water of the ready phase is the protection." },
37
37
  { on: "water.main", phase: "P4", why: NO_LONG_STEP },
38
38
  { on: "water.main", phase: "P5", why: NO_LONG_STEP },
39
39
  { on: "road.local", phase: "P0", why: "A closed road does not change the first minutes at home. The steps of the case apply." },
40
40
  { on: "road.local", phase: "P4", why: NO_LONG_STEP },
41
41
  { on: "road.local", phase: "P5", why: NO_LONG_STEP },
42
- { on: "telecom.network", phase: "P0", why: "A cut of the network does not change the first minutes. The steps of the case apply." },
43
- { on: "telecom.network", phase: "P3", why: NO_LONG_STEP },
44
- { on: "telecom.network", phase: "P4", why: NO_LONG_STEP },
45
- { on: "telecom.network", phase: "P5", why: NO_LONG_STEP },
42
+ { on: "phone.network", phase: "P0", why: "A cut of the network does not change the first minutes. The steps of the case apply." },
43
+ { on: "phone.network", phase: "P3", why: NO_LONG_STEP },
44
+ { on: "phone.network", phase: "P4", why: NO_LONG_STEP },
45
+ { on: "phone.network", phase: "P5", why: NO_LONG_STEP },
46
+ { on: "network.access", phase: "warned", why: "A loss of the internet access often comes with no warning. The steps of `ready` are the protection." },
47
+ { on: "network.access", phase: "P0", why: "A loss of the internet access does not change the first minutes. The steps of the case apply." },
48
+ { on: "network.access", phase: "P2", why: NO_LONG_STEP },
49
+ { on: "network.access", phase: "P3", why: NO_LONG_STEP },
50
+ { on: "network.access", phase: "P4", why: NO_LONG_STEP },
51
+ { on: "network.access", phase: "P5", why: NO_LONG_STEP },
46
52
  { on: "gas.main", phase: "warned", why: "A gas leak gives no warning before you smell it or hear it." },
47
53
  { on: "gas.main", phase: "P3", why: NO_LONG_STEP },
48
54
  { on: "gas.main", phase: "P4", why: NO_LONG_STEP },
49
55
  { on: "gas.main", phase: "P5", why: NO_LONG_STEP },
50
- { on: "store.pharmacy", phase: "P0", why: "A closed pharmacy does not change the first minutes. The steps of the case apply." },
51
- { on: "store.pharmacy", phase: "P1", why: "A closed pharmacy does not change the first hours. The medicines of the ready phase are the protection." },
52
- { on: "store.pharmacy", phase: "P5", why: NO_LONG_STEP },
56
+ { on: "care.local", phase: "P0", why: "A closed pharmacy does not change the first minutes. The steps of the case apply." },
57
+ { on: "care.local", phase: "P1", why: "A closed pharmacy does not change the first hours. The medicines of the ready phase are the protection." },
58
+ { on: "care.local", phase: "P5", why: NO_LONG_STEP },
53
59
  { on: "infra.power.outage", phase: "ready", why: OF_GRID },
54
60
  { on: "infra.power.outage", phase: "warned", why: OF_GRID },
55
61
  { on: "infra.power.outage", phase: "P0", why: OF_GRID },
package/src/data/rules.ts CHANGED
@@ -28,19 +28,20 @@ export const RULES: readonly Rule[] = [
28
28
  { id: "reflex.call", kind: "reflex", rank: 11, on: ["civic.ai-collapse"], target: { on: "civic.ai-collapse", phases: NOW }, sources: ["ftc-voice", "ic3-genai"], when: "A call or a message from family asks for money now.", then: "Hang up. Call the person back at a number that you know." },
29
29
 
30
30
  // What is cut? Each rule goes to the module of a cut.
31
- { id: "module.power", kind: "module", rank: 1, on: ["energy.grid"], target: { on: "energy.grid", phases: FIRST_DAYS }, sources: ["ready-power"], when: "There is no power from the grid.", then: "Use the module: no power from the grid." },
31
+ { id: "module.power", kind: "module", rank: 1, on: ["power.grid"], target: { on: "power.grid", phases: FIRST_DAYS }, sources: ["ready-power"], when: "There is no power from the grid.", then: "Use the module: no power from the grid." },
32
32
  { id: "module.water", kind: "module", rank: 2, on: ["water.main"], target: { on: "water.main", phases: FIRST_DAYS }, sources: ["ready-water"], when: "There is no safe water from the main.", then: "Use the module: no water from the main." },
33
- { id: "module.phone", kind: "module", rank: 3, on: ["telecom.network"], target: { on: "telecom.network", phases: FIRST_DAYS }, sources: ["ready-alerts"], when: "The phone or the internet does not operate.", then: "Use the module: no phone or internet." },
33
+ { id: "module.phone", kind: "module", rank: 3, on: ["phone.network"], target: { on: "phone.network", phases: FIRST_DAYS }, sources: ["ready-alerts"], when: "The phone network does not operate.", then: "Use the module: no phone network." },
34
+ { id: "module.internet", kind: "module", rank: 3, on: ["network.access"], target: { on: "network.access", phases: FIRST_DAYS }, sources: ["ready-kit", "uk-ready"], when: "The internet does not operate.", then: "Use the module: no internet access." },
34
35
  { id: "module.gas", kind: "module", rank: 4, on: ["gas.main"], target: { on: "gas.main", phases: FIRST_DAYS }, sources: ["ready-safety"], when: "There is no gas from the main.", then: "Use the module: no gas from the main." },
35
36
  { id: "module.roads", kind: "module", rank: 5, on: ["road.local"], target: { on: "road.local", phases: FIRST_DAYS }, sources: ["ready-evacuation"], when: "The local roads are closed.", then: "Use the module: closed local roads." },
36
- { id: "module.pharmacy", kind: "module", rank: 6, on: ["store.pharmacy"], target: { on: "store.pharmacy", phases: ["ready", "warned", "P2", "P3"] }, sources: ["fda-drugs"], when: "The pharmacy is closed.", then: "Use the module: closed pharmacy." },
37
+ { id: "module.pharmacy", kind: "module", rank: 6, on: ["care.local"], target: { on: "care.local", phases: ["ready", "warned", "P2", "P3"] }, sources: ["fda-drugs"], when: "The pharmacy is closed.", then: "Use the module: closed pharmacy." },
37
38
  { id: "module.food", kind: "module", rank: 7, on: ["infra.supply-chain.food"], target: { on: "infra.supply-chain.food", phases: FIRST_DAYS }, sources: ["ready-food", "ready-power"], when: "The shops have no food.", then: "Use your stored food, and the plan of a food supply failure." },
38
39
  { id: "module.money", kind: "module", rank: 8, on: ["civic.economy.collapse"], target: { on: "civic.economy.collapse", phases: FIRST_DAYS }, sources: ["ready-financial", "dol-ui"], when: "Cards, banks or your income stop.", then: "Use your cash, and the plan of a financial collapse." },
39
40
 
40
41
  // When do I stay?
41
42
  { id: "stay.order", kind: "stay", rank: 1, on: [], target: { on: "cbrne.radiological", phases: ["warned", "P0"] }, sources: ["ready-shelter", "uk-hazards"], when: "Officials tell you to shelter in place, or to go in, stay in and tune in.", then: "Stay inside. Close the doors, the windows and the vents, and listen to the radio." },
42
43
  { id: "stay.air", kind: "stay", rank: 2, on: [], target: { on: "cbrne.hazardous-materials", phases: ["P1"] }, sources: ["ready-shelter"], when: "The air outside has much debris, or officials say that it is badly contaminated.", then: "Go to an inner room with few windows, and seal it." },
43
- { id: "stay.safe", kind: "stay", rank: 3, on: [], target: { on: "energy.grid", phases: FIRST_DAYS }, sources: ["uk-hazards", "ready-shelter"], when: "The officials give no order to leave, and the building has no obvious risk.", then: "Stay where you are, and use your supplies." },
44
+ { id: "stay.safe", kind: "stay", rank: 3, on: [], target: { on: "power.grid", phases: FIRST_DAYS }, sources: ["uk-hazards", "ready-shelter"], when: "The officials give no order to leave, and the building has no obvious risk.", then: "Stay where you are, and use your supplies." },
44
45
 
45
46
  // When do I go?
46
47
  { id: "go.order", kind: "go", rank: 1, on: [], target: { on: "met.tropical.hurricane", phases: NOW }, sources: ["uk-hazards", "ready-evacuation"], when: "Officials tell you to leave.", then: "Leave immediately. A delay can put your life at risk." },
@@ -48,13 +49,13 @@ export const RULES: readonly Rule[] = [
48
49
  { id: "go.early", kind: "go", rank: 3, on: [], target: { on: "met.tropical.hurricane", phases: ["warned"] }, sources: ["ready-evacuation"], when: "A storm comes, and an evacuation seems likely.", then: "Leave early, so that the weather does not trap you." },
49
50
 
50
51
  // When do I go to a fallback place?
51
- { id: "fallback.heat-cold", kind: "fallback", rank: 1, on: ["energy.grid"], target: { on: "energy.grid", phases: ["P2"] }, sources: ["ready-power"], when: "There is no power, and the heat or the cold is extreme.", then: "Go to a community place with power. Ask the officials which places are open." },
52
+ { id: "fallback.heat-cold", kind: "fallback", rank: 1, on: ["power.grid"], target: { on: "power.grid", phases: ["P2"] }, sources: ["ready-power"], when: "There is no power, and the heat or the cold is extreme.", then: "Go to a community place with power. Ask the officials which places are open." },
52
53
  { id: "fallback.home", kind: "fallback", rank: 2, on: [], target: { on: "met.tropical.hurricane", phases: ["ready"] }, sources: ["ready-evacuation", "ready-shelter"], when: "You cannot stay at home or go back to it.", then: "Go to a fallback place of your plan. To find an open shelter, text SHELTER and your ZIP code to 43362." },
53
54
 
54
55
  // When do I change to the long plan?
55
- { id: "long.fridge", kind: "long-plan", rank: 1, on: ["energy.grid", "food.energy"], target: { on: "energy.grid", phases: ["P2"] }, sources: ["ready-power", "ready-food"], when: "The power is off for more than 4 hours.", then: "Use the steps of P2. Discard food that was above 40 °F for 2 hours." },
56
- { id: "long.medicine", kind: "long-plan", rank: 2, on: ["energy.grid", "health.medicine"], target: { on: "energy.grid", phases: ["P2", "P3"] }, sources: ["ready-power"], when: "The power is off for more than 1 day, and a medicine needs a refrigerator.", then: "Speak to your doctor or pharmacist immediately to get a new supply." },
57
- { id: "long.days", kind: "long-plan", rank: 3, on: [], target: { on: "energy.grid", phases: ["P3"] }, sources: ["uk-ready"], when: "A cut continues past 3 days.", then: "Use the steps of P3 of each cut, and of the case." },
56
+ { id: "long.fridge", kind: "long-plan", rank: 1, on: ["power.grid", "food.energy"], target: { on: "power.grid", phases: ["P2"] }, sources: ["ready-power", "ready-food"], when: "The power is off for more than 4 hours.", then: "Use the steps of P2. Discard food that was above 40 °F for 2 hours." },
57
+ { id: "long.medicine", kind: "long-plan", rank: 2, on: ["power.grid", "health.medicine"], target: { on: "power.grid", phases: ["P2", "P3"] }, sources: ["ready-power"], when: "The power is off for more than 1 day, and a medicine needs a refrigerator.", then: "Speak to your doctor or pharmacist immediately to get a new supply." },
58
+ { id: "long.days", kind: "long-plan", rank: 3, on: [], target: { on: "power.grid", phases: ["P3"] }, sources: ["uk-ready"], when: "A cut continues past 3 days.", then: "Use the steps of P3 of each cut, and of the case." },
58
59
  { id: "long.income", kind: "long-plan", rank: 4, on: ["civic.economy.collapse"], target: { on: "civic.economy.collapse", phases: ["P2", "P3"] }, sources: ["dol-ui"], when: "You lose your job or your income.", then: "File an unemployment claim immediately, and use the plan of a financial collapse." },
59
60
  { id: "long.pandemic", kind: "long-plan", rank: 5, on: ["health.outbreak.pandemic"], target: { on: "health.outbreak.pandemic", phases: ["warned", "P1", "P2"] }, sources: ["ready-pandemic"], when: "Officials say that a pandemic spreads in your community.", then: "Stay at home as much as possible, and use the plan of a pandemic." },
60
61
  ];
package/src/data/steps.ts CHANGED
@@ -1,4 +1,4 @@
1
- // The steps of the 12 cases of v1, the 2 more cases and the 6 cuts. Each step is in the words of the guidebook, and each step cites the page that tells it.
1
+ // The steps of the 12 cases of v1, the 2 more cases and the 7 cuts. Each step is in the words of the guidebook, and each step cites the page that tells it.
2
2
  // The steps are full from `ready` to `P3`. `P4` and `P5` are an outline. Each cell with no step has a marked gap in `gaps.ts`.
3
3
 
4
4
  import type { Phase, Step } from "@mark1russell7/guidebook-plans";
@@ -566,7 +566,7 @@ export const CASE_STEPS: readonly Step[] = [
566
566
 
567
567
  /** 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. */
568
568
  export const CUT_STEPS: readonly Step[] = [
569
- ...stepsOf("energy.grid", [
569
+ ...stepsOf("power.grid", [
570
570
  ["ready", "list", "Make a list of the items that need electricity, and plan batteries or a power bank for them.", ["ready-power"], [POWER]],
571
571
  ["ready", "flashlights", "Keep a flashlight for each person in the household.", ["ready-power"]],
572
572
  ["ready", "co-alarms", "Put carbon monoxide alarms with battery backup on each level of the house.", ["ready-power", "cdc-co"]],
@@ -610,7 +610,7 @@ export const CUT_STEPS: readonly Step[] = [
610
610
  ["P2", "officials", "Before you travel, speak to the local officials.", ["ready-evacuation"]],
611
611
  ["P3", "trip", "Before a trip, fill the fuel tank, and take water and non-perishable food for the ride.", ["ready-evacuation"], [DRINK, FOOD]],
612
612
  ]),
613
- ...stepsOf("telecom.network", [
613
+ ...stepsOf("phone.network", [
614
614
  ["ready", "radio", "Keep a radio with batteries or a hand crank, and a NOAA Weather Radio with a tone alert.", ["ready-kit"]],
615
615
  ["ready", "home-phone", "Learn if your home phone works with no power, and for how long its battery lasts.", ["ready-power"]],
616
616
  ["ready", "contact", "Make a communication plan with a contact outside the state and a meeting place.", ["ready-earthquakes"]],
@@ -619,6 +619,12 @@ export const CUT_STEPS: readonly Step[] = [
619
619
  ["P1", "calls", "Make phone calls only for emergencies.", ["ready-tornadoes", "ready-hurricanes"]],
620
620
  ["P2", "news", "Listen to the local news on a radio with batteries.", ["ready-earthquakes"]],
621
621
  ]),
622
+ ...stepsOf("network.access", [
623
+ ["ready", "radio", "Keep a radio with batteries or a hand crank, so that news comes without the internet.", ["ready-kit"]],
624
+ ["ready", "paper", "Keep on paper the addresses, the phone numbers and the documents that you keep online.", ["uk-ready"]],
625
+ ["ready", "backup", "Make backups of important information on an external drive or a USB drive.", ["se-brochure-en"]],
626
+ ["P1", "news", "With no internet, get the news and the instructions of officials from a local radio station.", ["ready-earthquakes"]],
627
+ ]),
622
628
  ...stepsOf("gas.main", [
623
629
  ["ready", "meter", "Ask your gas company how to turn off the gas at your meter, and teach your household.", ["ready-safety"]],
624
630
  ["ready", "practice", "Do not turn off the gas when you practice.", ["ready-safety"]],
@@ -628,7 +634,7 @@ export const CUT_STEPS: readonly Step[] = [
628
634
  ["P1", "restore", "Do not turn the gas on again yourself. Only a qualified professional can do this.", ["ready-safety"]],
629
635
  ["P2", "indoors", "Do not use a camp stove or charcoal indoors at any time.", ["cdc-co"]],
630
636
  ]),
631
- ...stepsOf("store.pharmacy", [
637
+ ...stepsOf("care.local", [
632
638
  ["ready", "list", "Keep a current list of your medicines: the name, the strength, the dose, the time and your allergies.", ["fda-drugs"], [MEDICINE]],
633
639
  ["ready", "copies", "Keep a copy of your prescriptions with the emergency supplies.", ["fda-drugs"], [MEDICINE]],
634
640
  ["ready", "watertight", "Store medicines in watertight containers, in a place that flood water cannot reach.", ["fda-drugs"], [MEDICINE]],
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // The preparedness content of the guidebook: the sources, the steps and the marked gaps of 12 cases and 6 cuts,
1
+ // The preparedness content of the guidebook: the sources, the steps and the marked gaps of 12 cases and 7 cuts,
2
2
  // the topics of 12 areas, and the catalog of offline bundles.
3
3
 
4
4
  export { CHECKED, SOURCES } from "./data/sources.ts";
@@ -35,8 +35,8 @@ export const CASES = [
35
35
  */
36
36
  export const MORE_CASES = ["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"] as const;
37
37
 
38
- /** 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. */
39
- export const CUTS = ["energy.grid", "water.main", "road.local", "telecom.network", "gas.main", "store.pharmacy"] as const;
38
+ /** 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`. */
39
+ export const CUTS = ["power.grid", "water.main", "road.local", "phone.network", "network.access", "gas.main", "care.local"] as const;
40
40
 
41
41
  /** The need codes that the steps protect. */
42
42
  export const NEEDS = ["hydration.drink", "food.energy", "health.medicine", "power.electric"] as const;