@maka/maka-cli 5.8.0 → 5.10.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/bundle/typescript/package.json +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.js +4 -2
- package/bundle/typescript/src/commands/game/sideQuest/archetypes.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/advance.js +3 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/advance.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/ask.js +14 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/ask.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/assense.js +3 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/assense.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/attack.js +24 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/attack.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/buy.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.js +31 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/bypass-command.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/call.js +16 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/call.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/cast.d.ts +7 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/cast.js +86 -15
- package/bundle/typescript/src/commands/game/sideQuest/commands/cast.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/companions.js +5 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/companions.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/contacts.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/contacts.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +5 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/equipment.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +5 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +94 -16
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/grapple.d.ts +38 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/grapple.js +178 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/grapple.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/hack.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/haggle.js +7 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/haggle.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/hints.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/hints.js +24 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/hints.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/initiate.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/initiate.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/inv.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/inv.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/jump.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/jump.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/lifestyle.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/lifestyle.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +48 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/map.js +3 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/map.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/move.d.ts +41 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/move.js +160 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/move.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/order.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/order.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/persuade.js +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/persuade.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/project.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/project.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/quality-trade.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/quality-trade.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js +8 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/rest.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +15 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js +7 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/sell.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/silent.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/sneak.js +3 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/sneak.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +11 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/spells.js +24 -13
- package/bundle/typescript/src/commands/game/sideQuest/commands/spells.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/summon.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/summon.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/surrender.js +4 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/surrender.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +37 -4
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/treat.js +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/commands/treat.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +9 -2
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/work.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/work.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js +2 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js +5 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.d.ts +11 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.js +138 -23
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-chunks.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +12 -0
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +33 -1
- package/bundle/typescript/src/commands/game/sideQuest/game.js +303 -26
- package/bundle/typescript/src/commands/game/sideQuest/game.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +2 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +3 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +13 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +195 -6
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +11 -2
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +35 -5
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +12 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +19 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +12 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +51 -4
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +45 -0
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +197 -4
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +76 -20
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +157 -34
- package/bundle/typescript/src/commands/game/sideQuest/types/save-file.d.ts +208 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/save-file.js +14 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/save-file.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.d.ts +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.d.ts +6 -0
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +100 -7
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.js +18 -4
- package/bundle/typescript/src/commands/game/sideQuest/utilities/auto-fight.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.d.ts +50 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.js +232 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/cloud-saves.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.d.ts +10 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js +17 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/combat-exchange.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/grapple.d.ts +36 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/grapple.js +57 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/grapple.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/hints.d.ts +4 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/hints.js +55 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/hints.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/persistence.d.ts +71 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/persistence.js +447 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/persistence.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.js +8 -7
- package/bundle/typescript/src/commands/game/sideQuest/utilities/planes.js.map +1 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.d.ts +121 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.js +315 -0
- package/bundle/typescript/src/commands/game/sideQuest/utilities/spots.js.map +1 -0
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +174 -18
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,9 @@ import { Player } from './sideQuest/models/player.js';
|
|
|
13
13
|
import { Room } from './sideQuest/models/room.js';
|
|
14
14
|
import { Logger } from './sideQuest/utilities/logger.js';
|
|
15
15
|
import { AI } from '../../tools/ai/ai.class.js';
|
|
16
|
+
import { savesDir, savePathFor, listSaves, deleteSave, readSave, writeSaveAtomic } from './sideQuest/utilities/persistence.js';
|
|
17
|
+
import { SAVE_VERSION } from './sideQuest/types/save-file.js';
|
|
18
|
+
import { authToken, fetchSummaries, fetchSave, pushSave, deleteCloudSave, reconcile } from './sideQuest/utilities/cloud-saves.js';
|
|
16
19
|
const shadowrunConfig1 = require('./sideQuest/scenes/scene1.json');
|
|
17
20
|
const shadowrunConfig2 = require('./sideQuest/scenes/scene2.json');
|
|
18
21
|
import { fileURLToPath } from 'url';
|
|
@@ -37,18 +40,163 @@ Command.create({
|
|
|
37
40
|
const sessionId = new Date().toISOString().replace(/[:.]/g, '-');
|
|
38
41
|
const sessionDir = path.join(makaDir, 'side-quest-sessions', sessionId);
|
|
39
42
|
const logFilePath = path.join(sessionDir, 'game.log');
|
|
40
|
-
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
// PERSISTENCE (see sideQuest/utilities/persistence.ts): saved runners
|
|
44
|
+
// get a Continue menu before any prompts. One slot per character
|
|
45
|
+
// name; version-mismatched saves are excluded and KEPT.
|
|
46
|
+
const saveDir = savesDir(makaDir);
|
|
47
|
+
// CLOUD SYNC (local-first, see cloud-saves.ts): reconcile the local
|
|
48
|
+
// slots with the maka-cli.com mirror BEFORE listing them, so the
|
|
49
|
+
// Continue menu shows the freshest life everywhere. Logged out or
|
|
50
|
+
// offline, this whole block quietly does nothing. The Logger must be
|
|
51
|
+
// primed headless first -- cloud-saves and Player both grab the
|
|
52
|
+
// singleton, and its first call demands a screen.
|
|
53
|
+
Logger.getInstance(logFilePath, { children: [], render: () => { } });
|
|
54
|
+
if (authToken()) {
|
|
55
|
+
const fsMod = await import('fs');
|
|
56
|
+
// Tombstones first: a runner who died offline still owes the
|
|
57
|
+
// mirror a burial -- never resurrect the dead from the cloud.
|
|
58
|
+
const tombstones = fsMod.existsSync(saveDir)
|
|
59
|
+
? fsMod.readdirSync(saveDir).filter(f => f.endsWith('.dead'))
|
|
60
|
+
: [];
|
|
61
|
+
for (const tomb of tombstones) {
|
|
62
|
+
const slug = tomb.replace(/\.dead$/, '');
|
|
63
|
+
const burned = await deleteCloudSave(slug);
|
|
64
|
+
if (burned === 'ok')
|
|
65
|
+
fsMod.rmSync(path.join(saveDir, tomb), { force: true });
|
|
66
|
+
}
|
|
67
|
+
const deadSlugs = new Set(tombstones.map(t => t.replace(/\.dead$/, '')));
|
|
68
|
+
const cloud = await fetchSummaries();
|
|
69
|
+
if (cloud.ok) {
|
|
70
|
+
const cloudSlugs = new Set(cloud.saves.map(c => c.slug));
|
|
71
|
+
for (const c of cloud.saves) {
|
|
72
|
+
if (c.version !== SAVE_VERSION || deadSlugs.has(c.slug))
|
|
73
|
+
continue;
|
|
74
|
+
const localPath = path.join(saveDir, `${c.slug}.json`);
|
|
75
|
+
const localRead = readSave(localPath);
|
|
76
|
+
const local = localRead.ok
|
|
77
|
+
? { savedAt: localRead.save.savedAt, lastCloudSavedAt: localRead.save.sync?.lastCloudSavedAt }
|
|
78
|
+
: undefined;
|
|
79
|
+
const verdict = reconcile(local, { savedAt: c.savedAt });
|
|
80
|
+
if (verdict === 'cloud-only' || verdict === 'pull-cloud') {
|
|
81
|
+
const full = await fetchSave(c.slug);
|
|
82
|
+
if (full) {
|
|
83
|
+
full.sync = { lastCloudSavedAt: full.savedAt };
|
|
84
|
+
writeSaveAtomic(localPath, full);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else if (verdict === 'push-local' && localRead.ok) {
|
|
88
|
+
await pushSave(localPath, localRead.save);
|
|
89
|
+
}
|
|
90
|
+
else if (verdict === 'diverged' && localRead.ok) {
|
|
91
|
+
// A real fork: both sides advanced since the last mirror.
|
|
92
|
+
// A human picks the survivor; guided-mode-off falls back to
|
|
93
|
+
// newest-wins (prompts throw GuidedModeError there).
|
|
94
|
+
let survivor;
|
|
95
|
+
try {
|
|
96
|
+
survivor = await Actions.select({
|
|
97
|
+
message: `"${c.playerName}" has forked: this machine and the cloud both moved on. Which life survives?`,
|
|
98
|
+
name: 'saveConflict',
|
|
99
|
+
choices: [
|
|
100
|
+
{ name: `This machine -- karma ${localRead.save.summary.karma}, ${localRead.save.summary.currency} nuyen, saved ${localRead.save.savedAt}`, value: 'local' },
|
|
101
|
+
{ name: `The cloud -- karma ${c.summary.karma}, ${c.summary.currency} nuyen, saved ${c.savedAt}`, value: 'cloud' },
|
|
102
|
+
],
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
survivor = localRead.save.savedAt > c.savedAt ? 'local' : 'cloud';
|
|
107
|
+
}
|
|
108
|
+
if (survivor === 'cloud') {
|
|
109
|
+
const full = await fetchSave(c.slug);
|
|
110
|
+
if (full) {
|
|
111
|
+
full.sync = { lastCloudSavedAt: full.savedAt };
|
|
112
|
+
writeSaveAtomic(localPath, full);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
await pushSave(localPath, localRead.save);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// Local-only lives get mirrored up on the way past.
|
|
121
|
+
for (const s of listSaves(saveDir)) {
|
|
122
|
+
if (!s.result.ok)
|
|
123
|
+
continue;
|
|
124
|
+
const slug = path.basename(s.filePath, '.json');
|
|
125
|
+
if (!cloudSlugs.has(slug) && !deadSlugs.has(slug)) {
|
|
126
|
+
await pushSave(s.filePath, s.result.save);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const slots = listSaves(saveDir);
|
|
132
|
+
const readableSlots = slots.flatMap(s => s.result.ok ? [{ filePath: s.filePath, save: s.result.save }] : []);
|
|
133
|
+
for (const bad of slots.filter(s => !s.result.ok && s.result.error === 'version-mismatch')) {
|
|
134
|
+
const v = bad.result.version;
|
|
135
|
+
Log.error(`Save "${path.basename(bad.filePath)}" was written by a different version (v${v}) -- skipped, file kept.`);
|
|
136
|
+
}
|
|
137
|
+
let resumeSave;
|
|
138
|
+
let resumeSavePath;
|
|
139
|
+
if (readableSlots.length > 0) {
|
|
140
|
+
const NEW_CHARACTER = 'NEW_CHARACTER';
|
|
141
|
+
const pick = await Actions.select({
|
|
142
|
+
message: 'The street remembers. Pick up where you left off?',
|
|
143
|
+
name: 'continuePick',
|
|
144
|
+
choices: [
|
|
145
|
+
...readableSlots.map(r => ({
|
|
146
|
+
name: `Continue as ${r.save.playerName} -- ${r.save.summary.archetypeName ?? 'runner'}, karma ${r.save.summary.karma}, ${r.save.summary.currency} nuyen, ${r.save.summary.lifestyleTier}`,
|
|
147
|
+
value: r.filePath,
|
|
148
|
+
})),
|
|
149
|
+
{ name: 'Start a new character', value: NEW_CHARACTER },
|
|
150
|
+
],
|
|
151
|
+
});
|
|
152
|
+
if (pick !== NEW_CHARACTER) {
|
|
153
|
+
resumeSavePath = pick;
|
|
154
|
+
resumeSave = readableSlots.find(r => r.filePath === resumeSavePath).save;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
let playerName;
|
|
158
|
+
let archetypeName;
|
|
159
|
+
if (resumeSave) {
|
|
160
|
+
playerName = resumeSave.playerName;
|
|
161
|
+
archetypeName = resumeSave.summary.archetypeName;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
// A new character reusing a saved name OVERWRITES -- after a
|
|
165
|
+
// confirm, and the old save is deleted IMMEDIATELY so dying
|
|
166
|
+
// before the first autosave can't resurrect the old life.
|
|
167
|
+
const { existsSync } = await import('fs');
|
|
168
|
+
let providedName = opts.player;
|
|
169
|
+
for (;;) {
|
|
170
|
+
playerName = providedName ?? (await Actions.ask('What is your name? [Maka]') || 'Maka');
|
|
171
|
+
providedName = undefined; // a rejected --player name falls back to asking
|
|
172
|
+
const slotPath = savePathFor(saveDir, playerName);
|
|
173
|
+
if (!existsSync(slotPath))
|
|
174
|
+
break;
|
|
175
|
+
const overwrite = await Actions.select({
|
|
176
|
+
message: `A runner named ${playerName} already has a saved life. Overwrite it?`,
|
|
177
|
+
name: 'overwrite',
|
|
178
|
+
choices: [
|
|
179
|
+
{ name: 'No -- pick another name', value: 'no' },
|
|
180
|
+
{ name: 'Yes -- overwrite (the old save is gone for good)', value: 'yes' },
|
|
181
|
+
],
|
|
182
|
+
});
|
|
183
|
+
if (overwrite === 'yes') {
|
|
184
|
+
deleteSave(slotPath);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
// Pick who you are before what the job is -- the archetype spread
|
|
189
|
+
// becomes the player's full attribute sheet (see archetypes.ts), and
|
|
190
|
+
// the mage archetypes are the road to playing Awakened.
|
|
191
|
+
archetypeName = await Actions.select({
|
|
192
|
+
message: 'Who are you on the street?',
|
|
193
|
+
name: 'archetypeName',
|
|
194
|
+
// The quality ledger deliberately does NOT ride the menu (it doubled
|
|
195
|
+
// every line -- player request): "sheet" in-game is where the traits
|
|
196
|
+
// and their karma math live.
|
|
197
|
+
choices: ARCHETYPES.map(a => ({ name: `${a.name} -- ${a.description}`, value: a.name })),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
52
200
|
const gameOptions = {
|
|
53
201
|
...opts,
|
|
54
202
|
logFilePath,
|
|
@@ -58,7 +206,11 @@ Command.create({
|
|
|
58
206
|
// AI.isConfigured() picks whichever provider is set up (OpenAI or
|
|
59
207
|
// Anthropic -- see tools/ai/ai.class.ts).
|
|
60
208
|
useAi: AI.isConfigured(),
|
|
61
|
-
archetype: archetypeName
|
|
209
|
+
archetype: archetypeName,
|
|
210
|
+
// The character's save slot -- autosaves land here (hub sessions
|
|
211
|
+
// only; classic scenes never save, see Game.requestSave's guards).
|
|
212
|
+
saveFilePath: resumeSavePath ?? savePathFor(saveDir, playerName),
|
|
213
|
+
resume: resumeSave !== undefined,
|
|
62
214
|
};
|
|
63
215
|
const GENERATE_NEW_RUN = 'GENERATE_NEW_RUN';
|
|
64
216
|
// The hub (Tacoma Purple Haze) leads the list -- it's the intended
|
|
@@ -72,11 +224,15 @@ Command.create({
|
|
|
72
224
|
if (gameOptions.useAi) {
|
|
73
225
|
choices.push({ name: 'Generate a new Run (AI)', value: GENERATE_NEW_RUN });
|
|
74
226
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
227
|
+
// Resuming skips the scene pick: the save EMBEDS its hub seed, so an
|
|
228
|
+
// old runner's world never depends on today's scene2.json.
|
|
229
|
+
let sideQuestAnswer = resumeSave
|
|
230
|
+
? resumeSave.hubSeed
|
|
231
|
+
: await Actions.select({
|
|
232
|
+
message: 'Which Run would you like to play?',
|
|
233
|
+
name: 'sideQuestAnswer',
|
|
234
|
+
choices
|
|
235
|
+
});
|
|
80
236
|
if (sideQuestAnswer === GENERATE_NEW_RUN) {
|
|
81
237
|
const spinner = Log.withSpinner();
|
|
82
238
|
spinner.start('Generating a new Run');
|
|
@@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AAgB,WAAW,GAAG,CAAC,CAAC;YACnG,CAAC;QAEH,CAAC;IAEH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;AAEH,CAAC,EAAE,WAAW,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
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.",
|