@iaforged/context-code 1.0.77 → 1.0.79

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.
Files changed (121) hide show
  1. package/README.md +68 -68
  2. package/cli.js +8515 -8515
  3. package/context-bootstrap.js +27 -27
  4. package/dist/src/bootstrap/state.js +3 -0
  5. package/dist/src/bridge/bridgeMain.js +40 -40
  6. package/dist/src/cli/print.js +12 -12
  7. package/dist/src/commands/agent/agent.js +8 -0
  8. package/dist/src/commands/commit-push-pr.js +55 -55
  9. package/dist/src/commands/createMovedToPluginCommand.js +9 -9
  10. package/dist/src/commands/init-verifiers.js +238 -238
  11. package/dist/src/commands/init.js +216 -216
  12. package/dist/src/commands/install.js +2 -2
  13. package/dist/src/commands/login/login.js +24 -10
  14. package/dist/src/commands/orchestrate/index.js +1 -1
  15. package/dist/src/commands/orchestrate/orchestrate.js +110 -24
  16. package/dist/src/commands/profile/profile.js +15 -1
  17. package/dist/src/commands/provider/index.js +1 -1
  18. package/dist/src/commands/provider/provider.js +34 -1
  19. package/dist/src/commands/review.js +22 -22
  20. package/dist/src/commands/run/index.js +2 -2
  21. package/dist/src/commands/run/run.js +63 -61
  22. package/dist/src/commands/team/index.js +1 -1
  23. package/dist/src/commands/team/team.js +84 -76
  24. package/dist/src/commands/team-auto/teamAuto.js +89 -29
  25. package/dist/src/commands/terminalSetup/terminalSetup.js +24 -24
  26. package/dist/src/commands/usage/index.js +7 -0
  27. package/dist/src/commands/usage/usage.js +5 -0
  28. package/dist/src/commands/workspace/workspace.js +39 -31
  29. package/dist/src/commands.js +0 -2
  30. package/dist/src/components/ConsoleOAuthFlow.js +92 -14
  31. package/dist/src/components/ModelPicker.js +2 -0
  32. package/dist/src/components/agents/generateAgent.js +92 -92
  33. package/dist/src/components/grove/Grove.js +10 -10
  34. package/dist/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.js +8 -8
  35. package/dist/src/constants/geminiOAuth.js +13 -0
  36. package/dist/src/constants/github-app.js +134 -134
  37. package/dist/src/constants/prompts.js +123 -123
  38. package/dist/src/coordinator/coordinatorMode.js +252 -252
  39. package/dist/src/hooks/useTypeahead.js +7 -7
  40. package/dist/src/ink/reconciler.js +7 -7
  41. package/dist/src/main.js +5 -5
  42. package/dist/src/memdir/findRelevantMemories.js +6 -6
  43. package/dist/src/services/MagicDocs/prompts.js +56 -56
  44. package/dist/src/services/PromptSuggestion/promptSuggestion.js +29 -29
  45. package/dist/src/services/SessionMemory/prompts.js +66 -66
  46. package/dist/src/services/api/openai.js +584 -21
  47. package/dist/src/services/limits/adapters/ollama.js +3 -3
  48. package/dist/src/services/oauth/geminiCli.js +107 -0
  49. package/dist/src/services/orchestration/execution/AgentTaskExecutor.js +5 -3
  50. package/dist/src/services/orchestration/execution/OrchestrationExecutionRuntime.js +18 -18
  51. package/dist/src/services/orchestration/global/reporting.js +2 -2
  52. package/dist/src/services/toolUseSummary/toolUseSummaryGenerator.js +9 -9
  53. package/dist/src/skills/bundled/batch.js +78 -78
  54. package/dist/src/skills/bundled/claudeApi.js +34 -34
  55. package/dist/src/skills/bundled/claudeInChrome.js +4 -4
  56. package/dist/src/skills/bundled/debug.js +36 -36
  57. package/dist/src/skills/bundled/scheduleRemoteAgents.js +151 -151
  58. package/dist/src/skills/bundled/skillify.js +132 -132
  59. package/dist/src/skills/bundled/stuck.js +53 -53
  60. package/dist/src/skills/bundled/updateConfig.js +418 -418
  61. package/dist/src/tasks/RemoteAgentTask/RemoteAgentTask.js +26 -26
  62. package/dist/src/tools/AgentTool/AgentTool.js +7 -7
  63. package/dist/src/tools/AgentTool/built-in/claudeCodeGuideAgent.js +67 -67
  64. package/dist/src/tools/AgentTool/built-in/exploreAgent.js +32 -32
  65. package/dist/src/tools/AgentTool/built-in/generalPurposeAgent.js +13 -13
  66. package/dist/src/tools/AgentTool/built-in/planAgent.js +49 -49
  67. package/dist/src/tools/AgentTool/built-in/statuslineSetup.js +129 -129
  68. package/dist/src/tools/AgentTool/built-in/verificationAgent.js +119 -119
  69. package/dist/src/tools/AgentTool/prompt.js +131 -131
  70. package/dist/src/tools/AgentTool/runAgent.js +9 -9
  71. package/dist/src/tools/BashTool/BashTool.js +10 -10
  72. package/dist/src/tools/BashTool/prompt.js +94 -94
  73. package/dist/src/tools/ConfigTool/prompt.js +29 -29
  74. package/dist/src/tools/EnterWorktreeTool/prompt.js +27 -27
  75. package/dist/src/tools/FileReadTool/prompt.js +12 -12
  76. package/dist/src/tools/PowerShellTool/prompt.js +82 -82
  77. package/dist/src/tools/RemoteTriggerTool/prompt.js +9 -9
  78. package/dist/src/tools/ScheduleCronTool/prompt.js +37 -37
  79. package/dist/src/tools/TeamCreateTool/prompt.js +110 -110
  80. package/dist/src/tools/TeamDeleteTool/prompt.js +13 -13
  81. package/dist/src/utils/advisor.js +15 -15
  82. package/dist/src/utils/api.js +2 -2
  83. package/dist/src/utils/auth.js +207 -2
  84. package/dist/src/utils/autoUpdater.js +18 -18
  85. package/dist/src/utils/bash/ShellSnapshot.js +86 -86
  86. package/dist/src/utils/bash/commands.js +61 -61
  87. package/dist/src/utils/claudeInChrome/prompt.js +53 -53
  88. package/dist/src/utils/claudeInChrome/setup.js +8 -8
  89. package/dist/src/utils/databaseMcp/server/queries.js +632 -632
  90. package/dist/src/utils/deepLink/registerProtocol.js +35 -35
  91. package/dist/src/utils/deepLink/terminalLauncher.js +12 -12
  92. package/dist/src/utils/hooks/execAgentHook.js +7 -7
  93. package/dist/src/utils/hooks/execPromptHook.js +4 -4
  94. package/dist/src/utils/hooks/skillImprovement.js +36 -36
  95. package/dist/src/utils/logoV2Utils.js +1 -1
  96. package/dist/src/utils/mcp/dateTimeParser.js +9 -9
  97. package/dist/src/utils/messages.js +191 -191
  98. package/dist/src/utils/model/model.js +18 -0
  99. package/dist/src/utils/model/modelOptions.js +51 -1
  100. package/dist/src/utils/model/modelStrings.js +5 -1
  101. package/dist/src/utils/model/modelSupportOverrides.js +3 -0
  102. package/dist/src/utils/model/providerBaseUrls.js +6 -1
  103. package/dist/src/utils/model/providerCatalog.js +64 -28
  104. package/dist/src/utils/model/providerModels.js +88 -17
  105. package/dist/src/utils/model/providerProfiles.js +8 -0
  106. package/dist/src/utils/model/providerProfilesDb.js +578 -393
  107. package/dist/src/utils/model/providerSwitch.js +12 -0
  108. package/dist/src/utils/model/providerWorkspaces.js +2 -0
  109. package/dist/src/utils/model/providers.js +65 -2
  110. package/dist/src/utils/orchestration/store/providerWorkspaceStore.js +3 -1
  111. package/dist/src/utils/orchestration/store/runStore.js +47 -47
  112. package/dist/src/utils/orchestration/store/teamStore.js +61 -61
  113. package/dist/src/utils/powershell/parser.js +253 -253
  114. package/dist/src/utils/sessionTitle.js +12 -12
  115. package/dist/src/utils/sideQuestion.js +17 -17
  116. package/dist/src/utils/status.js +1 -1
  117. package/dist/src/utils/swarm/backends/registry.js +9 -9
  118. package/dist/src/utils/telemetry/instrumentation.js +9 -9
  119. package/dist/src/utils/teleport.js +15 -15
  120. package/dist/src/utils/undercover.js +28 -28
  121. package/package.json +1 -1
