@maka/maka-cli 5.121.0 → 5.122.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.
Files changed (96) hide show
  1. package/bundle/typescript/package.json +1 -1
  2. package/bundle/typescript/src/commands/game/sideQuest/archetypes.d.ts +72 -0
  3. package/bundle/typescript/src/commands/game/sideQuest/archetypes.js +300 -61
  4. package/bundle/typescript/src/commands/game/sideQuest/archetypes.js.map +1 -1
  5. package/bundle/typescript/src/commands/game/sideQuest/aspects.js +11 -1
  6. package/bundle/typescript/src/commands/game/sideQuest/aspects.js.map +1 -1
  7. package/bundle/typescript/src/commands/game/sideQuest/augmentations.d.ts +33 -0
  8. package/bundle/typescript/src/commands/game/sideQuest/augmentations.js +85 -0
  9. package/bundle/typescript/src/commands/game/sideQuest/augmentations.js.map +1 -1
  10. package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js +8 -0
  11. package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js.map +1 -1
  12. package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js +4 -2
  13. package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js.map +1 -1
  14. package/bundle/typescript/src/commands/game/sideQuest/commands/hack.d.ts +16 -1
  15. package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js +273 -28
  16. package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js.map +1 -1
  17. package/bundle/typescript/src/commands/game/sideQuest/commands/mark.d.ts +19 -10
  18. package/bundle/typescript/src/commands/game/sideQuest/commands/mark.js +43 -227
  19. package/bundle/typescript/src/commands/game/sideQuest/commands/mark.js.map +1 -1
  20. package/bundle/typescript/src/commands/game/sideQuest/commands/move.js +31 -3
  21. package/bundle/typescript/src/commands/game/sideQuest/commands/move.js.map +1 -1
  22. package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js +5 -0
  23. package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js.map +1 -1
  24. package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js +4 -0
  25. package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js.map +1 -1
  26. package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js +4 -6
  27. package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js.map +1 -1
  28. package/bundle/typescript/src/commands/game/sideQuest/commands/stance.d.ts +10 -0
  29. package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js +50 -2
  30. package/bundle/typescript/src/commands/game/sideQuest/commands/stance.js.map +1 -1
  31. package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +27 -0
  32. package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js.map +1 -1
  33. package/bundle/typescript/src/commands/game/sideQuest/engine-version.d.ts +1 -1
  34. package/bundle/typescript/src/commands/game/sideQuest/engine-version.js +17 -1
  35. package/bundle/typescript/src/commands/game/sideQuest/engine-version.js.map +1 -1
  36. package/bundle/typescript/src/commands/game/sideQuest/factories/chargen-factory.d.ts +3 -2
  37. package/bundle/typescript/src/commands/game/sideQuest/factories/chargen-factory.js +34 -41
  38. package/bundle/typescript/src/commands/game/sideQuest/factories/chargen-factory.js.map +1 -1
  39. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +37 -1
  40. package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +1 -1
  41. package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +47 -0
  42. package/bundle/typescript/src/commands/game/sideQuest/game.js +103 -4
  43. package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -1
  44. package/bundle/typescript/src/commands/game/sideQuest/headless-harness.d.ts +17 -0
  45. package/bundle/typescript/src/commands/game/sideQuest/headless-harness.js +30 -2
  46. package/bundle/typescript/src/commands/game/sideQuest/headless-harness.js.map +1 -1
  47. package/bundle/typescript/src/commands/game/sideQuest/models/device.d.ts +14 -0
  48. package/bundle/typescript/src/commands/game/sideQuest/models/device.js +14 -0
  49. package/bundle/typescript/src/commands/game/sideQuest/models/device.js.map +1 -1
  50. package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +6 -0
  51. package/bundle/typescript/src/commands/game/sideQuest/models/item.js +8 -0
  52. package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -1
  53. package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +82 -1
  54. package/bundle/typescript/src/commands/game/sideQuest/models/player.js +118 -0
  55. package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
  56. package/bundle/typescript/src/commands/game/sideQuest/qualities.d.ts +4 -0
  57. package/bundle/typescript/src/commands/game/sideQuest/qualities.js +16 -0
  58. package/bundle/typescript/src/commands/game/sideQuest/qualities.js.map +1 -1
  59. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +9 -9
  60. package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +6 -6
  61. package/bundle/typescript/src/commands/game/sideQuest/types/save-file.d.ts +5 -1
  62. package/bundle/typescript/src/commands/game/sideQuest/ui.js +23 -26
  63. package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -1
  64. package/bundle/typescript/src/commands/game/sideQuest/utilities/catalog.d.ts +24 -0
  65. package/bundle/typescript/src/commands/game/sideQuest/utilities/catalog.js +34 -0
  66. package/bundle/typescript/src/commands/game/sideQuest/utilities/catalog.js.map +1 -1
  67. package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.d.ts +9 -0
  68. package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.js +8 -0
  69. package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.js.map +1 -1
  70. package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js +25 -2
  71. package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js.map +1 -1
  72. package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.d.ts +32 -0
  73. package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.js +33 -0
  74. package/bundle/typescript/src/commands/game/sideQuest/utilities/comm-style.js.map +1 -1
  75. package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.d.ts +5 -0
  76. package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js +35 -1
  77. package/bundle/typescript/src/commands/game/sideQuest/utilities/dice.js.map +1 -1
  78. package/bundle/typescript/src/commands/game/sideQuest/utilities/matrix-intrusion.d.ts +121 -0
  79. package/bundle/typescript/src/commands/game/sideQuest/utilities/matrix-intrusion.js +141 -0
  80. package/bundle/typescript/src/commands/game/sideQuest/utilities/matrix-intrusion.js.map +1 -0
  81. package/bundle/typescript/src/commands/game/sideQuest/utilities/persistence.js +5 -1
  82. package/bundle/typescript/src/commands/game/sideQuest/utilities/persistence.js.map +1 -1
  83. package/bundle/typescript/src/commands/game/sideQuest/utilities/pregen-worksheet.d.ts +93 -0
  84. package/bundle/typescript/src/commands/game/sideQuest/utilities/pregen-worksheet.js +201 -0
  85. package/bundle/typescript/src/commands/game/sideQuest/utilities/pregen-worksheet.js.map +1 -0
  86. package/bundle/typescript/src/commands/game/sideQuest/utilities/room-view.js +91 -9
  87. package/bundle/typescript/src/commands/game/sideQuest/utilities/room-view.js.map +1 -1
  88. package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.d.ts +16 -0
  89. package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.js +50 -3
  90. package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.js.map +1 -1
  91. package/bundle/typescript/src/commands/game/sideQuest/utilities/web-character-generator.d.ts +7 -1
  92. package/bundle/typescript/src/commands/game/sideQuest/utilities/web-character-generator.js +7 -2
  93. package/bundle/typescript/src/commands/game/sideQuest/utilities/web-character-generator.js.map +1 -1
  94. package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +43 -3
  95. package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -1
  96. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.121.0",
