glimmervoid 0.31.0 → 0.32.1
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 +19 -14
- package/dist/chunks/{adapters-gn7ulNO4.js → adapters-BS_7o8fj.js} +28 -23
- package/dist/chunks/{adapters-ClA_GbtA.js → adapters-Bn-dQ02i.js} +1 -1
- package/dist/chunks/{agent-api-cli-DAA7Jx8N.js → agent-api-cli-BR0GVDn6.js} +21 -5
- package/dist/chunks/agent-api-core-DUiWHSHg.js +201 -0
- package/dist/chunks/{agent-setup-cli-CiJSDWSo.js → agent-setup-cli-BqYcwfOs.js} +1 -1
- package/dist/chunks/child-process-safe-B3zcPdFM.js +2 -0
- package/dist/chunks/{child-process-safe-Ch-Zgxqs.js → child-process-safe-DDELk9XC.js} +2 -1
- package/dist/chunks/{config-W1Sv-iPK.js → config-B6BkTOcE.js} +20 -6
- package/dist/chunks/config-store-C8Ry8ZFD.js +2 -0
- package/dist/chunks/{config-store-BCy4FHNG.js → config-store-aZpWeX92.js} +14 -5
- package/dist/chunks/{contracts-3LkrilQX.js → contracts-DzDg-Z9I.js} +100 -7
- package/dist/chunks/git-version-CrLW4a6r.js +58 -0
- package/dist/chunks/{grok-CXKeSt2z.js → grok-7Z5KcgcY.js} +1 -2
- package/dist/chunks/{knowledge-graph-cli-D2tt5hPn.js → knowledge-graph-cli-D5Gf87Y7.js} +2 -2
- package/dist/chunks/{main-DyTCWIu2.js → main-BG6iHwoY.js} +3724 -1928
- package/dist/chunks/{pair-cli-BbCBfd6l.js → pair-cli-DQkrt_-s.js} +2 -2
- package/dist/chunks/{remote-config-DKIH_VxM.js → remote-config-Da4C7tMG.js} +2 -2
- package/dist/chunks/rtk-resolver-CIVLE_xk.js +2 -0
- package/dist/chunks/{rtk-resolver-BGDzw5XK.js → rtk-resolver-jJxy_Mrt.js} +1 -1
- package/dist/chunks/{sandbox-deps-BPKE-ylr.js → sandbox-deps-DuaNFq7n.js} +1 -1
- package/dist/chunks/{session-fc4pFbon.js → session-Dtkp9o3r.js} +28 -2
- package/dist/chunks/{visions-cli-CT5rjiwf.js → visions-cli-BhFdym5n.js} +1 -1
- package/dist/chunks/{visions-setup-BmOkI-QE.js → visions-setup-CfgNHiG3.js} +1 -1
- package/dist/client/assets/index-BxU3Ww0L.css +1 -0
- package/dist/client/assets/index-Co4S7tnh.js +254 -0
- package/dist/client/index.html +2 -2
- package/dist/scripts/postinstall-path-check.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/session/hook-tool-relay.js +1 -1
- package/dist/session/sandbox-open-launcher.js +42 -3
- package/dist/session/statusline-relay.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-core-hVcT26JW.js +0 -112
- package/dist/chunks/child-process-safe-BKPZ-5qQ.js +0 -2
- package/dist/chunks/config-store-DbBp7LJZ.js +0 -2
- package/dist/chunks/rtk-resolver-D4Nke1Fr.js +0 -2
- package/dist/client/assets/index-C6KD8lgZ.css +0 -1
- package/dist/client/assets/index-CThQEAEy.js +0 -249
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { l 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 { l as resolveConfigPath } from "./config-store-aZpWeX92.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-Da4C7tMG.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 { i as equalsIgnoringCaseOnWindows, t as canonicalizePath } from "./paths
|
|
|
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-oEH9vt-0.js";
|
|
6
|
-
import { s as glimmervoidHomeDir } from "./config-store-
|
|
6
|
+
import { s as glimmervoidHomeDir } from "./config-store-aZpWeX92.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -419,7 +419,7 @@ function createSeenStore({ filePath = defaultSeenPath(), throttleMs = 6e4, now =
|
|
|
419
419
|
if (last != null && at - last < throttleMs) return;
|
|
420
420
|
lastWriteByDevice.set(deviceId, at);
|
|
421
421
|
doc[deviceId] = at;
|
|
422
|
-
pending = writeJsonAtomic(filePath, doc, { mode: 384 }).catch(() => {});
|
|
422
|
+
pending = (pending ?? Promise.resolve()).then(() => writeJsonAtomic(filePath, doc, { mode: 384 })).catch(() => {});
|
|
423
423
|
}
|
|
424
424
|
return {
|
|
425
425
|
touch,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as execSync } from "./child-process-safe-
|
|
1
|
+
import { i as execSync } from "./child-process-safe-DDELk9XC.js";
|
|
2
2
|
import { n as glimmervoidHomeDir } from "./config-path-core-DFt-TemS.js";
|
|
3
3
|
import { r as resolveRtkPath } from "./hook-tools-UX2fmt81.js";
|
|
4
4
|
import fs from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as execSync } from "./child-process-safe-
|
|
1
|
+
import { i as execSync } from "./child-process-safe-DDELk9XC.js";
|
|
2
2
|
import { r as resolvePathCommandMatches } from "./spawn-command-Cc40FiZI.js";
|
|
3
3
|
//#region server/core/sandbox-deps-core.ts
|
|
4
4
|
var LINUX_SANDBOX_BINARIES = Object.freeze([
|
|
@@ -140,7 +140,16 @@ var AGENT_API_VERBS = [
|
|
|
140
140
|
"spawn",
|
|
141
141
|
"attention",
|
|
142
142
|
"board",
|
|
143
|
-
"dispatch"
|
|
143
|
+
"dispatch",
|
|
144
|
+
"reopen",
|
|
145
|
+
"cancel",
|
|
146
|
+
"push",
|
|
147
|
+
"edit"
|
|
148
|
+
];
|
|
149
|
+
var ORCHESTRATOR_AGENT_VERBS = [
|
|
150
|
+
"dispatch",
|
|
151
|
+
"reopen",
|
|
152
|
+
"cancel"
|
|
144
153
|
];
|
|
145
154
|
var AgentSpawnRequest = z.object({
|
|
146
155
|
prompt: z.string({ error: "prompt must be a string" }).min(1, { error: "prompt must not be empty" }).max(2e4, { error: "prompt must be at most 20000 characters" }).refine((prompt) => !prompt.trimStart().startsWith("-"), { message: "prompt must not start with a dash, which the agent CLI would read as an option" }),
|
|
@@ -162,9 +171,26 @@ z.object({
|
|
|
162
171
|
state: SessionSnapshot.shape.state,
|
|
163
172
|
ephemeral: SessionSnapshot.shape.ephemeral
|
|
164
173
|
}).strict();
|
|
174
|
+
var SESSION_DOC_BODY_CAP_BYTES = 262144;
|
|
175
|
+
var SESSION_DOC_PATH_MAX_CHARS = 4096;
|
|
176
|
+
var AgentEditRequest = z.object({ path: z.string({ error: "path must be a string" }).min(1, { error: "path must not be empty" }).max(SESSION_DOC_PATH_MAX_CHARS, { error: `path must be at most ${SESSION_DOC_PATH_MAX_CHARS} characters` }) }).strict();
|
|
177
|
+
var SessionDoc = z.object({
|
|
178
|
+
path: z.string(),
|
|
179
|
+
name: z.string(),
|
|
180
|
+
surfacedAt: z.number().finite()
|
|
181
|
+
}).strict();
|
|
165
182
|
var AgentDispatchRequest = z.object({
|
|
166
183
|
workId: z.string().regex(/^wrk-[0-9a-f]{16}$/).optional(),
|
|
167
184
|
readyIntent: z.string().regex(/^wrk-[0-9a-f]{16}$/).optional()
|
|
168
185
|
}).strict().refine((request) => Boolean(request.workId) !== Boolean(request.readyIntent), "Expected exactly one work id or ready intent");
|
|
186
|
+
var AgentTicketRequest = z.object({ workId: z.string({ error: "workId must be a string" }).regex(/^wrk-[0-9a-f]{16}$/, { error: "workId must match wrk-[0-9a-f]{16}" }) }).strict();
|
|
187
|
+
z.discriminatedUnion("ok", [z.object({
|
|
188
|
+
ok: z.literal(true),
|
|
189
|
+
workId: z.string(),
|
|
190
|
+
state: z.enum(["open", "cancelled"])
|
|
191
|
+
}), z.object({
|
|
192
|
+
ok: z.literal(false),
|
|
193
|
+
reason: z.string()
|
|
194
|
+
})]);
|
|
169
195
|
//#endregion
|
|
170
|
-
export {
|
|
196
|
+
export { firstDetailLine as C, MERGEABLE_LIVE_STATES as D, KILLABLE_STATES as E, RESTARTABLE_STATES as O, isSamePromptQuestion as S, toolDetailLine as T, SessionDoc as _, AgentDispatchRequest as a, TASK_TITLE_CONTROL_CHARACTERS as b, AgentTicketRequest as c, PendingPromptDetail as d, PendingPromptQuestion as f, SESSION_DOC_PATH_MAX_CHARS as g, SESSION_DOC_BODY_CAP_BYTES as h, AgentAttentionRequest as i, STATES as k, ORCHESTRATOR_AGENT_VERBS as l, RefinedTaskTitle as m, AGENT_URL_ENV as n, AgentEditRequest as o, PendingWakeup as p, ASK_USER_QUESTION_TOOL_NAME as r, AgentSpawnRequest as s, AGENT_API_VERBS as t, PROMPT_DETAIL_HIDDEN_CHARACTERS as u, SessionSnapshot as v, toolDetailFieldValue as w, TaskTitle as x, SessionState as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
2
|
-
import { a as relayInvocationOptions, c as unwireEverything, d as extensionIdOf, f as buildSetupGuide, h as isExtensionInstalled, i as packVsix, l as wireEverything, m as recipeIds, o as resolveRelayInvocation, p as commandLine, r as editorExtensions, s as resolvedEditorPaths, t as RELAY_PATH, u as editorTargets } from "./visions-setup-
|
|
2
|
+
import { a as relayInvocationOptions, c as unwireEverything, d as extensionIdOf, f as buildSetupGuide, h as isExtensionInstalled, i as packVsix, l as wireEverything, m as recipeIds, o as resolveRelayInvocation, p as commandLine, r as editorExtensions, s as resolvedEditorPaths, t as RELAY_PATH, u as editorTargets } from "./visions-setup-CfgNHiG3.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
//#region server/visions-cli.ts
|
|
5
5
|
function fileOutcomeRows(files) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { a as isPathInside } from "./paths-CeJl2Vcg.js";
|
|
3
3
|
import { a as packageRoot, i as extensionDir, n as cliPath, o as relayPath, t as bundled } from "./runtime-paths-BPoxENmK.js";
|
|
4
|
-
import { i as execSync, n as execFileAsync } from "./child-process-safe-
|
|
4
|
+
import { i as execSync, n as execFileAsync } from "./child-process-safe-DDELk9XC.js";
|
|
5
5
|
import { r as resolvePathCommandMatches } from "./spawn-command-Cc40FiZI.js";
|
|
6
6
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
7
7
|
import { stripTypeScriptTypes } from "node:module";
|