@texra-ai/cli 0.39.2 → 0.39.4
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/README.md +1 -1
- package/dist/bin/texra.js +1251 -1218
- package/dist/resources/agents/correct.yaml +0 -2
- package/dist/resources/agents/merge.yaml +0 -2
- package/dist/resources/agents/ocr.yaml +0 -2
- package/dist/resources/agents/polish.yaml +0 -2
- package/dist/resources/agents/transcribe_audio.yaml +0 -2
- package/dist/resources/agents/write/paper2poster.yaml +0 -2
- package/dist/resources/agents/write/paper2slide.yaml +0 -2
- package/dist/resources/docs/agent-creation/execution_and_testing.md +2 -2
- package/dist/resources/docs/agent-creation/workflow_schema.md +2 -9
- package/dist/resources/templates/agentCreatorWorkflow.yaml +7 -13
- package/dist/resources/templates/agentTemplate-workflowSingle.yaml +1 -7
- package/dist/resources/tool_use_agents/creator.yaml +1 -2
- package/dist/resources/tool_use_agents/setup.yaml +6 -4
- package/dist/resources/traceViewer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/resources/traceViewer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/resources/traceViewer/assets/index-C2gp4NZw.css +1 -0
- package/dist/resources/traceViewer/assets/index-D8X-B6Nf.js +12027 -0
- package/dist/resources/traceViewer/index.html +13 -0
- package/dist/resources/traceViewerStandalone/index.html +12040 -0
- package/package.json +10 -8
|
@@ -13,8 +13,8 @@ flow shapes:
|
|
|
13
13
|
|
|
14
14
|
- **Workflow flow** for `agentCategory: workflow`. Fixed rounds, each round
|
|
15
15
|
consumes `userRequest[i]`. Operates on `inputFiles` (or the active editor
|
|
16
|
-
selection). Emits LaTeX output files
|
|
17
|
-
`defaultOutputFiles`.
|
|
16
|
+
selection). Emits LaTeX output files from the unified `<documents>`
|
|
17
|
+
container / `defaultOutputFiles`.
|
|
18
18
|
- **Tool-use flow** for `agentCategory: toolUse`. Multi-step loop invoking
|
|
19
19
|
declared tools. May WAIT for interim follow-ups, spawn subagents via
|
|
20
20
|
`delegate_workflow` / `delegate_agent`, and resume.
|
|
@@ -16,8 +16,6 @@ settings:
|
|
|
16
16
|
isRewrite: true # true = editing existing docs, false = creating new
|
|
17
17
|
rounds: 2 # 1 or 2 (default 2)
|
|
18
18
|
temperature: 0.1 # 0.1 for editing, 0.5-0.8 for creative tasks
|
|
19
|
-
documentTag: documents
|
|
20
|
-
endTag: '</documents>'
|
|
21
19
|
|
|
22
20
|
prompts:
|
|
23
21
|
systemPrompt: |
|
|
@@ -39,9 +37,6 @@ prompts:
|
|
|
39
37
|
|
|
40
38
|
- `userRequest` MUST have the same number of entries as `rounds`. Round 1
|
|
41
39
|
→ one entry; round 2 → two entries.
|
|
42
|
-
- Do NOT emit `prefills`. The field is deprecated --- reasoning models
|
|
43
|
-
ignore it at runtime, and other models do fine when the userRequest
|
|
44
|
-
spells out the expected `<documents>...</documents>` wrapper.
|
|
45
40
|
- Always include `{{ INSTRUCTION }}` somewhere so user instructions pass
|
|
46
41
|
through.
|
|
47
42
|
- System prompts should use LaTeX formatting (`\begin{itemize}`,
|
|
@@ -84,8 +79,8 @@ for model-specific instructions.
|
|
|
84
79
|
All workflow agents use the same unified output protocol regardless of whether
|
|
85
80
|
they produce one file or many. No separate `_multiple` variant is needed.
|
|
86
81
|
|
|
87
|
-
-
|
|
88
|
-
|
|
82
|
+
- The `<documents><document name="...">` container is fixed protocol, not a
|
|
83
|
+
setting — every agent emits it; there is nothing to configure.
|
|
89
84
|
- For editing agents, iterate over `INPUT_FILES` to emit one
|
|
90
85
|
`<document name="filename.tex">` block per selected input file inside
|
|
91
86
|
`<documents>`.
|
|
@@ -118,8 +113,6 @@ description: Improves writing quality and clarity based on your instructions.
|
|
|
118
113
|
|
|
119
114
|
settings:
|
|
120
115
|
agentCategory: workflow
|
|
121
|
-
documentTag: documents
|
|
122
|
-
endTag: '</documents>'
|
|
123
116
|
|
|
124
117
|
prompts:
|
|
125
118
|
systemPrompt: |
|
|
@@ -14,21 +14,19 @@ prompts:
|
|
|
14
14
|
You are an expert on the TeXRA codebase, a VS Code extension that runs YAML-defined AI agents.
|
|
15
15
|
When generating workflow agent YAML definitions, follow the schema below exactly.
|
|
16
16
|
Workflow agents process LaTeX documents in fixed rounds (default 2), producing output
|
|
17
|
-
wrapped in
|
|
18
|
-
producing the final output ---
|
|
17
|
+
wrapped in the standard <documents><document name="..."> container. Modern
|
|
18
|
+
thinking-capable models reason natively before producing the final output ---
|
|
19
|
+
do not add scratchpad scaffolding by default.
|
|
19
20
|
|
|
20
21
|
CRITICAL RULES:
|
|
21
22
|
- agentCategory MUST be "workflow" (not "toolUse"). Workflow agents do NOT call tools.
|
|
22
|
-
-
|
|
23
|
-
|
|
23
|
+
- The output container (<documents><document name="...">) is fixed
|
|
24
|
+
protocol, not a per-agent setting — do not add settings for it.
|
|
24
25
|
- Infer appropriate settings from the agent's description:
|
|
25
26
|
- isRewrite: true when the agent edits/revises/corrects existing documents, false when it creates new content.
|
|
26
27
|
- temperature: low (0.1) for editing/correction tasks, higher (0.5-0.8) for creative/generation tasks.
|
|
27
28
|
- rounds: 1 for simple single-pass tasks, 2 for tasks that benefit from reflection.
|
|
28
29
|
- userRequest is an array with exactly as many entries as rounds (1 or 2).
|
|
29
|
-
- Do NOT emit `prefills`. The field is deprecated --- reasoning models
|
|
30
|
-
ignore it at runtime, and other models do fine when the userRequest
|
|
31
|
-
spells out the expected `<documents>...</documents>` wrapper.
|
|
32
30
|
- Fields with defaults can be omitted if the default value is acceptable.
|
|
33
31
|
Respond only with the YAML wrapped in <yaml> tags.
|
|
34
32
|
|
|
@@ -55,8 +53,6 @@ prompts:
|
|
|
55
53
|
description: <one-line description>
|
|
56
54
|
settings:
|
|
57
55
|
agentCategory: workflow
|
|
58
|
-
documentTag: documents
|
|
59
|
-
endTag: </documents>
|
|
60
56
|
isRewrite: <true if editing existing docs, false if creating new>
|
|
61
57
|
temperature: <0.1 for precise editing, 0.5-0.8 for creative>
|
|
62
58
|
prompts:
|
|
@@ -83,8 +79,6 @@ prompts:
|
|
|
83
79
|
description: Improves writing quality and clarity based on your specific instructions.
|
|
84
80
|
settings:
|
|
85
81
|
agentCategory: workflow
|
|
86
|
-
documentTag: documents
|
|
87
|
-
endTag: </documents>
|
|
88
82
|
prompts:
|
|
89
83
|
systemPrompt: |
|
|
90
84
|
You are a professional scientist. Your task is to improve a LaTeX research paper
|
|
@@ -118,9 +112,9 @@ prompts:
|
|
|
118
112
|
Output the further enhanced content as <documents>{% for output in INPUT_FILES %}<document name="{{ output }}">...</document>{% endfor %}</documents>.
|
|
119
113
|
|
|
120
114
|
IMPORTANT REMINDERS:
|
|
121
|
-
-
|
|
115
|
+
- Wrap the final output in <documents><document name="..."> exactly as shown
|
|
116
|
+
above — this container is fixed protocol, not a setting to configure.
|
|
122
117
|
- userRequest must be an array with exactly as many entries as rounds (1 or 2).
|
|
123
|
-
- Do NOT emit `prefills` --- the field is deprecated and reasoning models ignore it.
|
|
124
118
|
- Include {{ INSTRUCTION }} somewhere in the prompts so the user's instructions are passed through.
|
|
125
119
|
- Write prompt text in LaTeX style (\begin{itemize}, \textbf{}, etc.), not markdown.
|
|
126
120
|
|
|
@@ -8,12 +8,6 @@ settings:
|
|
|
8
8
|
agentCategory: workflow
|
|
9
9
|
temperature: 0.1
|
|
10
10
|
isRewrite: true
|
|
11
|
-
documentTag: documents
|
|
12
|
-
endTag: </documents>
|
|
13
|
-
# `prefills` is deprecated and almost never needed. Reasoning-capable
|
|
14
|
-
# models ignore it at runtime, and other models do fine when the
|
|
15
|
-
# userRequest spells out the expected `<documents>...</documents>`
|
|
16
|
-
# wrapper. Omit it.
|
|
17
11
|
|
|
18
12
|
# --- Agent Prompts ---
|
|
19
13
|
prompts:
|
|
@@ -24,7 +18,7 @@ prompts:
|
|
|
24
18
|
AI agents using YAML files. TeXRA loads selected documents and exposes them
|
|
25
19
|
as variables, so prompts can reference data like {{ INPUT_CONTENT }} or
|
|
26
20
|
{{ ALL_INPUTS }}. Each agent runs one or more rounds and produces its
|
|
27
|
-
final output wrapped in the
|
|
21
|
+
final output wrapped in the standard <documents> container.
|
|
28
22
|
|
|
29
23
|
Variable Retrieval (VR) exposes runtime data as variables in these prompts:
|
|
30
24
|
- {{ INPUT_FILE }} / {{ INPUT_CONTENT }}: main file path and text
|
|
@@ -133,8 +133,7 @@ prompts:
|
|
|
133
133
|
- Keep prompts focused. Write precisely what the agent needs for its
|
|
134
134
|
specific purpose — do not pad with boilerplate.
|
|
135
135
|
- For workflow agents, `userRequest` must have the same number of
|
|
136
|
-
entries as `rounds`.
|
|
137
|
-
deprecated and ignored by reasoning models.
|
|
136
|
+
entries as `rounds`.
|
|
138
137
|
- For tool-use agents, `userRequest` must be a single string that
|
|
139
138
|
contains {% raw %}`{{ INSTRUCTION }}`{% endraw %}.
|
|
140
139
|
- Agents can inherit from existing agents via `inherits: parent_name`.
|
|
@@ -150,14 +150,16 @@ prompts:
|
|
|
150
150
|
not skip ahead.
|
|
151
151
|
E. Roster — ask, if their intro didn't already tell you, what
|
|
152
152
|
they're working on: math, physics, CS/ML, Lean 4, or a
|
|
153
|
-
software project. Apply the matching team with
|
|
154
|
-
`apply_team
|
|
153
|
+
software project. Apply the matching team with
|
|
154
|
+
`apply_team`: `mathematician`, `physicist`, `cs-ml`,
|
|
155
155
|
`lean-project`, or `software-engineer`. If they're unsure or
|
|
156
156
|
want a bit of everything, use `starter` — never stall on this
|
|
157
157
|
question. One question, one call. The tool also saves the
|
|
158
158
|
choice as their default team for future projects; if it
|
|
159
|
-
reports
|
|
160
|
-
|
|
159
|
+
reports unavailable TeXRA-hosted members, ask the user to choose
|
|
160
|
+
Sign in to TeXRA, Continue with available members, or Cancel, then
|
|
161
|
+
call it again with the corresponding `unavailableAction`. Never
|
|
162
|
+
choose partial continuation or sign-in on the user's behalf.
|
|
161
163
|
F. Optional extras (Zotero, Lean 4, SoX for audio) — ask once
|
|
162
164
|
whether to install; default is skip (but do offer Lean 4 when
|
|
163
165
|
phase E picked `lean-project`). Use `update_config` to set
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|