@its-not-rocket-science/ananke 0.1.69 → 0.5.1
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/CHANGELOG.md +254 -0
- package/README.md +150 -432
- package/STABLE_API.md +113 -490
- package/conformance/README.md +46 -44
- package/conformance/lockstep-sequence.json +395 -395
- package/conformance/phase-order.json +21 -0
- package/conformance/replay-parity.json +65 -65
- package/conformance/state-hash-regression.json +39 -0
- package/conformance/state-hash.json +23 -22
- package/dist/src/conformance.d.ts +8 -2
- package/dist/src/content/index.d.ts +3 -0
- package/dist/src/content/index.js +2 -0
- package/dist/src/content/injector.d.ts +19 -0
- package/dist/src/content/injector.js +61 -0
- package/dist/src/content/loader.d.ts +3 -0
- package/dist/src/content/loader.js +170 -0
- package/dist/src/content/types.d.ts +56 -0
- package/dist/src/content/types.js +1 -0
- package/dist/src/content/validator.d.ts +6 -0
- package/dist/src/content/validator.js +14 -0
- package/dist/src/content-pack.d.ts +3 -2
- package/dist/src/content-pack.js +205 -10
- package/dist/src/data-governance.d.ts +73 -0
- package/dist/src/data-governance.js +188 -0
- package/dist/src/debug.d.ts +6 -0
- package/dist/src/debug.js +9 -0
- package/dist/src/determinism.d.ts +12 -0
- package/dist/src/determinism.js +93 -0
- package/dist/src/dialogue.d.ts +41 -0
- package/dist/src/dialogue.js +113 -2
- package/dist/src/economy.d.ts +97 -3
- package/dist/src/economy.js +191 -37
- package/dist/src/history/autosave.d.ts +19 -0
- package/dist/src/history/autosave.js +98 -0
- package/dist/src/history/timetravel.d.ts +28 -0
- package/dist/src/history/timetravel.js +61 -0
- package/dist/src/index.d.ts +19 -31
- package/dist/src/index.js +20 -38
- package/dist/src/model3d.js +63 -2
- package/dist/src/narrative/combat-logger.d.ts +25 -0
- package/dist/src/narrative/combat-logger.js +97 -0
- package/dist/src/narrative/plausibility.d.ts +30 -0
- package/dist/src/narrative/plausibility.js +70 -0
- package/dist/src/narrative-layer.d.ts +2 -0
- package/dist/src/narrative-layer.js +2 -0
- package/dist/src/navigation/causal-chain.d.ts +26 -0
- package/dist/src/navigation/causal-chain.js +74 -0
- package/dist/src/netcode.d.ts +1 -1
- package/dist/src/netcode.js +1 -1
- package/dist/src/performance/adaptive-tick.d.ts +23 -0
- package/dist/src/performance/adaptive-tick.js +50 -0
- package/dist/src/plugins/loader.d.ts +23 -0
- package/dist/src/plugins/loader.js +86 -0
- package/dist/src/plugins/registry.d.ts +11 -0
- package/dist/src/plugins/registry.js +28 -0
- package/dist/src/plugins/types.d.ts +31 -0
- package/dist/src/plugins/types.js +7 -0
- package/dist/src/replay.js +5 -2
- package/dist/src/scenario.js +2 -1
- package/dist/src/serialization/binary.d.ts +5 -0
- package/dist/src/serialization/binary.js +193 -0
- package/dist/src/session.d.ts +115 -0
- package/dist/src/session.js +228 -0
- package/dist/src/sim/ai/decide.js +1 -1
- package/dist/src/sim/ai/personality.js +2 -2
- package/dist/src/sim/bodyplan.d.ts +30 -0
- package/dist/src/sim/context.d.ts +2 -0
- package/dist/src/sim/kernel.js +80 -1294
- package/dist/src/sim/normalization.d.ts +12 -0
- package/dist/src/sim/normalization.js +92 -0
- package/dist/src/sim/resolvers/attack-resolver.d.ts +30 -0
- package/dist/src/sim/resolvers/attack-resolver.js +310 -0
- package/dist/src/sim/resolvers/capability-resolver.d.ts +15 -0
- package/dist/src/sim/resolvers/capability-resolver.js +270 -0
- package/dist/src/sim/resolvers/grapple-resolver.d.ts +28 -0
- package/dist/src/sim/resolvers/grapple-resolver.js +70 -0
- package/dist/src/sim/resolvers/shoot-resolver.d.ts +27 -0
- package/dist/src/sim/resolvers/shoot-resolver.js +212 -0
- package/dist/src/sim/resolvers/treat-resolver.d.ts +16 -0
- package/dist/src/sim/resolvers/treat-resolver.js +77 -0
- package/dist/src/sim/step/apply/intents.d.ts +6 -0
- package/dist/src/sim/step/apply/intents.js +83 -0
- package/dist/src/sim/step/kernel-pipeline.d.ts +9 -0
- package/dist/src/sim/step/kernel-pipeline.js +15 -0
- package/dist/src/sim/step/phases/capability-phase.d.ts +8 -0
- package/dist/src/sim/step/phases/capability-phase.js +65 -0
- package/dist/src/sim/step/phases/cooldowns-phase.d.ts +3 -0
- package/dist/src/sim/step/phases/cooldowns-phase.js +37 -0
- package/dist/src/sim/step/phases/prepare-phase.d.ts +10 -0
- package/dist/src/sim/step/phases/prepare-phase.js +33 -0
- package/dist/src/sim/step/pipeline.d.ts +2 -0
- package/dist/src/sim/step/pipeline.js +15 -0
- package/dist/src/sim/step/resolvers/impact-resolver.d.ts +9 -0
- package/dist/src/sim/step/resolvers/impact-resolver.js +55 -0
- package/dist/src/sim/step/world-phases.d.ts +7 -0
- package/dist/src/sim/step/world-phases.js +15 -0
- package/dist/src/sim/step/world-step-context.d.ts +23 -0
- package/dist/src/sim/step/world-step-context.js +1 -0
- package/dist/src/sim/systemic-toxicology.js +1 -1
- package/dist/src/sim/team.js +2 -2
- package/dist/src/sim/testing.js +4 -3
- package/dist/src/sim/toxicology.d.ts +1 -1
- package/dist/src/sim/toxicology.js +1 -1
- package/dist/src/sim/world.d.ts +17 -24
- package/dist/src/snapshot.js +3 -6
- package/dist/src/tier2.d.ts +19 -0
- package/dist/src/tier2.js +21 -0
- package/dist/src/tier3.d.ts +10 -0
- package/dist/src/tier3.js +12 -0
- package/dist/src/version.d.ts +6 -0
- package/dist/src/version.js +8 -0
- package/dist/src/wasm/bridge.d.ts +14 -0
- package/dist/src/wasm/bridge.js +84 -0
- package/dist/src/wasm-kernel.d.ts +2 -0
- package/dist/src/wasm-kernel.js +1 -0
- package/dist/src/world-evolution-backend/engine.d.ts +4 -0
- package/dist/src/world-evolution-backend/engine.js +347 -0
- package/dist/src/world-evolution-backend/host-schema.d.ts +145 -0
- package/dist/src/world-evolution-backend/host-schema.js +375 -0
- package/dist/src/world-evolution-backend/index.d.ts +1 -0
- package/dist/src/world-evolution-backend/index.js +1 -0
- package/dist/src/world-evolution-backend/open-world-host-adapter.d.ts +96 -0
- package/dist/src/world-evolution-backend/open-world-host-adapter.js +208 -0
- package/dist/src/world-evolution-backend/profiles.d.ts +4 -0
- package/dist/src/world-evolution-backend/profiles.js +136 -0
- package/dist/src/world-evolution-backend/public.d.ts +11 -0
- package/dist/src/world-evolution-backend/public.js +7 -0
- package/dist/src/world-evolution-backend/reproducibility.d.ts +8 -0
- package/dist/src/world-evolution-backend/reproducibility.js +35 -0
- package/dist/src/world-evolution-backend/timeline.d.ts +6 -0
- package/dist/src/world-evolution-backend/timeline.js +337 -0
- package/dist/src/world-evolution-backend/types.d.ts +138 -0
- package/dist/src/world-evolution-backend/types.js +1 -0
- package/dist/src/world-evolution-host-backend.d.ts +51 -0
- package/dist/src/world-evolution-host-backend.js +97 -0
- package/dist/src/world-evolution.d.ts +201 -0
- package/dist/src/world-evolution.js +543 -0
- package/dist/src/world-factory.js +2 -1
- package/dist/tools/pack-cli.js +55 -2
- package/docs/bridge-contract.md +140 -332
- package/docs/completion-evidence-dashboard.md +63 -0
- package/docs/host-contract.md +86 -310
- package/docs/host-world-evolution-schema.md +155 -0
- package/docs/integration-primer.md +29 -22
- package/docs/migration-monolith-to-modular.md +102 -120
- package/docs/package-architecture.md +116 -323
- package/docs/plugins/README.md +42 -0
- package/docs/plugins/hooks.md +22 -0
- package/docs/plugins/publishing.md +29 -0
- package/docs/plugins/security-model.md +273 -0
- package/docs/project-overview.md +30 -30
- package/docs/release-dashboard.md +47 -0
- package/docs/session-api.md +127 -0
- package/docs/stable-api-manifest.json +52 -0
- package/docs/trust-dashboard.md +37 -0
- package/docs/versioning.md +256 -245
- package/docs/wire-protocol.md +140 -209
- package/docs/world-evolution-backend.md +200 -0
- package/docs/world-evolution-engine.md +150 -0
- package/docs/world-evolution-host-backend.md +70 -0
- package/docs/world-evolution-orchestration.md +248 -0
- package/package.json +125 -6
- package/schema/content-pack.schema.json +85 -0
- package/schema/plugin.schema.json +57 -0
- package/schema/world-evolution-input.schema.json +196 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://its-not-rocket-science.github.io/ananke/schema/content-pack.schema.json",
|
|
4
|
+
"title": "ContentPack",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["name", "version"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": { "type": "string" },
|
|
9
|
+
"name": { "type": "string", "minLength": 1 },
|
|
10
|
+
"version": { "type": "string", "pattern": "^\\d+\\.\\d+(\\.\\d+)?$" },
|
|
11
|
+
"description": { "type": "string" },
|
|
12
|
+
"registry": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"compatRange": { "type": "string" }
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": true
|
|
18
|
+
},
|
|
19
|
+
"weapons": { "type": "array", "items": { "$ref": "#/$defs/WeaponEntry" } },
|
|
20
|
+
"armour": { "type": "array", "items": { "$ref": "#/$defs/ArmourEntry" } },
|
|
21
|
+
"archetypes": { "type": "array", "items": { "$ref": "#/$defs/ArchetypeEntry" } },
|
|
22
|
+
"terrain": { "type": "array", "items": { "$ref": "#/$defs/TerrainEntry" } }
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": true,
|
|
25
|
+
"$defs": {
|
|
26
|
+
"WeaponDamageProfile": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["surfaceFrac", "internalFrac", "structuralFrac", "bleedFactor", "penetrationBias"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"surfaceFrac": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
31
|
+
"internalFrac": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
32
|
+
"structuralFrac": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
33
|
+
"bleedFactor": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
34
|
+
"penetrationBias": { "type": "number", "minimum": 0, "maximum": 1 }
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": true
|
|
37
|
+
},
|
|
38
|
+
"WeaponEntry": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"required": ["id", "name", "mass_kg", "damage"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"id": { "type": "string", "minLength": 1 },
|
|
43
|
+
"name": { "type": "string" },
|
|
44
|
+
"mass_kg": { "type": "number", "exclusiveMinimum": 0 },
|
|
45
|
+
"damage": { "$ref": "#/$defs/WeaponDamageProfile" }
|
|
46
|
+
},
|
|
47
|
+
"additionalProperties": true
|
|
48
|
+
},
|
|
49
|
+
"ArmourEntry": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": ["id", "name", "mass_kg", "resist_J", "protectedDamageMul", "coverageByRegion"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"id": { "type": "string", "minLength": 1 },
|
|
54
|
+
"name": { "type": "string" },
|
|
55
|
+
"mass_kg": { "type": "number", "exclusiveMinimum": 0 },
|
|
56
|
+
"resist_J": { "type": "number", "exclusiveMinimum": 0 },
|
|
57
|
+
"protectedDamageMul": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
58
|
+
"coverageByRegion": { "type": "object", "additionalProperties": { "type": "number", "minimum": 0, "maximum": 1 } }
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": true
|
|
61
|
+
},
|
|
62
|
+
"ArchetypeEntry": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": ["id"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"id": { "type": "string", "minLength": 1 },
|
|
67
|
+
"base": { "type": "string" },
|
|
68
|
+
"overrides": { "type": "object" }
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": true
|
|
71
|
+
},
|
|
72
|
+
"TerrainEntry": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"required": ["id", "name"],
|
|
75
|
+
"properties": {
|
|
76
|
+
"id": { "type": "string", "minLength": 1 },
|
|
77
|
+
"name": { "type": "string", "minLength": 1 },
|
|
78
|
+
"tags": { "type": "array", "items": { "type": "string" } },
|
|
79
|
+
"tractionMul": { "type": "number", "minimum": 0 },
|
|
80
|
+
"cover": { "type": "number", "minimum": 0, "maximum": 1 }
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": true
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://ananke.dev/schema/plugin.schema.json",
|
|
4
|
+
"title": "Ananke Plugin Manifest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["id", "version", "hooks", "dependencies", "permissions"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Unique plugin id (typically npm-style)",
|
|
12
|
+
"pattern": "^[a-z0-9][a-z0-9-]*(?:/[a-z0-9][a-z0-9-]*)?$"
|
|
13
|
+
},
|
|
14
|
+
"version": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Plugin semver version",
|
|
17
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z-.]+)?(?:\\+[0-9A-Za-z-.]+)?$"
|
|
18
|
+
},
|
|
19
|
+
"hooks": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "type": "string", "minLength": 1 },
|
|
22
|
+
"uniqueItems": true
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Dependent plugin ids mapped to semver ranges",
|
|
27
|
+
"additionalProperties": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1
|
|
30
|
+
},
|
|
31
|
+
"default": {}
|
|
32
|
+
},
|
|
33
|
+
"permissions": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": [
|
|
38
|
+
"read:worldState",
|
|
39
|
+
"write:worldState",
|
|
40
|
+
"read:events",
|
|
41
|
+
"write:telemetry",
|
|
42
|
+
"write:artifacts"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"uniqueItems": true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"examples": [
|
|
49
|
+
{
|
|
50
|
+
"id": "ananke-plugin-achievements",
|
|
51
|
+
"version": "1.0.0",
|
|
52
|
+
"hooks": ["beforeStep", "afterDamage"],
|
|
53
|
+
"dependencies": {},
|
|
54
|
+
"permissions": ["read:worldState"]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://its-not-rocket-science.github.io/ananke/schema/world-evolution-input.schema.json",
|
|
4
|
+
"title": "WorldEvolutionInput",
|
|
5
|
+
"description": "Host-facing canonical input schema for Ananke world evolution backend.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["worldSeed", "entities"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "type": "string" },
|
|
10
|
+
"worldSeed": { "type": "integer" },
|
|
11
|
+
"tick": { "type": "integer", "minimum": 0 },
|
|
12
|
+
"entities": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 1,
|
|
15
|
+
"items": {
|
|
16
|
+
"oneOf": [
|
|
17
|
+
{ "$ref": "#/$defs/HostPolity" },
|
|
18
|
+
{ "$ref": "#/$defs/HostSettlement" },
|
|
19
|
+
{ "$ref": "#/$defs/HostRegion" }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"relationships": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": { "$ref": "#/$defs/HostRelationship" }
|
|
26
|
+
},
|
|
27
|
+
"resources": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": { "$ref": "#/$defs/HostResourceNode" }
|
|
30
|
+
},
|
|
31
|
+
"diseases": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": { "$ref": "#/$defs/HostDiseaseProfile" }
|
|
34
|
+
},
|
|
35
|
+
"epidemics": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "$ref": "#/$defs/HostEpidemicState" }
|
|
38
|
+
},
|
|
39
|
+
"ruleOverrides": { "$ref": "#/$defs/HostRuleOverrides" },
|
|
40
|
+
"hostMetadata": { "type": "object" },
|
|
41
|
+
"simulationState": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"climateByPolity": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"required": ["polityId", "active"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"polityId": { "type": "string" },
|
|
51
|
+
"active": { "type": "array", "items": { "type": "object" } }
|
|
52
|
+
},
|
|
53
|
+
"additionalProperties": true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"governanceLawRegistry": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": { "type": "object" }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"$defs": {
|
|
66
|
+
"HostPolity": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"required": ["kind", "id", "name"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"kind": { "const": "polity" },
|
|
71
|
+
"id": { "type": "string", "minLength": 1 },
|
|
72
|
+
"name": { "type": "string", "minLength": 1 },
|
|
73
|
+
"factionId": { "type": "string" },
|
|
74
|
+
"controlledRegionIds": { "type": "array", "items": { "type": "string" } },
|
|
75
|
+
"controlledSettlementIds": { "type": "array", "items": { "type": "string" } },
|
|
76
|
+
"population": { "type": "integer", "minimum": 0 },
|
|
77
|
+
"treasury_cu": { "type": "integer" },
|
|
78
|
+
"stabilityQ": { "type": "integer", "minimum": 0 },
|
|
79
|
+
"moraleQ": { "type": "integer", "minimum": 0 },
|
|
80
|
+
"techEra": { "type": "string" },
|
|
81
|
+
"governanceType": { "type": "string" },
|
|
82
|
+
"activeLawIds": { "type": "array", "items": { "type": "string" } },
|
|
83
|
+
"metadata": { "type": "object" }
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
},
|
|
87
|
+
"HostSettlement": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"required": ["kind", "id", "name"],
|
|
90
|
+
"properties": {
|
|
91
|
+
"kind": { "const": "settlement" },
|
|
92
|
+
"id": { "type": "string", "minLength": 1 },
|
|
93
|
+
"name": { "type": "string", "minLength": 1 },
|
|
94
|
+
"regionId": { "type": "string" },
|
|
95
|
+
"polityId": { "type": "string" },
|
|
96
|
+
"population": { "type": "integer", "minimum": 0 },
|
|
97
|
+
"metadata": { "type": "object" }
|
|
98
|
+
},
|
|
99
|
+
"additionalProperties": false
|
|
100
|
+
},
|
|
101
|
+
"HostRegion": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["kind", "id", "name"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"kind": { "const": "region" },
|
|
106
|
+
"id": { "type": "string", "minLength": 1 },
|
|
107
|
+
"name": { "type": "string", "minLength": 1 },
|
|
108
|
+
"biome": { "type": "string" },
|
|
109
|
+
"polityId": { "type": "string" },
|
|
110
|
+
"population": { "type": "integer", "minimum": 0 },
|
|
111
|
+
"metadata": { "type": "object" }
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
},
|
|
115
|
+
"HostRelationship": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"required": ["id", "kind", "sourceId", "targetId"],
|
|
118
|
+
"properties": {
|
|
119
|
+
"id": { "type": "string", "minLength": 1 },
|
|
120
|
+
"kind": { "enum": ["border", "trade_route", "treaty", "war"] },
|
|
121
|
+
"sourceId": { "type": "string" },
|
|
122
|
+
"targetId": { "type": "string" },
|
|
123
|
+
"sharedBorderCount": { "type": "integer", "minimum": 0 },
|
|
124
|
+
"routeQualityQ": { "type": "integer", "minimum": 0 },
|
|
125
|
+
"baseVolume_cu": { "type": "integer", "minimum": 0 },
|
|
126
|
+
"treatyType": { "type": "string" },
|
|
127
|
+
"treatyStrength_Q": { "type": "integer", "minimum": 0 },
|
|
128
|
+
"signedTick": { "type": "integer", "minimum": 0 },
|
|
129
|
+
"expiryTick": { "type": "integer" },
|
|
130
|
+
"metadata": { "type": "object" }
|
|
131
|
+
},
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
},
|
|
134
|
+
"HostResourceNode": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"required": ["id", "resourceType"],
|
|
137
|
+
"properties": {
|
|
138
|
+
"id": { "type": "string", "minLength": 1 },
|
|
139
|
+
"polityId": { "type": "string" },
|
|
140
|
+
"regionId": { "type": "string" },
|
|
141
|
+
"settlementId": { "type": "string" },
|
|
142
|
+
"resourceType": { "type": "string", "minLength": 1 },
|
|
143
|
+
"stock": { "type": "integer", "minimum": 0 },
|
|
144
|
+
"metadata": { "type": "object" }
|
|
145
|
+
},
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
},
|
|
148
|
+
"HostDiseaseProfile": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"required": [
|
|
151
|
+
"id", "name", "transmissionRoute", "baseTransmissionRate_Q", "incubationPeriod_s",
|
|
152
|
+
"symptomaticDuration_s", "mortalityRate_Q", "symptomSeverity_Q", "airborneRange_Sm", "immunityDuration_s"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"id": { "type": "string", "minLength": 1 },
|
|
156
|
+
"name": { "type": "string", "minLength": 1 },
|
|
157
|
+
"transmissionRoute": { "enum": ["airborne", "contact", "vector", "waterborne"] },
|
|
158
|
+
"baseTransmissionRate_Q": { "type": "integer", "minimum": 0 },
|
|
159
|
+
"incubationPeriod_s": { "type": "integer", "minimum": 0 },
|
|
160
|
+
"symptomaticDuration_s": { "type": "integer", "minimum": 0 },
|
|
161
|
+
"mortalityRate_Q": { "type": "integer", "minimum": 0 },
|
|
162
|
+
"symptomSeverity_Q": { "type": "integer", "minimum": 0 },
|
|
163
|
+
"airborneRange_Sm": { "type": "integer", "minimum": 0 },
|
|
164
|
+
"immunityDuration_s": { "type": "integer" }
|
|
165
|
+
},
|
|
166
|
+
"additionalProperties": false
|
|
167
|
+
},
|
|
168
|
+
"HostEpidemicState": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"required": ["polityId", "diseaseId", "prevalence_Q"],
|
|
171
|
+
"properties": {
|
|
172
|
+
"polityId": { "type": "string" },
|
|
173
|
+
"diseaseId": { "type": "string" },
|
|
174
|
+
"prevalence_Q": { "type": "integer", "minimum": 0 }
|
|
175
|
+
},
|
|
176
|
+
"additionalProperties": false
|
|
177
|
+
},
|
|
178
|
+
"HostRuleOverrides": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"polityDayEnabled": { "type": "boolean" },
|
|
182
|
+
"governanceEnabled": { "type": "boolean" },
|
|
183
|
+
"diplomacyEnabled": { "type": "boolean" },
|
|
184
|
+
"tradeEnabled": { "type": "boolean" },
|
|
185
|
+
"migrationEnabled": { "type": "boolean" },
|
|
186
|
+
"epidemicEnabled": { "type": "boolean" },
|
|
187
|
+
"climateEnabled": { "type": "boolean" },
|
|
188
|
+
"governanceStabilityDaysPerStep": { "type": "integer", "minimum": 0 },
|
|
189
|
+
"treatyStrengthBoost_Q": { "type": "integer" },
|
|
190
|
+
"routeEfficiencyBoost_Q": { "type": "integer" },
|
|
191
|
+
"epidemicHealthBuffer_Q": { "type": "integer" }
|
|
192
|
+
},
|
|
193
|
+
"additionalProperties": false
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|