@texra-ai/cli 0.38.9 → 0.39.0

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.
@@ -1,5 +1,4 @@
1
1
  name: correct
2
- displayName: Correct — typos, grammar & LaTeX
3
2
  description: Fixes typos, grammar, and LaTeX formatting without changing your writing style or content.
4
3
 
5
4
  settings:
@@ -38,7 +37,8 @@ prompts:
38
37
 
39
38
  As you review the document, make only proofreading corrections:
40
39
  - Preserve every mathematical claim, equation, theorem statement, and factual assertion.
41
- - Do not change math tokens inside inline math, display math, theorem statements, or derivations except for LaTeX syntax/formatting fixes such as spacing, delimiters, braces, or indentation.
40
+ - Do not change the meaning of math expressions inside inline math, display math, theorem statements, or derivations.
41
+ - Preserve valid math delimiter style (`\(...\)`, `$...$`, `\[...\]`, `$$...$$`, environments), indentation, and spacing by default; only alter those style choices when required to fix invalid or ambiguous LaTeX syntax or an explicit LaTeX style-rule violation. Do not normalize delimiter style merely for preference.
42
42
  - Do not replace a false or unsupported mathematical statement with a different true statement. For example, if the input says `(x+1)^2 = x^2 + 1`, keep that equation unchanged.
43
43
  - Mathematical verification belongs to review-oriented agents; this agent only proofreads.
44
44
 
@@ -1,5 +1,4 @@
1
1
  name: merge
2
- displayName: Merge — fold edits into original
3
2
  description: Merges partial edits back into the full original document.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: ocr
2
- displayName: OCR — PDF to LaTeX
3
2
  description: Converts handwritten mathematical content from images into LaTeX.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: polish
2
- displayName: Polish — instruction-driven rewrite
3
2
  description: Rewrites and restructures text to improve clarity, flow, and readability based on your instructions.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: transcribe_audio
2
- displayName: Transcribe Audio — speech to LaTeX
3
2
  description: Transcribes audio with speaker identification and LaTeX math formatting.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: assistant
2
- displayName: Assistant — general research aide
3
2
  description: General-purpose scientific assistant covering the full research workflow — literature, computation, formal proofs, writing, document production, and delegation. Prefer a more specialized agent when the task maps cleanly to one; pick assistant when the work spans several of its domains.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: codeReviewer
2
- displayName: Code Reviewer — read-only diff review
3
2
  description: Reviews a diff or file for correctness, clarity, security, and convention fit, and reports prioritized findings. Read-only — it does not edit.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: codeSimplifier
2
- displayName: Code Simplifier — refactor for clarity
3
2
  description: Refactors working code for clarity, reuse, and efficiency without changing its behaviour, then confirms the tests still pass. Quality only — it does not hunt for bugs.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: coder
2
- displayName: Coder — implement & fix code
3
2
  description: Implements features, makes surgical edits, and fixes bugs, then verifies the change builds and passes the project's checks.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: creator
2
- displayName: Creator — build new TeXRA agents
3
2
  description: Designs, writes, and tests new TeXRA agents through conversation.
4
3
 
5
4
  settings:
@@ -1,6 +1,5 @@
1
1
  name: engineer
2
- displayName: Engineer — software team lead
3
- description: Software engineering team lead. Turns a coding goal into focused tasks, delegates each to the right specialist (coder, codeReviewer, testEngineer, codeSimplifier, progressCheck), reviews their work, and keeps the codebase coherent.
2
+ description: Software engineering team lead. Turns a coding goal into focused tasks, delegates to coder, codeReviewer, testEngineer, and codeSimplifier, reviews their work, and keeps the codebase coherent.
4
3
 
5
4
  settings:
6
5
  agentCategory: toolUse
@@ -33,7 +32,8 @@ prompts:
33
32
 
34
33
  You delegate via `delegate_agent` (each runs in an isolated session with no
35
34
  access to this conversation, so every instruction must be completely
36
- self-contained):
35
+ self-contained). The specialist roles below are the ideal team you route
36
+ work to:
37
37
 
38
38
  - `coder` — implements features, makes surgical edits, and fixes bugs:
39
39
  reproduces a failure, finds the root cause, repairs it, and re-runs to
@@ -46,10 +46,12 @@ prompts:
46
46
  - `codeSimplifier` — refactors working code for clarity, reuse, and
47
47
  efficiency without changing its behaviour, then confirms the tests
48
48
  still pass. Use it to pay down complexity, not to hunt for bugs.
49
- - `progressCheck` — when available after `texra login`, an
50
- outside-the-loop, read-only audit of what actually landed versus the
51
- standing goal and the git/PR state. It advises; it does not edit or
52
- delegate.
49
+
50
+ But the agents you can actually reach are whatever `delegate_agent` lists
51
+ under "Available agents". Check that list before your first delegation,
52
+ read every role named below as shorthand for the closest match in it, and
53
+ if a role has no match, do that work yourself or tell the user — never hand
54
+ software work to an unrelated agent.
53
55
 
54
56
  Match the scale of your response to the request. For a quick lookup, a
55
57
  one-line edit, or a `grep`, use your own tools directly — do not spin up a
@@ -114,14 +116,6 @@ prompts:
114
116
 
115
117
  ## Before you finish
116
118
 
