tryharness 0.7.83 → 0.7.86
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 +21 -19
- package/assets/dsh-plugin.mjs +75 -4
- package/assets/herdr-mod/harness/main.js +367 -0
- package/assets/herdr-mod/harness/mod.json +6 -0
- package/assets/opencode-plugin.js +87 -22
- package/assets/pi-extension.ts +81 -2
- package/cli.mjs +544 -208
- package/lib/adapters.mjs +62 -27
- package/lib/agentBinaries.mjs +6 -8
- package/lib/agentClaims.mjs +168 -0
- package/lib/agentReadTools.json +415 -0
- package/lib/agentSignIn.mjs +17 -18
- package/lib/agentWiring.mjs +114 -0
- package/lib/archetypes.js +10 -11
- package/lib/attention.mjs +100 -0
- package/lib/audit.mjs +1 -1
- package/lib/backupSetup.mjs +6 -28
- package/lib/bankrApprovals.mjs +86 -0
- package/lib/boardAccess.mjs +40 -66
- package/lib/boardBackup.mjs +86 -85
- package/lib/boardCommands.mjs +28 -0
- package/lib/boardFileCommands.mjs +29 -36
- package/lib/boardFiles.mjs +83 -15
- package/lib/boardMirror.mjs +78 -11
- package/lib/boardProtocol.json +191 -123
- package/lib/boardThreads.mjs +19 -37
- package/lib/boardTools.mjs +22 -15
- package/lib/boardWatches.mjs +43 -15
- package/lib/bridge.mjs +7 -3
- package/lib/browserAgentTools.mjs +59 -0
- package/lib/browserWake.mjs +0 -6
- package/lib/cards.mjs +52 -0
- package/lib/circling.mjs +189 -0
- package/lib/cleanup.mjs +234 -0
- package/lib/cloudBoot.mjs +21 -4
- package/lib/cloudSave.mjs +46 -5
- package/lib/compaction.mjs +8 -1
- package/lib/completion.mjs +358 -0
- package/lib/computerDevices.mjs +853 -0
- package/lib/connectionStatus.mjs +34 -0
- package/lib/connectors.mjs +139 -1
- package/lib/coordinator.mjs +108 -14
- package/lib/coreModels.mjs +36 -12
- package/lib/daemon.mjs +2426 -338
- package/lib/daemonLock.mjs +103 -0
- package/lib/deviceDoor.mjs +308 -0
- package/lib/deviceIdentity.mjs +114 -0
- package/lib/deviceList.mjs +172 -0
- package/lib/deviceSeal.mjs +74 -0
- package/lib/dispatcher.mjs +497 -26
- package/lib/dispatches.mjs +3 -3
- package/lib/environment.mjs +2 -1
- package/lib/environments.mjs +67 -41
- package/lib/events.mjs +318 -0
- package/lib/facts.mjs +170 -0
- package/lib/fileSource.mjs +540 -0
- package/lib/files.mjs +47 -2
- package/lib/gitHost.mjs +39 -1
- package/lib/goalCommands.mjs +12 -80
- package/lib/handover.mjs +21 -16
- package/lib/harnessOffers.mjs +140 -15
- package/lib/herdr.mjs +100 -15
- package/lib/herdrAppCall.mjs +19 -0
- package/lib/herdrCore.mjs +59 -0
- package/lib/herdrRuns.mjs +1126 -0
- package/lib/hookDialects.mjs +235 -50
- package/lib/identityLink.mjs +81 -0
- package/lib/inference.mjs +31 -2
- package/lib/jamAccess.mjs +82 -0
- package/lib/{projectBoard.mjs → jamBoard.mjs} +5 -4
- package/lib/{projectGit.mjs → jamGit.mjs} +53 -15
- package/lib/jamKey.mjs +274 -0
- package/lib/{projectPieces.mjs → jamPieces.mjs} +35 -29
- package/lib/{projectSettings.mjs → jamSettings.mjs} +12 -22
- package/lib/jamStore.mjs +973 -0
- package/lib/jamUpgrade.mjs +112 -0
- package/lib/jams.mjs +3079 -0
- package/lib/kanban.mjs +13 -7
- package/lib/landed.mjs +5 -1
- package/lib/library.mjs +41 -22
- package/lib/limits.mjs +91 -0
- package/lib/lineDiff.mjs +97 -0
- package/lib/lineup.mjs +18 -13
- package/lib/link.mjs +584 -0
- package/lib/localStack.mjs +75 -16
- package/lib/localmodels.mjs +58 -78
- package/lib/loopBackstop.mjs +2 -1
- package/lib/machine.mjs +544 -0
- package/lib/machineLink.mjs +446 -0
- package/lib/machineRoutes.mjs +68 -19
- package/lib/machineRuns.mjs +85 -4
- package/lib/machineSeal.mjs +6 -31
- package/lib/manager.mjs +134 -12
- package/lib/mcp-stdio.mjs +492 -215
- package/lib/mcpRelay.mjs +34 -35
- package/lib/members.json +1 -1
- package/lib/modelRoute.mjs +162 -0
- package/lib/nativeHost.mjs +81 -90
- package/lib/nativeSenses.mjs +258 -0
- package/lib/nerves.mjs +523 -0
- package/lib/network.mjs +117 -278
- package/lib/networkPlaces.mjs +578 -0
- package/lib/nextStep.mjs +95 -0
- package/lib/notify.mjs +2 -2
- package/lib/nudge.mjs +116 -10
- package/lib/originals.mjs +216 -0
- package/lib/outsideEvents.mjs +383 -0
- package/lib/outsideRuns.mjs +230 -0
- package/lib/ownMachines.mjs +674 -256
- package/lib/pain.mjs +215 -0
- package/lib/pairing.mjs +91 -11
- package/lib/paths.mjs +42 -3
- package/lib/peerProcess.mjs +21 -7
- package/lib/peopleLink.mjs +268 -0
- package/lib/personNotices.mjs +3 -2
- package/lib/phones.mjs +252 -542
- package/lib/placeCards.mjs +282 -0
- package/lib/placeChecks.mjs +95 -0
- package/lib/placeCommands.mjs +8 -17
- package/lib/placeRequests.mjs +152 -0
- package/lib/placeStore.mjs +295 -0
- package/lib/placeTool.d.ts +12 -0
- package/lib/placeTool.js +40 -0
- package/lib/places.mjs +63 -14
- package/lib/plans.mjs +53 -8
- package/lib/presence.mjs +270 -0
- package/lib/privateNetwork.d.ts +2 -0
- package/lib/privateNetwork.js +93 -0
- package/lib/proposals.mjs +300 -0
- package/lib/publicFetch.d.ts +32 -0
- package/lib/publicFetch.js +248 -0
- package/lib/reach.mjs +128 -0
- package/lib/rebuildable.mjs +72 -0
- package/lib/recall.mjs +216 -0
- package/lib/record.mjs +13 -0
- package/lib/reflexes.mjs +392 -0
- package/lib/relayLimits.mjs +31 -2
- package/lib/releaseNotice.mjs +198 -0
- package/lib/removeHarness.mjs +15 -4
- package/lib/repoLinks.mjs +204 -35
- package/lib/runAuthority.mjs +102 -39
- package/lib/runBrief.mjs +93 -40
- package/lib/runRequests.mjs +52 -14
- package/lib/runUsage.mjs +31 -0
- package/lib/runWorker.mjs +74 -25
- package/lib/runner.mjs +289 -45
- package/lib/runtime-install.mjs +37 -8
- package/lib/schedules.mjs +171 -47
- package/lib/screenWatches.mjs +221 -0
- package/lib/sealed.mjs +12 -30
- package/lib/sealedThreads.mjs +198 -392
- package/lib/secretStore.mjs +178 -0
- package/lib/secrets.mjs +11 -0
- package/lib/seen.mjs +3 -9
- package/lib/selfUpdate.mjs +51 -15
- package/lib/senseCall.mjs +1514 -0
- package/lib/senseHook.mjs +114 -0
- package/lib/senseTools.mjs +1298 -0
- package/lib/sessionBriefs.mjs +87 -0
- package/lib/sessionControl.mjs +63 -13
- package/lib/sessionFiles.mjs +85 -0
- package/lib/setupChoices.mjs +12 -3
- package/lib/setupMode.mjs +70 -25
- package/lib/sharedKeys.mjs +166 -0
- package/lib/sleep.mjs +396 -0
- package/lib/sources.mjs +306 -0
- package/lib/speech.mjs +166 -411
- package/lib/spoken.mjs +210 -0
- package/lib/steerHook.mjs +3 -1
- package/lib/steerQueue.mjs +40 -11
- package/lib/store.mjs +323 -130
- package/lib/stuck.mjs +85 -7
- package/lib/swarm.mjs +157 -49
- package/lib/swarmDevices.mjs +25 -85
- package/lib/swarmMemory.mjs +93 -9
- package/lib/t3.mjs +73 -3
- package/lib/taskCommands.mjs +51 -60
- package/lib/taskRooms.mjs +30 -4
- package/lib/taskRules.json +29 -0
- package/lib/taskRules.mjs +21 -0
- package/lib/taskRuns.mjs +74 -11
- package/lib/team.mjs +2 -1
- package/lib/threadActions.mjs +37 -9
- package/lib/threadAuthority.mjs +4 -4
- package/lib/threadBriefs.mjs +173 -43
- package/lib/threadNotes.mjs +320 -0
- package/lib/threadRecord.mjs +491 -0
- package/lib/threadRuns.mjs +216 -108
- package/lib/threadView.mjs +27 -30
- package/lib/threadWatches.mjs +1962 -0
- package/lib/timeSense.mjs +839 -0
- package/lib/tripwires.mjs +454 -0
- package/lib/ui.mjs +1 -1
- package/lib/vault.mjs +560 -45
- package/lib/vaultCommands.mjs +5 -3
- package/lib/vaultPeers.mjs +165 -0
- package/lib/vaultTools.d.ts +4 -1
- package/lib/vaultTools.js +22 -1
- package/lib/verdicts.mjs +12 -26
- package/lib/versions.mjs +117 -0
- package/lib/waitTool.mjs +278 -0
- package/lib/wakePicture.mjs +268 -0
- package/lib/wakeQueue.mjs +108 -0
- package/lib/watchResponses.mjs +533 -0
- package/lib/watches.mjs +290 -145
- package/lib/windowAsks.mjs +80 -17
- package/lib/worktrees.mjs +159 -9
- package/npm-shrinkwrap.json +138 -631
- package/package.json +7 -6
- package/release.json +211 -129
- package/lib/callSessions.mjs +0 -51
- package/lib/directLink.mjs +0 -349
- package/lib/peopleBoard.mjs +0 -131
- package/lib/projects.mjs +0 -2917
- package/lib/roomChannels.mjs +0 -667
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import net from "node:net";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
|
|
7
|
+
// The daemon's line to what only native code can sense (docs/senses-plan.md, open item 9 and "native senses on
|
|
8
|
+
// Linux"). On a Mac the launcher that starts the daemon on every setup (packages/desktop/helper/HarnessDaemon.swift)
|
|
9
|
+
// listens on a private socket and names it in HARNESS_SENSES_SOCKET; it takes the daemon's connection alone. On Linux
|
|
10
|
+
// the daemon starts the senses program itself (packages/linux-senses), shipped as tryharness-senses-linux-<cpu>, and
|
|
11
|
+
// speaks the same lines over its stdin and stdout. Anywhere else, or with neither (from source, in tests, Windows, a
|
|
12
|
+
// Linux chip with no build), each sense reads through Node instead.
|
|
13
|
+
|
|
14
|
+
// How long the native side may take to answer an ordinary question; the history's own bound comes on top of its answer.
|
|
15
|
+
const ANSWER_MS = 5_000;
|
|
16
|
+
|
|
17
|
+
/** The Linux senses program this release carries for this chip, or null. HARNESS_LINUX_SENSES names one for tests. */
|
|
18
|
+
export function linuxSensesProgram({
|
|
19
|
+
env = process.env,
|
|
20
|
+
arch = process.arch,
|
|
21
|
+
from = import.meta.url,
|
|
22
|
+
} = {}) {
|
|
23
|
+
if (env.HARNESS_LINUX_SENSES) return env.HARNESS_LINUX_SENSES;
|
|
24
|
+
try {
|
|
25
|
+
const packageJson = createRequire(from).resolve(
|
|
26
|
+
`tryharness-senses-linux-${arch}/package.json`
|
|
27
|
+
);
|
|
28
|
+
const meta = JSON.parse(fs.readFileSync(packageJson, "utf8"));
|
|
29
|
+
const program = path.join(
|
|
30
|
+
path.dirname(packageJson),
|
|
31
|
+
String(meta.harnessSenses || "")
|
|
32
|
+
);
|
|
33
|
+
if (!meta.harnessSenses || !fs.existsSync(program)) return null;
|
|
34
|
+
// npm may unpack the program without its execute bit; the release folder is this user's own.
|
|
35
|
+
try {
|
|
36
|
+
fs.accessSync(program, fs.constants.X_OK);
|
|
37
|
+
} catch {
|
|
38
|
+
fs.chmodSync(program, 0o755);
|
|
39
|
+
}
|
|
40
|
+
return program;
|
|
41
|
+
} catch {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The Mac launcher's socket, or the Linux program's stdin and stdout, as one line. */
|
|
47
|
+
function openLine({ socketPath, program, platform }) {
|
|
48
|
+
if (socketPath) {
|
|
49
|
+
const socket = net.connect(socketPath);
|
|
50
|
+
socket.unref();
|
|
51
|
+
return {
|
|
52
|
+
who: "the launcher's line",
|
|
53
|
+
input: socket,
|
|
54
|
+
write: (text) => socket.write(text),
|
|
55
|
+
onEnd: (ended) => {
|
|
56
|
+
socket.on("error", (error) => ended(error.message));
|
|
57
|
+
socket.on("close", () => ended("closed"));
|
|
58
|
+
},
|
|
59
|
+
destroy: () => socket.destroy(),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
if (platform !== "linux" || !program) return null;
|
|
63
|
+
const child = spawn(program, [], { stdio: ["pipe", "pipe", "ignore"] });
|
|
64
|
+
// The program ends with the daemon (it asks the kernel for that); it never keeps the daemon running by itself.
|
|
65
|
+
child.unref();
|
|
66
|
+
child.stdin.unref?.();
|
|
67
|
+
child.stdout.unref?.();
|
|
68
|
+
child.stdin.on("error", () => {});
|
|
69
|
+
return {
|
|
70
|
+
who: "the Linux senses program",
|
|
71
|
+
input: child.stdout,
|
|
72
|
+
write: (text) => child.stdin.write(text),
|
|
73
|
+
onEnd: (ended) => {
|
|
74
|
+
child.on("error", (error) => ended(error.message));
|
|
75
|
+
child.on("exit", (code, signal) =>
|
|
76
|
+
ended(signal ? `stopped by ${signal}` : `ended with ${code}`)
|
|
77
|
+
);
|
|
78
|
+
},
|
|
79
|
+
destroy: () => child.kill(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The line, or null when this daemon has none. `mark(folder)` is where the Mac's history of file changes stands now
|
|
85
|
+
* for that folder's disk; `historySince(folder, mark, bound)` names every file changed there since (`complete: false`
|
|
86
|
+
* past the bound or when the history lost track); Linux keeps no such history and says so. `onExit(pid, ended)` calls
|
|
87
|
+
* `ended` the moment the kernel says the process ended (`gone` when it already had); `machine()` and
|
|
88
|
+
* `followMachine(changed)` are the machine's own pressure, heat, battery, lid, network and disk states; `disk(path)`
|
|
89
|
+
* counts the disk (on a Mac as Finder does); `onClose(closed)` hears the line close, so a follower can read through
|
|
90
|
+
* Node from then on.
|
|
91
|
+
*/
|
|
92
|
+
export function connectNativeSenses({
|
|
93
|
+
socketPath = process.env.HARNESS_SENSES_SOCKET,
|
|
94
|
+
platform = process.platform,
|
|
95
|
+
program = socketPath || platform !== "linux" ? null : linuxSensesProgram(),
|
|
96
|
+
log = () => {},
|
|
97
|
+
} = {}) {
|
|
98
|
+
// The agents this daemon starts are not handed the line's name.
|
|
99
|
+
delete process.env.HARNESS_SENSES_SOCKET;
|
|
100
|
+
let line;
|
|
101
|
+
try {
|
|
102
|
+
line = openLine({ socketPath, program, platform });
|
|
103
|
+
} catch (error) {
|
|
104
|
+
log(
|
|
105
|
+
`native senses: ${program} did not start (${error.message}); senses read through Node`
|
|
106
|
+
);
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
if (!line) return null;
|
|
110
|
+
const waiting = new Map();
|
|
111
|
+
const exits = new Map();
|
|
112
|
+
const machineFollowers = new Set();
|
|
113
|
+
let next = 0;
|
|
114
|
+
let open = true;
|
|
115
|
+
let buffer = "";
|
|
116
|
+
|
|
117
|
+
const closers = new Set();
|
|
118
|
+
|
|
119
|
+
const closed = (why) => {
|
|
120
|
+
if (!open) return;
|
|
121
|
+
open = false;
|
|
122
|
+
log(`native senses: ${line.who} closed (${why}); senses read through Node`);
|
|
123
|
+
for (const { reject, timer } of waiting.values()) {
|
|
124
|
+
clearTimeout(timer);
|
|
125
|
+
reject(new Error(`${line.who} closed`));
|
|
126
|
+
}
|
|
127
|
+
waiting.clear();
|
|
128
|
+
for (const close of closers) close();
|
|
129
|
+
};
|
|
130
|
+
line.onEnd(closed);
|
|
131
|
+
line.input.setEncoding("utf8");
|
|
132
|
+
line.input.on("data", (chunk) => {
|
|
133
|
+
buffer += chunk;
|
|
134
|
+
let end;
|
|
135
|
+
while ((end = buffer.indexOf("\n")) >= 0) {
|
|
136
|
+
const raw = buffer.slice(0, end);
|
|
137
|
+
buffer = buffer.slice(end + 1);
|
|
138
|
+
let message;
|
|
139
|
+
try {
|
|
140
|
+
message = JSON.parse(raw);
|
|
141
|
+
} catch {
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
if (message.notice === "exit") {
|
|
145
|
+
const ended = exits.get(message.pid);
|
|
146
|
+
exits.delete(message.pid);
|
|
147
|
+
ended?.();
|
|
148
|
+
} else if (message.notice === "machine") {
|
|
149
|
+
for (const changed of machineFollowers) changed(message.reading);
|
|
150
|
+
} else if (waiting.has(message.id)) {
|
|
151
|
+
const { resolve, timer } = waiting.get(message.id);
|
|
152
|
+
waiting.delete(message.id);
|
|
153
|
+
clearTimeout(timer);
|
|
154
|
+
resolve(message);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
const ask = (request, waitMs = ANSWER_MS) =>
|
|
160
|
+
new Promise((resolve, reject) => {
|
|
161
|
+
if (!open) {
|
|
162
|
+
reject(new Error(`${line.who} is closed`));
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const id = ++next;
|
|
166
|
+
const timer = setTimeout(() => {
|
|
167
|
+
waiting.delete(id);
|
|
168
|
+
reject(new Error(`${line.who} did not answer ${request.ask}`));
|
|
169
|
+
}, waitMs);
|
|
170
|
+
timer.unref?.();
|
|
171
|
+
waiting.set(id, { resolve, reject, timer });
|
|
172
|
+
line.write(`${JSON.stringify({ id, ...request })}\n`);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
if (program)
|
|
176
|
+
void ask({ ask: "about" })
|
|
177
|
+
.then((about) =>
|
|
178
|
+
log(
|
|
179
|
+
`native senses on Linux ${about.kernel}: process ends ${about.exits ? "as they happen" : "looked for every second"}, memory pressure ${about.pressure === "system" ? "as it crosses a level" : about.pressure === "group" ? "for Harness's own processes as it crosses a level, the machine's read every 5 s" : "read every 5 s"}, network ${about.network ? "as it changes" : "read every 5 s"}`
|
|
180
|
+
)
|
|
181
|
+
)
|
|
182
|
+
.catch(() => {});
|
|
183
|
+
|
|
184
|
+
return {
|
|
185
|
+
available: () => open,
|
|
186
|
+
async mark(folder) {
|
|
187
|
+
const answer = await ask({ ask: "mark", folder });
|
|
188
|
+
// Linux keeps no history to mark: the folder is compared by snapshot, with nothing kept for the history.
|
|
189
|
+
if (answer.error) throw new Error(answer.error);
|
|
190
|
+
return { mark: answer.mark, device: answer.device ?? null };
|
|
191
|
+
},
|
|
192
|
+
async historySince(
|
|
193
|
+
folder,
|
|
194
|
+
{ mark, device },
|
|
195
|
+
{ maxEvents = 20_000, maxMs = 10_000 } = {}
|
|
196
|
+
) {
|
|
197
|
+
const answer = await ask(
|
|
198
|
+
{ ask: "history", folder, since: mark, device, maxEvents, maxMs },
|
|
199
|
+
maxMs + ANSWER_MS
|
|
200
|
+
);
|
|
201
|
+
return answer.complete
|
|
202
|
+
? {
|
|
203
|
+
complete: true,
|
|
204
|
+
// Files only: a folder is named when anything in it changes.
|
|
205
|
+
changed: answer.changed
|
|
206
|
+
.filter((entry) => !entry.dir)
|
|
207
|
+
.map((entry) => entry.path),
|
|
208
|
+
mark: { mark: answer.mark, device },
|
|
209
|
+
}
|
|
210
|
+
: { complete: false, reason: answer.reason ?? "unknown" };
|
|
211
|
+
},
|
|
212
|
+
/** Calls `ended` once when the process ends; the function returned stops listening. */
|
|
213
|
+
async onExit(pid, ended) {
|
|
214
|
+
exits.set(pid, ended);
|
|
215
|
+
const answer = await ask({ ask: "exit", pid });
|
|
216
|
+
if (answer.gone || answer.error) {
|
|
217
|
+
exits.delete(pid);
|
|
218
|
+
if (answer.gone) ended();
|
|
219
|
+
else throw new Error(answer.error);
|
|
220
|
+
}
|
|
221
|
+
return () => {
|
|
222
|
+
if (!exits.delete(pid) || !open) return;
|
|
223
|
+
void ask({ ask: "unexit", pid }).catch(() => {});
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
machine: async () => (await ask({ ask: "machine" })).reading,
|
|
227
|
+
/** Hears each change of the machine; the reading as it is now comes back at once. */
|
|
228
|
+
async followMachine(changed) {
|
|
229
|
+
machineFollowers.add(changed);
|
|
230
|
+
const answer = await ask({ ask: "follow-machine" });
|
|
231
|
+
return {
|
|
232
|
+
reading: answer.reading,
|
|
233
|
+
stop() {
|
|
234
|
+
machineFollowers.delete(changed);
|
|
235
|
+
if (!machineFollowers.size && open)
|
|
236
|
+
void ask({ ask: "unfollow-machine" }).catch(() => {});
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
async disk(path) {
|
|
241
|
+
const answer = await ask({ ask: "disk", path });
|
|
242
|
+
if (answer.error) throw new Error(answer.error);
|
|
243
|
+
return {
|
|
244
|
+
important: answer.important ?? null,
|
|
245
|
+
available: answer.available ?? null,
|
|
246
|
+
total: answer.total ?? null,
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
onClose(close) {
|
|
250
|
+
closers.add(close);
|
|
251
|
+
return () => closers.delete(close);
|
|
252
|
+
},
|
|
253
|
+
close() {
|
|
254
|
+
open = false;
|
|
255
|
+
line.destroy();
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
}
|