@iaforged/context-code 1.0.61 → 1.0.63
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/src/commands/profile/profile.js +1 -1
- package/dist/src/components/AutoModeOptInDialog.js +6 -6
- package/dist/src/components/LogoV2/feedConfigs.js +6 -6
- package/dist/src/components/Onboarding.js +5 -5
- package/dist/src/hooks/useTypeahead.js +1 -1
- package/dist/src/utils/json.js +1 -1
- package/dist/src/utils/logoV2Utils.js +1 -1
- package/dist/src/utils/model/validateModel.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { updateSettingsForSource } from '../utils/settings/settings.js';
|
|
|
7
7
|
import { Select } from './CustomSelect/index.js';
|
|
8
8
|
import { Dialog } from './design-system/Dialog.js';
|
|
9
9
|
// NOTE: This copy is legally reviewed — do not modify without Legal team approval.
|
|
10
|
-
export const AUTO_MODE_DESCRIPTION = "
|
|
10
|
+
export const AUTO_MODE_DESCRIPTION = "El modo automático permite que Context Code maneje los permisos automáticamente — Context Code verifica cada llamada de herramienta en busca de acciones riesgosas e inyección de prompt antes de ejecutar. Las acciones que Context Code identifica como seguras se ejecutan, mientras que las acciones identificadas como riesgosas se bloquean y Context Code puede intentar un enfoque diferente. Ideal para tareas de larga duración. Context Code puede cometer errores que permitan la ejecución de comandos dañinos, se recomienda usar solo en entornos aislados. Shift+Tab para cambiar de modo.";
|
|
11
11
|
export function AutoModeOptInDialog(t0) {
|
|
12
12
|
const $ = _c(18);
|
|
13
13
|
const { onAccept, onDecline, declineExits } = t0;
|
|
@@ -62,7 +62,7 @@ export function AutoModeOptInDialog(t0) {
|
|
|
62
62
|
const onChange = t2;
|
|
63
63
|
let t3;
|
|
64
64
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
65
|
-
t3 = _jsxs(Box, { flexDirection: "column", gap: 1, children: [_jsx(Text, { children: AUTO_MODE_DESCRIPTION }), _jsx(Link, { url: "https://
|
|
65
|
+
t3 = _jsxs(Box, { flexDirection: "column", gap: 1, children: [_jsx(Text, { children: AUTO_MODE_DESCRIPTION }), _jsx(Link, { url: "https://github.com/LordDenihol/ContextCode" })] });
|
|
66
66
|
$[4] = t3;
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
@@ -71,7 +71,7 @@ export function AutoModeOptInDialog(t0) {
|
|
|
71
71
|
let t4;
|
|
72
72
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
73
|
t4 = true ? [{
|
|
74
|
-
label: "
|
|
74
|
+
label: "Sí, y hacerlo mi modo predeterminado",
|
|
75
75
|
value: "accept-default"
|
|
76
76
|
}] : [];
|
|
77
77
|
$[5] = t4;
|
|
@@ -82,7 +82,7 @@ export function AutoModeOptInDialog(t0) {
|
|
|
82
82
|
let t5;
|
|
83
83
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
84
84
|
t5 = {
|
|
85
|
-
label: "
|
|
85
|
+
label: "Sí, habilitar modo automático",
|
|
86
86
|
value: "accept"
|
|
87
87
|
};
|
|
88
88
|
$[6] = t5;
|
|
@@ -90,7 +90,7 @@ export function AutoModeOptInDialog(t0) {
|
|
|
90
90
|
else {
|
|
91
91
|
t5 = $[6];
|
|
92
92
|
}
|
|
93
|
-
const t6 = declineExits ? "No,
|
|
93
|
+
const t6 = declineExits ? "No, salir" : "No, volver";
|
|
94
94
|
let t7;
|
|
95
95
|
if ($[7] !== t6) {
|
|
96
96
|
t7 = [...t4, t5, {
|
|
@@ -125,7 +125,7 @@ export function AutoModeOptInDialog(t0) {
|
|
|
125
125
|
}
|
|
126
126
|
let t10;
|
|
127
127
|
if ($[15] !== onDecline || $[16] !== t9) {
|
|
128
|
-
t10 = _jsxs(Dialog, { title: "
|
|
128
|
+
t10 = _jsxs(Dialog, { title: "\u00BFHabilitar modo autom\u00E1tico?", color: "warning", onCancel: onDecline, children: [t3, t9] });
|
|
129
129
|
$[15] = onDecline;
|
|
130
130
|
$[16] = t9;
|
|
131
131
|
$[17] = t10;
|
|
@@ -15,10 +15,10 @@ export function createRecentActivityFeed(activities) {
|
|
|
15
15
|
};
|
|
16
16
|
});
|
|
17
17
|
return {
|
|
18
|
-
title: '
|
|
18
|
+
title: 'Actividad reciente',
|
|
19
19
|
lines,
|
|
20
|
-
footer: lines.length > 0 ? '/resume
|
|
21
|
-
emptyMessage: '
|
|
20
|
+
footer: lines.length > 0 ? '/resume para ver más' : undefined,
|
|
21
|
+
emptyMessage: 'Sin actividad reciente'
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export function createWhatsNewFeed(releaseNotes) {
|
|
@@ -40,7 +40,7 @@ export function createWhatsNewFeed(releaseNotes) {
|
|
|
40
40
|
return {
|
|
41
41
|
title: "external" === 'ant' ? "What's new [ANT-ONLY: Latest CC commits]" : "What's new",
|
|
42
42
|
lines,
|
|
43
|
-
footer: lines.length > 0 ? '/release-notes
|
|
43
|
+
footer: lines.length > 0 ? '/release-notes para ver más' : undefined,
|
|
44
44
|
emptyMessage
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -65,9 +65,9 @@ export function createProjectOnboardingFeed(steps) {
|
|
|
65
65
|
}
|
|
66
66
|
export function createGuestPassesFeed() {
|
|
67
67
|
const reward = getCachedReferrerReward();
|
|
68
|
-
const subtitle = reward ? `
|
|
68
|
+
const subtitle = reward ? `Comparte Context Code y gana ${formatCreditAmount(reward)} de uso extra` : 'Comparte Context Code con amigos';
|
|
69
69
|
return {
|
|
70
|
-
title: '3
|
|
70
|
+
title: '3 pases de invitado',
|
|
71
71
|
lines: [],
|
|
72
72
|
customContent: {
|
|
73
73
|
content: _jsxs(_Fragment, { children: [_jsx(Box, { marginY: 1, children: _jsx(Text, { color: "claude", children: "[\u273B] [\u273B] [\u273B]" }) }), _jsx(Text, { dimColor: true, children: subtitle })] }),
|
|
@@ -49,7 +49,7 @@ export function Onboarding({ onDone }) {
|
|
|
49
49
|
const exitState = useExitOnCtrlCDWithKeybindings();
|
|
50
50
|
// Define all onboarding steps
|
|
51
51
|
const themeStep = _jsx(Box, { marginX: 1, children: _jsx(ThemePicker, { onThemeSelect: handleThemeSelection, showIntroText: true, helpText: "To change this later, run /theme", hideEscToCancel: true, skipExitHandling: true }) });
|
|
52
|
-
const securityStep = _jsxs(Box, { flexDirection: "column", gap: 1, paddingLeft: 1, children: [_jsx(Text, { bold: true, children: "
|
|
52
|
+
const securityStep = _jsxs(Box, { flexDirection: "column", gap: 1, paddingLeft: 1, children: [_jsx(Text, { bold: true, children: "Notas de seguridad:" }), _jsx(Box, { flexDirection: "column", width: 70, children: _jsxs(OrderedList, { children: [_jsxs(OrderedList.Item, { children: [_jsx(Text, { children: "Context Code puede cometer errores" }), _jsxs(Text, { dimColor: true, wrap: "wrap", children: ["Siempre debes revisar las respuestas de Context Code, especialmente", _jsx(Newline, {}), "al ejecutar c\u00F3digo.", _jsx(Newline, {})] })] }), _jsxs(OrderedList.Item, { children: [_jsx(Text, { children: "Debido a riesgos de inyecci\u00F3n de prompt, \u00FAsalo solo con c\u00F3digo de confianza" }), _jsxs(Text, { dimColor: true, wrap: "wrap", children: ["Para m\u00E1s detalles consulta:", _jsx(Newline, {}), _jsx(Link, { url: "https://github.com/LordDenihol/ContextCode" })] })] })] }) }), _jsx(PressEnterToContinue, {})] });
|
|
53
53
|
const preflightStep = _jsx(PreflightStep, { onSuccess: goToNextStep });
|
|
54
54
|
// Create the steps array - determine which steps to include based on reAuth and oauthEnabled
|
|
55
55
|
const apiKeyNeedingApproval = useMemo(() => {
|
|
@@ -100,11 +100,11 @@ export function Onboarding({ onDone }) {
|
|
|
100
100
|
if (shouldOfferTerminalSetup()) {
|
|
101
101
|
steps.push({
|
|
102
102
|
id: 'terminal-setup',
|
|
103
|
-
component: _jsxs(Box, { flexDirection: "column", gap: 1, paddingLeft: 1, children: [_jsx(Text, { bold: true, children: "
|
|
104
|
-
label: '
|
|
103
|
+
component: _jsxs(Box, { flexDirection: "column", gap: 1, paddingLeft: 1, children: [_jsx(Text, { bold: true, children: "\u00BFUsar la configuraci\u00F3n de terminal de Context Code?" }), _jsxs(Box, { flexDirection: "column", width: 70, gap: 1, children: [_jsxs(Text, { children: ["Para una experiencia \u00F3ptima, habilita la configuraci\u00F3n recomendada", _jsx(Newline, {}), "para tu terminal:", ' ', env.terminal === 'Apple_Terminal' ? 'Option+Enter para saltos de línea y alerta visual' : 'Shift+Enter para saltos de línea'] }), _jsx(Select, { options: [{
|
|
104
|
+
label: 'Sí, usar configuración recomendada',
|
|
105
105
|
value: 'install'
|
|
106
106
|
}, {
|
|
107
|
-
label: 'No,
|
|
107
|
+
label: 'No, quizás después con /terminal-setup',
|
|
108
108
|
value: 'no'
|
|
109
109
|
}], onChange: value => {
|
|
110
110
|
if (value === 'install') {
|
|
@@ -114,7 +114,7 @@ export function Onboarding({ onDone }) {
|
|
|
114
114
|
else {
|
|
115
115
|
goToNextStep();
|
|
116
116
|
}
|
|
117
|
-
}, onCancel: () => goToNextStep() }), _jsx(Text, { dimColor: true, children: exitState.pending ? _jsxs(_Fragment, { children: ["
|
|
117
|
+
}, onCancel: () => goToNextStep() }), _jsx(Text, { dimColor: true, children: exitState.pending ? _jsxs(_Fragment, { children: ["Presiona ", exitState.keyName, " de nuevo para salir"] }) : _jsx(_Fragment, { children: "Enter para confirmar \u00B7 Esc para omitir" }) })] })] })
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
const currentStep = steps[currentStepIndex];
|
|
@@ -40,7 +40,7 @@ const HASH_CHANNEL_RE = /(^|\s)#([a-z0-9][a-z0-9_-]*)$/;
|
|
|
40
40
|
const PROFILE_SUBCOMMANDS = ['list', 'current', 'use', 'rename', 'remove', 'model', 'agent'];
|
|
41
41
|
const PROFILE_PROVIDER_OPTIONS = [{
|
|
42
42
|
provider: 'claude',
|
|
43
|
-
label: '
|
|
43
|
+
label: 'Context'
|
|
44
44
|
}, {
|
|
45
45
|
provider: 'openai',
|
|
46
46
|
label: 'OpenAI'
|
package/dist/src/utils/json.js
CHANGED
|
@@ -51,7 +51,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
51
51
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
52
|
});
|
|
53
53
|
import { open, readFile, stat } from 'fs/promises';
|
|
54
|
-
import { applyEdits, modify, parse as parseJsonc, } from 'jsonc-parser/lib/
|
|
54
|
+
import { applyEdits, modify, parse as parseJsonc, } from 'jsonc-parser/lib/umd/main.js';
|
|
55
55
|
import { stripBOM } from './jsonRead.js';
|
|
56
56
|
import { logError } from './log.js';
|
|
57
57
|
import { memoizeWithLRU } from './memoize.js';
|