@cnwenf/occ 2.1.246 → 2.1.248
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 +54 -20
- 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";
|
|
@@ -526687,6 +526687,7 @@ function getDefaultAppState() {
|
|
|
526687
526687
|
authVersion: 0,
|
|
526688
526688
|
initialMessage: null,
|
|
526689
526689
|
effortValue: undefined,
|
|
526690
|
+
ultracode: false,
|
|
526690
526691
|
activeOverlays: new Set,
|
|
526691
526692
|
fastMode: false,
|
|
526692
526693
|
activeGoal: undefined
|
|
@@ -567760,6 +567761,9 @@ var init_ThemePicker = __esm(() => {
|
|
|
567760
567761
|
|
|
567761
567762
|
// src/components/EffortIndicator.ts
|
|
567762
567763
|
function getEffortNotificationText(effortValue, model) {
|
|
567764
|
+
if (isUltracodeEnabled()) {
|
|
567765
|
+
return `effort: ultracode \xB7 ${ULTRACODE_EFFORT_DESCRIPTION}`;
|
|
567766
|
+
}
|
|
567763
567767
|
if (!modelSupportsEffort(model))
|
|
567764
567768
|
return;
|
|
567765
567769
|
const level = getDisplayedEffortLevel(model, effortValue);
|
|
@@ -567773,6 +567777,8 @@ function effortLevelToSymbol(level) {
|
|
|
567773
567777
|
return EFFORT_MEDIUM;
|
|
567774
567778
|
case "high":
|
|
567775
567779
|
return EFFORT_HIGH;
|
|
567780
|
+
case "xhigh":
|
|
567781
|
+
return EFFORT_XHIGH;
|
|
567776
567782
|
case "max":
|
|
567777
567783
|
return EFFORT_MAX;
|
|
567778
567784
|
default:
|
|
@@ -567782,6 +567788,7 @@ function effortLevelToSymbol(level) {
|
|
|
567782
567788
|
var init_EffortIndicator = __esm(() => {
|
|
567783
567789
|
init_figures2();
|
|
567784
567790
|
init_effort();
|
|
567791
|
+
init_ultracode();
|
|
567785
567792
|
});
|
|
567786
567793
|
|
|
567787
567794
|
// src/components/ModelPicker.tsx
|
|
@@ -690478,6 +690485,14 @@ function PromptInput({
|
|
|
690478
690485
|
const thinkingEnabled = useAppState((s4) => s4.thinkingEnabled);
|
|
690479
690486
|
const isFastMode = useAppState((s4) => isFastModeEnabled() ? s4.fastMode : false);
|
|
690480
690487
|
const effortValue = useAppState((s4) => s4.effortValue);
|
|
690488
|
+
const [ultracodeBadgeActive, setUltracodeBadgeActive] = React136.useState(isUltracodeEnabled());
|
|
690489
|
+
import_react255.useEffect(() => {
|
|
690490
|
+
const iv = setInterval(() => {
|
|
690491
|
+
const cur = isUltracodeEnabled();
|
|
690492
|
+
setUltracodeBadgeActive((prev) => prev !== cur ? cur : prev);
|
|
690493
|
+
}, 500);
|
|
690494
|
+
return () => clearInterval(iv);
|
|
690495
|
+
}, []);
|
|
690481
690496
|
const viewedTeammate = getViewedTeammateTask(store.getState());
|
|
690482
690497
|
const viewingAgentName = viewedTeammate?.identity.agentName;
|
|
690483
690498
|
const viewingAgentColor = viewedTeammate?.identity.color && AGENT_COLORS.includes(viewedTeammate.identity.color) ? viewedTeammate.identity.color : undefined;
|
|
@@ -690631,6 +690646,7 @@ function PromptInput({
|
|
|
690631
690646
|
const ultrareviewTriggers = import_react255.useMemo(() => isUltrareviewEnabled() ? findUltrareviewTriggerPositions(displayedValue) : [], [displayedValue]);
|
|
690632
690647
|
const btwTriggers = import_react255.useMemo(() => findBtwTriggerPositions(displayedValue), [displayedValue]);
|
|
690633
690648
|
const buddyTriggers = import_react255.useMemo(() => findBuddyTriggerPositions(displayedValue), [displayedValue]);
|
|
690649
|
+
const ultracodeTriggers = import_react255.useMemo(() => isUltracodeKeywordTriggerEnabled() ? findUltracodeTriggerPositions(displayedValue) : [], [displayedValue]);
|
|
690634
690650
|
const slashCommandTriggers = import_react255.useMemo(() => {
|
|
690635
690651
|
const positions = findSlashCommandPositions(displayedValue);
|
|
690636
690652
|
return positions.filter((pos) => {
|
|
@@ -690791,6 +690807,15 @@ function PromptInput({
|
|
|
690791
690807
|
});
|
|
690792
690808
|
}
|
|
690793
690809
|
}
|
|
690810
|
+
for (const trigger of ultracodeTriggers) {
|
|
690811
|
+
highlights.push({
|
|
690812
|
+
start: trigger.start,
|
|
690813
|
+
end: trigger.end,
|
|
690814
|
+
color: "suggestion",
|
|
690815
|
+
shimmerColor: "suggestion",
|
|
690816
|
+
priority: 10
|
|
690817
|
+
});
|
|
690818
|
+
}
|
|
690794
690819
|
for (const trigger of buddyTriggers) {
|
|
690795
690820
|
for (let i6 = trigger.start;i6 < trigger.end; i6++) {
|
|
690796
690821
|
highlights.push({
|
|
@@ -690803,7 +690828,7 @@ function PromptInput({
|
|
|
690803
690828
|
}
|
|
690804
690829
|
}
|
|
690805
690830
|
return highlights;
|
|
690806
|
-
}, [isSearchingHistory, historyQuery, historyMatch, historyFailedMatch, cursorOffset, btwTriggers, imageRefPositions, memberMentionHighlights, slashCommandTriggers, tokenBudgetTriggers, slackChannelTriggers, displayedValue, voiceInterimRange, thinkTriggers, ultraplanTriggers, ultrareviewTriggers, buddyTriggers]);
|
|
690831
|
+
}, [isSearchingHistory, historyQuery, historyMatch, historyFailedMatch, cursorOffset, btwTriggers, imageRefPositions, memberMentionHighlights, slashCommandTriggers, tokenBudgetTriggers, slackChannelTriggers, displayedValue, voiceInterimRange, thinkTriggers, ultraplanTriggers, ultrareviewTriggers, buddyTriggers, ultracodeTriggers]);
|
|
690807
690832
|
const {
|
|
690808
690833
|
addNotification,
|
|
690809
690834
|
removeNotification
|
|
@@ -691770,19 +691795,7 @@ function PromptInput({
|
|
|
691770
691795
|
const fastModeCooldown = isFastModeEnabled() ? isFastModeCooldown() : false;
|
|
691771
691796
|
const showFastIcon = isFastModeEnabled() ? isFastMode && (isFastModeAvailable() || fastModeCooldown) : false;
|
|
691772
691797
|
const showFastIconHint = useShowFastIconHint(showFastIcon ?? false);
|
|
691773
|
-
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]);
|
|
691798
|
+
const effortNotificationText = ultracodeBadgeActive ? `effort: ultracode \xB7 ${ULTRACODE_EFFORT_DESCRIPTION}` : briefOwnsGap ? undefined : getEffortNotificationText(effortValue, mainLoopModel);
|
|
691786
691799
|
useBuddyNotification();
|
|
691787
691800
|
const companionSpeaking = feature("BUDDY") ? useAppState((s4) => s4.companionReaction !== undefined) : false;
|
|
691788
691801
|
const {
|
|
@@ -692143,7 +692156,7 @@ function PromptInput({
|
|
|
692143
692156
|
borderRight: false,
|
|
692144
692157
|
borderBottom: true,
|
|
692145
692158
|
width: "100%",
|
|
692146
|
-
borderText: buildBorderText(showFastIcon ?? false, showFastIconHint, fastModeCooldown),
|
|
692159
|
+
borderText: buildBorderText(showFastIcon ?? false, showFastIconHint, fastModeCooldown, effortNotificationText),
|
|
692147
692160
|
children: [
|
|
692148
692161
|
/* @__PURE__ */ jsx_dev_runtime426.jsxDEV(PromptInputModeIndicator, {
|
|
692149
692162
|
mode,
|
|
@@ -692246,12 +692259,32 @@ function getInitialPasteId(messages) {
|
|
|
692246
692259
|
}
|
|
692247
692260
|
return maxId + 1;
|
|
692248
692261
|
}
|
|
692249
|
-
function
|
|
692250
|
-
|
|
692262
|
+
function findUltracodeTriggerPositions(text2) {
|
|
692263
|
+
const positions = [];
|
|
692264
|
+
const matches = text2.matchAll(/\bultracode\b/gi);
|
|
692265
|
+
for (const match of matches) {
|
|
692266
|
+
if (match.index !== undefined) {
|
|
692267
|
+
positions.push({
|
|
692268
|
+
word: match[0],
|
|
692269
|
+
start: match.index,
|
|
692270
|
+
end: match.index + match[0].length
|
|
692271
|
+
});
|
|
692272
|
+
}
|
|
692273
|
+
}
|
|
692274
|
+
return positions;
|
|
692275
|
+
}
|
|
692276
|
+
function buildBorderText(showFastIcon, showFastIconHint, fastModeCooldown, effortBadgeText) {
|
|
692277
|
+
const segments = [];
|
|
692278
|
+
if (showFastIcon) {
|
|
692279
|
+
segments.push(showFastIconHint ? `${getFastIconString(true, fastModeCooldown)} ${source_default.dim("/fast")}` : getFastIconString(true, fastModeCooldown));
|
|
692280
|
+
}
|
|
692281
|
+
if (effortBadgeText) {
|
|
692282
|
+
segments.push(effortBadgeText);
|
|
692283
|
+
}
|
|
692284
|
+
if (segments.length === 0)
|
|
692251
692285
|
return;
|
|
692252
|
-
const fastSeg = showFastIconHint ? `${getFastIconString(true, fastModeCooldown)} ${source_default.dim("/fast")}` : getFastIconString(true, fastModeCooldown);
|
|
692253
692286
|
return {
|
|
692254
|
-
content: ` ${
|
|
692287
|
+
content: ` ${segments.join(" ")} `,
|
|
692255
692288
|
position: "top",
|
|
692256
692289
|
align: "end",
|
|
692257
692290
|
offset: 0
|
|
@@ -692329,6 +692362,7 @@ var init_PromptInput = __esm(() => {
|
|
|
692329
692362
|
init_thinking();
|
|
692330
692363
|
init_tokenBudget();
|
|
692331
692364
|
init_keyword();
|
|
692365
|
+
init_ultracode();
|
|
692332
692366
|
init_AutoModeOptInDialog();
|
|
692333
692367
|
init_BridgeDialog();
|
|
692334
692368
|
init_ConfigurableShortcutHint();
|