3
+ "version": "5.122.1",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -27,11 +27,39 @@ export interface IArchetypeGearDef {
27
27
  color: string;
28
28
  texture: string;
29
29
  }
30
+ export type PriorityLetter = 'A' | 'B' | 'C' | 'D' | 'E';
31
+ export interface IArchetypePriorities {
32
+ metatype: PriorityLetter;
33
+ attributes: PriorityLetter;
34
+ magic: PriorityLetter;
35
+ skills: PriorityLetter;
36
+ resources: PriorityLetter;
37
+ }
30
38
  export interface IArchetype {
31
39
  name: string;
32
40
  description: string;
33
41
  combat: ICombatAttributes;
34
42
  gear?: IArchetypeGearDef[];
43
+ /**
44
+ * SIGNATURE GEAR BY CATALOG SLUG (2026-09-03, the v13 pass): a row's
45
+ * name is what Item.row resolves, so a Predator built from its row is
46
+ * DV 8P at AP -1 with a smartgun inside, a Navigator has its p.227
47
+ * array, a medkit its Rating. Hand-written `gear` above was invisible
48
+ * to all of that (a "Trauma Kit" had no row). Custom, flavor-only
49
+ * pieces stay in `gear`; anything the book sells goes here.
50
+ */
51
+ gearSlugs?: string[];
52
+ /**
53
+ * THE PRIORITY ROW (SR5 p.65; user 2026-09-03: a pregen bound through
54
+ * the wizard must arrive as a COMPLETE, legal build on the Review step,
55
+ * not a spread the validator argues with). Each letter once. The
56
+ * spread above is built to it: attribute spend EXACTLY the column's
57
+ * points (human minimum 1 each), skills within the column's, Edge and
58
+ * any Magic above the offer within the metatype column's special
59
+ * points, the kit within Resources plus converted karma.
60
+ * archetype-priorities.test.ts checks every row the validator's way.
61
+ */
62
+ priorities: IArchetypePriorities;
35
63
  /**
36
64
  * Signature chrome, by augmentation key (see augmentations.ts) --
37
65
  * installed at character creation with the essence already paid. The
@@ -50,6 +78,41 @@ export interface IArchetype {
50
78
  qualities?: string[];
51
79
  }
52
80
  export declare const ARCHETYPES: IArchetype[];
81
+ /** The p.65 Resources column, lowest to highest. */
82
+ export declare const RESOURCES_PRIORITY: Record<'E' | 'D' | 'C' | 'B' | 'A', number>;
83
+ export interface IArchetypeLedger {
84
+ gearNuyen: number;
85
+ augNuyen: number;
86
+ karmaRemainder: number;
87
+ karmaCarry: number;
88
+ karmaConverted: number;
89
+ /** The archetype's declared Resources column. */
90
+ resources: 'E' | 'D' | 'C' | 'B' | 'A';
91
+ nuyenBudget: number;
92
+ nuyenRemaining: number;
93
+ /** What the runner actually walks onto the street holding (p.95 cap). */
94
+ held: number;
95
+ }
96
+ /**
97
+ * THE CREATION LEDGER, THE WAY THE CHARGEN VALIDATOR RUNS IT (user,
98
+ * 2026-09-03: "ensure the starting nuyen is appropriate for the archetype
99
+ * -- use the chargen api to validate"). maka-cli.com's validateWorksheet
100
+ * prices a build as: budget = the Resources column + converted karma x
101
+ * 2,000 (at most 10 karma, after 7 carry over, p.98); spent = gear at
102
+ * catalog price + 'ware at its cost x grade + the first month's
103
+ * lifestyle; and the factory caps what a runner may HOLD out of the
104
+ * remainder at 5,000 (p.95) -- the rest is gone into the build. Same
105
+ * constants, same prices, same rows; mirrored here because a pregen has
106
+ * no worksheet to POST (its skill spread is a spread, not a priority
107
+ * column, and the validator would refuse it on that before it priced
108
+ * it). The column is the archetype's own (IArchetype.priorities): the book's
109
+ * pregens are priority builds, and now so are these.
110
+ *
111
+ * Before this, outfitArchetype handed the converted karma over as CASH
112
+ * (up to 20,000): a pregen started with four times what a web-built
113
+ * runner may hold. Street lifestyle (the scenes' tier) costs nothing.
114
+ */
115
+ export declare function archetypeLedger(archetype: IArchetype): IArchetypeLedger;
53
116
  export declare function getArchetype(name?: string): IArchetype;
54
117
  /**
55
118
  * Instantiates an archetype's requisite gear (see IArchetype.gear).
@@ -57,6 +120,15 @@ export declare function getArchetype(name?: string): IArchetype;
57
120
  * ones -- a samurai starts with the Predator IN HAND, not in a duffel.
58
121
  */
59
122
  export declare function createArchetypeGear(archetype: IArchetype): Item[];
123
+ /**
124
+ * Every piece an archetype starts with, as constructor configs: the
125
+ * catalog rows first (by slug, converted once in utilities/catalog.ts),
126
+ * then any custom pieces. The harness serializes these into a save; the
127
+ * game instantiates them. A slug with no row throws -- at build time, in
128
+ * the tests that walk every archetype -- rather than shipping a runner
129
+ * without her gun.
130
+ */
131
+ export declare function archetypeGearDefs(archetype: IArchetype): IArchetypeGearDef[];
60
132
  /**
61
133
  * Stamps an archetype onto a Player: records the archetype's name (scene
62
134
  * generation's dossier reads it -- see buildPlayerDossier), grants the