@cnwenf/occ 2.1.323 → 2.1.324
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 +42 -36
- 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.324","BINARY_NAME":"occ","BUILD_TIME":"2026-09-07T19:25:37.674Z","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")
|
|
@@ -809621,11 +809625,11 @@ function TrustDialog(t0) {
|
|
|
809621
809625
|
let t20;
|
|
809622
809626
|
if ($4[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
809623
809627
|
t20 = [{
|
|
809624
|
-
label: "Yes, I trust this folder",
|
|
809625
|
-
value: "enable_all"
|
|
809626
|
-
}, {
|
|
809627
809628
|
label: "No, exit",
|
|
809628
809629
|
value: "exit"
|
|
809630
|
+
}, {
|
|
809631
|
+
label: "Yes, I trust this folder",
|
|
809632
|
+
value: "enable_all"
|
|
809629
809633
|
}];
|
|
809630
809634
|
$4[24] = t20;
|
|
809631
809635
|
} else {
|
|
@@ -809635,6 +809639,7 @@ function TrustDialog(t0) {
|
|
|
809635
809639
|
if ($4[25] !== onChange) {
|
|
809636
809640
|
t21 = /* @__PURE__ */ jsx_runtime485.jsx(Select, {
|
|
809637
809641
|
options: t20,
|
|
809642
|
+
hideIndexes: true,
|
|
809638
809643
|
onChange: (value_0) => onChange(value_0),
|
|
809639
809644
|
onCancel: () => onChange("exit")
|
|
809640
809645
|
});
|
|
@@ -809825,6 +809830,7 @@ function BypassPermissionsModeDialog(t0) {
|
|
|
809825
809830
|
t32,
|
|
809826
809831
|
/* @__PURE__ */ jsx_runtime486.jsx(Select, {
|
|
809827
809832
|
options: t4,
|
|
809833
|
+
hideIndexes: true,
|
|
809828
809834
|
onChange: (value_0) => onChange(value_0)
|
|
809829
809835
|
})
|
|
809830
809836
|
]
|