glimmervoid 0.30.0 → 0.31.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/README.md +1 -1
- package/dist/bin/glimmervoid.js +140 -57
- package/dist/chunks/{adapters-Dho1VSY5.js → adapters-ClA_GbtA.js} +1 -1
- package/dist/chunks/{adapters-zPDx1Xox.js → adapters-gn7ulNO4.js} +32 -12
- package/dist/chunks/agent-api-cli-DAA7Jx8N.js +135 -0
- package/dist/chunks/{agent-api-core-Dz0r21y9.js → agent-api-core-hVcT26JW.js} +10 -1
- package/dist/chunks/{agent-setup-cli-B5Atxr3F.js → agent-setup-cli-CiJSDWSo.js} +11 -28
- package/dist/chunks/backoff-DjVpfHk7.js +14 -0
- package/dist/chunks/child-process-safe-BKPZ-5qQ.js +2 -0
- package/dist/chunks/coerce-NSst8oRP.js +32 -0
- package/dist/chunks/{contracts-DGkKNh9W.js → config-W1Sv-iPK.js} +358 -1682
- package/dist/chunks/{config-store-mm7MgzoL.js → config-store-BCy4FHNG.js} +583 -327
- package/dist/chunks/config-store-DbBp7LJZ.js +2 -0
- package/dist/chunks/contracts-3LkrilQX.js +2078 -0
- package/dist/chunks/{grok-DuU8xVLZ.js → grok-CXKeSt2z.js} +24 -20
- package/dist/chunks/{hook-relay-core-BHfYFnYV.js → hook-relay-core-DA_bz2KA.js} +10 -5
- package/dist/chunks/{hook-tools-pSJia7ks.js → hook-tools-UX2fmt81.js} +3 -5
- package/dist/chunks/{ingest-editor-core-BuI1gMF_.js → ingest-editor-core-vR6Wv6bP.js} +24 -13
- package/dist/chunks/json-core-dfa_7Fak.js +23 -0
- package/dist/chunks/json-file-oEH9vt-0.js +352 -0
- package/dist/chunks/knowledge-graph-cli-D2tt5hPn.js +1354 -0
- package/dist/chunks/{loopback-post-C7C22eYi.js → loopback-post-DepQfdcM.js} +40 -26
- package/dist/chunks/{main-CuIZQPhZ.js → main-DyTCWIu2.js} +28498 -21129
- package/dist/chunks/{node-pty-preflight-CK1knGIR.js → node-pty-preflight-C8QIlrtU.js} +4 -6
- package/dist/chunks/{pair-cli-w-gCAF-1.js → pair-cli-BbCBfd6l.js} +4 -3
- package/dist/chunks/paths-CeJl2Vcg.js +55 -0
- package/dist/chunks/{remote-config-C2ytQwrs.js → remote-config-DKIH_VxM.js} +36 -40
- package/dist/chunks/{rtk-hook-core-Bl6gYHPN.js → rtk-hook-core-BmEz2aq9.js} +3 -5
- package/dist/chunks/{rtk-resolver-CLo-gZzw.js → rtk-resolver-BGDzw5XK.js} +2 -2
- package/dist/chunks/rtk-resolver-D4Nke1Fr.js +2 -0
- package/dist/chunks/{runtime-paths-Ci_ksSkj.js → runtime-paths-BPoxENmK.js} +2 -6
- package/dist/chunks/runtime-paths-DU5jBEEO.js +2 -0
- package/dist/chunks/{sandbox-deps-Dd5-kZnf.js → sandbox-deps-BPKE-ylr.js} +16 -13
- package/dist/chunks/sandbox-proxy-core-hnQgKR0T.js +27 -0
- package/dist/chunks/{session-Cez8aIWg.js → session-fc4pFbon.js} +8 -2
- package/dist/chunks/text-DoirglWV.js +21 -0
- package/dist/chunks/timer-deps-u2DAQLok.js +15 -0
- package/dist/chunks/{visions-cli-BXQFIBCX.js → visions-cli-CT5rjiwf.js} +1 -1
- package/dist/chunks/{visions-setup-CvVnOe1r.js → visions-setup-BmOkI-QE.js} +20 -357
- package/dist/client/assets/index-C6KD8lgZ.css +1 -0
- package/dist/client/assets/index-CThQEAEy.js +249 -0
- package/dist/client/fonts/CommitMono-OFL.txt +92 -0
- package/dist/client/fonts/commit-mono-400-italic.woff2 +0 -0
- package/dist/client/fonts/commit-mono-400-regular.woff2 +0 -0
- package/dist/client/fonts/commit-mono-700-italic.woff2 +0 -0
- package/dist/client/fonts/commit-mono-700-regular.woff2 +0 -0
- package/dist/client/index.html +7 -24
- package/dist/client/octicons-LICENSE.txt +21 -0
- package/dist/scripts/postinstall-path-check.js +1 -1
- package/dist/server/index.js +3 -3
- package/dist/session/command-hook-relay.js +1 -1
- package/dist/session/hook-relay.js +3 -3
- package/dist/session/hook-tool-relay.js +2 -2
- package/dist/session/sandbox-open-launcher.js +79 -0
- package/dist/session/statusline-relay.js +8 -18
- package/dist/session/visions-relay.js +20 -11
- package/package.json +4 -1
- package/dist/chunks/agent-api-cli-D0MmtEdz.js +0 -71
- package/dist/chunks/child-process-safe-DvQjXsgz.js +0 -2
- package/dist/chunks/config-store-CC8T3okC.js +0 -2
- package/dist/chunks/ingest-core-DWI1Mbu4.js +0 -342
- package/dist/chunks/rtk-resolver-CMQAidlI.js +0 -2
- package/dist/chunks/runtime-paths-JLrZ3wyi.js +0 -2
- package/dist/client/assets/index-B1MFijjb.css +0 -1
- package/dist/client/assets/index-CU1iPPdn.js +0 -249
- package/dist/chunks/{child-process-safe-DRGsp0TE.js → child-process-safe-Ch-Zgxqs.js} +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Copyright (c) 2023 Eigil Nikolajsen (eigi0088@gmail.com)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font creation
|
|
14
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
15
|
+
open framework in which fonts may be shared and improved in partnership
|
|
16
|
+
with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply
|
|
25
|
+
to any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software components as
|
|
36
|
+
distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
39
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
40
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
41
|
+
new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION AND CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
49
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
50
|
+
Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components,
|
|
53
|
+
in Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
64
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
65
|
+
presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created
|
|
77
|
+
using the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/client/index.html
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
<meta name="color-scheme" content="dark light">
|
|
7
7
|
<link rel="icon" type="image/svg+xml" href="/assets/favicon-CKygeLwW.svg">
|
|
8
8
|
<title>Glimmervoid</title>
|
|
9
|
-
<style>html,body{background:var(--bg,#0a0810);height:100%;color:var(--text,#c8c0e0);margin:0;padding:0
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
9
|
+
<style>html,body{background:var(--bg,#0a0810);height:100%;color:var(--text,#c8c0e0);font-family:var(--font-mono,"CommitMono", "Cascadia Code", "Fira Code", "Consolas", "Menlo", monospace);margin:0;padding:0}.app-shell{display:none}html:not([data-layout=phone]) .app-ready .app-shell{display:contents}.loading-screen{z-index:9999;background:#0a0810;flex-direction:column;justify-content:center;align-items:center;gap:20px;transition:opacity .3s;display:flex;position:fixed;inset:0}.loading-screen.fade-out{opacity:0;pointer-events:none}.loading-title{letter-spacing:.1em;color:#e8e0ff;text-transform:uppercase;font-family:CommitMono,Cascadia Code,Fira Code,Consolas,Menlo,monospace;font-size:20px;font-weight:700}.loading-title:before{content:"▸";color:#c084fc}.loading-status{color:#8276b0;letter-spacing:.04em;font-family:CommitMono,Cascadia Code,Fira Code,Consolas,Menlo,monospace;font-size:12px}.loading-spinner{border:2px solid #2a2440;border-top-color:#c084fc;border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.shutdown-screen{z-index:9999;-webkit-backdrop-filter:blur();backdrop-filter:blur();pointer-events:none;opacity:0;background:#0a081000;flex-direction:column;justify-content:center;align-items:center;gap:20px;transition:background .4s,-webkit-backdrop-filter .4s,backdrop-filter .4s,opacity .3s;display:flex;position:fixed;inset:0}.shutdown-screen.active{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:auto;opacity:1;background:#0a0810eb}.shutdown-status{color:#8276b0;letter-spacing:.04em;font-family:CommitMono,Cascadia Code,Fira Code,Consolas,Menlo,monospace;font-size:12px;transition:color .3s}.shutdown-screen.done .loading-spinner{opacity:.3;border-color:#2a2440;animation:none}.shutdown-screen.done .shutdown-status{color:#4a4268}</style>
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-CThQEAEy.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C6KD8lgZ.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div class="loading-screen" id="loading-screen">
|
|
@@ -37,21 +37,14 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
<div class="header-tabs" id="header-tabs" role="tablist" aria-label="Primary views">
|
|
40
|
-
<button class="header-tab" id="tab-focus" type="button" role="tab" aria-selected="true" aria-controls="view-focus" tabindex="0">Focus</button>
|
|
41
|
-
<button class="header-tab" id="tab-calm" type="button" role="tab" aria-selected="false" aria-controls="view-calm" tabindex="-1" hidden>Calm</button>
|
|
42
|
-
<button class="header-tab" id="tab-prs" type="button" role="tab" aria-selected="false" aria-controls="view-prs" tabindex="-1">Reviews<span class="tab-activity" id="tab-prs-activity" aria-hidden="true"></span></button>
|
|
43
|
-
<button class="header-tab" id="tab-issues" type="button" role="tab" aria-selected="false" aria-controls="view-issues" tabindex="-1">Issues</button>
|
|
44
|
-
<button class="header-tab" id="tab-usage" type="button" role="tab" aria-selected="false" aria-controls="view-usage" tabindex="-1">Usage<span class="tab-activity" id="tab-usage-activity" aria-hidden="true"></span></button>
|
|
45
|
-
<button class="header-tab" id="tab-radar" type="button" role="tab" aria-selected="false" aria-controls="view-radar" tabindex="-1">Radar<span class="tab-activity" id="tab-radar-activity" aria-hidden="true"></span></button>
|
|
46
|
-
<button class="header-tab" id="tab-visions" type="button" role="tab" aria-selected="false" aria-controls="view-visions" tabindex="-1">Visions<span class="tab-activity" id="tab-visions-activity" aria-hidden="true"></span></button>
|
|
47
|
-
<button class="header-tab" id="tab-hooks" type="button" role="tab" aria-selected="false" aria-controls="view-hooks" tabindex="-1">Hooks</button>
|
|
48
|
-
<button class="header-tab" id="tab-trace" type="button" role="tab" aria-selected="false" aria-controls="view-trace" tabindex="-1">Trace</button>
|
|
49
|
-
<button class="header-tab" id="tab-benchmarks" type="button" role="tab" aria-selected="false" aria-controls="view-benchmarks" tabindex="-1" hidden>Bench</button>
|
|
50
|
-
<button class="header-tab" id="tab-settings" type="button" role="tab" aria-selected="false" aria-controls="view-settings" tabindex="-1">Settings</button>
|
|
51
40
|
</div>
|
|
52
41
|
</div>
|
|
53
42
|
<div class="header-right">
|
|
54
43
|
<span class="header-aggregate" id="aggregate-status" role="status" aria-live="polite"></span>
|
|
44
|
+
<div class="celebration-tray" id="celebration-tray" data-state="empty">
|
|
45
|
+
<button class="btn-celebrations" id="btn-celebrations" type="button" title="Play queued merge celebrations" aria-label="Play queued merge celebrations"><svg class="btn-celebrations-icon" viewBox="0 0 16 16" width="15" height="15" aria-hidden="true" focusable="false"><path d="M4.5 2h7v3.5a3.5 3.5 0 0 1-7 0z" /><path d="M4.5 3.5H2.5a2 2 0 0 0 2 2.5" /><path d="M11.5 3.5h2a2 2 0 0 1-2 2.5" /><path d="M8 9v3" /><path d="M5.5 14h5" /></svg></button>
|
|
46
|
+
<span class="celebration-tray-count" id="celebration-tray-count" aria-live="polite"></span>
|
|
47
|
+
</div>
|
|
55
48
|
<button class="btn-add-header" id="btn-add-session-header" type="button" title="Add a new session">+ Session</button>
|
|
56
49
|
<button class="btn-help" id="btn-help" type="button" title="Keyboard shortcuts" aria-label="Keyboard shortcuts and version">?</button>
|
|
57
50
|
<button class="btn-mute" id="btn-mute" type="button" title="Mute alerts" aria-label="Mute alerts" aria-pressed="false">♪</button>
|
|
@@ -84,16 +77,6 @@
|
|
|
84
77
|
<main class="app-main" id="app-main">
|
|
85
78
|
<section class="sessions" id="sessions-container">
|
|
86
79
|
</section>
|
|
87
|
-
<section class="calm-view" id="view-calm" role="tabpanel" aria-labelledby="tab-calm" hidden></section>
|
|
88
|
-
<section class="radar-view" id="view-radar" role="tabpanel" aria-labelledby="tab-radar" hidden></section>
|
|
89
|
-
<section class="pr-view" id="view-prs" role="tabpanel" aria-labelledby="tab-prs" hidden></section>
|
|
90
|
-
<section class="issues-view" id="view-issues" role="tabpanel" aria-labelledby="tab-issues" hidden></section>
|
|
91
|
-
<section class="usage-view" id="view-usage" role="tabpanel" aria-labelledby="tab-usage" hidden></section>
|
|
92
|
-
<section class="visions-view" id="view-visions" role="tabpanel" aria-labelledby="tab-visions" hidden></section>
|
|
93
|
-
<section class="hooks-view" id="view-hooks" role="tabpanel" aria-labelledby="tab-hooks" hidden></section>
|
|
94
|
-
<section class="trace-view" id="view-trace" role="tabpanel" aria-labelledby="tab-trace" hidden></section>
|
|
95
|
-
<section class="bench-view" id="view-benchmarks" role="tabpanel" aria-labelledby="tab-benchmarks" hidden></section>
|
|
96
|
-
<section class="settings-view" id="view-settings" role="tabpanel" aria-labelledby="tab-settings" hidden></section>
|
|
97
80
|
<section class="focus-view" id="view-focus" role="tabpanel" aria-labelledby="tab-focus" hidden>
|
|
98
81
|
<div class="focus-rail" id="focus-rail" role="listbox" aria-label="Session roster" aria-keyshortcuts="ArrowUp ArrowDown Alt+ArrowUp Alt+ArrowDown"></div>
|
|
99
82
|
<hr class="focus-rail-resizer" id="focus-rail-resizer" aria-orientation="vertical" aria-label="Resize session rail" aria-valuenow="240" tabindex="0">
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GitHub Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as sandboxInstallNotice, r as probeSandboxDependencies } from "../chunks/sandbox-deps-
|
|
1
|
+
import { a as sandboxInstallNotice, r as probeSandboxDependencies } from "../chunks/sandbox-deps-BPKE-ylr.js";
|
|
2
2
|
import { n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
//#region scripts/postinstall-path-check.ts
|
package/dist/server/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as formatNodePtyBootRefusal, t as probeNodePty } from "../chunks/node-pty-preflight-
|
|
2
|
-
import { a as packageRoot } from "../chunks/runtime-paths-
|
|
1
|
+
import { a as formatNodePtyBootRefusal, t as probeNodePty } from "../chunks/node-pty-preflight-C8QIlrtU.js";
|
|
2
|
+
import { a as packageRoot } from "../chunks/runtime-paths-BPoxENmK.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -87,6 +87,6 @@ if (!nodePty.ok) {
|
|
|
87
87
|
}));
|
|
88
88
|
process.exit(1);
|
|
89
89
|
}
|
|
90
|
-
await import("../chunks/main-
|
|
90
|
+
await import("../chunks/main-DyTCWIu2.js");
|
|
91
91
|
//#endregion
|
|
92
92
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as readStdin } from "../chunks/relay-stdin-CpHvLu6M.js";
|
|
2
|
-
import { t as postPayload } from "../chunks/loopback-post-
|
|
2
|
+
import { t as postPayload } from "../chunks/loopback-post-DepQfdcM.js";
|
|
3
3
|
import { n as sessionStartContextOutput } from "../chunks/refocus-core-BKQKllq7.js";
|
|
4
4
|
//#region session/command-hook-relay.ts
|
|
5
5
|
async function main(argv = process.argv.slice(2), stdin = process.stdin, stdout = process.stdout) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as readStdin } from "../chunks/relay-stdin-CpHvLu6M.js";
|
|
2
|
-
import { r as decideRelayPost } from "../chunks/hook-relay-core-
|
|
3
|
-
import { n as postToLoopback } from "../chunks/loopback-post-
|
|
2
|
+
import { r as decideRelayPost } from "../chunks/hook-relay-core-DA_bz2KA.js";
|
|
3
|
+
import { n as postToLoopback } from "../chunks/loopback-post-DepQfdcM.js";
|
|
4
4
|
//#region session/hook-relay.ts
|
|
5
5
|
async function main(argv = process.argv.slice(2), stdin = process.stdin, env = process.env) {
|
|
6
6
|
const [event] = argv;
|
|
@@ -16,7 +16,7 @@ async function main(argv = process.argv.slice(2), stdin = process.stdin, env = p
|
|
|
16
16
|
};
|
|
17
17
|
return {
|
|
18
18
|
code: 0,
|
|
19
|
-
reason: (await postToLoopback(verdict.url, body)).reason
|
|
19
|
+
reason: (await postToLoopback(verdict.url, body, env)).reason
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
if (process.argv[1] === import.meta.filename) main().then((result) => process.exit(result.code)).catch(() => process.exit(0));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as spawn } from "../chunks/child-process-safe-
|
|
1
|
+
import { o as spawn } from "../chunks/child-process-safe-Ch-Zgxqs.js";
|
|
2
2
|
import { t as readStdin } from "../chunks/relay-stdin-CpHvLu6M.js";
|
|
3
|
-
import { a as SANE_YOLO_PATH_ENV, n as RTK_PATH_ENV, r as normalizeRtkHookResponse } from "../chunks/rtk-hook-core-
|
|
3
|
+
import { a as SANE_YOLO_PATH_ENV, n as RTK_PATH_ENV, r as normalizeRtkHookResponse } from "../chunks/rtk-hook-core-BmEz2aq9.js";
|
|
4
4
|
//#region session/hook-tool-relay.ts
|
|
5
5
|
var RTK_TIMEOUT_MS = 3e3;
|
|
6
6
|
function runHookTool(toolId, binPath, body) {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { r as errorMessage } from "../chunks/text-DoirglWV.js";
|
|
2
|
+
import { o as spawn } from "../chunks/child-process-safe-Ch-Zgxqs.js";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import { FilesystemConfigSchema, SandboxManager } from "@anthropic-ai/sandbox-runtime";
|
|
5
|
+
//#region session/sandbox-open-launcher.ts
|
|
6
|
+
var FORWARDED_SIGNALS = [
|
|
7
|
+
"SIGINT",
|
|
8
|
+
"SIGTERM",
|
|
9
|
+
"SIGHUP"
|
|
10
|
+
];
|
|
11
|
+
var OPEN_NETWORK = { allowAllUnixSockets: false };
|
|
12
|
+
function fieldOf(record, field) {
|
|
13
|
+
if (typeof record !== "object" || record === null) return void 0;
|
|
14
|
+
return Reflect.get(record, field);
|
|
15
|
+
}
|
|
16
|
+
function shellQuote(word) {
|
|
17
|
+
return `'${word.replace(/'/g, `'\\''`)}'`;
|
|
18
|
+
}
|
|
19
|
+
function readOpenPolicy(policyPath) {
|
|
20
|
+
const policy = JSON.parse(fs.readFileSync(policyPath, "utf8"));
|
|
21
|
+
if (fieldOf(fieldOf(policy, "network"), "allowedDomains") !== void 0) throw new Error("a policy with a domain list must run through the sandbox runtime CLI");
|
|
22
|
+
return {
|
|
23
|
+
network: OPEN_NETWORK,
|
|
24
|
+
filesystem: FilesystemConfigSchema.parse(fieldOf(policy, "filesystem"))
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function exitCodeFor(code, signal) {
|
|
28
|
+
if (signal === null) return code ?? 0;
|
|
29
|
+
return FORWARDED_SIGNALS.some((forwarded) => forwarded === signal) ? 0 : 1;
|
|
30
|
+
}
|
|
31
|
+
async function launchInOpenNetworkSandbox() {
|
|
32
|
+
const [policyPath, ...command] = process.argv.slice(2);
|
|
33
|
+
if (!policyPath || command.length === 0) throw new Error("usage: sandbox-open-launcher <policy file> <command> [arguments]");
|
|
34
|
+
const openPolicy = readOpenPolicy(policyPath);
|
|
35
|
+
const dependencies = SandboxManager.checkDependencies();
|
|
36
|
+
const dependencyProblems = [...dependencies.errors, ...dependencies.warnings];
|
|
37
|
+
if (dependencyProblems.length > 0) throw new Error(`the sandbox runtime cannot start: ${dependencyProblems.join("; ")}`);
|
|
38
|
+
const beforeSpawn = { interruptedBy: null };
|
|
39
|
+
const interrupted = new AbortController();
|
|
40
|
+
let child;
|
|
41
|
+
for (const signal of FORWARDED_SIGNALS) process.on(signal, () => {
|
|
42
|
+
if (child !== void 0) {
|
|
43
|
+
child.kill(signal);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
beforeSpawn.interruptedBy ??= signal;
|
|
47
|
+
interrupted.abort();
|
|
48
|
+
});
|
|
49
|
+
const exitWhenInterrupted = () => {
|
|
50
|
+
if (beforeSpawn.interruptedBy !== null) process.exit(exitCodeFor(null, beforeSpawn.interruptedBy));
|
|
51
|
+
};
|
|
52
|
+
await SandboxManager.initialize(openPolicy);
|
|
53
|
+
const commandLine = command.map(shellQuote).join(" ");
|
|
54
|
+
const wrapped = await SandboxManager.wrapWithSandboxArgv(commandLine, void 0, void 0, interrupted.signal).catch((wrapFailure) => {
|
|
55
|
+
exitWhenInterrupted();
|
|
56
|
+
throw wrapFailure;
|
|
57
|
+
});
|
|
58
|
+
const [shell, ...shellArgs] = wrapped.argv;
|
|
59
|
+
if (!shell || shellArgs.at(-1) === commandLine) throw new Error("the sandbox runtime returned the command unwrapped");
|
|
60
|
+
exitWhenInterrupted();
|
|
61
|
+
child = spawn(shell, shellArgs, {
|
|
62
|
+
stdio: "inherit",
|
|
63
|
+
env: wrapped.env
|
|
64
|
+
});
|
|
65
|
+
child.on("error", (error) => {
|
|
66
|
+
console.error(`sandbox launcher: ${error.message}`);
|
|
67
|
+
process.exit(1);
|
|
68
|
+
});
|
|
69
|
+
child.on("exit", (code, signal) => {
|
|
70
|
+
SandboxManager.cleanupAfterCommand();
|
|
71
|
+
process.exit(exitCodeFor(code, signal));
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
launchInOpenNetworkSandbox().catch((error) => {
|
|
75
|
+
console.error(`sandbox launcher: ${errorMessage(error)}`);
|
|
76
|
+
process.exit(1);
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { o as spawn } from "../chunks/child-process-safe-
|
|
1
|
+
import { o as spawn } from "../chunks/child-process-safe-Ch-Zgxqs.js";
|
|
2
2
|
import { t as readStdin } from "../chunks/relay-stdin-CpHvLu6M.js";
|
|
3
|
-
import { t as postPayload } from "../chunks/loopback-post-
|
|
3
|
+
import { t as postPayload } from "../chunks/loopback-post-DepQfdcM.js";
|
|
4
|
+
import { n as isRecord } from "../chunks/coerce-NSst8oRP.js";
|
|
5
|
+
import { n as parseJsonRecord } from "../chunks/json-core-dfa_7Fak.js";
|
|
4
6
|
//#region session/statusline-relay.ts
|
|
5
7
|
var NO_CHAIN = "-";
|
|
6
|
-
function isPlainObject(value) {
|
|
7
|
-
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
8
|
-
}
|
|
9
8
|
function decodeChainCommand(encoded) {
|
|
10
9
|
if (!encoded || encoded === "-") return null;
|
|
11
10
|
try {
|
|
@@ -17,22 +16,13 @@ function decodeChainCommand(encoded) {
|
|
|
17
16
|
function fallbackLine(payload) {
|
|
18
17
|
const parts = [];
|
|
19
18
|
const modelField = payload?.model;
|
|
20
|
-
const model =
|
|
19
|
+
const model = isRecord(modelField) ? modelField.display_name : void 0;
|
|
21
20
|
if (typeof model === "string" && model.trim()) parts.push(model.trim());
|
|
22
21
|
const costField = payload?.cost;
|
|
23
|
-
const cost =
|
|
22
|
+
const cost = isRecord(costField) ? costField.total_cost_usd : void 0;
|
|
24
23
|
if (typeof cost === "number" && Number.isFinite(cost) && cost > 0) parts.push(`$${cost.toFixed(2)}`);
|
|
25
24
|
return parts.join(" ");
|
|
26
25
|
}
|
|
27
|
-
function parsePayload(raw) {
|
|
28
|
-
try {
|
|
29
|
-
const parsed = JSON.parse(String(raw));
|
|
30
|
-
if (isPlainObject(parsed)) return parsed;
|
|
31
|
-
return null;
|
|
32
|
-
} catch {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
26
|
function runChain(command, stdinBody) {
|
|
37
27
|
return new Promise((resolve) => {
|
|
38
28
|
let child;
|
|
@@ -69,7 +59,7 @@ async function main(argv = process.argv.slice(2), stdin = process.stdin, stdout
|
|
|
69
59
|
const chainCommand = decodeChainCommand(chainEncoded);
|
|
70
60
|
const post = postUrl ? postPayload(postUrl, raw) : Promise.resolve();
|
|
71
61
|
if (!chainCommand) {
|
|
72
|
-
const line = fallbackLine(
|
|
62
|
+
const line = fallbackLine(parseJsonRecord(raw));
|
|
73
63
|
if (line) stdout.write(`${line}\n`);
|
|
74
64
|
await post;
|
|
75
65
|
return 0;
|
|
@@ -79,4 +69,4 @@ async function main(argv = process.argv.slice(2), stdin = process.stdin, stdout
|
|
|
79
69
|
}
|
|
80
70
|
if (process.argv[1] === import.meta.filename) main().then((code) => process.exit(code)).catch(() => process.exit(0));
|
|
81
71
|
//#endregion
|
|
82
|
-
export { NO_CHAIN, decodeChainCommand, fallbackLine, main
|
|
72
|
+
export { NO_CHAIN, decodeChainCommand, fallbackLine, main };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DFt-TemS.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as isRecord } from "../chunks/coerce-NSst8oRP.js";
|
|
3
|
+
import { d as applyDidOpen, f as createDocStore, h as getDoc, l as applyDidChange, m as formatRange, t as ACTIVITY_METHOD, u as applyDidClose, v as listDocs, x as uriOfParams } from "../chunks/ingest-editor-core-vR6Wv6bP.js";
|
|
4
|
+
import { r as nextBackoffMs } from "../chunks/backoff-DjVpfHk7.js";
|
|
5
|
+
import { n as unrefTimer } from "../chunks/timer-deps-u2DAQLok.js";
|
|
3
6
|
import fs from "node:fs";
|
|
4
7
|
import os from "node:os";
|
|
5
8
|
import WebSocket from "ws";
|
|
@@ -215,7 +218,7 @@ var CODE_ACTION_METHOD = "textDocument/codeAction";
|
|
|
215
218
|
var APPLY_EDIT_METHOD = "workspace/applyEdit";
|
|
216
219
|
var CODE_ACTION_TIMEOUT_MS = 2e3;
|
|
217
220
|
function asDocumentParams(params) {
|
|
218
|
-
if (
|
|
221
|
+
if (isRecord(params)) return params;
|
|
219
222
|
return null;
|
|
220
223
|
}
|
|
221
224
|
function parsePortValue(value) {
|
|
@@ -265,8 +268,13 @@ function readConfiguredPort(env = process.env, fsApi = fs) {
|
|
|
265
268
|
return null;
|
|
266
269
|
}
|
|
267
270
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
271
|
+
function retryDelayMs(attempt) {
|
|
272
|
+
return nextBackoffMs({
|
|
273
|
+
attempt,
|
|
274
|
+
baseMs: INITIAL_RETRY_MS,
|
|
275
|
+
maxMs: MAX_RETRY_MS,
|
|
276
|
+
jitter: "none"
|
|
277
|
+
});
|
|
270
278
|
}
|
|
271
279
|
var SYNC_KIND_INCREMENTAL = 2;
|
|
272
280
|
function initializeResult() {
|
|
@@ -353,7 +361,7 @@ function createRelay({ argv = process.argv.slice(2), env = process.env, stdin =
|
|
|
353
361
|
let ws = null;
|
|
354
362
|
let retryTimer = null;
|
|
355
363
|
let stableConnectionTimer = null;
|
|
356
|
-
let
|
|
364
|
+
let retryAttempt = 1;
|
|
357
365
|
let nextPortIndex = 0;
|
|
358
366
|
let isStopping = false;
|
|
359
367
|
const pendingCodeActionById = /* @__PURE__ */ new Map();
|
|
@@ -384,13 +392,14 @@ function createRelay({ argv = process.argv.slice(2), env = process.env, stdin =
|
|
|
384
392
|
}
|
|
385
393
|
function scheduleReconnect(port) {
|
|
386
394
|
if (isStopping || retryTimer) return;
|
|
395
|
+
const retryMs = retryDelayMs(retryAttempt);
|
|
387
396
|
note(`lost the daemon on port ${port}; reconnecting in ${retryMs}ms`);
|
|
388
397
|
retryTimer = setTimeout(() => {
|
|
389
398
|
retryTimer = null;
|
|
390
399
|
connect();
|
|
391
400
|
}, retryMs);
|
|
392
|
-
retryTimer
|
|
393
|
-
|
|
401
|
+
unrefTimer(retryTimer);
|
|
402
|
+
retryAttempt += 1;
|
|
394
403
|
}
|
|
395
404
|
function forwardNotification(method, params) {
|
|
396
405
|
const message = daemonMessage(method, params);
|
|
@@ -431,10 +440,10 @@ function createRelay({ argv = process.argv.slice(2), env = process.env, stdin =
|
|
|
431
440
|
clearStableConnectionTimer();
|
|
432
441
|
stableConnectionTimer = setTimeout(() => {
|
|
433
442
|
if (ws !== socket) return;
|
|
434
|
-
|
|
443
|
+
retryAttempt = 1;
|
|
435
444
|
stableConnectionTimer = null;
|
|
436
445
|
}, STABLE_CONNECTION_MS);
|
|
437
|
-
stableConnectionTimer
|
|
446
|
+
unrefTimer(stableConnectionTimer);
|
|
438
447
|
const replay = replayMirror(socket);
|
|
439
448
|
const forwarded = flushPendingForwards();
|
|
440
449
|
note(`connected to the daemon on port ${port} (replayed ${replay.frames.length} mirrored documents, skipped ${replay.skipped.length}, ${forwarded} held markers)`);
|
|
@@ -469,7 +478,7 @@ function createRelay({ argv = process.argv.slice(2), env = process.env, stdin =
|
|
|
469
478
|
return;
|
|
470
479
|
}
|
|
471
480
|
const timer = setTimeout(() => settleCodeAction(id, null), CODE_ACTION_TIMEOUT_MS);
|
|
472
|
-
timer
|
|
481
|
+
unrefTimer(timer);
|
|
473
482
|
pendingCodeActionById.set(id, timer);
|
|
474
483
|
}
|
|
475
484
|
function forwardApplyEdit(daemonId, params) {
|
|
@@ -624,4 +633,4 @@ function main() {
|
|
|
624
633
|
}
|
|
625
634
|
if (process.argv[1] === import.meta.filename) main();
|
|
626
635
|
//#endregion
|
|
627
|
-
export { ACTIVITY_METHOD, APPLY_EDIT_METHOD, CODE_ACTION_METHOD, CODE_ACTION_TIMEOUT_MS, MAX_DAEMON_FRAME_BYTES, STABLE_CONNECTION_MS, SYNC_KIND_INCREMENTAL, createRelay, daemonMessage, decideDaemonFrame, initializeResult, methodNotFoundResponse,
|
|
636
|
+
export { ACTIVITY_METHOD, APPLY_EDIT_METHOD, CODE_ACTION_METHOD, CODE_ACTION_TIMEOUT_MS, MAX_DAEMON_FRAME_BYTES, STABLE_CONNECTION_MS, SYNC_KIND_INCREMENTAL, createRelay, daemonMessage, decideDaemonFrame, initializeResult, methodNotFoundResponse, planMirrorReplay, readConfiguredPort, replayDidOpenMessage, resolvePortPlan, sendWsFrame, sendWsJson };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glimmervoid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Mission control for coding agents: run and supervise Claude Code, Codex and Grok sessions in parallel git worktrees from one local browser dashboard",
|
|
5
5
|
"main": "dist/server/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
],
|
|
55
55
|
"scripts": {
|
|
56
56
|
"start": "node dist/server/index.js",
|
|
57
|
+
"factory:run": "node test/factory/run.ts",
|
|
57
58
|
"lint": "biome check .",
|
|
58
59
|
"test": "node --import ./tests/helpers/isolate-home.ts --test \"tests/**/*.test.ts\"",
|
|
59
60
|
"typecheck": "tsc --project tsconfig.json && tsc --project tsconfig.public.json && tsc --project tsconfig.browser-harness.json",
|
|
@@ -71,6 +72,8 @@
|
|
|
71
72
|
"docs:config": "node scripts/generate-config-docs.ts"
|
|
72
73
|
},
|
|
73
74
|
"dependencies": {
|
|
75
|
+
"@anthropic-ai/sandbox-runtime": "0.0.79",
|
|
76
|
+
"@danilocampos/coherence": "0.37.1",
|
|
74
77
|
"@parcel/watcher": "^2.6.0",
|
|
75
78
|
"@xterm/addon-fit": "^0.11.0",
|
|
76
79
|
"@xterm/addon-serialize": "^0.14.0",
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { n as AGENT_URL_ENV } from "./session-Cez8aIWg.js";
|
|
2
|
-
import { i as resolveHookTarget } from "./hook-relay-core-BHfYFnYV.js";
|
|
3
|
-
import { a as isAgentApiVerb } from "./agent-api-core-Dz0r21y9.js";
|
|
4
|
-
//#region server/agent-api-cli.ts
|
|
5
|
-
var AGENT_PATH_PREFIX = "/agent/";
|
|
6
|
-
var BODY_BUILDERS = {
|
|
7
|
-
spawn: (rest) => {
|
|
8
|
-
const prompt = rest.join(" ").trim();
|
|
9
|
-
return prompt ? { prompt } : null;
|
|
10
|
-
},
|
|
11
|
-
attention: (rest) => {
|
|
12
|
-
const note = rest.join(" ").trim();
|
|
13
|
-
return note ? { note } : null;
|
|
14
|
-
},
|
|
15
|
-
board: () => ({})
|
|
16
|
-
};
|
|
17
|
-
function bodySaysOk(text) {
|
|
18
|
-
try {
|
|
19
|
-
const parsed = JSON.parse(text);
|
|
20
|
-
return typeof parsed === "object" && parsed !== null && parsed.ok === true;
|
|
21
|
-
} catch {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function verbEndpoint(rawUrl, verb) {
|
|
26
|
-
const target = resolveHookTarget(rawUrl, verb, AGENT_PATH_PREFIX);
|
|
27
|
-
if (!target.url) return { ok: false };
|
|
28
|
-
const endpoint = new URL(target.url);
|
|
29
|
-
const token = endpoint.searchParams.get("t") || "";
|
|
30
|
-
endpoint.search = "";
|
|
31
|
-
return {
|
|
32
|
-
ok: true,
|
|
33
|
-
endpoint,
|
|
34
|
-
token
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
async function runAgentApiCli(args) {
|
|
38
|
-
const verb = args[0];
|
|
39
|
-
if (!verb || !isAgentApiVerb(verb)) {
|
|
40
|
-
console.error(`glimmervoid: ${verb || "that"} is not an agent command`);
|
|
41
|
-
return 1;
|
|
42
|
-
}
|
|
43
|
-
const body = BODY_BUILDERS[verb](args.slice(1));
|
|
44
|
-
if (!body) {
|
|
45
|
-
console.error(`glimmervoid ${verb}: this command needs text, for example "glimmervoid ${verb} check the failing test"`);
|
|
46
|
-
return 1;
|
|
47
|
-
}
|
|
48
|
-
const rawUrl = process.env[AGENT_URL_ENV];
|
|
49
|
-
if (!rawUrl) {
|
|
50
|
-
console.error(`glimmervoid: ${AGENT_URL_ENV} is not set, so this is not a Glimmervoid session with the agent API turned on`);
|
|
51
|
-
return 1;
|
|
52
|
-
}
|
|
53
|
-
const target = verbEndpoint(rawUrl, verb);
|
|
54
|
-
if (!target.ok) {
|
|
55
|
-
console.error(`glimmervoid: ${AGENT_URL_ENV} must be a loopback http url under ${AGENT_PATH_PREFIX}, so nothing was sent`);
|
|
56
|
-
return 1;
|
|
57
|
-
}
|
|
58
|
-
const response = await fetch(target.endpoint, {
|
|
59
|
-
method: "POST",
|
|
60
|
-
headers: {
|
|
61
|
-
"content-type": "application/json",
|
|
62
|
-
authorization: `Bearer ${target.token}`
|
|
63
|
-
},
|
|
64
|
-
body: JSON.stringify(body)
|
|
65
|
-
});
|
|
66
|
-
const text = await response.text();
|
|
67
|
-
console.log(text);
|
|
68
|
-
return response.ok && bodySaysOk(text) ? 0 : 1;
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
71
|
-
export { runAgentApiCli };
|