glimmervoid 0.42.2 → 0.43.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/dist/bin/glimmervoid.js +13 -13
- package/dist/chunks/{adapters-DeqV4wUv.js → adapters-EqOJN5vD.js} +1 -1
- package/dist/chunks/{adapters-Bga1N6Ie.js → adapters-jRUJYLhH.js} +5 -5
- package/dist/chunks/{agent-api-cli-YvQ8WxHA.js → agent-api-cli-B0fpc41n.js} +3 -3
- package/dist/chunks/{agent-api-cli-DWVeqlLu.js → agent-api-cli-DYwXyAmN.js} +1 -1
- package/dist/chunks/{agent-api-core-DFYLP1bF.js → agent-api-core-BeSecYrA.js} +3 -3
- package/dist/chunks/{agent-setup-cli-C9qDV2g5.js → agent-setup-cli-NfJQxNdp.js} +1 -1
- package/dist/chunks/{config-store-DOGtTJ1d.js → config-store-CBjnq-OI.js} +2 -2
- package/dist/chunks/config-store-DCrosJLg.js +1 -0
- package/dist/chunks/{contracts-Ds_eevZs.js → contracts-BJGgl8et.js} +2 -2
- package/dist/chunks/{control-messages-Dgap3JRR.js → control-messages-CD99vE0V.js} +9 -3
- package/dist/chunks/{git-version-DqagvnAZ.js → git-version-ByOV7a_h.js} +1 -1
- package/dist/chunks/{grok-DwrAcNHC.js → grok-DPmX1ozS.js} +1 -1
- package/dist/chunks/{main-Ywst1s6Z.js → main-_78bVmTr.js} +1917 -1428
- package/dist/chunks/{pair-cli-PCXITdEd.js → pair-cli-DAJNPgsi.js} +2 -2
- package/dist/chunks/{remote-config-DeWURqqr.js → remote-config-BdCTswa1.js} +1 -1
- package/dist/chunks/{session-3eSP3t1i.js → session-BUcx9uJa.js} +2 -0
- package/dist/chunks/{session-routes-B2oSzmQn.js → session-routes-DdeSkLqC.js} +1 -1
- package/dist/chunks/{settings-cli-xpR7vk9L.js → settings-cli-CMLEvC05.js} +5 -5
- package/dist/chunks/{settings-readout-core-C2mOk9Yz.js → settings-readout-core-CBqSjZiW.js} +2 -2
- package/dist/chunks/{ssh-sign-cli-rKiqiNem.js → ssh-sign-cli-CvqtQNQe.js} +6 -6
- package/dist/client/assets/{index-NhAGtpDY.css → index-CW2LelmE.css} +1 -1
- package/dist/client/assets/index-Cl0UmezJ.js +177 -0
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/config-store-CGrS8s6x.js +0 -1
- package/dist/client/assets/index-D9A5nTKg.js +0 -177
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { c as resolveConfigPath } from "./config-store-
|
|
3
|
-
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-
|
|
2
|
+
import { c as resolveConfigPath } from "./config-store-CBjnq-OI.js";
|
|
3
|
+
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-BdCTswa1.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region server/text-format.ts
|
|
6
6
|
function trimIso(iso) {
|
|
@@ -3,7 +3,7 @@ import { n as equalsIgnoringCaseOnWindows } from "./paths-Bu4eH1Yd.js";
|
|
|
3
3
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
4
4
|
import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.js";
|
|
5
5
|
import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-DFCTvPjj.js";
|
|
6
|
-
import { o as glimmervoidHomeDir, ot as canonicalizePath } from "./config-store-
|
|
6
|
+
import { o as glimmervoidHomeDir, ot as canonicalizePath } from "./config-store-CBjnq-OI.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -44,6 +44,8 @@ var GithubPollingRetry = z.object({
|
|
|
44
44
|
}).refine((retry) => retry.attempt <= retry.limit);
|
|
45
45
|
var githubPollingShape = {
|
|
46
46
|
error: z.string().nullable().optional(),
|
|
47
|
+
lastRefreshedAt: z.number().finite().nonnegative().nullable().optional(),
|
|
48
|
+
incident: z.string().nullable().optional(),
|
|
47
49
|
nextAttemptAt: z.number().finite().nonnegative().nullable().optional(),
|
|
48
50
|
retry: GithubPollingRetry.nullable().optional(),
|
|
49
51
|
isRefreshing: z.boolean().optional(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as SESSION_COMMANDS } from "./session-
|
|
1
|
+
import { T as SESSION_COMMANDS } from "./session-BUcx9uJa.js";
|
|
2
2
|
//#region session/core/session-routes.ts
|
|
3
3
|
var SUPERVISION_LINE = "Glimmervoid supervises this session. Run glimmervoid --help for the commands it gives you and this session's limits.";
|
|
4
4
|
var GUARDRAILS_LINE = "Its guardrails are OS-enforced, so a read, write or connection they refuse will not succeed on retry.";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
2
|
-
import { d as AgentSettingsReply } from "./session-
|
|
2
|
+
import { d as AgentSettingsReply } from "./session-BUcx9uJa.js";
|
|
3
3
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
4
4
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DFt-TemS.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
6
|
-
import { C as deleteValueAtPath, D as scoreSettingsSearch, E as parsePosthogProjectSelection, N as SETTINGS_REGISTRY, O as setValueAtPath, Q as withEnvSecrets, S as cloneValue, X as readEnvSecrets, Y as ENV_SECRET_BINDINGS, j as valueAtPath, l as saveConfigFileOnce, s as loadConfigFile, u as validateConfig } from "./config-store-
|
|
7
|
-
import { m as BrowserConfig } from "./contracts-
|
|
8
|
-
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as ALL_SETTINGS } from "./settings-readout-core-
|
|
6
|
+
import { C as deleteValueAtPath, D as scoreSettingsSearch, E as parsePosthogProjectSelection, N as SETTINGS_REGISTRY, O as setValueAtPath, Q as withEnvSecrets, S as cloneValue, X as readEnvSecrets, Y as ENV_SECRET_BINDINGS, j as valueAtPath, l as saveConfigFileOnce, s as loadConfigFile, u as validateConfig } from "./config-store-CBjnq-OI.js";
|
|
7
|
+
import { m as BrowserConfig } from "./contracts-BJGgl8et.js";
|
|
8
|
+
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as ALL_SETTINGS } from "./settings-readout-core-CBqSjZiW.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { parseArgs } from "node:util";
|
|
@@ -329,7 +329,7 @@ function processIo() {
|
|
|
329
329
|
async function runSettingsCli(commandArguments, io = processIo()) {
|
|
330
330
|
const serverRequest = settingsRequestForServer(commandArguments, process.env);
|
|
331
331
|
if (!serverRequest) return runSettingsCommand(commandArguments, io);
|
|
332
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
332
|
+
const { askAgentApi } = await import("./agent-api-cli-DYwXyAmN.js");
|
|
333
333
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
334
334
|
ok: false,
|
|
335
335
|
error: errorMessage(error)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as AgentSettingsRequest } from "./session-
|
|
1
|
+
import { f as AgentSettingsRequest } from "./session-BUcx9uJa.js";
|
|
2
2
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
3
|
-
import { A as settingsOf, M as FILE_ONLY_GROUPS, N as SETTINGS_REGISTRY, S as cloneValue, T as hasScaledUnit, X as readEnvSecrets, j as valueAtPath, k as settingsGroupOf, w as displayText, x as SETTINGS_INDEX } from "./config-store-
|
|
3
|
+
import { A as settingsOf, M as FILE_ONLY_GROUPS, N as SETTINGS_REGISTRY, S as cloneValue, T as hasScaledUnit, X as readEnvSecrets, j as valueAtPath, k as settingsGroupOf, w as displayText, x as SETTINGS_INDEX } from "./config-store-CBjnq-OI.js";
|
|
4
4
|
import { parseArgs } from "node:util";
|
|
5
5
|
//#region server/core/settings-readout-core.ts
|
|
6
6
|
var VALUE_COLUMN_WIDTH = 40;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { A as SIGN_URL_ENV, F as SshSignReply } from "./session-
|
|
2
|
+
import { A as SIGN_URL_ENV, F as SshSignReply } from "./session-BUcx9uJa.js";
|
|
3
3
|
import { n as execFileAsync, o as spawn } from "./child-process-safe-D4hyVIXj.js";
|
|
4
4
|
import { a as isLoopbackHostname } from "./hook-relay-core-DA_bz2KA.js";
|
|
5
|
-
import { n as postToAgentIngress } from "./agent-api-cli-
|
|
5
|
+
import { n as postToAgentIngress } from "./agent-api-cli-B0fpc41n.js";
|
|
6
6
|
import { l as parseSshPublicKey } from "./ssh-signing-core-CRhVVWNW.js";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
//#region server/ssh-sign-cli.ts
|
|
10
10
|
var SIGN_PATH_PREFIX = "/sign/";
|
|
11
11
|
var DEFAULT_SSH_SIGNING_PROGRAM = "ssh-keygen";
|
|
@@ -106,13 +106,13 @@ function runSigningProgram(program, args, { captureStderr }) {
|
|
|
106
106
|
async function runSshSignCli(args, env = process.env) {
|
|
107
107
|
const invocation = readSignInvocation(args);
|
|
108
108
|
const target = signEndpoint(env[SIGN_URL_ENV]);
|
|
109
|
-
const publicKeyText = invocation && target ? await
|
|
109
|
+
const publicKeyText = invocation && target ? await fs.readFile(invocation.keyFile, "utf8").catch(() => "") : "";
|
|
110
110
|
const publicKey = parseSshPublicKey(publicKeyText);
|
|
111
111
|
const signingProgram = await operatorSigningProgram(env);
|
|
112
112
|
if (!invocation || !target || !publicKey) return (await runSigningProgram(signingProgram, args, { captureStderr: false })).exitCode;
|
|
113
113
|
const localAttempt = env.SSH_AUTH_SOCK ? await runSigningProgram(signingProgram, args, { captureStderr: true }) : null;
|
|
114
114
|
if (localAttempt?.exitCode === 0) return 0;
|
|
115
|
-
const payload = await
|
|
115
|
+
const payload = await fs.readFile(invocation.bufferFile);
|
|
116
116
|
const reply = await postToAgentIngress({
|
|
117
117
|
endpoint: target.endpoint,
|
|
118
118
|
token: target.token,
|
|
@@ -126,7 +126,7 @@ async function runSshSignCli(args, env = process.env) {
|
|
|
126
126
|
error: `Glimmervoid did not answer the signing request: ${errorMessage(error)}`
|
|
127
127
|
}));
|
|
128
128
|
if (reply.ok) {
|
|
129
|
-
await
|
|
129
|
+
await fs.writeFile(`${invocation.bufferFile}.sig`, reply.signature);
|
|
130
130
|
return 0;
|
|
131
131
|
}
|
|
132
132
|
if (localAttempt?.stderr) console.error(localAttempt.stderr);
|