@builder.io/buildercode 0.4.2 → 0.4.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/cli.mjs +333 -210
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -92069,7 +92069,27 @@ const defaultDarkTheme = {
|
|
|
92069
92069
|
statusBarBackground: "#181818",
|
|
92070
92070
|
headerBackground: "#181818",
|
|
92071
92071
|
panelBackground: "#2A2A2A",
|
|
92072
|
-
highlightBackground: "#
|
|
92072
|
+
highlightBackground: "#000000",
|
|
92073
|
+
highlight: "#ffffff"
|
|
92074
|
+
};
|
|
92075
|
+
const defaultTransparentTheme = {
|
|
92076
|
+
background: "",
|
|
92077
|
+
foreground: "",
|
|
92078
|
+
dimForeground: "gray",
|
|
92079
|
+
accent: "cyan",
|
|
92080
|
+
accentForeground: "black",
|
|
92081
|
+
success: "green",
|
|
92082
|
+
error: "red",
|
|
92083
|
+
warning: "yellow",
|
|
92084
|
+
info: "cyan",
|
|
92085
|
+
border: "gray",
|
|
92086
|
+
inputBackground: "",
|
|
92087
|
+
inputBorder: "gray",
|
|
92088
|
+
statusBarBackground: "",
|
|
92089
|
+
headerBackground: "",
|
|
92090
|
+
panelBackground: "",
|
|
92091
|
+
highlightBackground: "#000000",
|
|
92092
|
+
highlight: "#ffffff"
|
|
92073
92093
|
};
|
|
92074
92094
|
const defaultLightTheme = {
|
|
92075
92095
|
background: "#FFFFFF",
|
|
@@ -92087,7 +92107,8 @@ const defaultLightTheme = {
|
|
|
92087
92107
|
statusBarBackground: "#F6F8FA",
|
|
92088
92108
|
headerBackground: "#F6F8FA",
|
|
92089
92109
|
panelBackground: "#F0F2F5",
|
|
92090
|
-
highlightBackground: "#D6EBFF"
|
|
92110
|
+
highlightBackground: "#D6EBFF",
|
|
92111
|
+
highlight: "white"
|
|
92091
92112
|
};
|
|
92092
92113
|
/**
|
|
92093
92114
|
* Parse a terminal OSC 11 response into an [R, G, B] tuple (0–255 each).
|
|
@@ -92145,8 +92166,57 @@ function queryOsc11() {
|
|
|
92145
92166
|
});
|
|
92146
92167
|
}
|
|
92147
92168
|
/**
|
|
92169
|
+
* Compute HSL saturation (0–1) from an RGB tuple (0–255 each).
|
|
92170
|
+
* A value near 0 means achromatic (gray/black/white); near 1 means vivid.
|
|
92171
|
+
*/
|
|
92172
|
+
function rgbSaturation(r, g, b) {
|
|
92173
|
+
const rn = r / 255, gn = g / 255, bn = b / 255;
|
|
92174
|
+
const max = Math.max(rn, gn, bn);
|
|
92175
|
+
const min = Math.min(rn, gn, bn);
|
|
92176
|
+
const delta = max - min;
|
|
92177
|
+
if (delta === 0) return 0;
|
|
92178
|
+
const lightness = (max + min) / 2;
|
|
92179
|
+
return delta / (1 - Math.abs(2 * lightness - 1));
|
|
92180
|
+
}
|
|
92181
|
+
/**
|
|
92182
|
+
* ANSI color indices (0–15) that represent chromatic colors — i.e. hues that
|
|
92183
|
+
* are neither near-black nor near-white. If COLORFGBG reports one of these
|
|
92184
|
+
* as the background, hard-coded dark/light hex palettes will look wrong and
|
|
92185
|
+
* transparent mode is the safest choice.
|
|
92186
|
+
*
|
|
92187
|
+
* Index mapping (standard xterm-256 ANSI palette):
|
|
92188
|
+
* 0 black 7 light-gray 8 dark-gray 15 white
|
|
92189
|
+
* 1 red 2 green 3 yellow 4 blue
|
|
92190
|
+
* 5 magenta 6 cyan 9 bright-red 10 bright-green
|
|
92191
|
+
* 11 bright-yellow 12 bright-blue 13 bright-magenta 14 bright-cyan
|
|
92192
|
+
*/
|
|
92193
|
+
const CHROMATIC_ANSI_INDICES = new Set([
|
|
92194
|
+
1,
|
|
92195
|
+
2,
|
|
92196
|
+
3,
|
|
92197
|
+
4,
|
|
92198
|
+
5,
|
|
92199
|
+
6,
|
|
92200
|
+
9,
|
|
92201
|
+
10,
|
|
92202
|
+
11,
|
|
92203
|
+
12,
|
|
92204
|
+
13,
|
|
92205
|
+
14
|
|
92206
|
+
]);
|
|
92207
|
+
/**
|
|
92148
92208
|
* Detect which theme to use.
|
|
92149
92209
|
*
|
|
92210
|
+
* Priority:
|
|
92211
|
+
* 1. `FUSION_THEME` / `COLOR_THEME` env-var explicit override
|
|
92212
|
+
* 2. OSC 11 actual background color (most accurate)
|
|
92213
|
+
* – high saturation → transparent (vivid/chromatic bg, e.g. blue, green)
|
|
92214
|
+
* – low saturation + dark luminance → dark
|
|
92215
|
+
* – low saturation + light luminance → light
|
|
92216
|
+
* 3. COLORFGBG heuristic (chromatic ANSI index → transparent)
|
|
92217
|
+
* 4. macOS system appearance
|
|
92218
|
+
* 5. Default dark
|
|
92219
|
+
*
|
|
92150
92220
|
* @param terminalBg RGB tuple from a prior `queryOsc11()` call, or null/undefined.
|
|
92151
92221
|
* Pass this to get the most accurate result; without it the
|
|
92152
92222
|
* function falls back to env-var heuristics.
|
|
@@ -92155,8 +92225,10 @@ function detectTheme(terminalBg) {
|
|
|
92155
92225
|
const explicitTheme = process.env.FUSION_THEME ?? process.env.COLOR_THEME;
|
|
92156
92226
|
if (explicitTheme === "light") return defaultLightTheme;
|
|
92157
92227
|
if (explicitTheme === "dark") return defaultDarkTheme;
|
|
92228
|
+
if (explicitTheme === "transparent") return defaultTransparentTheme;
|
|
92158
92229
|
if (terminalBg != null) {
|
|
92159
92230
|
const [r, g, b] = terminalBg;
|
|
92231
|
+
if (rgbSaturation(r, g, b) > .35) return defaultTransparentTheme;
|
|
92160
92232
|
return (.299 * r + .587 * g + .114 * b) / 255 < .5 ? defaultDarkTheme : defaultLightTheme;
|
|
92161
92233
|
}
|
|
92162
92234
|
const colorfgbg = process.env.COLORFGBG ?? "";
|
|
@@ -92164,7 +92236,10 @@ function detectTheme(terminalBg) {
|
|
|
92164
92236
|
const parts = colorfgbg.split(";");
|
|
92165
92237
|
if (parts.length >= 2) {
|
|
92166
92238
|
const bg = parseInt(parts[parts.length - 1], 10);
|
|
92167
|
-
if (!isNaN(bg) && bg >= 0)
|
|
92239
|
+
if (!isNaN(bg) && bg >= 0) {
|
|
92240
|
+
if (CHROMATIC_ANSI_INDICES.has(bg)) return defaultTransparentTheme;
|
|
92241
|
+
return bg > 8 ? defaultLightTheme : defaultDarkTheme;
|
|
92242
|
+
}
|
|
92168
92243
|
}
|
|
92169
92244
|
}
|
|
92170
92245
|
if (process.platform === "darwin" && process.env.TERM_PROGRAM !== "vscode") try {
|
|
@@ -245108,7 +245183,7 @@ const LIB_CACHE = /* @__PURE__ */ new Map();
|
|
|
245108
245183
|
const PENDING_LIB_CACHE = /* @__PURE__ */ new Map();
|
|
245109
245184
|
const NODE_MODULE_CACHE = /* @__PURE__ */ new Map();
|
|
245110
245185
|
const TSCONFIG_CACHE = /* @__PURE__ */ new Map();
|
|
245111
|
-
const pkgVersion = process.env.OVERRIDE_VERSION ?? "0.4.
|
|
245186
|
+
const pkgVersion = process.env.OVERRIDE_VERSION ?? "0.4.4";
|
|
245112
245187
|
//#endregion
|
|
245113
245188
|
//#region ../dev-tools/core/detect-frameworks.ts
|
|
245114
245189
|
async function detectFrameworks$1(sys) {
|
|
@@ -499251,8 +499326,47 @@ async function backupGitRepo({ sys, credentials, projectId, branchName, repoPath
|
|
|
499251
499326
|
}
|
|
499252
499327
|
const originalRepoUrl = (folderName ? workspace.folders.find((f) => (f.name ?? f.path) === folderName) : workspace.folders.find((f) => f.enableGit))?.originalRepoUrl ?? repoUrl;
|
|
499253
499328
|
if (!originalRepoUrl) throw new Error("Original repo URL is required for backup upload");
|
|
499329
|
+
const forced = forcedFullBackup ? "offline-full" : !isConnectedToProvider ? "offline" : void 0;
|
|
499254
499330
|
const lastCommitHash = await getCurrentCommitHash();
|
|
499255
|
-
if (!lastCommitHash)
|
|
499331
|
+
if (!lastCommitHash) {
|
|
499332
|
+
let totalCommits = null;
|
|
499333
|
+
try {
|
|
499334
|
+
const out = await git([
|
|
499335
|
+
"rev-list",
|
|
499336
|
+
"--all",
|
|
499337
|
+
"--count"
|
|
499338
|
+
]);
|
|
499339
|
+
totalCommits = parseInt(out.trim(), 10);
|
|
499340
|
+
} catch {}
|
|
499341
|
+
if (totalCommits === 0) {
|
|
499342
|
+
backupLogger.info("Repository has no commits (empty repo) — nothing to back up");
|
|
499343
|
+
return {
|
|
499344
|
+
success: true,
|
|
499345
|
+
empty: true,
|
|
499346
|
+
lastCommitHash: "",
|
|
499347
|
+
partial: true,
|
|
499348
|
+
repoUrl: originalRepoUrl,
|
|
499349
|
+
backupRef: void 0,
|
|
499350
|
+
backupEntry: {
|
|
499351
|
+
projectId,
|
|
499352
|
+
branchName,
|
|
499353
|
+
size: 0,
|
|
499354
|
+
partial: true,
|
|
499355
|
+
initialBranch: featureBranch,
|
|
499356
|
+
initialCommitHash: void 0,
|
|
499357
|
+
lastCommitHash: "",
|
|
499358
|
+
gitBranchName: aiBranch,
|
|
499359
|
+
empty: true,
|
|
499360
|
+
status: "completed",
|
|
499361
|
+
version: "v2",
|
|
499362
|
+
repoUrl: originalRepoUrl,
|
|
499363
|
+
forced,
|
|
499364
|
+
...folderName && { folderName }
|
|
499365
|
+
}
|
|
499366
|
+
};
|
|
499367
|
+
}
|
|
499368
|
+
throw new Error(totalCommits === null ? "Failed to get current commit hash (git rev-list failed)" : `Failed to get current commit hash (rev-list --all --count returned ${totalCommits})`);
|
|
499369
|
+
}
|
|
499256
499370
|
const currentBranch = await getCurrentBranch();
|
|
499257
499371
|
if (!silenceErrors && currentBranch !== aiBranch) throw new Error(`Current branch "${currentBranch}" is not the ai branch "${aiBranch}"`);
|
|
499258
499372
|
const initCommitHashResult = await getInitialCommitHash({
|
|
@@ -499267,7 +499381,6 @@ async function backupGitRepo({ sys, credentials, projectId, branchName, repoPath
|
|
|
499267
499381
|
projectId,
|
|
499268
499382
|
folderName
|
|
499269
499383
|
});
|
|
499270
|
-
const forced = forcedFullBackup ? "offline-full" : !isConnectedToProvider ? "offline" : void 0;
|
|
499271
499384
|
const recentRemoteSHAs = await getRecentCommitSHAs(initCommitHashResult.initialBranch, 10);
|
|
499272
499385
|
const recentLocalSHAs = await getRecentCommitSHAs(aiBranch, 10);
|
|
499273
499386
|
try {
|
|
@@ -534889,7 +535002,7 @@ function useTextInput(options = {}) {
|
|
|
534889
535002
|
}
|
|
534890
535003
|
const code = input.charCodeAt(0);
|
|
534891
535004
|
if (input.length === 1 && code < 32 && code !== 10) return;
|
|
534892
|
-
if (input) {
|
|
535005
|
+
if (input && !key.ctrl && !key.meta) {
|
|
534893
535006
|
if (inputHistory.historyIndex !== -1) {
|
|
534894
535007
|
inputHistory.historyIndex = -1;
|
|
534895
535008
|
inputHistory.historyDraft = "";
|
|
@@ -536799,18 +536912,28 @@ const SUBVIEW_CONFIG = {
|
|
|
536799
536912
|
description: "Choose reasoning effort level"
|
|
536800
536913
|
}
|
|
536801
536914
|
};
|
|
536802
|
-
function renderCommandRow({ cmd, isSelected, maxLabelLen }) {
|
|
536915
|
+
function renderCommandRow({ cmd, isSelected, maxLabelLen, theme }) {
|
|
536803
536916
|
const padded = cmd.label.padEnd(maxLabelLen + 2);
|
|
536804
536917
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
536805
536918
|
width: "100%",
|
|
536806
536919
|
paddingX: 1,
|
|
536807
536920
|
children: isSelected ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
536808
|
-
backgroundColor:
|
|
536809
|
-
color:
|
|
536921
|
+
backgroundColor: theme.highlightBackground,
|
|
536922
|
+
color: theme.highlight,
|
|
536810
536923
|
children: [
|
|
536811
536924
|
" ",
|
|
536812
|
-
|
|
536813
|
-
|
|
536925
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
536926
|
+
backgroundColor: theme.highlightBackground,
|
|
536927
|
+
color: theme.highlight,
|
|
536928
|
+
bold: true,
|
|
536929
|
+
children: padded
|
|
536930
|
+
}),
|
|
536931
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
536932
|
+
backgroundColor: theme.highlightBackground,
|
|
536933
|
+
color: theme.highlight,
|
|
536934
|
+
dimColor: true,
|
|
536935
|
+
children: cmd.description
|
|
536936
|
+
}),
|
|
536814
536937
|
" "
|
|
536815
536938
|
]
|
|
536816
536939
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
|
|
@@ -537024,7 +537147,7 @@ function SlashCommandMenu(t0) {
|
|
|
537024
537147
|
const visibleStart = scrollOffset;
|
|
537025
537148
|
const visibleEnd = Math.min(scrollOffset + MAX_VISIBLE_ITEMS, commands.length);
|
|
537026
537149
|
let t10;
|
|
537027
|
-
if ($[24] !== commands || $[25] !== contextPct || $[26] !== contextTotal || $[27] !== contextUsed || $[28] !== currentReasoning || $[29] !== maxLabelLen || $[30] !== prefs || $[31] !== proxy || $[32] !== selectedIndex || $[33] !== state.model || $[34] !== state.modelOverride || $[35] !== state.sessionMode || $[36] !== theme
|
|
537150
|
+
if ($[24] !== commands || $[25] !== contextPct || $[26] !== contextTotal || $[27] !== contextUsed || $[28] !== currentReasoning || $[29] !== maxLabelLen || $[30] !== prefs || $[31] !== proxy || $[32] !== selectedIndex || $[33] !== state.model || $[34] !== state.modelOverride || $[35] !== state.sessionMode || $[36] !== theme || $[37] !== view || $[38] !== visibleEnd || $[39] !== visibleStart) {
|
|
537028
537151
|
const visibleCommands = commands.slice(visibleStart, visibleEnd);
|
|
537029
537152
|
const itemsAbove = visibleStart;
|
|
537030
537153
|
const itemsBelow = commands.length - visibleEnd;
|
|
@@ -537051,7 +537174,8 @@ function SlashCommandMenu(t0) {
|
|
|
537051
537174
|
visibleCommands.map((cmd_0, i_3) => renderCommandRow({
|
|
537052
537175
|
cmd: cmd_0,
|
|
537053
537176
|
isSelected: visibleStart + i_3 === selectedIndex,
|
|
537054
|
-
maxLabelLen
|
|
537177
|
+
maxLabelLen,
|
|
537178
|
+
theme
|
|
537055
537179
|
})),
|
|
537056
537180
|
itemsBelow > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
537057
537181
|
paddingX: 2,
|
|
@@ -537246,12 +537370,22 @@ function SlashCommandMenu(t0) {
|
|
|
537246
537370
|
width: "100%",
|
|
537247
537371
|
paddingLeft: 2,
|
|
537248
537372
|
children: absoluteIndex === selectedIndex ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
537249
|
-
backgroundColor:
|
|
537250
|
-
color:
|
|
537373
|
+
backgroundColor: theme.highlightBackground,
|
|
537374
|
+
color: theme.highlight,
|
|
537251
537375
|
children: [
|
|
537252
537376
|
" ",
|
|
537253
|
-
|
|
537254
|
-
|
|
537377
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
537378
|
+
backgroundColor: theme.highlightBackground,
|
|
537379
|
+
color: theme.highlight,
|
|
537380
|
+
bold: true,
|
|
537381
|
+
children: padded
|
|
537382
|
+
}),
|
|
537383
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
537384
|
+
backgroundColor: theme.highlightBackground,
|
|
537385
|
+
color: theme.highlight,
|
|
537386
|
+
dimColor: true,
|
|
537387
|
+
children: cmd_2.description
|
|
537388
|
+
}),
|
|
537255
537389
|
" "
|
|
537256
537390
|
]
|
|
537257
537391
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
|
|
@@ -537285,7 +537419,7 @@ function SlashCommandMenu(t0) {
|
|
|
537285
537419
|
$[33] = state.model;
|
|
537286
537420
|
$[34] = state.modelOverride;
|
|
537287
537421
|
$[35] = state.sessionMode;
|
|
537288
|
-
$[36] = theme
|
|
537422
|
+
$[36] = theme;
|
|
537289
537423
|
$[37] = view;
|
|
537290
537424
|
$[38] = visibleEnd;
|
|
537291
537425
|
$[39] = visibleStart;
|
|
@@ -537812,16 +537946,16 @@ const InputPrompt = (0, import_react.memo)(({ onSubmit, onChange, onSlashCommand
|
|
|
537812
537946
|
onCancel: handleAtCancel
|
|
537813
537947
|
}),
|
|
537814
537948
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
537815
|
-
borderStyle: "bold",
|
|
537949
|
+
borderStyle: theme.panelBackground ? "bold" : "round",
|
|
537816
537950
|
borderColor: accentColor,
|
|
537817
537951
|
borderLeft: true,
|
|
537818
|
-
borderRight:
|
|
537819
|
-
borderTop:
|
|
537820
|
-
borderBottom:
|
|
537952
|
+
borderRight: !theme.panelBackground,
|
|
537953
|
+
borderTop: !theme.panelBackground,
|
|
537954
|
+
borderBottom: !theme.panelBackground,
|
|
537821
537955
|
flexDirection: "column",
|
|
537822
537956
|
paddingLeft: 2,
|
|
537823
537957
|
paddingRight: 2,
|
|
537824
|
-
paddingY: 1,
|
|
537958
|
+
paddingY: theme.panelBackground ? 1 : 0,
|
|
537825
537959
|
backgroundColor: theme.panelBackground,
|
|
537826
537960
|
children: [
|
|
537827
537961
|
pendingAttachments.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
@@ -540672,7 +540806,6 @@ const GeneratingProgress = (0, import_react.memo)(() => {
|
|
|
540672
540806
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
540673
540807
|
flexDirection: "column",
|
|
540674
540808
|
marginTop: 2,
|
|
540675
|
-
marginBottom: 1,
|
|
540676
540809
|
children: [
|
|
540677
540810
|
t1,
|
|
540678
540811
|
inProgress && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
@@ -541992,7 +542125,7 @@ const FooterSection = (0, import_react.memo)(() => {
|
|
|
541992
542125
|
children: [
|
|
541993
542126
|
"•",
|
|
541994
542127
|
" Fusion ",
|
|
541995
|
-
"0.4.
|
|
542128
|
+
"0.4.4"
|
|
541996
542129
|
]
|
|
541997
542130
|
});
|
|
541998
542131
|
$[10] = t7;
|
|
@@ -601136,11 +601269,11 @@ function renderInlineFormatting(text) {
|
|
|
601136
601269
|
}
|
|
601137
601270
|
function parseMarkdownBlocks(raw) {
|
|
601138
601271
|
const blocks = [];
|
|
601139
|
-
const lines = raw.split("\n");
|
|
601272
|
+
const lines = raw.replace(/\r/g, "").split("\n");
|
|
601140
601273
|
let i = 0;
|
|
601141
601274
|
while (i < lines.length) {
|
|
601142
601275
|
const line = lines[i];
|
|
601143
|
-
const fenceMatch = line.match(/^```(\w*)/);
|
|
601276
|
+
const fenceMatch = line.match(/^```([\w+#.-]*)/);
|
|
601144
601277
|
if (fenceMatch) {
|
|
601145
601278
|
const lang = fenceMatch[1] || void 0;
|
|
601146
601279
|
const codeLines = [];
|
|
@@ -601157,7 +601290,7 @@ function parseMarkdownBlocks(raw) {
|
|
|
601157
601290
|
i++;
|
|
601158
601291
|
continue;
|
|
601159
601292
|
}
|
|
601160
|
-
const headingMatch = line.match(/^(#{1,3})\s+(
|
|
601293
|
+
const headingMatch = line.match(/^(#{1,3})\s+(.*)/);
|
|
601161
601294
|
if (headingMatch) {
|
|
601162
601295
|
blocks.push({
|
|
601163
601296
|
type: "heading",
|
|
@@ -601212,6 +601345,7 @@ function parseMarkdownBlocks(raw) {
|
|
|
601212
601345
|
type: "text",
|
|
601213
601346
|
content: textLines.join("\n")
|
|
601214
601347
|
});
|
|
601348
|
+
else i++;
|
|
601215
601349
|
}
|
|
601216
601350
|
return blocks;
|
|
601217
601351
|
}
|
|
@@ -602933,57 +603067,35 @@ function getToolAriaProps(toolName, input) {
|
|
|
602933
603067
|
};
|
|
602934
603068
|
}
|
|
602935
603069
|
const MessageBlockView = (0, import_react.memo)((props) => {
|
|
602936
|
-
const $ = (0, import_compiler_runtime.c)(
|
|
603070
|
+
const $ = (0, import_compiler_runtime.c)(55);
|
|
602937
603071
|
const message = useSnapshot(props.message);
|
|
602938
603072
|
const theme = useTheme();
|
|
602939
|
-
const [flash, setFlash] = (0, import_react.useState)(false);
|
|
602940
|
-
let t0;
|
|
602941
|
-
let t1;
|
|
602942
|
-
if ($[0] !== props.highlighted) {
|
|
602943
|
-
t0 = () => {
|
|
602944
|
-
if (props.highlighted) {
|
|
602945
|
-
setFlash(true);
|
|
602946
|
-
const timer = setTimeout(() => setFlash(false), 1e3);
|
|
602947
|
-
return () => clearTimeout(timer);
|
|
602948
|
-
}
|
|
602949
|
-
setFlash(false);
|
|
602950
|
-
};
|
|
602951
|
-
t1 = [props.highlighted];
|
|
602952
|
-
$[0] = props.highlighted;
|
|
602953
|
-
$[1] = t0;
|
|
602954
|
-
$[2] = t1;
|
|
602955
|
-
} else {
|
|
602956
|
-
t0 = $[1];
|
|
602957
|
-
t1 = $[2];
|
|
602958
|
-
}
|
|
602959
|
-
(0, import_react.useEffect)(t0, t1);
|
|
602960
|
-
const flashBg = flash ? theme.highlightBackground : void 0;
|
|
602961
603073
|
let inner;
|
|
602962
603074
|
bb0: switch (message.type) {
|
|
602963
603075
|
case "user": {
|
|
602964
603076
|
if (message.compacting) {
|
|
602965
|
-
const
|
|
602966
|
-
let
|
|
602967
|
-
let
|
|
602968
|
-
if ($[
|
|
602969
|
-
|
|
603077
|
+
const t0 = props.highlighted ? theme.highlightBackground : theme.panelBackground;
|
|
603078
|
+
let t1;
|
|
603079
|
+
let t2;
|
|
603080
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
603081
|
+
t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
602970
603082
|
color: "yellow",
|
|
602971
603083
|
bold: true,
|
|
602972
603084
|
children: "Compacting conversation"
|
|
602973
603085
|
});
|
|
602974
|
-
|
|
603086
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
602975
603087
|
dimColor: true,
|
|
602976
603088
|
children: "The conversation is too long to keep in the AI memory, auto-summarizing might take up to 1 minute. Conversation can continue shortly."
|
|
602977
603089
|
});
|
|
602978
|
-
$[
|
|
602979
|
-
$[
|
|
603090
|
+
$[0] = t1;
|
|
603091
|
+
$[1] = t2;
|
|
602980
603092
|
} else {
|
|
602981
|
-
|
|
602982
|
-
|
|
603093
|
+
t1 = $[0];
|
|
603094
|
+
t2 = $[1];
|
|
602983
603095
|
}
|
|
602984
|
-
let
|
|
602985
|
-
if ($[
|
|
602986
|
-
|
|
603096
|
+
let t3;
|
|
603097
|
+
if ($[2] !== message.id || $[3] !== t0) {
|
|
603098
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
602987
603099
|
marginBottom: 1,
|
|
602988
603100
|
paddingLeft: 2,
|
|
602989
603101
|
paddingRight: 2,
|
|
@@ -602994,34 +603106,34 @@ const MessageBlockView = (0, import_react.memo)((props) => {
|
|
|
602994
603106
|
borderTop: false,
|
|
602995
603107
|
borderBottom: false,
|
|
602996
603108
|
borderColor: "yellow",
|
|
602997
|
-
backgroundColor:
|
|
603109
|
+
backgroundColor: t0,
|
|
602998
603110
|
flexDirection: "column",
|
|
602999
603111
|
"aria-role": "listitem",
|
|
603000
603112
|
"aria-label": "Compacting conversation",
|
|
603001
|
-
children: [
|
|
603113
|
+
children: [t1, t2]
|
|
603002
603114
|
}, message.id);
|
|
603003
|
-
$[
|
|
603004
|
-
$[
|
|
603005
|
-
$[
|
|
603006
|
-
} else
|
|
603007
|
-
inner =
|
|
603115
|
+
$[2] = message.id;
|
|
603116
|
+
$[3] = t0;
|
|
603117
|
+
$[4] = t3;
|
|
603118
|
+
} else t3 = $[4];
|
|
603119
|
+
inner = t3;
|
|
603008
603120
|
break bb0;
|
|
603009
603121
|
}
|
|
603010
|
-
const
|
|
603011
|
-
const
|
|
603012
|
-
const
|
|
603013
|
-
let
|
|
603014
|
-
if ($[
|
|
603015
|
-
|
|
603122
|
+
const t0 = props.highlighted ? theme.highlightBackground : theme.panelBackground;
|
|
603123
|
+
const t1 = `User: ${message.displayPrompt ?? ""}`;
|
|
603124
|
+
const t2 = message.displayPrompt ?? "";
|
|
603125
|
+
let t3;
|
|
603126
|
+
if ($[5] !== t2) {
|
|
603127
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
603016
603128
|
wrap: "wrap",
|
|
603017
|
-
children:
|
|
603129
|
+
children: t2
|
|
603018
603130
|
});
|
|
603019
|
-
$[
|
|
603020
|
-
$[
|
|
603021
|
-
} else
|
|
603022
|
-
let
|
|
603023
|
-
if ($[
|
|
603024
|
-
|
|
603131
|
+
$[5] = t2;
|
|
603132
|
+
$[6] = t3;
|
|
603133
|
+
} else t3 = $[6];
|
|
603134
|
+
let t4;
|
|
603135
|
+
if ($[7] !== message.id || $[8] !== t0 || $[9] !== t1 || $[10] !== t3) {
|
|
603136
|
+
t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603025
603137
|
marginBottom: 1,
|
|
603026
603138
|
paddingLeft: 2,
|
|
603027
603139
|
paddingRight: 2,
|
|
@@ -603032,160 +603144,164 @@ const MessageBlockView = (0, import_react.memo)((props) => {
|
|
|
603032
603144
|
borderTop: false,
|
|
603033
603145
|
borderBottom: false,
|
|
603034
603146
|
borderColor: "green",
|
|
603035
|
-
backgroundColor:
|
|
603147
|
+
backgroundColor: t0,
|
|
603036
603148
|
flexDirection: "column",
|
|
603037
603149
|
"aria-role": "listitem",
|
|
603038
|
-
"aria-label":
|
|
603039
|
-
children:
|
|
603150
|
+
"aria-label": t1,
|
|
603151
|
+
children: t3
|
|
603040
603152
|
}, message.id);
|
|
603041
|
-
$[
|
|
603042
|
-
$[
|
|
603043
|
-
$[
|
|
603044
|
-
$[
|
|
603045
|
-
$[
|
|
603046
|
-
} else
|
|
603047
|
-
inner =
|
|
603153
|
+
$[7] = message.id;
|
|
603154
|
+
$[8] = t0;
|
|
603155
|
+
$[9] = t1;
|
|
603156
|
+
$[10] = t3;
|
|
603157
|
+
$[11] = t4;
|
|
603158
|
+
} else t4 = $[11];
|
|
603159
|
+
inner = t4;
|
|
603048
603160
|
break bb0;
|
|
603049
603161
|
}
|
|
603050
603162
|
case "text": {
|
|
603051
|
-
|
|
603052
|
-
|
|
603053
|
-
|
|
603163
|
+
const t0 = props.highlighted ? theme.highlightBackground : void 0;
|
|
603164
|
+
let t1;
|
|
603165
|
+
if ($[12] !== message.content || $[13] !== message.id || $[14] !== props.onRender) {
|
|
603166
|
+
t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CompletedTextBlock, {
|
|
603054
603167
|
text: message.content,
|
|
603055
603168
|
streaming: false,
|
|
603056
603169
|
onRender: props.onRender
|
|
603057
603170
|
}, message.id);
|
|
603058
|
-
$[
|
|
603059
|
-
$[
|
|
603060
|
-
$[
|
|
603061
|
-
$[
|
|
603062
|
-
} else
|
|
603063
|
-
let
|
|
603064
|
-
if ($[
|
|
603065
|
-
|
|
603171
|
+
$[12] = message.content;
|
|
603172
|
+
$[13] = message.id;
|
|
603173
|
+
$[14] = props.onRender;
|
|
603174
|
+
$[15] = t1;
|
|
603175
|
+
} else t1 = $[15];
|
|
603176
|
+
let t2;
|
|
603177
|
+
if ($[16] !== t0 || $[17] !== t1) {
|
|
603178
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603066
603179
|
flexDirection: "column",
|
|
603067
|
-
backgroundColor:
|
|
603180
|
+
backgroundColor: t0,
|
|
603068
603181
|
"aria-role": "listitem",
|
|
603069
|
-
children:
|
|
603182
|
+
children: t1
|
|
603070
603183
|
});
|
|
603071
|
-
$[
|
|
603072
|
-
$[
|
|
603073
|
-
$[
|
|
603074
|
-
} else
|
|
603075
|
-
inner =
|
|
603184
|
+
$[16] = t0;
|
|
603185
|
+
$[17] = t1;
|
|
603186
|
+
$[18] = t2;
|
|
603187
|
+
} else t2 = $[18];
|
|
603188
|
+
inner = t2;
|
|
603076
603189
|
break bb0;
|
|
603077
603190
|
}
|
|
603078
603191
|
case "tool": {
|
|
603079
603192
|
const toolMsg = message;
|
|
603080
|
-
const
|
|
603081
|
-
let
|
|
603082
|
-
if ($[
|
|
603083
|
-
|
|
603084
|
-
$[
|
|
603085
|
-
$[
|
|
603086
|
-
$[
|
|
603087
|
-
} else
|
|
603088
|
-
const { ariaHidden, ariaLabel } =
|
|
603089
|
-
const
|
|
603090
|
-
|
|
603091
|
-
|
|
603092
|
-
|
|
603193
|
+
const t0 = toolMsg.input;
|
|
603194
|
+
let t1;
|
|
603195
|
+
if ($[19] !== t0 || $[20] !== toolMsg.toolName) {
|
|
603196
|
+
t1 = getToolAriaProps(toolMsg.toolName, t0);
|
|
603197
|
+
$[19] = t0;
|
|
603198
|
+
$[20] = toolMsg.toolName;
|
|
603199
|
+
$[21] = t1;
|
|
603200
|
+
} else t1 = $[21];
|
|
603201
|
+
const { ariaHidden, ariaLabel } = t1;
|
|
603202
|
+
const t2 = props.highlighted ? theme.highlightBackground : void 0;
|
|
603203
|
+
const t3 = ariaHidden || void 0;
|
|
603204
|
+
let t4;
|
|
603205
|
+
if ($[22] !== message.id || $[23] !== props.onRender || $[24] !== toolMsg) {
|
|
603206
|
+
t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToolCallCompleted, {
|
|
603093
603207
|
tool: toolMsg,
|
|
603094
603208
|
onRender: props.onRender
|
|
603095
603209
|
}, message.id);
|
|
603096
|
-
$[
|
|
603097
|
-
$[
|
|
603098
|
-
$[
|
|
603099
|
-
$[
|
|
603100
|
-
} else
|
|
603101
|
-
let
|
|
603102
|
-
if ($[
|
|
603103
|
-
|
|
603210
|
+
$[22] = message.id;
|
|
603211
|
+
$[23] = props.onRender;
|
|
603212
|
+
$[24] = toolMsg;
|
|
603213
|
+
$[25] = t4;
|
|
603214
|
+
} else t4 = $[25];
|
|
603215
|
+
let t5;
|
|
603216
|
+
if ($[26] !== ariaLabel || $[27] !== t2 || $[28] !== t3 || $[29] !== t4) {
|
|
603217
|
+
t5 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603104
603218
|
flexDirection: "column",
|
|
603105
|
-
backgroundColor:
|
|
603106
|
-
"aria-hidden":
|
|
603219
|
+
backgroundColor: t2,
|
|
603220
|
+
"aria-hidden": t3,
|
|
603107
603221
|
"aria-label": ariaLabel,
|
|
603108
|
-
children:
|
|
603222
|
+
children: t4
|
|
603109
603223
|
});
|
|
603110
|
-
$[
|
|
603111
|
-
$[
|
|
603112
|
-
$[
|
|
603113
|
-
$[
|
|
603114
|
-
$[
|
|
603115
|
-
} else
|
|
603116
|
-
inner =
|
|
603224
|
+
$[26] = ariaLabel;
|
|
603225
|
+
$[27] = t2;
|
|
603226
|
+
$[28] = t3;
|
|
603227
|
+
$[29] = t4;
|
|
603228
|
+
$[30] = t5;
|
|
603229
|
+
} else t5 = $[30];
|
|
603230
|
+
inner = t5;
|
|
603117
603231
|
break bb0;
|
|
603118
603232
|
}
|
|
603119
603233
|
case "thinking": {
|
|
603120
|
-
|
|
603121
|
-
|
|
603122
|
-
|
|
603234
|
+
const t0 = props.highlighted ? theme.highlightBackground : void 0;
|
|
603235
|
+
let t1;
|
|
603236
|
+
if ($[31] !== message.content || $[32] !== message.id || $[33] !== message.startedAt || $[34] !== message.streaming || $[35] !== props.onRender) {
|
|
603237
|
+
t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThinkingBlock, {
|
|
603123
603238
|
text: message.content,
|
|
603124
603239
|
streaming: message.streaming,
|
|
603125
603240
|
startedAt: message.startedAt,
|
|
603126
603241
|
onRender: props.onRender
|
|
603127
603242
|
}, message.id);
|
|
603128
|
-
$[
|
|
603129
|
-
$[
|
|
603130
|
-
$[
|
|
603131
|
-
$[
|
|
603132
|
-
$[
|
|
603133
|
-
$[
|
|
603134
|
-
} else
|
|
603135
|
-
let
|
|
603136
|
-
if ($[
|
|
603137
|
-
|
|
603243
|
+
$[31] = message.content;
|
|
603244
|
+
$[32] = message.id;
|
|
603245
|
+
$[33] = message.startedAt;
|
|
603246
|
+
$[34] = message.streaming;
|
|
603247
|
+
$[35] = props.onRender;
|
|
603248
|
+
$[36] = t1;
|
|
603249
|
+
} else t1 = $[36];
|
|
603250
|
+
let t2;
|
|
603251
|
+
if ($[37] !== t0 || $[38] !== t1) {
|
|
603252
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603138
603253
|
flexDirection: "column",
|
|
603139
|
-
backgroundColor:
|
|
603254
|
+
backgroundColor: t0,
|
|
603140
603255
|
"aria-hidden": true,
|
|
603141
|
-
children:
|
|
603256
|
+
children: t1
|
|
603142
603257
|
});
|
|
603143
|
-
$[
|
|
603144
|
-
$[
|
|
603145
|
-
$[
|
|
603146
|
-
} else
|
|
603147
|
-
inner =
|
|
603258
|
+
$[37] = t0;
|
|
603259
|
+
$[38] = t1;
|
|
603260
|
+
$[39] = t2;
|
|
603261
|
+
} else t2 = $[39];
|
|
603262
|
+
inner = t2;
|
|
603148
603263
|
break bb0;
|
|
603149
603264
|
}
|
|
603150
603265
|
case "idle": {
|
|
603151
603266
|
const idleMsg = message;
|
|
603267
|
+
let t0;
|
|
603268
|
+
if ($[40] !== idleMsg.durationMs) {
|
|
603269
|
+
t0 = formatDuration(idleMsg.durationMs);
|
|
603270
|
+
$[40] = idleMsg.durationMs;
|
|
603271
|
+
$[41] = t0;
|
|
603272
|
+
} else t0 = $[41];
|
|
603273
|
+
const idleDuration = t0;
|
|
603274
|
+
const idleAriaLabel = idleMsg.state === "error" ? `Failed after ${idleDuration}` : idleMsg.state === "abort" ? `Interrupted after ${idleDuration}` : `Worked for ${idleDuration}`;
|
|
603275
|
+
const t1 = props.highlighted ? theme.highlightBackground : void 0;
|
|
603152
603276
|
let t2;
|
|
603153
|
-
if ($[43] !==
|
|
603154
|
-
t2 =
|
|
603155
|
-
$[
|
|
603277
|
+
if ($[42] !== idleMsg || $[43] !== message.id) {
|
|
603278
|
+
t2 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IdleBlock, { message: idleMsg }, message.id);
|
|
603279
|
+
$[42] = idleMsg;
|
|
603280
|
+
$[43] = message.id;
|
|
603156
603281
|
$[44] = t2;
|
|
603157
603282
|
} else t2 = $[44];
|
|
603158
|
-
const idleDuration = t2;
|
|
603159
|
-
const idleAriaLabel = idleMsg.state === "error" ? `Failed after ${idleDuration}` : idleMsg.state === "abort" ? `Interrupted after ${idleDuration}` : `Worked for ${idleDuration}`;
|
|
603160
603283
|
let t3;
|
|
603161
|
-
if ($[45] !==
|
|
603162
|
-
t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
603163
|
-
$[45] = idleMsg;
|
|
603164
|
-
$[46] = message.id;
|
|
603165
|
-
$[47] = t3;
|
|
603166
|
-
} else t3 = $[47];
|
|
603167
|
-
let t4;
|
|
603168
|
-
if ($[48] !== flashBg || $[49] !== idleAriaLabel || $[50] !== t3) {
|
|
603169
|
-
t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603284
|
+
if ($[45] !== idleAriaLabel || $[46] !== t1 || $[47] !== t2) {
|
|
603285
|
+
t3 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603170
603286
|
flexDirection: "column",
|
|
603171
|
-
backgroundColor:
|
|
603287
|
+
backgroundColor: t1,
|
|
603172
603288
|
"aria-role": "listitem",
|
|
603173
603289
|
"aria-label": idleAriaLabel,
|
|
603174
|
-
children:
|
|
603290
|
+
children: t2
|
|
603175
603291
|
});
|
|
603176
|
-
$[
|
|
603177
|
-
$[
|
|
603178
|
-
$[
|
|
603179
|
-
$[
|
|
603180
|
-
} else
|
|
603181
|
-
inner =
|
|
603292
|
+
$[45] = idleAriaLabel;
|
|
603293
|
+
$[46] = t1;
|
|
603294
|
+
$[47] = t2;
|
|
603295
|
+
$[48] = t3;
|
|
603296
|
+
} else t3 = $[48];
|
|
603297
|
+
inner = t3;
|
|
603182
603298
|
break bb0;
|
|
603183
603299
|
}
|
|
603184
603300
|
default: throw new Error(`Unknown message type: ${message}`);
|
|
603185
603301
|
}
|
|
603186
|
-
let
|
|
603187
|
-
if ($[
|
|
603188
|
-
|
|
603302
|
+
let t0;
|
|
603303
|
+
if ($[49] !== props.highlighted || $[50] !== theme) {
|
|
603304
|
+
t0 = props.highlighted && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603189
603305
|
position: "absolute",
|
|
603190
603306
|
top: 0,
|
|
603191
603307
|
right: 0,
|
|
@@ -603201,21 +603317,21 @@ const MessageBlockView = (0, import_react.memo)((props) => {
|
|
|
603201
603317
|
children: "✓ Copied"
|
|
603202
603318
|
})
|
|
603203
603319
|
});
|
|
603204
|
-
$[
|
|
603205
|
-
$[
|
|
603206
|
-
$[
|
|
603207
|
-
} else
|
|
603208
|
-
let
|
|
603209
|
-
if ($[
|
|
603210
|
-
|
|
603320
|
+
$[49] = props.highlighted;
|
|
603321
|
+
$[50] = theme;
|
|
603322
|
+
$[51] = t0;
|
|
603323
|
+
} else t0 = $[51];
|
|
603324
|
+
let t1;
|
|
603325
|
+
if ($[52] !== inner || $[53] !== t0) {
|
|
603326
|
+
t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, {
|
|
603211
603327
|
position: "relative",
|
|
603212
|
-
children: [inner,
|
|
603328
|
+
children: [inner, t0]
|
|
603213
603329
|
});
|
|
603214
|
-
$[
|
|
603215
|
-
$[
|
|
603216
|
-
$[
|
|
603217
|
-
} else
|
|
603218
|
-
return
|
|
603330
|
+
$[52] = inner;
|
|
603331
|
+
$[53] = t0;
|
|
603332
|
+
$[54] = t1;
|
|
603333
|
+
} else t1 = $[54];
|
|
603334
|
+
return t1;
|
|
603219
603335
|
});
|
|
603220
603336
|
function CompletedTextBlock(t0) {
|
|
603221
603337
|
const $ = (0, import_compiler_runtime.c)(8);
|
|
@@ -603260,7 +603376,15 @@ function ThinkingBlock(t0) {
|
|
|
603260
603376
|
const streaming = t1 === void 0 ? false : t1;
|
|
603261
603377
|
let t2;
|
|
603262
603378
|
if ($[0] !== text) {
|
|
603263
|
-
|
|
603379
|
+
const lines = text.trimEnd().split("\n");
|
|
603380
|
+
let numberOfLines = 0;
|
|
603381
|
+
let accumulatedLength = 0;
|
|
603382
|
+
for (let i = lines.length - 1; i >= 0; i--) {
|
|
603383
|
+
numberOfLines++;
|
|
603384
|
+
accumulatedLength = accumulatedLength + lines[i].length;
|
|
603385
|
+
if (accumulatedLength > 600) break;
|
|
603386
|
+
}
|
|
603387
|
+
t2 = lines.slice(-numberOfLines).join("\n");
|
|
603264
603388
|
$[0] = text;
|
|
603265
603389
|
$[1] = t2;
|
|
603266
603390
|
} else t2 = $[1];
|
|
@@ -603993,7 +604117,6 @@ const CodeSession = (0, import_react.memo)(({ onExit, isTabActive = true, update
|
|
|
603993
604117
|
flexDirection: "column",
|
|
603994
604118
|
flexGrow: 1,
|
|
603995
604119
|
paddingRight: 2,
|
|
603996
|
-
paddingY: 1,
|
|
603997
604120
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
603998
604121
|
flexDirection: "column",
|
|
603999
604122
|
flexGrow: 1,
|
|
@@ -605965,7 +606088,7 @@ const TabBar = (0, import_react.memo)((t0) => {
|
|
|
605965
606088
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
605966
606089
|
t8 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
605967
606090
|
dimColor: true,
|
|
605968
|
-
children: " · Ctrl+
|
|
606091
|
+
children: " · Ctrl+T to cycle"
|
|
605969
606092
|
});
|
|
605970
606093
|
$[11] = t8;
|
|
605971
606094
|
} else t8 = $[11];
|
|
@@ -606084,8 +606207,8 @@ function CodeCommand({ onExit, sys, options, updateCheck }) {
|
|
|
606084
606207
|
process.exit(0);
|
|
606085
606208
|
}, 100);
|
|
606086
606209
|
}, [exit, onExit]);
|
|
606087
|
-
useInput((input,
|
|
606088
|
-
if (input === "
|
|
606210
|
+
useInput((input, key) => {
|
|
606211
|
+
if (key.ctrl && input === "t" && clawEnabled === true) {
|
|
606089
606212
|
setClawHasUnread(false);
|
|
606090
606213
|
setDisplayMode((prev) => prev === "code" ? "claw" : prev === "claw" ? "kanban" : "code");
|
|
606091
606214
|
}
|
|
@@ -606252,7 +606375,7 @@ function isStandaloneBinary() {
|
|
|
606252
606375
|
return !path$6.basename(process.execPath, ".exe").startsWith("node");
|
|
606253
606376
|
}
|
|
606254
606377
|
function getCurrentVersion() {
|
|
606255
|
-
return "0.4.
|
|
606378
|
+
return "0.4.4";
|
|
606256
606379
|
}
|
|
606257
606380
|
async function fetchLatestVersion() {
|
|
606258
606381
|
return new Promise((resolve, reject) => {
|
|
@@ -606676,7 +606799,7 @@ function initSentry() {
|
|
|
606676
606799
|
init({
|
|
606677
606800
|
dsn: "https://1c5033d697e0271ebe53773bff826de0@o117565.ingest.us.sentry.io/4511107776905216",
|
|
606678
606801
|
tracesSampleRate: 0,
|
|
606679
|
-
release: "0.4.
|
|
606802
|
+
release: "0.4.4",
|
|
606680
606803
|
environment: process.env.NODE_ENV ?? "development",
|
|
606681
606804
|
enabled: false,
|
|
606682
606805
|
registerEsmLoaderHooks: false,
|
|
@@ -606688,7 +606811,7 @@ function initSentry() {
|
|
|
606688
606811
|
}
|
|
606689
606812
|
//#endregion
|
|
606690
606813
|
//#region src/cli.tsx
|
|
606691
|
-
const VERSION = "0.4.
|
|
606814
|
+
const VERSION = "0.4.4";
|
|
606692
606815
|
async function startInk(command, options) {
|
|
606693
606816
|
const sys = await createDevToolsNodeSys({
|
|
606694
606817
|
cwd: process.cwd(),
|