@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.
- package/dist/bin/orchestrate-harness.js +38344 -0
- package/dist/bin/texra.js +1146 -1094
- package/dist/resources/agents/correct.yaml +2 -2
- package/dist/resources/agents/merge.yaml +0 -1
- package/dist/resources/agents/ocr.yaml +0 -1
- package/dist/resources/agents/polish.yaml +0 -1
- package/dist/resources/agents/transcribe_audio.yaml +0 -1
- package/dist/resources/tool_use_agents/assistant.yaml +0 -1
- package/dist/resources/tool_use_agents/codeReviewer.yaml +0 -1
- package/dist/resources/tool_use_agents/codeSimplifier.yaml +0 -1
- package/dist/resources/tool_use_agents/coder.yaml +0 -1
- package/dist/resources/tool_use_agents/creator.yaml +0 -1
- package/dist/resources/tool_use_agents/engineer.yaml +9 -15
- package/dist/resources/tool_use_agents/latexDiff.yaml +0 -1
- package/dist/resources/tool_use_agents/latexFixer.yaml +0 -1
- package/dist/resources/tool_use_agents/lean.yaml +0 -1
- package/dist/resources/tool_use_agents/numerics.yaml +0 -1
- package/dist/resources/tool_use_agents/presenter.yaml +0 -1
- package/dist/resources/tool_use_agents/prover.yaml +0 -1
- package/dist/resources/tool_use_agents/research.yaml +0 -1
- package/dist/resources/tool_use_agents/review.yaml +0 -1
- package/dist/resources/tool_use_agents/setup.yaml +13 -7
- package/dist/resources/tool_use_agents/testEngineer.yaml +0 -1
- package/package.json +3 -3
|
@@ -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
|
|
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: 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,6 +1,5 @@
|
|
|
1
1
|
name: engineer
|
|
2
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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: 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
|
|
181
|
-
for
|
|
182
|
-
user; don't push
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
provider's developer
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texra-ai/cli",
|
|
3
|
-
"version": "0.
|
|
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
|
|
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.
|
|
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",
|