glimmervoid 0.35.1 → 0.37.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 +86 -82
- package/dist/bin/glimmervoid.js +58 -114
- package/dist/chunks/{adapters-CADejSpq.js → adapters-BmfVPxlH.js} +29 -61
- package/dist/chunks/adapters-CqFFmM2R.js +1 -0
- package/dist/chunks/{agent-api-cli-CRj_FYbz.js → agent-api-cli-BTHEyJKS.js} +1 -1
- package/dist/chunks/{agent-api-cli-vGwstJ1j.js → agent-api-cli-CBgOKXoO.js} +41 -12
- package/dist/chunks/{agent-api-core-D1233u1U.js → agent-api-core-DzKhakCv.js} +94 -3
- package/dist/chunks/{agent-setup-cli-BTAFcckd.js → agent-setup-cli-C8DGxlA-.js} +1 -1
- package/dist/chunks/{config-rPbbL4nW.js → config-BYc2z1Oc.js} +60 -779
- package/dist/chunks/config-store-B7MpiYxG.js +4181 -0
- package/dist/chunks/config-store-CsUoy88Q.js +1 -0
- package/dist/chunks/{contracts-DjIgIuDk.js → contracts-C6ipN_zw.js} +100 -12
- package/dist/chunks/git-version-6QFnKbWa.js +139 -0
- package/dist/chunks/{grok-KKgdSe-7.js → grok-CZ6kP_vD.js} +7 -3
- package/dist/chunks/guardrails-deps-Cb-ki4EU.js +70 -0
- package/dist/chunks/{sandbox-proxy-core-hnQgKR0T.js → guardrails-proxy-core-BI3rdY-m.js} +4 -4
- package/dist/chunks/{hook-command-core-DclEoE9e.js → hook-command-core-qTNK-xMF.js} +4 -1
- package/dist/chunks/{hook-tools-UX2fmt81.js → hook-tools-BkxllUHE.js} +9 -16
- package/dist/chunks/{knowledge-graph-cli-Rj5nj87L.js → knowledge-graph-cli-DApeMzA8.js} +1 -1
- package/dist/chunks/{loopback-post-DepQfdcM.js → loopback-post-DJ6iYWuL.js} +9 -9
- package/dist/chunks/{main-C-T2Uk20.js → main-BUfjroXE.js} +16282 -12595
- package/dist/chunks/{pair-cli-Dcyzv3In.js → pair-cli-GZ9t1mIO.js} +2 -2
- package/dist/chunks/{remote-config-Dd1T-VJA.js → remote-config-D2Is89Kj.js} +1 -1
- package/dist/chunks/{rtk-hook-core-BmEz2aq9.js → rtk-hook-core-VrUafGAp.js} +15 -5
- package/dist/chunks/rtk-resolver-B8BPgN9L.js +1 -0
- package/dist/chunks/{rtk-resolver-B9pzjLsM.js → rtk-resolver-C_micGrL.js} +1 -1
- package/dist/chunks/session-BZbariv5.js +1032 -0
- package/dist/chunks/{session-routes-BYy3am9m.js → session-routes-C4t8O8yg.js} +9 -9
- package/dist/chunks/settings-cli-DQOjmjev.js +484 -0
- package/dist/chunks/{ssh-sign-cli-DPHpT22B.js → ssh-sign-cli-LIBP8ppO.js} +2 -2
- package/dist/client/assets/index-B_Qt7fbZ.css +1 -0
- package/dist/client/assets/index-D-upBor0.js +265 -0
- package/dist/client/index.html +5 -3
- package/dist/scripts/postinstall-path-check.js +4 -4
- package/dist/server/index.js +1 -1
- package/dist/session/command-hook-relay.js +1 -1
- package/dist/session/{sandbox-open-launcher.js → guardrails-open-launcher.js} +10 -10
- package/dist/session/hook-relay.js +1 -1
- package/dist/session/hook-tool-relay.js +3 -3
- package/dist/session/statusline-relay.js +1 -1
- package/package.json +6 -5
- package/dist/chunks/adapters-B37wqNti.js +0 -1
- package/dist/chunks/config-store-BeIxAZNn.js +0 -1
- package/dist/chunks/config-store-BtsYbNC3.js +0 -1713
- package/dist/chunks/git-version-CUcDtF5k.js +0 -58
- package/dist/chunks/rtk-resolver-SWU5VVM7.js +0 -1
- package/dist/chunks/sandbox-deps-CWiH1d1w.js +0 -70
- package/dist/chunks/session-D6xXN0UU.js +0 -232
- package/dist/client/assets/index-CUxRHbCS.js +0 -254
- package/dist/client/assets/index-DE2GUmqs.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
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-B7MpiYxG.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-D2Is89Kj.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-BaxGcB2R.js";
|
|
6
|
-
import {
|
|
6
|
+
import { o as glimmervoidHomeDir, st as canonicalizePath } from "./config-store-B7MpiYxG.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -108,8 +108,20 @@ function saneYoloEnv(homeDir) {
|
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region session/core/rtk-hook-core.ts
|
|
110
110
|
var RTK_PATH_ENV = "GLIMMERVOID_RTK_PATH";
|
|
111
|
+
var CLAUDE_RELAY_FLAVOR = "claude";
|
|
111
112
|
var MAX_RTK_STDOUT_BYTES = 65536;
|
|
112
|
-
function
|
|
113
|
+
function rewriteDisclosure(rewrittenCommand) {
|
|
114
|
+
return `Glimmervoid's rtk hook ran this Bash call as \`${rewrittenCommand}\`, so its output is rtk's condensed form, not the raw command output. For the raw output, run the command as \`rtk proxy <command>\`.`;
|
|
115
|
+
}
|
|
116
|
+
function completeRewrite(hookSpecificOutput, rewrittenCommand, isForClaude) {
|
|
117
|
+
if (!isForClaude) {
|
|
118
|
+
if (typeof hookSpecificOutput.permissionDecision !== "string") hookSpecificOutput.permissionDecision = "allow";
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (typeof rewrittenCommand !== "string" || hookSpecificOutput.additionalContext !== void 0) return;
|
|
122
|
+
hookSpecificOutput.additionalContext = rewriteDisclosure(rewrittenCommand);
|
|
123
|
+
}
|
|
124
|
+
function normalizeRtkHookResponse(stdoutText, { isForClaude = false } = {}) {
|
|
113
125
|
if (typeof stdoutText !== "string") return "";
|
|
114
126
|
const trimmed = stdoutText.trim();
|
|
115
127
|
if (!trimmed) return "";
|
|
@@ -122,10 +134,8 @@ function normalizeRtkHookResponse(stdoutText) {
|
|
|
122
134
|
}
|
|
123
135
|
if (!isRecord(parsed)) return "";
|
|
124
136
|
const hookSpecificOutput = parsed.hookSpecificOutput;
|
|
125
|
-
if (isRecord(hookSpecificOutput) && isRecord(hookSpecificOutput.updatedInput))
|
|
126
|
-
if (typeof hookSpecificOutput.permissionDecision !== "string") hookSpecificOutput.permissionDecision = "allow";
|
|
127
|
-
}
|
|
137
|
+
if (isRecord(hookSpecificOutput) && isRecord(hookSpecificOutput.updatedInput)) completeRewrite(hookSpecificOutput, hookSpecificOutput.updatedInput.command, isForClaude);
|
|
128
138
|
return JSON.stringify(parsed);
|
|
129
139
|
}
|
|
130
140
|
//#endregion
|
|
131
|
-
export {
|
|
141
|
+
export { SANE_YOLO_FILES as a, normalizeRtkHookResponse as i, MAX_RTK_STDOUT_BYTES as n, SANE_YOLO_PATH_ENV as o, RTK_PATH_ENV as r, saneYoloEnv as s, CLAUDE_RELAY_FLAVOR as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as getRtkPath } from "./rtk-resolver-C_micGrL.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as execSync } from "./child-process-safe-CbQnyh7D.js";
|
|
2
2
|
import { n as glimmervoidHomeDir } from "./config-path-core-DFt-TemS.js";
|
|
3
|
-
import { r as resolveRtkPath } from "./hook-tools-
|
|
3
|
+
import { r as resolveRtkPath } from "./hook-tools-BkxllUHE.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
//#region server/rtk-resolver.ts
|