@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.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/dist/bin/texra.js +1251 -1218
  3. package/dist/resources/agents/correct.yaml +0 -2
  4. package/dist/resources/agents/merge.yaml +0 -2
  5. package/dist/resources/agents/ocr.yaml +0 -2
  6. package/dist/resources/agents/polish.yaml +0 -2
  7. package/dist/resources/agents/transcribe_audio.yaml +0 -2
  8. package/dist/resources/agents/write/paper2poster.yaml +0 -2
  9. package/dist/resources/agents/write/paper2slide.yaml +0 -2
  10. package/dist/resources/docs/agent-creation/execution_and_testing.md +2 -2
  11. package/dist/resources/docs/agent-creation/workflow_schema.md +2 -9
  12. package/dist/resources/templates/agentCreatorWorkflow.yaml +7 -13
  13. package/dist/resources/templates/agentTemplate-workflowSingle.yaml +1 -7
  14. package/dist/resources/tool_use_agents/creator.yaml +1 -2
  15. package/dist/resources/tool_use_agents/setup.yaml +6 -4
  16. package/dist/resources/traceViewer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  17. package/dist/resources/traceViewer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  18. package/dist/resources/traceViewer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  19. package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  20. package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  21. package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  22. package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  23. package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  24. package/dist/resources/traceViewer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  25. package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  26. package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  27. package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  28. package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  29. package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  30. package/dist/resources/traceViewer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  31. package/dist/resources/traceViewer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  32. package/dist/resources/traceViewer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  33. package/dist/resources/traceViewer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  34. package/dist/resources/traceViewer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  35. package/dist/resources/traceViewer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  36. package/dist/resources/traceViewer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  37. package/dist/resources/traceViewer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  38. package/dist/resources/traceViewer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  39. package/dist/resources/traceViewer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  40. package/dist/resources/traceViewer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  41. package/dist/resources/traceViewer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  42. package/dist/resources/traceViewer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  43. package/dist/resources/traceViewer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  44. package/dist/resources/traceViewer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  45. package/dist/resources/traceViewer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  46. package/dist/resources/traceViewer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  47. package/dist/resources/traceViewer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  48. package/dist/resources/traceViewer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  49. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  50. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  51. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  52. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  53. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  54. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  55. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  56. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  57. package/dist/resources/traceViewer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  58. package/dist/resources/traceViewer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  59. package/dist/resources/traceViewer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  60. package/dist/resources/traceViewer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  61. package/dist/resources/traceViewer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  62. package/dist/resources/traceViewer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  63. package/dist/resources/traceViewer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  64. package/dist/resources/traceViewer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  65. package/dist/resources/traceViewer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  66. package/dist/resources/traceViewer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  67. package/dist/resources/traceViewer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  68. package/dist/resources/traceViewer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  69. package/dist/resources/traceViewer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  70. package/dist/resources/traceViewer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  71. package/dist/resources/traceViewer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  72. package/dist/resources/traceViewer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  73. package/dist/resources/traceViewer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  74. package/dist/resources/traceViewer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  75. package/dist/resources/traceViewer/assets/index-C2gp4NZw.css +1 -0
  76. package/dist/resources/traceViewer/assets/index-D8X-B6Nf.js +12027 -0
  77. package/dist/resources/traceViewer/index.html +13 -0
  78. package/dist/resources/traceViewerStandalone/index.html +12040 -0
  79. package/package.json +10 -8
@@ -3,8 +3,6 @@ description: Fixes typos, grammar, and LaTeX formatting without changing your wr
3
3
 
4
4
  settings:
5
5
  agentCategory: workflow
6
- documentTag: documents
7
- endTag: </documents>
8
6
  rounds: 1
9
7
 
10
8
  prompts:
@@ -3,8 +3,6 @@ description: Merges partial edits back into the full original document.
3
3
 
4
4
  settings:
5
5
  agentCategory: workflow
6
- documentTag: documents
7
- endTag: </documents>
8
6
  rounds: 1
9
7
 
10
8
  prompts:
@@ -3,8 +3,6 @@ description: Converts handwritten mathematical content from images into LaTeX.
3
3
 
4
4
  settings:
5
5
  agentCategory: workflow
6
- documentTag: documents
7
- endTag: </documents>
8
6
  defaultOutputFiles:
9
7
  - ocr_result.tex
10
8
 
@@ -3,8 +3,6 @@ description: Rewrites and restructures text to improve clarity, flow, and readab
3
3
 
4
4
  settings:
5
5
  agentCategory: workflow
6
- documentTag: documents
7
- endTag: </documents>
8
6
 
9
7
  prompts:
10
8
  systemPrompt: |
@@ -3,8 +3,6 @@ description: Transcribes audio with speaker identification and LaTeX math format
3
3
 
4
4
  settings:
5
5
  agentCategory: workflow
6
- documentTag: documents
7
- endTag: </documents>
8
6
  defaultOutputFiles:
9
7
  - transcript.tex
10
8
 
@@ -3,8 +3,6 @@ description: Converts a research paper into a LaTeX conference poster using a pr
3
3
 
4
4
  settings:
5
5
  agentCategory: workflow
6
- documentTag: documents
7
- endTag: </documents>
8
6
  isRewrite: False
9
7
  defaultOutputFiles:
10
8
  - poster.tex
@@ -3,8 +3,6 @@ description: Converts a research paper into a LaTeX Beamer slide deck using a pr
3
3
 
4
4
  settings:
5
5
  agentCategory: workflow
6
- documentTag: documents
7
- endTag: </documents>
8
6
  defaultOutputFiles:
9
7
  - slides.tex
10
8
  requiredFilesInternal:
@@ -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 per `documentTag` /
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
- - Use `documentTag: documents` (the default). Omit it unless you need a custom
88
- tag for a legacy single-output agent.
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 a documentTag. Modern thinking-capable models reason natively before
18
- producing the final output --- do not add scratchpad scaffolding by default.
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
- - documentTag SHOULD be "documents" for new workflow agents.
23
- - endTag MUST match documentTag as a closing XML tag (e.g. "</documents>").
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
- - The documentTag in prompts must match the settings.documentTag.
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 configured documentTag.
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`. Do NOT emit `prefills` --- the field is
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 one
154
- `apply_team` call: `mathematician`, `physicist`, `cs-ml`,
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 a relay-served lead that unlocks after sign-in, relay
160
- that in one sentence.
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