@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.
@@ -31,7 +31,7 @@ function normalizeProviderInput(rawProvider) {
31
31
  function getProviderLabel(provider) {
32
32
  switch (provider) {
33
33
  case 'claude':
34
- return 'Claude';
34
+ return 'Context';
35
35
  case 'openai':
36
36
  return 'OpenAI';
37
37
  case 'openrouter':
@@ -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 = "Auto mode lets Claude handle permission prompts automaticallyClaude checks each tool call for risky actions and prompt injection before executing. Actions Claude identifies as safe are executed, while actions Claude identifies as risky are blocked and Claude may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claude can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";
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://code.claude.com/docs/en/security" })] });
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: "Yes, and make it my default mode",
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: "Yes, enable auto mode",
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, exit" : "No, go back";
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: "Enable auto mode?", color: "warning", onCancel: onDecline, children: [t3, t9] });
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: 'Recent activity',
18
+ title: 'Actividad reciente',
19
19
  lines,
20
- footer: lines.length > 0 ? '/resume for more' : undefined,
21
- emptyMessage: 'No recent activity'
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 for more' : undefined,
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 ? `Share Context Code and earn ${formatCreditAmount(reward)} of extra usage` : 'Share Context Code with friends';
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 guest passes',
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: "Security notes:" }), _jsx(Box, { flexDirection: "column", width: 70, children: _jsxs(OrderedList, { children: [_jsxs(OrderedList.Item, { children: [_jsx(Text, { children: "Claude can make mistakes" }), _jsxs(Text, { dimColor: true, wrap: "wrap", children: ["You should always review Claude's responses, especially when", _jsx(Newline, {}), "running code.", _jsx(Newline, {})] })] }), _jsxs(OrderedList.Item, { children: [_jsx(Text, { children: "Due to prompt injection risks, only use it with code you trust" }), _jsxs(Text, { dimColor: true, wrap: "wrap", children: ["For more details see:", _jsx(Newline, {}), _jsx(Link, { url: "https://code.claude.com/docs/en/security" })] })] })] }) }), _jsx(PressEnterToContinue, {})] });
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: "Use Context Code's terminal setup?" }), _jsxs(Box, { flexDirection: "column", width: 70, gap: 1, children: [_jsxs(Text, { children: ["For the optimal coding experience, enable the recommended settings", _jsx(Newline, {}), "for your terminal:", ' ', env.terminal === 'Apple_Terminal' ? 'Option+Enter for newlines and visual bell' : 'Shift+Enter for newlines'] }), _jsx(Select, { options: [{
104
- label: 'Yes, use recommended settings',
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, maybe later with /terminal-setup',
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: ["Press ", exitState.keyName, " again to exit"] }) : _jsx(_Fragment, { children: "Enter to confirm \u00B7 Esc to skip" }) })] })] })
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: 'Claude'
43
+ label: 'Context'
44
44
  }, {
45
45
  provider: 'openai',
46
46
  label: 'OpenAI'
@@ -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/esm/main.js';
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';
@@ -30,7 +30,7 @@ function getProviderAccountLabel() {
30
30
  const activeProvider = normalizeActiveProvider();
31
31
  switch (activeProvider) {
32
32
  case 'claude':
33
- return 'Claude';
33
+ return 'Context';
34
34
  case 'openai':
35
35
  return 'OpenAI';
36
36
  case 'openrouter':
@@ -252,6 +252,6 @@ function getProviderLabel(provider) {
252
252
  case 'minimax':
253
253
  return 'MiniMax';
254
254
  default:
255
- return 'Claude';
255
+ return 'Context';
256
256
  }
257
257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iaforged/context-code",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "bin": {
5
5
  "context": "context-bootstrap.js",
6
6
  "context-recovery": "context-bootstrap.js"