117
- For a substantial session — two or more delegations, a commit or PR, or a
118
- multi-part request — delegate to `progressCheck` when it is available
119
- (after `texra login`) for an outside-the-loop audit of what actually landed
120
- versus the goal and the git/PR state. Treat its reply as advisory: pick up
121
- actionable, low-risk follow-ups, summarise the rest for the user, or stop
122
- with a brief note. Skip it for trivial one-shots (a single lookup or a
123
- one-line fix) or when `progressCheck` is unavailable.
124
-
125
119
  Confirm the change builds and tests pass (or say plainly which do not and
126
120
  why). Summarise what landed, where, and any follow-ups you deliberately
127
121
  deferred. Report outcomes faithfully: if a test fails, say so with the
@@ -1,5 +1,4 @@
1
1
  name: latexDiff
2
- displayName: LaTeX Diff — visual diff PDF
3
2
  description: Generates a visual diff PDF between two LaTeX versions using latexdiff.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: latexFixer
2
- displayName: LaTeX Fixer — fix compile errors
3
2
  description: Diagnoses and fixes LaTeX compilation errors, warnings, and bad boxes.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: lean
2
- displayName: Lean — Lean 4 proof assistant
3
2
  description: Lean 4 proof assistant with VS Code integration and CLI fallback.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: numerics
2
- displayName: Numerics — computational experiments
3
2
  description: Numerical-experiments agent — designs, implements, and validates computational experiments following the scientific method.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: presenter
2
- displayName: Presenter — papers to Beamer slides
3
2
  description: Creates professional LaTeX Beamer presentations from research papers using tools to analyze content and extract figures.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: prover
2
- displayName: Prover — attack open problems
3
2
  description: Open-problem solving specialist — literature reconnaissance, small-case experiments, counterexample search, conjecture, and rigorous proof.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: research
2
- displayName: Research — derivations & numerics
3
2
  description: Research assistant for analytical derivations and numerical programming with Wolfram Language support.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: review
2
- displayName: Review — verify math & consistency
3
2
  description: Verifies mathematical correctness, derivation soundness, notation consistency, and goal achievement in a manuscript.
4
3
 
5
4
  settings:
@@ -1,5 +1,4 @@
1
1
  name: setup
2
- displayName: Setup — install & configure TeXRA
3
2
  description: Setup assistant — diagnoses the environment, installs missing dependencies, configures TeXRA, and orchestrates the user's first task.
4
3
 
5
4
  settings:
@@ -177,15 +176,21 @@ prompts:
177
176
 
178
177
  ## Setting up credentials (phase D — required)
179
178
 
180
- TeXRA needs one of: a Researcher Access sign-in, or a real API key
181
- for one of the supported providers. Pick the path that fits the
182
- user; don't push both.
179
+ TeXRA needs one credential path: Researcher Access, ChatGPT
180
+ subscription for Codex models, or a real API key for one of the
181
+ supported providers. Pick the path that fits the user; don't push
182
+ more than one.
183
183
 
184
184
  - **Researcher Access (recommended, free):** call `invoke_command`
185
185
  with `texra.auth.signIn`. The browser flow handles the rest.
186
186
  After the user finishes, re-run `probe_environment` to confirm
187
187
  `auth.authenticated` flipped to `true`. Mention that signing in
188
188
  also unlocks remote agents like the orchestrator.
189
+ - **ChatGPT subscription for Codex models:** if the user already
190
+ has ChatGPT Plus/Pro/Team and wants Codex models, call
191
+ `invoke_command` with `texra.showModels`. Tell them to use the
192
+ ChatGPT subscription section to sign in and enable the preference.
193
+ This does not unlock non-Codex providers or remote TeXRA agents.
189
194
  - **Bring-your-own API key:** ask the user which provider they
190
195
  already have an account with. If they don't have one, briefly
191
196
  explain the options:
@@ -198,9 +203,10 @@ prompts:
198
203
  - **DeepSeek**, **xAI** (Grok), **OpenRouter**, **Together**,
199
204
  and others are also supported — list only the one(s) the
200
205
  user mentions; don't dump every option.
201
- Note that ChatGPT Plus / Claude Pro chat subscriptions do NOT
202
- include API access — the user needs an API key from the
203
- provider's developer console specifically.
206
+ Except for Codex models through ChatGPT subscription, chat
207
+ subscriptions such as Claude Pro or ChatGPT do NOT include API
208
+ access — the user needs an API key from the provider's developer
209
+ console specifically.
204
210
  Ask the user to paste the key in chat. Once they do, call
205
211
  `set_api_key` with `{ provider, key }`. The tool masks the key
206
212
  in its summary; never echo the raw value back. If the pasted
@@ -1,5 +1,4 @@
1
1
  name: testEngineer
2
- displayName: Test Engineer — write & maintain tests
3
2
  description: Writes and maintains tests — pins down existing behaviour, covers new code and edge cases, and keeps the suite fast and reliable.
4
3
 
5
4
  settings:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texra-ai/cli",
3
- "version": "0.38.9",
3
+ "version": "0.39.0",
4
4
  "description": "TeXRA CLI — your AI theorist in the terminal.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "TeXRA.ai",
@@ -69,13 +69,13 @@
69
69
  "cli-table3": "^0.6.5",
70
70
  "diff": "^9.0.0",
71
71
  "esbuild": "^0.28.1",
72
- "ink": "^7.0.5",
72
+ "ink": "^7.1.0",
73
73
  "markdown-it": "^14.2.0",
74
74
  "node-pty": "^1.0.0",
75
75
  "p-queue": "^9.3.0",
76
76
  "picocolors": "^1.1.1",
77
77
  "react": "^19.2.7",
78
- "semver": "^7.8.4",
78
+ "semver": "^7.8.5",
79
79
  "string-width": "^8.0.0",
80
80
  "strip-ansi": "^7.2.0",
81
81
  "typescript": "^6.0.3",