rpg-engine 0.21.0 → 0.23.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/README.md +5 -5
- package/dist/campaign/create-campaign.d.ts +5 -0
- package/dist/campaign/create-campaign.js +40 -12
- package/dist/campaign/find-campaign.d.ts +5 -0
- package/dist/campaign/find-campaign.js +10 -5
- package/dist/campaign/host-files.d.ts +15 -4
- package/dist/campaign/host-files.js +134 -14
- package/dist/campaign/index.d.ts +4 -3
- package/dist/campaign/index.js +4 -3
- package/dist/campaign/port.d.ts +6 -0
- package/dist/campaign/port.js +24 -0
- package/dist/campaign/settings.d.ts +17 -0
- package/dist/campaign/settings.js +24 -1
- package/dist/cli/cli.js +33 -6
- package/dist/commands/config/config.js +15 -1
- package/dist/commands/config/dashboard.d.ts +4 -0
- package/dist/commands/config/dashboard.js +43 -7
- package/dist/commands/config/shown.js +4 -0
- package/dist/commands/config/words.d.ts +3 -1
- package/dist/commands/config/words.js +29 -2
- package/dist/commands/image.d.ts +3 -0
- package/dist/commands/image.js +31 -4
- package/dist/commands/import/import.d.ts +1 -1
- package/dist/commands/import/import.js +5 -0
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.js +21 -3
- package/dist/commands/mode.d.ts +1 -1
- package/dist/commands/package/data.js +27 -0
- package/dist/commands/package/theme.js +2 -1
- package/dist/commands/scene/scene.js +6 -1
- package/dist/commands/shared/books/adventures.d.ts +1 -0
- package/dist/commands/shared/books/adventures.js +1 -1
- package/dist/commands/shared/campaign/git.d.ts +25 -0
- package/dist/commands/shared/campaign/git.js +104 -0
- package/dist/commands/shared/campaign/images.js +5 -3
- package/dist/commands/shared/campaign/saves.js +5 -1
- package/dist/commands/shared/characters/voices.d.ts +2 -2
- package/dist/commands/shared/characters/voices.js +8 -5
- package/dist/commands/shared/packages/catalog.js +24 -5
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +8 -4
- package/dist/core/context.d.ts +17 -6
- package/dist/core/context.js +2 -1
- package/dist/core/version.d.ts +2 -0
- package/dist/core/version.js +5 -0
- package/dist/dashboard/guide/ar.md +12 -7
- package/dist/dashboard/guide/cs.md +11 -6
- package/dist/dashboard/guide/da.md +11 -6
- package/dist/dashboard/guide/de.md +13 -8
- package/dist/dashboard/guide/el.md +11 -6
- package/dist/dashboard/guide/en.md +10 -5
- package/dist/dashboard/guide/es.md +11 -6
- package/dist/dashboard/guide/fi.md +11 -6
- package/dist/dashboard/guide/fr.md +12 -7
- package/dist/dashboard/guide/he.md +11 -6
- package/dist/dashboard/guide/hi.md +11 -6
- package/dist/dashboard/guide/hu.md +11 -6
- package/dist/dashboard/guide/is.md +11 -6
- package/dist/dashboard/guide/it.md +42 -37
- package/dist/dashboard/guide/ja.md +12 -7
- package/dist/dashboard/guide/ko.md +11 -6
- package/dist/dashboard/guide/nb.md +12 -7
- package/dist/dashboard/guide/nl.md +13 -8
- package/dist/dashboard/guide/pl.md +11 -6
- package/dist/dashboard/guide/pt.md +11 -6
- package/dist/dashboard/guide/ro.md +11 -6
- package/dist/dashboard/guide/ru.md +12 -7
- package/dist/dashboard/guide/sv.md +11 -6
- package/dist/dashboard/guide/tr.md +12 -7
- package/dist/dashboard/guide/uk.md +12 -7
- package/dist/dashboard/guide/zh.md +11 -6
- package/dist/dashboard/i18n/ar.json +30 -2
- package/dist/dashboard/i18n/cs.json +30 -2
- package/dist/dashboard/i18n/da.json +30 -2
- package/dist/dashboard/i18n/de.json +30 -2
- package/dist/dashboard/i18n/el.json +30 -2
- package/dist/dashboard/i18n/es.json +30 -2
- package/dist/dashboard/i18n/fi.json +30 -2
- package/dist/dashboard/i18n/fr.json +30 -2
- package/dist/dashboard/i18n/he.json +30 -2
- package/dist/dashboard/i18n/hi.json +30 -2
- package/dist/dashboard/i18n/hu.json +30 -2
- package/dist/dashboard/i18n/is.json +30 -2
- package/dist/dashboard/i18n/it.json +30 -2
- package/dist/dashboard/i18n/ja.json +30 -2
- package/dist/dashboard/i18n/ko.json +30 -2
- package/dist/dashboard/i18n/nb.json +30 -2
- package/dist/dashboard/i18n/nl.json +30 -2
- package/dist/dashboard/i18n/pl.json +30 -2
- package/dist/dashboard/i18n/pt.json +30 -2
- package/dist/dashboard/i18n/ro.json +30 -2
- package/dist/dashboard/i18n/ru.json +30 -2
- package/dist/dashboard/i18n/sv.json +30 -2
- package/dist/dashboard/i18n/tr.json +30 -2
- package/dist/dashboard/i18n/uk.json +30 -2
- package/dist/dashboard/i18n/zh.json +30 -2
- package/dist/dashboard/packages/installed.js +2 -2
- package/dist/dashboard/packages/packages.js +1 -1
- package/dist/dashboard/parts/labels.js +7 -0
- package/dist/dashboard/settings/settings.js +45 -9
- package/dist/dashboard/shell/notices.js +1 -1
- package/dist/dashboard/shell/system-style.js +89 -5
- package/dist/dashboard/shell/tooltip.js +5 -4
- package/dist/dashboard/style.css +245 -84
- package/dist/git/git.d.ts +12 -0
- package/dist/git/git.js +175 -0
- package/dist/git/ignore.d.ts +2 -0
- package/dist/git/ignore.js +16 -0
- package/dist/git/index.d.ts +2 -0
- package/dist/git/index.js +2 -0
- package/dist/helpers/briefs.d.ts +4 -0
- package/dist/helpers/briefs.js +13 -0
- package/dist/helpers/chosen.d.ts +8 -4
- package/dist/helpers/chosen.js +38 -14
- package/dist/helpers/index.d.ts +3 -2
- package/dist/helpers/index.js +5 -3
- package/dist/helpers/opencode.d.ts +13 -0
- package/dist/helpers/opencode.js +202 -0
- package/dist/importer/index.d.ts +1 -1
- package/dist/importer/index.js +1 -1
- package/dist/instructions/index.d.ts +2 -2
- package/dist/instructions/index.js +3 -3
- package/dist/languages/pack.js +2 -1
- package/dist/server/approver.d.ts +4 -2
- package/dist/server/approver.js +27 -7
- package/dist/server/bell/antigravity.d.ts +10 -0
- package/dist/server/bell/antigravity.js +95 -0
- package/dist/server/bell/index.d.ts +2 -0
- package/dist/server/bell/index.js +2 -0
- package/dist/server/bell/listener.d.ts +43 -0
- package/dist/server/bell/listener.js +149 -0
- package/dist/server/dashboard/files.d.ts +3 -2
- package/dist/server/dashboard/files.js +44 -15
- package/dist/server/dashboard/index.d.ts +25 -3
- package/dist/server/dashboard/index.js +58 -23
- package/dist/server/dashboard/news.d.ts +5 -2
- package/dist/server/dashboard/news.js +82 -14
- package/dist/server/dashboard/ports.d.ts +17 -2
- package/dist/server/dashboard/ports.js +60 -4
- package/dist/server/mcp.d.ts +6 -4
- package/dist/server/mcp.js +66 -18
- package/dist/server/player-acts.d.ts +21 -1
- package/dist/server/player-acts.js +38 -2
- package/dist/server/route/front.d.ts +3 -0
- package/dist/server/route/front.js +97 -0
- package/dist/server/route/index.d.ts +3 -0
- package/dist/server/route/index.js +3 -0
- package/dist/server/route/notes.d.ts +8 -0
- package/dist/server/route/notes.js +50 -0
- package/dist/server/route/router.d.ts +31 -0
- package/dist/server/route/router.js +215 -0
- package/dist/themes/css.d.ts +1 -1
- package/dist/themes/css.js +101 -2
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.js +1 -1
- package/dist/themes/theme.d.ts +34 -3
- package/dist/themes/theme.js +176 -19
- package/instructions/core.md +1 -0
- package/instructions/dashboard-guide.md +1 -1
- package/instructions/start.md +1 -1
- package/instructions/voices-opencode.md +1 -0
- package/package.json +3 -2
- package/plugins/opencode.js +174 -0
- package/dist/server/bell-listener.d.ts +0 -9
- package/dist/server/bell-listener.js +0 -83
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// RPG Engine's plugin for OpenCode (D-578), which rpg writes as .opencode/plugins/rpg.js in a campaign. OpenCode runs no hooks, so this runs the doorbell
|
|
2
|
+
// on its events: a turn that ends waits for the player on the dashboard (`rpg --listen opencode`), whose line comes to the chat as a message; a turn that
|
|
3
|
+
// starts meanwhile, or the player's message, lets that wait go. Nothing here ever stops OpenCode: what fails is left alone.
|
|
4
|
+
import { spawn } from "node:child_process";
|
|
5
|
+
import { resolve } from "node:path";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
id: "rpg",
|
|
9
|
+
/** Follows OpenCode's events until it lets the plugin go. `run` starts a program as Node's spawn does: the tests give their own. */
|
|
10
|
+
async setup(context, run)
|
|
11
|
+
{
|
|
12
|
+
const chats = campaignChats(context, typeof run === "function" ? run : spawn);
|
|
13
|
+
const controller = new AbortController();
|
|
14
|
+
|
|
15
|
+
void (async () => {
|
|
16
|
+
try {
|
|
17
|
+
for await (const event of context.event.subscribe({ signal: controller.signal })) {
|
|
18
|
+
try {
|
|
19
|
+
chats.heard(event);
|
|
20
|
+
} catch {
|
|
21
|
+
// An event of a shape this plugin does not know: the next one is heard all the same.
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
} catch {
|
|
25
|
+
// OpenCode stopped telling its events: the doorbell waits no more, and the game goes on in the chat.
|
|
26
|
+
}
|
|
27
|
+
})();
|
|
28
|
+
|
|
29
|
+
return () => {
|
|
30
|
+
controller.abort();
|
|
31
|
+
chats.stop();
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** What the plugin does with OpenCode's events in the campaign's folder: its chats, and the doorbell of each. */
|
|
37
|
+
function campaignChats(context, run)
|
|
38
|
+
{
|
|
39
|
+
const folder = context?.location?.directory ?? process.cwd();
|
|
40
|
+
const ours = new Set();
|
|
41
|
+
const agents = new Set();
|
|
42
|
+
const listeners = new Map();
|
|
43
|
+
|
|
44
|
+
// A chat's doorbell, which the player's sentence on the dashboard rings: its words are sent to the chat, which starts a turn. Words the chat could not
|
|
45
|
+
// take come back to the page, which rings again: a doorbell waits for them.
|
|
46
|
+
const listen = (session) => {
|
|
47
|
+
letGo(session);
|
|
48
|
+
const waiting = hook({ cwd: folder, session_id: session, hook_event_name: "Stop", host_pid: process.pid }, (code, output) => {
|
|
49
|
+
if (listeners.get(session) !== waiting) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
listeners.delete(session);
|
|
54
|
+
|
|
55
|
+
if (code === 0) {
|
|
56
|
+
say(session, output);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
if (waiting !== undefined) {
|
|
61
|
+
listeners.set(session, waiting);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const say = (session, output) => {
|
|
66
|
+
const line = output.trim();
|
|
67
|
+
|
|
68
|
+
if (line !== "") {
|
|
69
|
+
Promise.resolve().then(() => context.session.prompt({ sessionID: session, text: line })).catch(() => listen(session));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// `rpg --listen opencode` in the folder, with its input on stdin, as a host runs a hook: `ended` hears its exit code and what it wrote; `said` what it
|
|
74
|
+
// wrote so far.
|
|
75
|
+
const hook = (input, ended) => {
|
|
76
|
+
try {
|
|
77
|
+
const child = run("rpg --listen opencode", { cwd: folder, shell: true, windowsHide: true, stdio: ["pipe", "pipe", "ignore"], detached: process.platform !== "win32" });
|
|
78
|
+
let output = "";
|
|
79
|
+
child.stdout?.on("data", (chunk) => {
|
|
80
|
+
output += String(chunk);
|
|
81
|
+
});
|
|
82
|
+
child.stdin?.on("error", () => undefined);
|
|
83
|
+
child.on("error", () => undefined);
|
|
84
|
+
child.on("close", (code) => ended(code, output));
|
|
85
|
+
child.stdin?.end(JSON.stringify(input));
|
|
86
|
+
return { child, said: () => output };
|
|
87
|
+
} catch {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// The doorbell of a chat whose turn starts: ended, with what it started; the dashboard sees it gone. Words it already had still go to the chat, after
|
|
93
|
+
// the player's message: the page counts them as the master's.
|
|
94
|
+
const letGo = (session) => {
|
|
95
|
+
const waiting = listeners.get(session);
|
|
96
|
+
|
|
97
|
+
if (waiting !== undefined) {
|
|
98
|
+
listeners.delete(session);
|
|
99
|
+
end(waiting.child, run);
|
|
100
|
+
say(session, waiting.said());
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
heard: (event) => {
|
|
106
|
+
const session = event?.data?.sessionID;
|
|
107
|
+
|
|
108
|
+
if (typeof session !== "string") {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// OpenCode's background service runs this plugin for every folder and tells it the events of all: only the chats of this folder are its own.
|
|
113
|
+
// The turn's start and end say no folder: the session's earlier events, its creation or its messages, have said it.
|
|
114
|
+
const place = event.location?.directory ?? event.data.location?.directory;
|
|
115
|
+
|
|
116
|
+
if (typeof place === "string" && sameFolder(place, folder)) {
|
|
117
|
+
ours.add(session);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (!ours.has(session)) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// A subagent's session is born with its parent's: it is no chat, and nobody waits for the player after its turns.
|
|
125
|
+
if (event.type === "session.created" && typeof event.data.parentID === "string") {
|
|
126
|
+
agents.add(session);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (agents.has(session)) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// A message of the player's, or the doorbell's own, which comes once its wait has ended, lets the wait go; a turn's end waits again, a failed one too.
|
|
134
|
+
if ((event.type === "session.inbox.enqueued" && event.data.item?.type === "user") || event.type === "session.execution.started") {
|
|
135
|
+
letGo(session);
|
|
136
|
+
} else if (event.type === "session.execution.succeeded" || event.type === "session.execution.failed") {
|
|
137
|
+
listen(session);
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
stop: () => {
|
|
141
|
+
for (const session of [...listeners.keys()]) {
|
|
142
|
+
letGo(session);
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** Ends a hook with what its shell started: on Windows its whole tree, else its process group; the process alone when neither can be. */
|
|
149
|
+
function end(child, run)
|
|
150
|
+
{
|
|
151
|
+
try {
|
|
152
|
+
if (child.pid === undefined) {
|
|
153
|
+
child.kill();
|
|
154
|
+
} else if (process.platform === "win32") {
|
|
155
|
+
run("taskkill", ["/T", "/F", "/PID", String(child.pid)], { windowsHide: true, stdio: "ignore" }).on("error", () => child.kill());
|
|
156
|
+
} else {
|
|
157
|
+
process.kill(-child.pid, "SIGTERM");
|
|
158
|
+
}
|
|
159
|
+
} catch {
|
|
160
|
+
try {
|
|
161
|
+
child.kill();
|
|
162
|
+
} catch {
|
|
163
|
+
// Gone already.
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** Whether OpenCode's folder of a session is this one, as the system compares paths: on Windows and macOS without the case. */
|
|
169
|
+
function sameFolder(place, folder)
|
|
170
|
+
{
|
|
171
|
+
const caseless = process.platform === "win32" || process.platform === "darwin";
|
|
172
|
+
const plain = (path) => (caseless ? resolve(path).toLowerCase() : resolve(path));
|
|
173
|
+
return plain(place) === plain(folder);
|
|
174
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** What the chat hears from the doorbell: never the player's words, only where to read them. */
|
|
2
|
-
export declare const bellLine = "The player acted on the dashboard: call status to read what they did.";
|
|
3
|
-
/** Reads the hook's input, waits for the doorbell, and ends the process as Claude Code's asyncRewake reads it: 2 with the line to wake the chat, else 0. */
|
|
4
|
-
export declare function listenHere(): Promise<void>;
|
|
5
|
-
/**
|
|
6
|
-
* Waits at the dashboard of the hook's chat until the player says a sentence: true then; false when there is none to wait at, or it goes away. The chat's own
|
|
7
|
-
* server is the one with its session; after /clear, which gives the hook a new one, the only server of its campaign.
|
|
8
|
-
*/
|
|
9
|
-
export declare function waitForBell(input: string, ports?: number[]): Promise<boolean>;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
// Claude Code's doorbell for the player's sentences on the dashboard (D-495): `rpg --listen`, the Stop hook init writes, waits at the dashboard of its own
|
|
2
|
-
// chat and, when the player says a sentence, tells the chat to call status. It never carries the sentence, which reaches the master in that call.
|
|
3
|
-
import { get } from "node:http";
|
|
4
|
-
import { findCampaign } from "../campaign/index.js";
|
|
5
|
-
import { samePath } from "../library/index.js";
|
|
6
|
-
import { campaignPorts } from "./dashboard/ports.js";
|
|
7
|
-
/** What the chat hears from the doorbell: never the player's words, only where to read them. */
|
|
8
|
-
export const bellLine = "The player acted on the dashboard: call status to read what they did.";
|
|
9
|
-
/** Reads the hook's input, waits for the doorbell, and ends the process as Claude Code's asyncRewake reads it: 2 with the line to wake the chat, else 0. */
|
|
10
|
-
export async function listenHere() {
|
|
11
|
-
let input = "";
|
|
12
|
-
for await (const chunk of process.stdin) {
|
|
13
|
-
input += String(chunk);
|
|
14
|
-
}
|
|
15
|
-
// It ends as soon as it knows, whatever else the process holds: the chat hears the hook only once it ends.
|
|
16
|
-
if (await waitForBell(input)) {
|
|
17
|
-
process.stderr.write(`${bellLine}\n`, () => process.exit(2));
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
process.exit(0);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Waits at the dashboard of the hook's chat until the player says a sentence: true then; false when there is none to wait at, or it goes away. The chat's own
|
|
25
|
-
* server is the one with its session; after /clear, which gives the hook a new one, the only server of its campaign.
|
|
26
|
-
*/
|
|
27
|
-
export async function waitForBell(input, ports) {
|
|
28
|
-
const hook = hookInput(input);
|
|
29
|
-
const root = findCampaign(hook.cwd ?? process.cwd());
|
|
30
|
-
if (root === undefined) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
const probes = await Promise.all((ports ?? campaignPorts(root)).filter((port) => port !== 0).map(async (port) => ({ port, said: await probe(port) })));
|
|
34
|
-
const ours = probes.filter((one) => one.said !== undefined && one.said.root !== null && samePath(one.said.root, root));
|
|
35
|
-
const port = (ours.find((one) => hook.session !== undefined && one.said?.session === hook.session) ?? (ours.length === 1 ? ours[0] : undefined))?.port;
|
|
36
|
-
return port === undefined ? false : (await body(port, "/api/bell")) === "ring";
|
|
37
|
-
}
|
|
38
|
-
function hookInput(input) {
|
|
39
|
-
try {
|
|
40
|
-
const parsed = JSON.parse(input);
|
|
41
|
-
return {
|
|
42
|
-
...(typeof parsed.session_id === "string" ? { session: parsed.session_id } : {}),
|
|
43
|
-
...(typeof parsed.cwd === "string" ? { cwd: parsed.cwd } : {}),
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
catch {
|
|
47
|
-
return {};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
// How long a port may take to say whose dashboard it is: one of this computer answers at once.
|
|
51
|
-
const probeWait = 1000;
|
|
52
|
-
/** Whose dashboard answers at a port: its chat's session and campaign; undefined where none does. */
|
|
53
|
-
async function probe(port) {
|
|
54
|
-
const said = await body(port, "/api/bell?probe", probeWait);
|
|
55
|
-
try {
|
|
56
|
-
const parsed = said === undefined ? undefined : JSON.parse(said);
|
|
57
|
-
return parsed === undefined
|
|
58
|
-
? undefined
|
|
59
|
-
: { session: typeof parsed.session === "string" ? parsed.session : null, root: typeof parsed.root === "string" ? parsed.root : null };
|
|
60
|
-
}
|
|
61
|
-
catch {
|
|
62
|
-
return undefined;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
/** The body a dashboard of this computer answers with, once it ends; undefined when it does not answer, or not with 200. */
|
|
66
|
-
function body(port, path, wait) {
|
|
67
|
-
return new Promise((done) => {
|
|
68
|
-
// A connection of its own: Node's shared one ends a request idle for five seconds, and the doorbell waits for hours.
|
|
69
|
-
const request = get({ host: "127.0.0.1", port, path, agent: false, ...(wait === undefined ? {} : { timeout: wait }) }, (response) => {
|
|
70
|
-
let text = "";
|
|
71
|
-
response.setEncoding("utf8");
|
|
72
|
-
response.on("data", (chunk) => {
|
|
73
|
-
text += chunk;
|
|
74
|
-
});
|
|
75
|
-
response.on("end", () => done(response.statusCode === 200 ? text : undefined));
|
|
76
|
-
response.on("error", () => done(undefined));
|
|
77
|
-
});
|
|
78
|
-
if (wait !== undefined) {
|
|
79
|
-
request.on("timeout", () => request.destroy());
|
|
80
|
-
}
|
|
81
|
-
request.on("error", () => done(undefined));
|
|
82
|
-
});
|
|
83
|
-
}
|