@@ -57,21 +57,21 @@ function createTeleportResumeUserMessage() {
57
57
  isMeta: true
58
58
  });
59
59
  }
60
- const SESSION_TITLE_AND_BRANCH_PROMPT = `You are coming up with a succinct title and git branch name for a coding session based on the provided description. The title should be clear, concise, and accurately reflect the content of the coding task.
61
- You should keep it short and simple, ideally no more than 6 words. Avoid using jargon or overly technical terms unless absolutely necessary. The title should be easy to understand for anyone reading it.
62
- Use sentence case for the title (capitalize only the first word and proper nouns), not Title Case.
63
-
64
- The branch name should be clear, concise, and accurately reflect the content of the coding task.
65
- You should keep it short and simple, ideally no more than 4 words. The branch should always start with "context/" and should be all lower case, with words separated by dashes.
66
-
67
- Return a JSON object with "title" and "branch" fields.
68
-
69
- Example 1: {"title": "Fix login button not working on mobile", "branch": "context/fix-mobile-login-button"}
70
- Example 2: {"title": "Update README with installation instructions", "branch": "context/update-readme"}
71
- Example 3: {"title": "Improve performance of data processing script", "branch": "context/improve-data-processing"}
72
-
73
- Here is the session description:
74
- <description>{description}</description>
60
+ const SESSION_TITLE_AND_BRANCH_PROMPT = `You are coming up with a succinct title and git branch name for a coding session based on the provided description. The title should be clear, concise, and accurately reflect the content of the coding task.
61
+ You should keep it short and simple, ideally no more than 6 words. Avoid using jargon or overly technical terms unless absolutely necessary. The title should be easy to understand for anyone reading it.
62
+ Use sentence case for the title (capitalize only the first word and proper nouns), not Title Case.
63
+
64
+ The branch name should be clear, concise, and accurately reflect the content of the coding task.
65
+ You should keep it short and simple, ideally no more than 4 words. The branch should always start with "context/" and should be all lower case, with words separated by dashes.
66
+
67
+ Return a JSON object with "title" and "branch" fields.
68
+
69
+ Example 1: {"title": "Fix login button not working on mobile", "branch": "context/fix-mobile-login-button"}
70
+ Example 2: {"title": "Update README with installation instructions", "branch": "context/update-readme"}
71
+ Example 3: {"title": "Improve performance of data processing script", "branch": "context/improve-data-processing"}
72
+
73
+ Here is the session description:
74
+ <description>{description}</description>
75
75
  Please generate a title and branch name for this session.`;
76
76
  /**
77
77
  * Generates a title and branch name for a coding session using Claude Haiku
@@ -36,34 +36,34 @@ export function isUndercover() {
36
36
  }
37
37
  export function getUndercoverInstructions() {
38
38
  if (process.env.USER_TYPE === 'ant') {
39
- return `## UNDERCOVER MODE — CRITICAL
40
-
41
- You are operating UNDERCOVER in a PUBLIC/OPEN-SOURCE repository. Your commit
42
- messages, PR titles, and PR bodies MUST NOT contain ANY Anthropic-internal
43
- información. No reveles tu cobertura.
44
-
45
- NUNCA incluir en mensajes de commit o descripciones de PR:
46
- - Nombres de modelos internos (nombres de animales como Capybara, Tengu, etc.)
47
- - Números de versión de modelos no lanzados (ej., opus-4-8, sonnet-4-8)
48
- - Nombres de repos o proyectos internos (ej., claude-cli-internal, anthropics/…)
49
- - Herramientas internas, canales de Slack, o enlaces cortos (ej., go/cc, #claude-code-…)
50
- - La frase "Context Code" o cualquier mención de que eres una IA
51
- - Cualquier pista sobre qué modelo o versión eres
52
- - Líneas Co-Authored-By o cualquier otra atribución
53
-
54
- Escribe mensajes de commit como lo haría un desarrollador humano — describe solo qué hace
55
- el cambio de código.
56
-
57
- BUENO:
58
- - "Fix race condition in file watcher initialization"
59
- - "Add support for custom key bindings"
60
- - "Refactor parser for better error messages"
61
-
62
- MALO (nunca escribas estos):
63
- - "Fix bug found while testing with Claude Capybara"
64
- - "1-shotted by claude-opus-4-6"
65
- - "Generated with Context Code"
66
- - "Co-Authored-By: Claude Opus 4.6 <…>"
39
+ return `## UNDERCOVER MODE — CRITICAL
40
+
41
+ You are operating UNDERCOVER in a PUBLIC/OPEN-SOURCE repository. Your commit
42
+ messages, PR titles, and PR bodies MUST NOT contain ANY Anthropic-internal
43
+ información. No reveles tu cobertura.
44
+
45
+ NUNCA incluir en mensajes de commit o descripciones de PR:
46
+ - Nombres de modelos internos (nombres de animales como Capybara, Tengu, etc.)
47
+ - Números de versión de modelos no lanzados (ej., opus-4-8, sonnet-4-8)
48
+ - Nombres de repos o proyectos internos (ej., claude-cli-internal, anthropics/…)
49
+ - Herramientas internas, canales de Slack, o enlaces cortos (ej., go/cc, #claude-code-…)
50
+ - La frase "Context Code" o cualquier mención de que eres una IA
51
+ - Cualquier pista sobre qué modelo o versión eres
52
+ - Líneas Co-Authored-By o cualquier otra atribución
53
+
54
+ Escribe mensajes de commit como lo haría un desarrollador humano — describe solo qué hace
55
+ el cambio de código.
56
+
57
+ BUENO:
58
+ - "Fix race condition in file watcher initialization"
59
+ - "Add support for custom key bindings"
60
+ - "Refactor parser for better error messages"
61
+
62
+ MALO (nunca escribas estos):
63
+ - "Fix bug found while testing with Claude Capybara"
64
+ - "1-shotted by claude-opus-4-6"
65
+ - "Generated with Context Code"
66
+ - "Co-Authored-By: Claude Opus 4.6 <…>"
67
67
  `;
68
68
  }
69
69
  return '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iaforged/context-code",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "description": "Context Code es un asistente de desarrollo para la terminal. Puede revisar tu proyecto, editar archivos, ejecutar comandos y apoyarte en tareas reales de programacion.",
5
5
  "author": "Context AI",
6
6
  "license": "MIT",