@cnwenf/occ 2.1.323 → 2.1.325
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 +47 -42
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
globalThis.MACRO={"VERSION":"2.1.
|
|
2
|
+
globalThis.MACRO={"VERSION":"2.1.325","BINARY_NAME":"occ","BUILD_TIME":"2026-09-08T21:11:53.537Z","FEEDBACK_CHANNEL":"","ISSUES_EXPLAINER":"","NATIVE_PACKAGE_URL":"","PACKAGE_URL":"@cnwenf/occ","VERSION_CHANGELOG":""};
|
|
3
3
|
// @bun
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -648682,7 +648682,7 @@ var init_CustomThemeCreator = __esm(() => {
|
|
|
648682
648682
|
|
|
648683
648683
|
// src/components/ThemePicker.tsx
|
|
648684
648684
|
function ThemePicker(t0) {
|
|
648685
|
-
const $4 = import_compiler_runtime132.c(
|
|
648685
|
+
const $4 = import_compiler_runtime132.c(64);
|
|
648686
648686
|
const {
|
|
648687
648687
|
onThemeSelect,
|
|
648688
648688
|
showIntroText: t1,
|
|
@@ -648690,13 +648690,15 @@ function ThemePicker(t0) {
|
|
|
648690
648690
|
showHelpTextBelow: t32,
|
|
648691
648691
|
hideEscToCancel: t4,
|
|
648692
648692
|
skipExitHandling: t5,
|
|
648693
|
-
onCancel: onCancelProp
|
|
648693
|
+
onCancel: onCancelProp,
|
|
648694
|
+
allowCustomThemeCreation: t6a
|
|
648694
648695
|
} = t0;
|
|
648695
648696
|
const showIntroText = t1 === undefined ? false : t1;
|
|
648696
648697
|
const helpText = t22 === undefined ? "" : t22;
|
|
648697
648698
|
const showHelpTextBelow = t32 === undefined ? false : t32;
|
|
648698
648699
|
const hideEscToCancel = t4 === undefined ? false : t4;
|
|
648699
648700
|
const skipExitHandling = t5 === undefined ? false : t5;
|
|
648701
|
+
const allowCustomThemeCreation = t6a === undefined ? false : t6a;
|
|
648700
648702
|
const [theme, setThemeSetting] = useTheme();
|
|
648701
648703
|
const themeSetting = useThemeSetting();
|
|
648702
648704
|
const reloadCustomThemes = useReloadCustomThemes();
|
|
@@ -648831,15 +648833,17 @@ function ThemePicker(t0) {
|
|
|
648831
648833
|
const activeCustomSlug = typeof themeSetting === "string" && isCustomThemeSetting(themeSetting) ? parseCustomThemeSlug(themeSetting) : null;
|
|
648832
648834
|
const activeCustomTheme = activeCustomSlug ? customThemes.find((ct) => ct.slug === activeCustomSlug) : undefined;
|
|
648833
648835
|
let t10b;
|
|
648834
|
-
if ($4[59] !== customThemes) {
|
|
648836
|
+
if ($4[59] !== customThemes || $4[63] !== allowCustomThemeCreation) {
|
|
648837
|
+
const newCustomEntry = allowCustomThemeCreation ? [{
|
|
648838
|
+
label: NEW_CUSTOM_THEME_LABEL,
|
|
648839
|
+
value: NEW_CUSTOM_THEME_VALUE
|
|
648840
|
+
}] : [];
|
|
648835
648841
|
t10b = [...themeOptions, ...customThemes.map((ct) => ({
|
|
648836
648842
|
label: ct.name,
|
|
648837
648843
|
value: buildCustomThemeSlug(ct.slug)
|
|
648838
|
-
})),
|
|
648839
|
-
label: NEW_CUSTOM_THEME_LABEL,
|
|
648840
|
-
value: NEW_CUSTOM_THEME_VALUE
|
|
648841
|
-
}];
|
|
648844
|
+
})), ...newCustomEntry];
|
|
648842
648845
|
$4[59] = customThemes;
|
|
648846
|
+
$4[63] = allowCustomThemeCreation;
|
|
648843
648847
|
$4[60] = t10b;
|
|
648844
648848
|
} else {
|
|
648845
648849
|
t10b = $4[60];
|
|
@@ -703740,7 +703744,8 @@ function ThemePickerCommand(t0) {
|
|
|
703740
703744
|
children: /* @__PURE__ */ jsx_runtime309.jsx(ThemePicker, {
|
|
703741
703745
|
onThemeSelect: t1,
|
|
703742
703746
|
onCancel: t22,
|
|
703743
|
-
skipExitHandling: true
|
|
703747
|
+
skipExitHandling: true,
|
|
703748
|
+
allowCustomThemeCreation: true
|
|
703744
703749
|
})
|
|
703745
703750
|
});
|
|
703746
703751
|
$4[5] = t1;
|
|
@@ -807662,30 +807667,29 @@ function ApproveApiKey(t0) {
|
|
|
807662
807667
|
let t1;
|
|
807663
807668
|
if ($4[0] !== customApiKeyTruncated || $4[1] !== onDone) {
|
|
807664
807669
|
t1 = function onChange2(value) {
|
|
807665
|
-
|
|
807666
|
-
|
|
807667
|
-
|
|
807668
|
-
|
|
807669
|
-
|
|
807670
|
-
customApiKeyResponses
|
|
807671
|
-
|
|
807672
|
-
|
|
807673
|
-
|
|
807674
|
-
|
|
807675
|
-
|
|
807676
|
-
break bb2;
|
|
807677
|
-
}
|
|
807678
|
-
case "no": {
|
|
807679
|
-
saveGlobalConfig((current) => ({
|
|
807680
|
-
...current,
|
|
807681
|
-
customApiKeyResponses: {
|
|
807682
|
-
...current.customApiKeyResponses,
|
|
807683
|
-
rejected: [...current.customApiKeyResponses?.rejected ?? [], customApiKeyTruncated]
|
|
807684
|
-
}
|
|
807685
|
-
}));
|
|
807686
|
-
onDone(false);
|
|
807687
|
-
}
|
|
807670
|
+
switch (value) {
|
|
807671
|
+
case "yes": {
|
|
807672
|
+
saveGlobalConfig((current_0) => ({
|
|
807673
|
+
...current_0,
|
|
807674
|
+
customApiKeyResponses: {
|
|
807675
|
+
...current_0.customApiKeyResponses,
|
|
807676
|
+
approved: [...current_0.customApiKeyResponses?.approved ?? [], customApiKeyTruncated]
|
|
807677
|
+
}
|
|
807678
|
+
}));
|
|
807679
|
+
onDone(true);
|
|
807680
|
+
break;
|
|
807688
807681
|
}
|
|
807682
|
+
case "no": {
|
|
807683
|
+
saveGlobalConfig((current) => ({
|
|
807684
|
+
...current,
|
|
807685
|
+
customApiKeyResponses: {
|
|
807686
|
+
...current.customApiKeyResponses,
|
|
807687
|
+
rejected: [...current.customApiKeyResponses?.rejected ?? [], customApiKeyTruncated]
|
|
807688
|
+
}
|
|
807689
|
+
}));
|
|
807690
|
+
onDone(false);
|
|
807691
|
+
}
|
|
807692
|
+
}
|
|
807689
807693
|
};
|
|
807690
807694
|
$4[0] = customApiKeyTruncated;
|
|
807691
807695
|
$4[1] = onDone;
|
|
@@ -807771,8 +807775,8 @@ function ApproveApiKey(t0) {
|
|
|
807771
807775
|
let t8;
|
|
807772
807776
|
if ($4[11] !== onChange) {
|
|
807773
807777
|
t8 = /* @__PURE__ */ jsx_runtime480.jsx(Select, {
|
|
807774
|
-
defaultValue: "no",
|
|
807775
807778
|
defaultFocusValue: "no",
|
|
807779
|
+
hideIndexes: true,
|
|
807776
807780
|
options: t7,
|
|
807777
807781
|
onChange: (value_0) => onChange(value_0),
|
|
807778
807782
|
onCancel: () => onChange("no")
|
|
@@ -808994,15 +808998,15 @@ function Onboarding({
|
|
|
808994
808998
|
/* @__PURE__ */ jsx_runtime484.jsxs(OrderedList.Item, {
|
|
808995
808999
|
children: [
|
|
808996
809000
|
/* @__PURE__ */ jsx_runtime484.jsx(ThemedText, {
|
|
808997
|
-
children: "Claude can make mistakes"
|
|
809001
|
+
children: "Claude can make mistakes."
|
|
808998
809002
|
}),
|
|
808999
809003
|
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
809000
809004
|
dimColor: true,
|
|
809001
809005
|
wrap: "wrap",
|
|
809002
809006
|
children: [
|
|
809003
|
-
"You
|
|
809007
|
+
"You're responsible for Claude's actions and should always",
|
|
809004
809008
|
/* @__PURE__ */ jsx_runtime484.jsx(Newline, {}),
|
|
809005
|
-
"running code.",
|
|
809009
|
+
"review them, especially when running code.",
|
|
809006
809010
|
/* @__PURE__ */ jsx_runtime484.jsx(Newline, {})
|
|
809007
809011
|
]
|
|
809008
809012
|
})
|
|
@@ -809015,10 +809019,9 @@ function Onboarding({
|
|
|
809015
809019
|
}),
|
|
809016
809020
|
/* @__PURE__ */ jsx_runtime484.jsxs(ThemedText, {
|
|
809017
809021
|
dimColor: true,
|
|
809018
|
-
wrap: "wrap",
|
|
809019
809022
|
children: [
|
|
809020
|
-
"
|
|
809021
|
-
|
|
809023
|
+
"Learn more:",
|
|
809024
|
+
" ",
|
|
809022
809025
|
/* @__PURE__ */ jsx_runtime484.jsx(Link, {
|
|
809023
809026
|
url: "https://code.claude.com/docs/en/security"
|
|
809024
809027
|
})
|
|
@@ -809621,11 +809624,11 @@ function TrustDialog(t0) {
|
|
|
809621
809624
|
let t20;
|
|
809622
809625
|
if ($4[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
809623
809626
|
t20 = [{
|
|
809624
|
-
label: "Yes, I trust this folder",
|
|
809625
|
-
value: "enable_all"
|
|
809626
|
-
}, {
|
|
809627
809627
|
label: "No, exit",
|
|
809628
809628
|
value: "exit"
|
|
809629
|
+
}, {
|
|
809630
|
+
label: "Yes, I trust this folder",
|
|
809631
|
+
value: "enable_all"
|
|
809629
809632
|
}];
|
|
809630
809633
|
$4[24] = t20;
|
|
809631
809634
|
} else {
|
|
@@ -809635,6 +809638,7 @@ function TrustDialog(t0) {
|
|
|
809635
809638
|
if ($4[25] !== onChange) {
|
|
809636
809639
|
t21 = /* @__PURE__ */ jsx_runtime485.jsx(Select, {
|
|
809637
809640
|
options: t20,
|
|
809641
|
+
hideIndexes: true,
|
|
809638
809642
|
onChange: (value_0) => onChange(value_0),
|
|
809639
809643
|
onCancel: () => onChange("exit")
|
|
809640
809644
|
});
|
|
@@ -809825,6 +809829,7 @@ function BypassPermissionsModeDialog(t0) {
|
|
|
809825
809829
|
t32,
|
|
809826
809830
|
/* @__PURE__ */ jsx_runtime486.jsx(Select, {
|
|
809827
809831
|
options: t4,
|
|
809832
|
+
hideIndexes: true,
|
|
809828
809833
|
onChange: (value_0) => onChange(value_0)
|
|
809829
809834
|
})
|
|
809830
809835
|
]
|