@butlerw/vellum 0.2.2 → 0.2.4
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/index.mjs +41 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -195908,7 +195908,7 @@ init_esm_shims();
|
|
|
195908
195908
|
|
|
195909
195909
|
// src/version.ts
|
|
195910
195910
|
init_esm_shims();
|
|
195911
|
-
var version = "0.2.
|
|
195911
|
+
var version = "0.2.4" ;
|
|
195912
195912
|
|
|
195913
195913
|
// src/tui/components/Banner/ShimmerText.tsx
|
|
195914
195914
|
init_esm_shims();
|
|
@@ -197179,6 +197179,21 @@ function isNarrowWidth(width) {
|
|
|
197179
197179
|
|
|
197180
197180
|
// src/tui/utils/kitty-keyboard-protocol.ts
|
|
197181
197181
|
init_esm_shims();
|
|
197182
|
+
function isVsCodeTerminal2(env2 = process.env) {
|
|
197183
|
+
return env2.TERM_PROGRAM === "vscode" || env2.VSCODE_INJECTION === "1" || Boolean(env2.VSCODE_GIT_IPC_HANDLE);
|
|
197184
|
+
}
|
|
197185
|
+
function shouldSkipKittyDetection(env2 = process.env) {
|
|
197186
|
+
if (env2.WT_SESSION || isVsCodeTerminal2(env2)) {
|
|
197187
|
+
return true;
|
|
197188
|
+
}
|
|
197189
|
+
if (process.platform === "win32") {
|
|
197190
|
+
const hasKnownSupport = Boolean(env2.WEZTERM_PANE || env2.KITTY_WINDOW_ID);
|
|
197191
|
+
if (!hasKnownSupport) {
|
|
197192
|
+
return true;
|
|
197193
|
+
}
|
|
197194
|
+
}
|
|
197195
|
+
return false;
|
|
197196
|
+
}
|
|
197182
197197
|
var QUERY_PROTOCOL = "\x1B[?u\x1B[c";
|
|
197183
197198
|
var DISABLE_PROTOCOL = "\x1B[<u";
|
|
197184
197199
|
var DETECTION_TIMEOUT_MS = 200;
|
|
@@ -197189,6 +197204,9 @@ var KittyFlags = {
|
|
|
197189
197204
|
var detectionComplete = false;
|
|
197190
197205
|
var kittySupported = false;
|
|
197191
197206
|
var kittyEnabled = false;
|
|
197207
|
+
function isDetectionComplete() {
|
|
197208
|
+
return detectionComplete;
|
|
197209
|
+
}
|
|
197192
197210
|
function isKittyKeyboardSupported() {
|
|
197193
197211
|
return kittySupported;
|
|
197194
197212
|
}
|
|
@@ -197205,6 +197223,12 @@ async function detectKittyKeyboardProtocol() {
|
|
|
197205
197223
|
resolve55(false);
|
|
197206
197224
|
return;
|
|
197207
197225
|
}
|
|
197226
|
+
if (shouldSkipKittyDetection()) {
|
|
197227
|
+
detectionComplete = true;
|
|
197228
|
+
kittySupported = false;
|
|
197229
|
+
resolve55(false);
|
|
197230
|
+
return;
|
|
197231
|
+
}
|
|
197208
197232
|
lockRawMode();
|
|
197209
197233
|
let responseBuffer = "";
|
|
197210
197234
|
let progressiveEnhancementReceived = false;
|
|
@@ -214638,6 +214662,13 @@ init_esm_shims();
|
|
|
214638
214662
|
|
|
214639
214663
|
// src/tui/hooks/useKittyKeyboard.ts
|
|
214640
214664
|
init_esm_shims();
|
|
214665
|
+
async function initializeKittyDetection() {
|
|
214666
|
+
if (isDetectionComplete()) return;
|
|
214667
|
+
await detectKittyKeyboardProtocol();
|
|
214668
|
+
if (isKittyKeyboardSupported()) {
|
|
214669
|
+
enableKittyKeyboardProtocol();
|
|
214670
|
+
}
|
|
214671
|
+
}
|
|
214641
214672
|
function useKittyKeyboard(options = {}) {
|
|
214642
214673
|
const { enabled = true, debug: debug2 = false } = options;
|
|
214643
214674
|
const [isSupported3, setIsSupported] = useState(null);
|
|
@@ -214673,7 +214704,14 @@ function useKittyKeyboard(options = {}) {
|
|
|
214673
214704
|
useEffect(() => {
|
|
214674
214705
|
let cancelled = false;
|
|
214675
214706
|
const init = async () => {
|
|
214676
|
-
|
|
214707
|
+
if (isDetectionComplete()) {
|
|
214708
|
+
const supported2 = isKittyKeyboardSupported();
|
|
214709
|
+
setIsSupported(supported2);
|
|
214710
|
+
setIsEnabled(isKittyKeyboardEnabled());
|
|
214711
|
+
log(`Using cached detection: supported=${supported2}, enabled=${isKittyKeyboardEnabled()}`);
|
|
214712
|
+
return;
|
|
214713
|
+
}
|
|
214714
|
+
log("Detecting protocol support (fallback - consider using initializeKittyDetection)...");
|
|
214677
214715
|
const supported = await detectKittyKeyboardProtocol();
|
|
214678
214716
|
if (cancelled) {
|
|
214679
214717
|
return;
|
|
@@ -230457,6 +230495,7 @@ program.command("chat", { isDefault: true }).description("Start interactive chat
|
|
|
230457
230495
|
incrementalRendering,
|
|
230458
230496
|
debug: isStaticOutputMode
|
|
230459
230497
|
};
|
|
230498
|
+
await initializeKittyDetection();
|
|
230460
230499
|
render(
|
|
230461
230500
|
/* @__PURE__ */ jsx(
|
|
230462
230501
|
App,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@butlerw/vellum",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Next-generation AI coding assistant CLI",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"tsx": "^4.21.0",
|
|
58
58
|
"typescript": "^5.9.3",
|
|
59
59
|
"@vellum/core": "0.1.15",
|
|
60
|
-
"@vellum/eval": "0.1.0",
|
|
61
60
|
"@vellum/lsp": "0.1.0",
|
|
62
61
|
"@vellum/mcp": "0.1.3",
|
|
62
|
+
"@vellum/eval": "0.1.0",
|
|
63
63
|
"@vellum/plugin": "0.1.3",
|
|
64
64
|
"@vellum/provider": "0.2.0",
|
|
65
|
-
"@vellum/
|
|
66
|
-
"@vellum/
|
|
65
|
+
"@vellum/shared": "0.1.0",
|
|
66
|
+
"@vellum/sandbox": "0.1.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "tsup",
|