@cnwenf/occ 2.1.246 → 2.1.247
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.js +44 -19
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -57801,7 +57801,7 @@ var init_env = __esm(() => {
|
|
|
57801
57801
|
});
|
|
57802
57802
|
|
|
57803
57803
|
// src/constants/figures.ts
|
|
57804
|
-
var BLACK_CIRCLE, BULLET_OPERATOR = "\u2219", TEARDROP_ASTERISK = "\u273B", UP_ARROW = "\u2191", DOWN_ARROW = "\u2193", LIGHTNING_BOLT = "\u21AF", EFFORT_LOW = "\u25CB", EFFORT_MEDIUM = "\u25D0", EFFORT_HIGH = "\u25CF", EFFORT_MAX = "\u25C9", PAUSE_ICON = "\u23F8", REFRESH_ARROW = "\u21BB", CHANNEL_ARROW = "\u2190", DIAMOND_OPEN = "\u25C7", DIAMOND_FILLED = "\u25C6", REFERENCE_MARK = "\u203B", BLOCKQUOTE_BAR = "\u258E", BRIDGE_SPINNER_FRAMES, BRIDGE_READY_INDICATOR = "\xB7\u2714\uFE0E\xB7", BRIDGE_FAILED_INDICATOR = "\xD7";
|
|
57804
|
+
var BLACK_CIRCLE, BULLET_OPERATOR = "\u2219", TEARDROP_ASTERISK = "\u273B", UP_ARROW = "\u2191", DOWN_ARROW = "\u2193", LIGHTNING_BOLT = "\u21AF", EFFORT_LOW = "\u25CB", EFFORT_MEDIUM = "\u25D0", EFFORT_HIGH = "\u25CF", EFFORT_XHIGH = "\u25CD", EFFORT_MAX = "\u25C9", PAUSE_ICON = "\u23F8", REFRESH_ARROW = "\u21BB", CHANNEL_ARROW = "\u2190", DIAMOND_OPEN = "\u25C7", DIAMOND_FILLED = "\u25C6", REFERENCE_MARK = "\u203B", BLOCKQUOTE_BAR = "\u258E", BRIDGE_SPINNER_FRAMES, BRIDGE_READY_INDICATOR = "\xB7\u2714\uFE0E\xB7", BRIDGE_FAILED_INDICATOR = "\xD7";
|
|
57805
57805
|
var init_figures2 = __esm(() => {
|
|
57806
57806
|
init_env();
|
|
57807
57807
|
BLACK_CIRCLE = env4.platform === "darwin" ? "\u23FA" : "\u25CF";
|
|
@@ -567760,6 +567760,9 @@ var init_ThemePicker = __esm(() => {
|
|
|
567760
567760
|
|
|
567761
567761
|
// src/components/EffortIndicator.ts
|
|
567762
567762
|
function getEffortNotificationText(effortValue, model) {
|
|
567763
|
+
if (isUltracodeEnabled()) {
|
|
567764
|
+
return `effort: ultracode \xB7 ${ULTRACODE_EFFORT_DESCRIPTION}`;
|
|
567765
|
+
}
|
|
567763
567766
|
if (!modelSupportsEffort(model))
|
|
567764
567767
|
return;
|
|
567765
567768
|
const level = getDisplayedEffortLevel(model, effortValue);
|
|
@@ -567773,6 +567776,8 @@ function effortLevelToSymbol(level) {
|
|
|
567773
567776
|
return EFFORT_MEDIUM;
|
|
567774
567777
|
case "high":
|
|
567775
567778
|
return EFFORT_HIGH;
|
|
567779
|
+
case "xhigh":
|
|
567780
|
+
return EFFORT_XHIGH;
|
|
567776
567781
|
case "max":
|
|
567777
567782
|
return EFFORT_MAX;
|
|
567778
567783
|
default:
|
|
@@ -567782,6 +567787,7 @@ function effortLevelToSymbol(level) {
|
|
|
567782
567787
|
var init_EffortIndicator = __esm(() => {
|
|
567783
567788
|
init_figures2();
|
|
567784
567789
|
init_effort();
|
|
567790
|
+
init_ultracode();
|
|
567785
567791
|
});
|
|
567786
567792
|
|
|
567787
567793
|
// src/components/ModelPicker.tsx
|
|
@@ -690631,6 +690637,7 @@ function PromptInput({
|
|
|
690631
690637
|
const ultrareviewTriggers = import_react255.useMemo(() => isUltrareviewEnabled() ? findUltrareviewTriggerPositions(displayedValue) : [], [displayedValue]);
|
|
690632
690638
|
const btwTriggers = import_react255.useMemo(() => findBtwTriggerPositions(displayedValue), [displayedValue]);
|
|
690633
690639
|
const buddyTriggers = import_react255.useMemo(() => findBuddyTriggerPositions(displayedValue), [displayedValue]);
|
|
690640
|
+
const ultracodeTriggers = import_react255.useMemo(() => isUltracodeKeywordTriggerEnabled() ? findUltracodeTriggerPositions(displayedValue) : [], [displayedValue]);
|
|
690634
690641
|
const slashCommandTriggers = import_react255.useMemo(() => {
|
|
690635
690642
|
const positions = findSlashCommandPositions(displayedValue);
|
|
690636
690643
|
return positions.filter((pos) => {
|
|
@@ -690791,6 +690798,15 @@ function PromptInput({
|
|
|
690791
690798
|
});
|
|
690792
690799
|
}
|
|
690793
690800
|
}
|
|
690801
|
+
for (const trigger of ultracodeTriggers) {
|
|
690802
|
+
highlights.push({
|
|
690803
|
+
start: trigger.start,
|
|
690804
|
+
end: trigger.end,
|
|
690805
|
+
color: "suggestion",
|
|
690806
|
+
shimmerColor: "suggestion",
|
|
690807
|
+
priority: 10
|
|
690808
|
+
});
|
|
690809
|
+
}
|
|
690794
690810
|
for (const trigger of buddyTriggers) {
|
|
690795
690811
|
for (let i6 = trigger.start;i6 < trigger.end; i6++) {
|
|
690796
690812
|
highlights.push({
|
|
@@ -690803,7 +690819,7 @@ function PromptInput({
|
|
|
690803
690819
|
}
|
|
690804
690820
|
}
|
|
690805
690821
|
return highlights;
|
|
690806
|
-
}, [isSearchingHistory, historyQuery, historyMatch, historyFailedMatch, cursorOffset, btwTriggers, imageRefPositions, memberMentionHighlights, slashCommandTriggers, tokenBudgetTriggers, slackChannelTriggers, displayedValue, voiceInterimRange, thinkTriggers, ultraplanTriggers, ultrareviewTriggers, buddyTriggers]);
|
|
690822
|
+
}, [isSearchingHistory, historyQuery, historyMatch, historyFailedMatch, cursorOffset, btwTriggers, imageRefPositions, memberMentionHighlights, slashCommandTriggers, tokenBudgetTriggers, slackChannelTriggers, displayedValue, voiceInterimRange, thinkTriggers, ultraplanTriggers, ultrareviewTriggers, buddyTriggers, ultracodeTriggers]);
|
|
690807
690823
|
const {
|
|
690808
690824
|
addNotification,
|
|
690809
690825
|
removeNotification
|
|
@@ -691771,18 +691787,6 @@ function PromptInput({
|
|
|
691771
691787
|
const showFastIcon = isFastModeEnabled() ? isFastMode && (isFastModeAvailable() || fastModeCooldown) : false;
|
|
691772
691788
|
const showFastIconHint = useShowFastIconHint(showFastIcon ?? false);
|
|
691773
691789
|
const effortNotificationText = briefOwnsGap ? undefined : getEffortNotificationText(effortValue, mainLoopModel);
|
|
691774
|
-
import_react255.useEffect(() => {
|
|
691775
|
-
if (!effortNotificationText) {
|
|
691776
|
-
removeNotification("effort-level");
|
|
691777
|
-
return;
|
|
691778
|
-
}
|
|
691779
|
-
addNotification({
|
|
691780
|
-
key: "effort-level",
|
|
691781
|
-
text: effortNotificationText,
|
|
691782
|
-
priority: "high",
|
|
691783
|
-
timeoutMs: 12000
|
|
691784
|
-
});
|
|
691785
|
-
}, [effortNotificationText, addNotification, removeNotification]);
|
|
691786
691790
|
useBuddyNotification();
|
|
691787
691791
|
const companionSpeaking = feature("BUDDY") ? useAppState((s4) => s4.companionReaction !== undefined) : false;
|
|
691788
691792
|
const {
|
|
@@ -692143,7 +692147,7 @@ function PromptInput({
|
|
|
692143
692147
|
borderRight: false,
|
|
692144
692148
|
borderBottom: true,
|
|
692145
692149
|
width: "100%",
|
|
692146
|
-
borderText: buildBorderText(showFastIcon ?? false, showFastIconHint, fastModeCooldown),
|
|
692150
|
+
borderText: buildBorderText(showFastIcon ?? false, showFastIconHint, fastModeCooldown, effortNotificationText),
|
|
692147
692151
|
children: [
|
|
692148
692152
|
/* @__PURE__ */ jsx_dev_runtime426.jsxDEV(PromptInputModeIndicator, {
|
|
692149
692153
|
mode,
|
|
@@ -692246,12 +692250,32 @@ function getInitialPasteId(messages) {
|
|
|
692246
692250
|
}
|
|
692247
692251
|
return maxId + 1;
|
|
692248
692252
|
}
|
|
692249
|
-
function
|
|
692250
|
-
|
|
692253
|
+
function findUltracodeTriggerPositions(text2) {
|
|
692254
|
+
const positions = [];
|
|
692255
|
+
const matches = text2.matchAll(/\bultracode\b/gi);
|
|
692256
|
+
for (const match of matches) {
|
|
692257
|
+
if (match.index !== undefined) {
|
|
692258
|
+
positions.push({
|
|
692259
|
+
word: match[0],
|
|
692260
|
+
start: match.index,
|
|
692261
|
+
end: match.index + match[0].length
|
|
692262
|
+
});
|
|
692263
|
+
}
|
|
692264
|
+
}
|
|
692265
|
+
return positions;
|
|
692266
|
+
}
|
|
692267
|
+
function buildBorderText(showFastIcon, showFastIconHint, fastModeCooldown, effortBadgeText) {
|
|
692268
|
+
const segments = [];
|
|
692269
|
+
if (showFastIcon) {
|
|
692270
|
+
segments.push(showFastIconHint ? `${getFastIconString(true, fastModeCooldown)} ${source_default.dim("/fast")}` : getFastIconString(true, fastModeCooldown));
|
|
692271
|
+
}
|
|
692272
|
+
if (effortBadgeText) {
|
|
692273
|
+
segments.push(effortBadgeText);
|
|
692274
|
+
}
|
|
692275
|
+
if (segments.length === 0)
|
|
692251
692276
|
return;
|
|
692252
|
-
const fastSeg = showFastIconHint ? `${getFastIconString(true, fastModeCooldown)} ${source_default.dim("/fast")}` : getFastIconString(true, fastModeCooldown);
|
|
692253
692277
|
return {
|
|
692254
|
-
content: ` ${
|
|
692278
|
+
content: ` ${segments.join(" ")} `,
|
|
692255
692279
|
position: "top",
|
|
692256
692280
|
align: "end",
|
|
692257
692281
|
offset: 0
|
|
@@ -692329,6 +692353,7 @@ var init_PromptInput = __esm(() => {
|
|
|
692329
692353
|
init_thinking();
|
|
692330
692354
|
init_tokenBudget();
|
|
692331
692355
|
init_keyword();
|
|
692356
|
+
init_ultracode();
|
|
692332
692357
|
init_AutoModeOptInDialog();
|
|
692333
692358
|
init_BridgeDialog();
|
|
692334
692359
|
init_ConfigurableShortcutHint();
|