@neta-art/cohub-cli 10.24.0 → 10.25.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/bin/cohub.js +4 -1
- package/dist/board-gpu/page.js +1566 -71230
- package/dist/bootstrap.js +67 -27
- package/dist/build.json +1 -1
- package/dist/{board-kernel/FilterPipe.js → chunks/Geometry.js} +10447 -10469
- package/dist/chunks/about.js +102 -0
- package/dist/chunks/app-realtime.js +2216 -0
- package/dist/chunks/app-realtime2.js +2 -0
- package/dist/chunks/app-ref.js +88 -0
- package/dist/chunks/apps.js +1423 -0
- package/dist/chunks/auth.js +175 -0
- package/dist/chunks/avatar.js +146 -0
- package/dist/chunks/board-export-resources.js +232 -0
- package/dist/chunks/board-export.js +874 -0
- package/dist/chunks/board-export2.js +2 -0
- package/dist/{board-kernel.js → chunks/board-kernel.js} +18032 -28512
- package/dist/chunks/board-kernel2.js +4 -0
- package/dist/chunks/board-profile.js +69 -0
- package/dist/chunks/board-simulate.js +315 -0
- package/dist/chunks/board-time.js +34 -0
- package/dist/chunks/boards.js +1943 -0
- package/dist/{board-kernel → chunks}/browserAll.js +9 -8
- package/dist/chunks/channels.js +64 -0
- package/dist/chunks/client.js +12606 -0
- package/dist/chunks/command-input.js +17 -0
- package/dist/chunks/commander.js +2962 -0
- package/dist/chunks/cron-jobs.js +163 -0
- package/dist/chunks/daemon.js +545 -0
- package/dist/chunks/daemon2.js +2 -0
- package/dist/chunks/desktop.js +172 -0
- package/dist/chunks/endpoint-options.js +26 -0
- package/dist/chunks/env-proxy.js +35 -0
- package/dist/chunks/environment.js +154 -0
- package/dist/chunks/feedback.js +120 -0
- package/dist/chunks/generations.js +379 -0
- package/dist/chunks/host.js +9 -0
- package/dist/chunks/http-put.js +131 -0
- package/dist/chunks/id.js +2416 -0
- package/dist/{board-kernel → chunks}/init.js +1 -1
- package/dist/chunks/install.js +11959 -0
- package/dist/chunks/launch.js +374 -0
- package/dist/chunks/local-media.js +47 -0
- package/dist/chunks/me.js +134 -0
- package/dist/chunks/media.js +315 -0
- package/dist/chunks/models.js +242 -0
- package/dist/chunks/operands.js +46 -0
- package/dist/chunks/package-paths.js +13 -0
- package/dist/chunks/policy.js +221 -0
- package/dist/chunks/preferences.js +29 -0
- package/dist/chunks/profile.js +64 -0
- package/dist/chunks/prompts.js +41 -0
- package/dist/chunks/public.js +2 -0
- package/dist/chunks/public2.js +244 -0
- package/dist/chunks/references.js +197 -0
- package/dist/chunks/referrals.js +90 -0
- package/dist/chunks/rolldown-runtime.js +26 -0
- package/dist/chunks/rooms-connect.js +2 -0
- package/dist/chunks/rooms-connect2.js +151 -0
- package/dist/chunks/rooms-rtc.js +309 -0
- package/dist/chunks/rooms.js +211 -0
- package/dist/chunks/run.js +220 -0
- package/dist/chunks/runtime.js +638 -0
- package/dist/chunks/runtime2.js +286 -0
- package/dist/chunks/runtimes.js +48 -0
- package/dist/chunks/safe-remote-image.js +198 -0
- package/dist/chunks/schemas.js +6017 -0
- package/dist/chunks/search.js +113 -0
- package/dist/chunks/self-update.js +238 -0
- package/dist/chunks/serve.js +1246 -0
- package/dist/chunks/session-status.js +24 -0
- package/dist/chunks/skills.js +35 -0
- package/dist/chunks/spaces.js +5080 -0
- package/dist/chunks/src.js +405 -0
- package/dist/chunks/supervisor.js +2511 -0
- package/dist/chunks/supervisor2.js +2 -0
- package/dist/chunks/tasks.js +82 -0
- package/dist/chunks/themes.js +2898 -0
- package/dist/chunks/version.js +2 -0
- package/dist/chunks/version2.js +22 -0
- package/dist/chunks/version3.js +18 -0
- package/dist/chunks/web.js +7 -0
- package/dist/{board-kernel → chunks}/webworkerAll.js +1 -1
- package/dist/runtime/native/pi-extension.js +174 -166
- package/dist/runtime/worker.js +27 -16
- package/package.json +8 -9
- package/dist/about.d.ts +0 -2
- package/dist/about.js +0 -71
- package/dist/app-download.d.ts +0 -11
- package/dist/app-download.js +0 -252
- package/dist/app-ref.d.ts +0 -5
- package/dist/app-ref.js +0 -8
- package/dist/app-target.d.ts +0 -26
- package/dist/app-target.js +0 -55
- package/dist/auth.d.ts +0 -45
- package/dist/auth.js +0 -307
- package/dist/avatar.d.ts +0 -55
- package/dist/avatar.js +0 -104
- package/dist/board-command-support.d.ts +0 -6
- package/dist/board-command-support.js +0 -88
- package/dist/board-export-resources.d.ts +0 -12
- package/dist/board-export-resources.js +0 -51
- package/dist/board-export.d.ts +0 -110
- package/dist/board-export.js +0 -592
- package/dist/board-fonts.d.ts +0 -11
- package/dist/board-fonts.js +0 -10
- package/dist/board-gpu/daemon.d.ts +0 -11
- package/dist/board-gpu/daemon.js +0 -295
- package/dist/board-gpu/index.d.ts +0 -33
- package/dist/board-gpu/index.js +0 -189
- package/dist/board-gpu/protocol.d.ts +0 -77
- package/dist/board-gpu/protocol.js +0 -1
- package/dist/board-kernel.d.ts +0 -5
- package/dist/board-media-export.d.ts +0 -17
- package/dist/board-media-export.js +0 -164
- package/dist/board-media.d.ts +0 -5
- package/dist/board-media.js +0 -66
- package/dist/board-profile.d.ts +0 -21
- package/dist/board-profile.js +0 -67
- package/dist/board-simulate.d.ts +0 -67
- package/dist/board-simulate.js +0 -259
- package/dist/board-time.d.ts +0 -3
- package/dist/board-time.js +0 -34
- package/dist/bootstrap.d.ts +0 -2
- package/dist/client.d.ts +0 -5
- package/dist/client.js +0 -24
- package/dist/command-input.d.ts +0 -4
- package/dist/command-input.js +0 -16
- package/dist/commands/app-commerce.d.ts +0 -2
- package/dist/commands/app-commerce.js +0 -228
- package/dist/commands/app-domains.d.ts +0 -2
- package/dist/commands/app-domains.js +0 -133
- package/dist/commands/apps.d.ts +0 -4
- package/dist/commands/apps.js +0 -827
- package/dist/commands/auth.d.ts +0 -2
- package/dist/commands/auth.js +0 -186
- package/dist/commands/boards/authoring.d.ts +0 -2
- package/dist/commands/boards/authoring.js +0 -166
- package/dist/commands/boards/examples.d.ts +0 -10
- package/dist/commands/boards/examples.js +0 -118
- package/dist/commands/boards.d.ts +0 -13
- package/dist/commands/boards.js +0 -836
- package/dist/commands/channels.d.ts +0 -2
- package/dist/commands/channels.js +0 -74
- package/dist/commands/cron-jobs.d.ts +0 -2
- package/dist/commands/cron-jobs.js +0 -155
- package/dist/commands/decision.d.ts +0 -4
- package/dist/commands/decision.js +0 -113
- package/dist/commands/desktop.d.ts +0 -10
- package/dist/commands/desktop.js +0 -233
- package/dist/commands/feedback.d.ts +0 -2
- package/dist/commands/feedback.js +0 -131
- package/dist/commands/generations.d.ts +0 -2
- package/dist/commands/generations.js +0 -427
- package/dist/commands/host.d.ts +0 -2
- package/dist/commands/host.js +0 -11
- package/dist/commands/me.d.ts +0 -2
- package/dist/commands/me.js +0 -121
- package/dist/commands/models.d.ts +0 -28
- package/dist/commands/models.js +0 -271
- package/dist/commands/profile.d.ts +0 -2
- package/dist/commands/profile.js +0 -81
- package/dist/commands/prompts.d.ts +0 -2
- package/dist/commands/prompts.js +0 -37
- package/dist/commands/public.d.ts +0 -20
- package/dist/commands/public.js +0 -291
- package/dist/commands/references.d.ts +0 -2
- package/dist/commands/references.js +0 -193
- package/dist/commands/referrals.d.ts +0 -2
- package/dist/commands/referrals.js +0 -88
- package/dist/commands/rooms-connect.d.ts +0 -17
- package/dist/commands/rooms-connect.js +0 -140
- package/dist/commands/rooms-rtc-binary.d.ts +0 -2
- package/dist/commands/rooms-rtc-binary.js +0 -107
- package/dist/commands/rooms-rtc.d.ts +0 -21
- package/dist/commands/rooms-rtc.js +0 -171
- package/dist/commands/rooms.d.ts +0 -3
- package/dist/commands/rooms.js +0 -277
- package/dist/commands/run.d.ts +0 -13
- package/dist/commands/run.js +0 -246
- package/dist/commands/runtime.d.ts +0 -3
- package/dist/commands/runtime.js +0 -320
- package/dist/commands/sandboxd-binary.d.ts +0 -11
- package/dist/commands/sandboxd-binary.js +0 -238
- package/dist/commands/search.d.ts +0 -2
- package/dist/commands/search.js +0 -114
- package/dist/commands/session-access.d.ts +0 -2
- package/dist/commands/session-access.js +0 -70
- package/dist/commands/skills.d.ts +0 -2
- package/dist/commands/skills.js +0 -34
- package/dist/commands/space-activity.d.ts +0 -26
- package/dist/commands/space-activity.js +0 -147
- package/dist/commands/space-commerce.d.ts +0 -2
- package/dist/commands/space-commerce.js +0 -514
- package/dist/commands/space-displays.d.ts +0 -2
- package/dist/commands/space-displays.js +0 -620
- package/dist/commands/space-files.d.ts +0 -5
- package/dist/commands/space-files.js +0 -215
- package/dist/commands/space-invitations.d.ts +0 -29
- package/dist/commands/space-invitations.js +0 -189
- package/dist/commands/space-turns.d.ts +0 -49
- package/dist/commands/space-turns.js +0 -205
- package/dist/commands/space-wallet.d.ts +0 -2
- package/dist/commands/space-wallet.js +0 -141
- package/dist/commands/space-webhooks.d.ts +0 -7
- package/dist/commands/space-webhooks.js +0 -73
- package/dist/commands/spaces.d.ts +0 -25
- package/dist/commands/spaces.js +0 -2170
- package/dist/commands/tasks.d.ts +0 -8
- package/dist/commands/tasks.js +0 -80
- package/dist/commands/version.d.ts +0 -2
- package/dist/commands/version.js +0 -21
- package/dist/endpoint-options.d.ts +0 -4
- package/dist/endpoint-options.js +0 -26
- package/dist/env-proxy.d.ts +0 -5
- package/dist/env-proxy.js +0 -20
- package/dist/help-path.d.ts +0 -18
- package/dist/help-path.js +0 -223
- package/dist/host/auth.d.ts +0 -20
- package/dist/host/auth.js +0 -119
- package/dist/host/login-env.d.ts +0 -1
- package/dist/host/login-env.js +0 -31
- package/dist/host/runtime.d.ts +0 -35
- package/dist/host/runtime.js +0 -395
- package/dist/host/runtimes.d.ts +0 -9
- package/dist/host/runtimes.js +0 -42
- package/dist/host/serve.d.ts +0 -2
- package/dist/host/serve.js +0 -117
- package/dist/host/workspaces.d.ts +0 -2
- package/dist/host/workspaces.js +0 -18
- package/dist/http-put.d.ts +0 -25
- package/dist/http-put.js +0 -132
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -129
- package/dist/launcher.d.ts +0 -4
- package/dist/launcher.js +0 -38
- package/dist/local-media.d.ts +0 -2
- package/dist/local-media.js +0 -30
- package/dist/network-error.d.ts +0 -3
- package/dist/network-error.js +0 -22
- package/dist/output.d.ts +0 -46
- package/dist/output.js +0 -244
- package/dist/runtime/archive-store.d.ts +0 -54
- package/dist/runtime/archive-store.js +0 -379
- package/dist/runtime/cli-path.d.ts +0 -5
- package/dist/runtime/cli-path.js +0 -27
- package/dist/runtime/codex-usage.d.ts +0 -7
- package/dist/runtime/codex-usage.js +0 -11
- package/dist/runtime/connection.d.ts +0 -42
- package/dist/runtime/connection.js +0 -789
- package/dist/runtime/diagnostics.d.ts +0 -107
- package/dist/runtime/diagnostics.js +0 -392
- package/dist/runtime/harnesses/chained-projection.d.ts +0 -40
- package/dist/runtime/harnesses/chained-projection.js +0 -95
- package/dist/runtime/harnesses/chained-transcript.d.ts +0 -24
- package/dist/runtime/harnesses/chained-transcript.js +0 -62
- package/dist/runtime/harnesses/claude-approval.d.ts +0 -34
- package/dist/runtime/harnesses/claude-approval.js +0 -124
- package/dist/runtime/harnesses/claude-transcript.d.ts +0 -8
- package/dist/runtime/harnesses/claude-transcript.js +0 -138
- package/dist/runtime/harnesses/claude.d.ts +0 -8
- package/dist/runtime/harnesses/claude.js +0 -225
- package/dist/runtime/harnesses/codex-approval.d.ts +0 -25
- package/dist/runtime/harnesses/codex-approval.js +0 -69
- package/dist/runtime/harnesses/codex.d.ts +0 -4
- package/dist/runtime/harnesses/codex.js +0 -269
- package/dist/runtime/harnesses/cursor-transcript.d.ts +0 -37
- package/dist/runtime/harnesses/cursor-transcript.js +0 -183
- package/dist/runtime/harnesses/cursor.d.ts +0 -24
- package/dist/runtime/harnesses/cursor.js +0 -620
- package/dist/runtime/harnesses/index.d.ts +0 -16
- package/dist/runtime/harnesses/index.js +0 -73
- package/dist/runtime/harnesses/pi.d.ts +0 -4
- package/dist/runtime/harnesses/pi.js +0 -247
- package/dist/runtime/harnesses/process.d.ts +0 -31
- package/dist/runtime/harnesses/process.js +0 -75
- package/dist/runtime/harnesses/stream-json.d.ts +0 -48
- package/dist/runtime/harnesses/stream-json.js +0 -336
- package/dist/runtime/harnesses/types.d.ts +0 -117
- package/dist/runtime/harnesses/types.js +0 -1
- package/dist/runtime/harnesses/workbuddy-transcript.d.ts +0 -8
- package/dist/runtime/harnesses/workbuddy-transcript.js +0 -127
- package/dist/runtime/harnesses/workbuddy.d.ts +0 -21
- package/dist/runtime/harnesses/workbuddy.js +0 -123
- package/dist/runtime/instance.d.ts +0 -20
- package/dist/runtime/instance.js +0 -247
- package/dist/runtime/json-rpc.d.ts +0 -53
- package/dist/runtime/json-rpc.js +0 -212
- package/dist/runtime/launch.d.ts +0 -25
- package/dist/runtime/launch.js +0 -247
- package/dist/runtime/local-workspace.d.ts +0 -15
- package/dist/runtime/local-workspace.js +0 -52
- package/dist/runtime/model-catalog.d.ts +0 -12
- package/dist/runtime/model-catalog.js +0 -84
- package/dist/runtime/native/adapters.d.ts +0 -15
- package/dist/runtime/native/adapters.js +0 -11
- package/dist/runtime/native/approvals.d.ts +0 -18
- package/dist/runtime/native/approvals.js +0 -54
- package/dist/runtime/native/archive.d.ts +0 -19
- package/dist/runtime/native/archive.js +0 -142
- package/dist/runtime/native/attach.d.ts +0 -36
- package/dist/runtime/native/attach.js +0 -128
- package/dist/runtime/native/codex-link.d.ts +0 -60
- package/dist/runtime/native/codex-link.js +0 -322
- package/dist/runtime/native/config.d.ts +0 -16
- package/dist/runtime/native/config.js +0 -24
- package/dist/runtime/native/daemon.d.ts +0 -92
- package/dist/runtime/native/daemon.js +0 -380
- package/dist/runtime/native/execution.d.ts +0 -26
- package/dist/runtime/native/execution.js +0 -34
- package/dist/runtime/native/identity.d.ts +0 -9
- package/dist/runtime/native/identity.js +0 -15
- package/dist/runtime/native/ingest.d.ts +0 -263
- package/dist/runtime/native/ingest.js +0 -884
- package/dist/runtime/native/install.d.ts +0 -9
- package/dist/runtime/native/install.js +0 -113
- package/dist/runtime/native/paths.d.ts +0 -2
- package/dist/runtime/native/paths.js +0 -7
- package/dist/runtime/native/pi-extension.d.ts +0 -36
- package/dist/runtime/native/pi-link.d.ts +0 -69
- package/dist/runtime/native/pi-link.js +0 -269
- package/dist/runtime/native/results.d.ts +0 -41
- package/dist/runtime/native/results.js +0 -128
- package/dist/runtime/native/sessions.d.ts +0 -45
- package/dist/runtime/native/sessions.js +0 -87
- package/dist/runtime/native/transcript.d.ts +0 -89
- package/dist/runtime/native/transcript.js +0 -656
- package/dist/runtime/native/translate.d.ts +0 -46
- package/dist/runtime/native/translate.js +0 -299
- package/dist/runtime/native/transport.d.ts +0 -7
- package/dist/runtime/native/transport.js +0 -16
- package/dist/runtime/native/version.d.ts +0 -5
- package/dist/runtime/native/version.js +0 -21
- package/dist/runtime/preferences.d.ts +0 -7
- package/dist/runtime/preferences.js +0 -22
- package/dist/runtime/presentation.d.ts +0 -32
- package/dist/runtime/presentation.js +0 -124
- package/dist/runtime/process-group.d.ts +0 -5
- package/dist/runtime/process-group.js +0 -161
- package/dist/runtime/projection-store.d.ts +0 -27
- package/dist/runtime/projection-store.js +0 -30
- package/dist/runtime/space-binding.d.ts +0 -48
- package/dist/runtime/space-binding.js +0 -342
- package/dist/runtime/supervisor.d.ts +0 -19
- package/dist/runtime/supervisor.js +0 -441
- package/dist/runtime/turn-projection.d.ts +0 -41
- package/dist/runtime/turn-projection.js +0 -120
- package/dist/runtime/worker.d.ts +0 -1
- package/dist/safe-remote-image.d.ts +0 -36
- package/dist/safe-remote-image.js +0 -191
- package/dist/self-update.d.ts +0 -7
- package/dist/self-update.js +0 -202
- package/dist/session-status.d.ts +0 -10
- package/dist/session-status.js +0 -25
- package/dist/space-files/limit.d.ts +0 -2
- package/dist/space-files/limit.js +0 -16
- package/dist/space-files/operands.d.ts +0 -17
- package/dist/space-files/operands.js +0 -33
- package/dist/space-files/transfer.d.ts +0 -53
- package/dist/space-files/transfer.js +0 -297
- package/dist/space-files/upload.d.ts +0 -17
- package/dist/space-files/upload.js +0 -76
- package/dist/space.d.ts +0 -44
- package/dist/space.js +0 -192
- package/dist/version.d.ts +0 -2
- package/dist/version.js +0 -17
- package/dist/web.d.ts +0 -1
- package/dist/web.js +0 -4
- /package/dist/{board-kernel → chunks}/lexer.js +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as packagePath } from "./package-paths.js";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
//#region src/version.ts
|
|
4
|
+
const CLI_VERSION = (() => {
|
|
5
|
+
try {
|
|
6
|
+
return JSON.parse(readFileSync(packagePath("package.json"), "utf8")).version;
|
|
7
|
+
} catch {
|
|
8
|
+
return "0.0.0";
|
|
9
|
+
}
|
|
10
|
+
})();
|
|
11
|
+
function buildInfo() {
|
|
12
|
+
try {
|
|
13
|
+
return JSON.parse(readFileSync(packagePath("dist", "build.json"), "utf8"));
|
|
14
|
+
} catch {
|
|
15
|
+
return {};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function cliCommit() {
|
|
19
|
+
return buildInfo().commit ?? null;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { buildInfo as n, cliCommit as r, CLI_VERSION as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as isNewerVersion } from "./self-update.js";
|
|
2
|
+
import { D as json, O as jsonRequested, h as currentIdentityKey } from "./client.js";
|
|
3
|
+
import { t as describeCli } from "./about.js";
|
|
4
|
+
//#region src/commands/version.ts
|
|
5
|
+
function registerVersion(program) {
|
|
6
|
+
program.command("version").description("This CLI, the cohub on PATH, and the versions running Runtimes serve").option("--json", "JSON output").action(async (options) => {
|
|
7
|
+
const about = await describeCli(process.env, currentIdentityKey());
|
|
8
|
+
if (jsonRequested(options)) return json(about);
|
|
9
|
+
const rows = [
|
|
10
|
+
`cohub ${about.version}${about.commit ? ` (${about.commit})` : ""} · Node ${about.node}`,
|
|
11
|
+
`PATH ${about.path ? `${about.path.path} · ${about.path.version ?? "unknown"}` : "No cohub on PATH"}`,
|
|
12
|
+
...about.runtimes.map((runtime, index) => `${index ? " " : "Runtimes "} ${runtime.version ?? "older"} · ${runtime.root}${isNewerVersion(about.version, runtime.version ?? void 0) ? " (reconnect to update)" : ""}`)
|
|
13
|
+
];
|
|
14
|
+
process.stdout.write(`${rows.join("\n")}\n`);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { registerVersion };
|
|
@@ -1,187 +1,195 @@
|
|
|
1
|
-
// Cohub control bridge for Pi. Self-contained: Node built-ins only, so it installs as one file.
|
|
2
1
|
import { createHash } from "node:crypto";
|
|
3
2
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
4
3
|
import { connect } from "node:net";
|
|
5
4
|
import { homedir } from "node:os";
|
|
6
5
|
import { dirname, join } from "node:path";
|
|
6
|
+
//#region src/runtime/native/pi-extension.ts
|
|
7
7
|
/** Bumped when the daemon and the extension must be installed together. */
|
|
8
|
-
|
|
8
|
+
const COHUB_PI_PROTOCOL = 1;
|
|
9
9
|
/** Pi's tools read the process environment when they run, so this reaches the next tool call. */
|
|
10
10
|
function applyEnvironment(env) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
else
|
|
17
|
-
process.env[key] = value;
|
|
18
|
-
}
|
|
11
|
+
for (const [key, value] of Object.entries(env ?? {})) {
|
|
12
|
+
if (!key.startsWith("COHUB_")) continue;
|
|
13
|
+
if (value === null) delete process.env[key];
|
|
14
|
+
else process.env[key] = value;
|
|
15
|
+
}
|
|
19
16
|
}
|
|
20
17
|
/** Runtime directory shared with the CLI; one socket per bound directory, hashed to stay short. */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
function controlSocketPath(root) {
|
|
19
|
+
const state = process.env.XDG_STATE_HOME?.trim() || join(homedir(), ".local", "state");
|
|
20
|
+
return join(state, "cohub", "control", `${createHash("sha256").update(root).digest("hex").slice(0, 32)}.sock`);
|
|
24
21
|
}
|
|
25
22
|
/** The nearest bound ancestor of `cwd`: a Runtime bound to a parent directory owns its subdirectories. */
|
|
26
23
|
function locateSocket(cwd) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return null;
|
|
41
|
-
directory = parent;
|
|
42
|
-
}
|
|
24
|
+
let directory;
|
|
25
|
+
try {
|
|
26
|
+
directory = realpathSync(cwd);
|
|
27
|
+
} catch {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
for (;;) {
|
|
31
|
+
const socket = controlSocketPath(directory);
|
|
32
|
+
if (existsSync(socket)) return socket;
|
|
33
|
+
const parent = dirname(directory);
|
|
34
|
+
if (parent === directory) return null;
|
|
35
|
+
directory = parent;
|
|
36
|
+
}
|
|
43
37
|
}
|
|
44
38
|
/** How often a missing or lost Runtime is looked for again. */
|
|
45
|
-
const RECONNECT_MS =
|
|
39
|
+
const RECONNECT_MS = 3e3;
|
|
46
40
|
const MESSAGE_FIELDS = ["message", "assistantMessageEvent"];
|
|
47
|
-
const TOOL_FIELDS = [
|
|
41
|
+
const TOOL_FIELDS = [
|
|
42
|
+
"toolCallId",
|
|
43
|
+
"toolName",
|
|
44
|
+
"args",
|
|
45
|
+
"result",
|
|
46
|
+
"partialResult",
|
|
47
|
+
"isError"
|
|
48
|
+
];
|
|
48
49
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
* Streamed events the daemon uses, with the fields it reads; everything else Pi emits stays local.
|
|
51
|
+
* An allowlist, since Pi adds fields across versions, some with the whole context (`turn_end`).
|
|
52
|
+
*/
|
|
52
53
|
const FORWARDED = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
agent_start: [],
|
|
55
|
+
agent_end: ["willRetry"],
|
|
56
|
+
agent_settled: [],
|
|
57
|
+
turn_start: [],
|
|
58
|
+
turn_end: ["message", "toolResults"],
|
|
59
|
+
message_start: MESSAGE_FIELDS,
|
|
60
|
+
message_update: MESSAGE_FIELDS,
|
|
61
|
+
message_end: MESSAGE_FIELDS,
|
|
62
|
+
tool_execution_start: TOOL_FIELDS,
|
|
63
|
+
tool_execution_update: TOOL_FIELDS,
|
|
64
|
+
tool_execution_end: TOOL_FIELDS
|
|
56
65
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
forwarded[field] = source[field];
|
|
63
|
-
return forwarded;
|
|
66
|
+
function forwardedEvent(name, event) {
|
|
67
|
+
const source = event ?? {};
|
|
68
|
+
const forwarded = { type: name };
|
|
69
|
+
for (const field of FORWARDED[name] ?? []) if (field in source) forwarded[field] = source[field];
|
|
70
|
+
return forwarded;
|
|
64
71
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
});
|
|
72
|
+
function cohub(pi) {
|
|
73
|
+
const marker = Symbol.for("cohub.pi.control");
|
|
74
|
+
const globals = globalThis;
|
|
75
|
+
if (globals[marker]) return;
|
|
76
|
+
globals[marker] = true;
|
|
77
|
+
let socket = null;
|
|
78
|
+
let context = null;
|
|
79
|
+
let buffer = "";
|
|
80
|
+
let retry = null;
|
|
81
|
+
let probedAt = 0;
|
|
82
|
+
const send = (message) => {
|
|
83
|
+
if (socket && !socket.destroyed) socket.write(`${JSON.stringify(message)}\n`);
|
|
84
|
+
};
|
|
85
|
+
const run = async (command) => {
|
|
86
|
+
if (!context) throw new Error("Pi session is not ready");
|
|
87
|
+
if (command.type === "abort") {
|
|
88
|
+
context.abort();
|
|
89
|
+
return { idle: context.isIdle() };
|
|
90
|
+
}
|
|
91
|
+
if (command.type === "context") {
|
|
92
|
+
applyEnvironment(command.env);
|
|
93
|
+
return { idle: context.isIdle() };
|
|
94
|
+
}
|
|
95
|
+
const idle = context.isIdle();
|
|
96
|
+
if (command.turnId && !idle) return {
|
|
97
|
+
idle,
|
|
98
|
+
accepted: false
|
|
99
|
+
};
|
|
100
|
+
if (idle && command.model && context.modelRegistry && pi.setModel) {
|
|
101
|
+
const model = context.modelRegistry.find(command.model.provider, command.model.id);
|
|
102
|
+
if (!model || !await pi.setModel(model)) throw new Error("Model is unavailable in this Pi");
|
|
103
|
+
}
|
|
104
|
+
if (idle && command.thinkingLevel && pi.setThinkingLevel) pi.setThinkingLevel(command.thinkingLevel);
|
|
105
|
+
if (command.turnId && !context.isIdle()) return {
|
|
106
|
+
idle: false,
|
|
107
|
+
accepted: false
|
|
108
|
+
};
|
|
109
|
+
applyEnvironment(command.env);
|
|
110
|
+
if (command.turnId) pi.appendEntry("cohub.turn", { turnId: command.turnId });
|
|
111
|
+
pi.sendUserMessage(command.content, idle ? void 0 : { deliverAs: command.deliverAs ?? "followUp" });
|
|
112
|
+
return {
|
|
113
|
+
idle,
|
|
114
|
+
accepted: true
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
const attach = (ctx) => {
|
|
118
|
+
context = ctx;
|
|
119
|
+
if (socket && !socket.destroyed) return;
|
|
120
|
+
if (Date.now() - probedAt < RECONNECT_MS) return;
|
|
121
|
+
probedAt = Date.now();
|
|
122
|
+
const path = locateSocket(ctx.cwd);
|
|
123
|
+
if (!path) return;
|
|
124
|
+
let endpoint = path;
|
|
125
|
+
if (process.platform === "win32") try {
|
|
126
|
+
endpoint = readFileSync(path, "utf8").trim();
|
|
127
|
+
} catch {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const current = connect(endpoint);
|
|
131
|
+
socket = current;
|
|
132
|
+
buffer = "";
|
|
133
|
+
current.on("connect", () => send({
|
|
134
|
+
type: "hello",
|
|
135
|
+
protocol: 1,
|
|
136
|
+
pid: process.pid,
|
|
137
|
+
cwd: ctx.cwd,
|
|
138
|
+
sessionId: ctx.sessionManager.getSessionId(),
|
|
139
|
+
sessionFile: ctx.sessionManager.getSessionFile() ?? null,
|
|
140
|
+
idle: ctx.isIdle()
|
|
141
|
+
}));
|
|
142
|
+
current.on("data", (bytes) => {
|
|
143
|
+
buffer += bytes.toString("utf8");
|
|
144
|
+
for (let end = buffer.indexOf("\n"); end >= 0; end = buffer.indexOf("\n")) {
|
|
145
|
+
const line = buffer.slice(0, end);
|
|
146
|
+
buffer = buffer.slice(end + 1);
|
|
147
|
+
if (!line) continue;
|
|
148
|
+
let command;
|
|
149
|
+
try {
|
|
150
|
+
command = JSON.parse(line);
|
|
151
|
+
} catch {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
run(command).then((result) => send({
|
|
155
|
+
type: "result",
|
|
156
|
+
id: command.id,
|
|
157
|
+
...result
|
|
158
|
+
}), (error) => send({
|
|
159
|
+
type: "error",
|
|
160
|
+
id: command.id,
|
|
161
|
+
message: error instanceof Error ? error.message : String(error)
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
current.on("error", () => void 0);
|
|
166
|
+
current.on("close", () => {
|
|
167
|
+
if (socket === current) socket = null;
|
|
168
|
+
retry ??= setTimeout(() => {
|
|
169
|
+
retry = null;
|
|
170
|
+
if (context) attach(context);
|
|
171
|
+
}, RECONNECT_MS);
|
|
172
|
+
retry.unref?.();
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
pi.on("session_start", (_event, ctx) => attach(ctx));
|
|
176
|
+
for (const name of Object.keys(FORWARDED)) pi.on(name, (event, ctx) => {
|
|
177
|
+
context = ctx;
|
|
178
|
+
if (!socket) attach(ctx);
|
|
179
|
+
send({
|
|
180
|
+
type: "event",
|
|
181
|
+
sessionId: ctx.sessionManager.getSessionId(),
|
|
182
|
+
event: forwardedEvent(name, event)
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
pi.on("session_shutdown", () => {
|
|
186
|
+
if (retry) clearTimeout(retry);
|
|
187
|
+
retry = null;
|
|
188
|
+
socket?.end();
|
|
189
|
+
socket = null;
|
|
190
|
+
context = null;
|
|
191
|
+
globals[marker] = false;
|
|
192
|
+
});
|
|
187
193
|
}
|
|
194
|
+
//#endregion
|
|
195
|
+
export { COHUB_PI_PROTOCOL, controlSocketPath, cohub as default, forwardedEvent };
|
package/dist/runtime/worker.js
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { serializeDiagnosticError } from "
|
|
1
|
+
import { t as enableEnvProxy } from "../chunks/env-proxy.js";
|
|
2
|
+
import { J as serializeDiagnosticError } from "../chunks/install.js";
|
|
3
|
+
import { t as runRuntime } from "../chunks/supervisor.js";
|
|
4
|
+
//#region src/runtime/worker.ts
|
|
5
|
+
enableEnvProxy();
|
|
3
6
|
const notify = (message) => {
|
|
4
|
-
|
|
5
|
-
if (process.connected)
|
|
6
|
-
process.send?.(message, () => undefined);
|
|
7
|
+
if (process.connected) process.send?.(message, () => void 0);
|
|
7
8
|
};
|
|
8
9
|
process.once("message", (config) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
runRuntime(config, (status) => {
|
|
11
|
+
notify({
|
|
12
|
+
type: "status",
|
|
13
|
+
status
|
|
14
|
+
});
|
|
15
|
+
}, void 0, (event) => {
|
|
16
|
+
notify({
|
|
17
|
+
type: "diagnostic",
|
|
18
|
+
event
|
|
19
|
+
});
|
|
20
|
+
}).catch((error) => {
|
|
21
|
+
notify({
|
|
22
|
+
type: "failed",
|
|
23
|
+
error: serializeDiagnosticError(error).message
|
|
24
|
+
});
|
|
25
|
+
process.exitCode = 1;
|
|
26
|
+
}).finally(() => {
|
|
27
|
+
if (process.connected) process.disconnect?.();
|
|
28
|
+
});
|
|
20
29
|
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neta-art/cohub-cli",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.25.0",
|
|
4
4
|
"description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -24,11 +24,7 @@
|
|
|
24
24
|
"NOTICE"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"
|
|
28
|
-
"@neta-art/generation": "0.2.15",
|
|
29
|
-
"commander": "^15.0.0",
|
|
30
|
-
"sharp": "^0.35.4",
|
|
31
|
-
"ws": "^8.21.3"
|
|
27
|
+
"sharp": "^0.35.4"
|
|
32
28
|
},
|
|
33
29
|
"publishConfig": {
|
|
34
30
|
"access": "public"
|
|
@@ -37,20 +33,23 @@
|
|
|
37
33
|
"@fontsource-variable/figtree": "^5.3.0",
|
|
38
34
|
"@fontsource-variable/geist": "^5.3.0",
|
|
39
35
|
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
36
|
+
"@neta-art/cohub": "13.16.0",
|
|
40
37
|
"@types/node": "26.6.4",
|
|
41
38
|
"@types/ws": "^8.18.1",
|
|
39
|
+
"commander": "^15.0.0",
|
|
42
40
|
"pixi.js": "^8.20.1",
|
|
43
41
|
"tsdown": "^0.22.14",
|
|
44
|
-
"typescript": "^7.0.2"
|
|
42
|
+
"typescript": "^7.0.2",
|
|
43
|
+
"ws": "^8.21.3"
|
|
45
44
|
},
|
|
46
45
|
"optionalDependencies": {
|
|
47
46
|
"@napi-rs/canvas": "^1.0.13"
|
|
48
47
|
},
|
|
49
48
|
"scripts": {
|
|
50
|
-
"build": "tsc -p tsconfig.
|
|
49
|
+
"build": "tsc -p tsconfig.json && tsdown && node --import tsx scripts/stamp-build.ts",
|
|
50
|
+
"startup": "node scripts/startup.mjs",
|
|
51
51
|
"verify:sandboxd": "node --import tsx scripts/verify-sandboxd-release.ts",
|
|
52
52
|
"verify:rtc": "node --import tsx scripts/verify-rtc-release.ts",
|
|
53
|
-
"verify:board-kernel": "node --import tsx scripts/verify-board-kernel.ts",
|
|
54
53
|
"test": "node ../../scripts/test/run.mjs 'tests/**/*.test.ts'",
|
|
55
54
|
"test:runtime": "node --import tsx --test tests/runtime-*.integration.ts",
|
|
56
55
|
"test:runtime:native": "node --import tsx tests/runtime-native.smoke.ts",
|
package/dist/about.d.ts
DELETED
package/dist/about.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { execFile } from "node:child_process";
|
|
2
|
-
import { constants } from "node:fs";
|
|
3
|
-
import { access, realpath, stat } from "node:fs/promises";
|
|
4
|
-
import { delimiter, join } from "node:path";
|
|
5
|
-
import { controlRuntimeInstance, runtimeInstanceDirectory } from "./runtime/instance.js";
|
|
6
|
-
import { readRuntimeSpaceBindings } from "./runtime/space-binding.js";
|
|
7
|
-
import { CLI_VERSION, cliCommit } from "./version.js";
|
|
8
|
-
const PROBE_TIMEOUT_MS = 5_000;
|
|
9
|
-
const STATUS_TIMEOUT_MS = 1_000;
|
|
10
|
-
const PROBE_TTL_MS = 5 * 60_000;
|
|
11
|
-
let probe = null;
|
|
12
|
-
export async function describeCli(env, identity) {
|
|
13
|
-
const [path, runtimes] = await Promise.all([pathCli(env), identity ? runningRuntimes(identity) : []]);
|
|
14
|
-
return { version: CLI_VERSION, commit: cliCommit(), node: process.versions.node, path, runtimes };
|
|
15
|
-
}
|
|
16
|
-
async function pathCli(env) {
|
|
17
|
-
const path = await findOnPath("cohub", await searchPath(env), env);
|
|
18
|
-
if (!path)
|
|
19
|
-
return null;
|
|
20
|
-
// A shim keeps its file across upgrades, so a remembered answer also expires.
|
|
21
|
-
const target = await realpath(path).catch(() => path);
|
|
22
|
-
const key = `${target}\0${await stat(target).then((info) => info.mtimeMs, () => 0)}`;
|
|
23
|
-
if (probe?.key !== key || Date.now() - probe.at > PROBE_TTL_MS)
|
|
24
|
-
probe = { key, at: Date.now(), version: askVersion(path, env) };
|
|
25
|
-
const current = probe;
|
|
26
|
-
const version = await current.version;
|
|
27
|
-
if (!version && probe === current)
|
|
28
|
-
probe = null;
|
|
29
|
-
return { path, version };
|
|
30
|
-
}
|
|
31
|
-
/** A GUI app's own PATH is stale on Windows; the registry holds what a new terminal gets. */
|
|
32
|
-
async function searchPath(env) {
|
|
33
|
-
const own = (env.PATH ?? env.Path ?? "").split(delimiter);
|
|
34
|
-
if (process.platform !== "win32")
|
|
35
|
-
return own.filter(Boolean);
|
|
36
|
-
const read = (key) => new Promise((resolve) => execFile("reg.exe", ["query", key, "/v", "Path"], { timeout: PROBE_TIMEOUT_MS, windowsHide: true }, (_error, stdout) => {
|
|
37
|
-
resolve(/Path\s+REG_(?:EXPAND_)?SZ\s+(.*)/i.exec(stdout ?? "")?.[1]?.trim() ?? "");
|
|
38
|
-
}));
|
|
39
|
-
const [machine, user] = await Promise.all([read("HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"), read("HKCU\\Environment")]);
|
|
40
|
-
const expand = (value) => value.replace(/%([^%]+)%/g, (whole, name) => env[name] ?? env[name.toUpperCase()] ?? whole);
|
|
41
|
-
return [...new Set([machine, user].flatMap((value) => expand(value).split(delimiter)).concat(own).filter(Boolean))];
|
|
42
|
-
}
|
|
43
|
-
async function findOnPath(name, directories, env) {
|
|
44
|
-
const windows = process.platform === "win32";
|
|
45
|
-
const extensions = windows ? (env.PATHEXT ?? ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean) : [""];
|
|
46
|
-
for (const directory of directories) {
|
|
47
|
-
for (const extension of extensions) {
|
|
48
|
-
const candidate = join(directory, name + extension.toLowerCase());
|
|
49
|
-
if (await access(candidate, windows ? constants.F_OK : constants.X_OK).then(() => true, () => false))
|
|
50
|
-
return candidate;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
function askVersion(path, env) {
|
|
56
|
-
// Node refuses to spawn batch files directly; cmd.exe runs them with the path quoted verbatim.
|
|
57
|
-
const [file, args, verbatim] = /\.(cmd|bat)$/i.test(path)
|
|
58
|
-
? [env.ComSpec ?? "cmd.exe", ["/d", "/s", "/c", `""${path}" --version"`], true]
|
|
59
|
-
: [path, ["--version"], false];
|
|
60
|
-
return new Promise((resolve) => execFile(file, args, { env, timeout: PROBE_TIMEOUT_MS, windowsHide: true, windowsVerbatimArguments: verbatim }, (error, stdout) => {
|
|
61
|
-
resolve(error ? null : /\d+\.\d+\.\d+\S*/.exec(stdout)?.[0] ?? null);
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
async function runningRuntimes(identity) {
|
|
65
|
-
const { bindings } = await readRuntimeSpaceBindings().catch(() => ({ bindings: [] }));
|
|
66
|
-
const spaces = new Map(bindings.filter((binding) => binding.key === identity).map((binding) => [binding.spaceId, binding.root]));
|
|
67
|
-
const statuses = await Promise.all([...spaces.keys()].slice(-256).map((spaceId) => controlRuntimeInstance(runtimeInstanceDirectory(identity, spaceId), "status", {}, STATUS_TIMEOUT_MS).catch(() => null)));
|
|
68
|
-
return statuses.flatMap((response) => response
|
|
69
|
-
? [{ spaceId: response.status.spaceId, root: response.status.root, version: response.status.version ?? null }]
|
|
70
|
-
: []);
|
|
71
|
-
}
|
package/dist/app-download.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AppGetResponse } from "@neta-art/cohub";
|
|
2
|
-
type DownloadResult = {
|
|
3
|
-
appId: string;
|
|
4
|
-
version: number;
|
|
5
|
-
kind: "file" | "directory";
|
|
6
|
-
output: string;
|
|
7
|
-
files: number;
|
|
8
|
-
bytes: number;
|
|
9
|
-
};
|
|
10
|
-
export declare function downloadApp(detail: AppGetResponse, outputOption?: string, fetcher?: typeof fetch): Promise<DownloadResult>;
|
|
11
|
-
export {};
|