@siteboon/claude-code-ui 1.13.0 → 1.13.1
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/api-docs.html +30 -8
- package/dist/assets/{index-Zq2roSUR.js → index-BL1HpeHJ.js} +156 -156
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/claude-sdk.js +12 -11
- package/server/cursor-cli.js +24 -24
- package/server/index.js +43 -14
- package/server/openai-codex.js +7 -6
- package/server/routes/agent.js +13 -5
- package/server/routes/commands.js +6 -57
- package/server/routes/cursor.js +2 -1
- package/server/database/auth.db +0 -0
package/dist/api-docs.html
CHANGED
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
<span class="endpoint-path"><span class="api-url">http://localhost:3001</span>/api/agent</span>
|
|
490
490
|
</div>
|
|
491
491
|
|
|
492
|
-
<p>Trigger an AI agent (Claude or
|
|
492
|
+
<p>Trigger an AI agent (Claude, Cursor, or Codex) to work on a project.</p>
|
|
493
493
|
|
|
494
494
|
<h4>Request Body Parameters</h4>
|
|
495
495
|
<table>
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
<td><code>provider</code></td>
|
|
525
525
|
<td>string</td>
|
|
526
526
|
<td><span class="badge badge-optional">Optional</span></td>
|
|
527
|
-
<td><code>claude</code> or <code>
|
|
527
|
+
<td><code>claude</code>, <code>cursor</code>, or <code>codex</code> (default: <code>claude</code>)</td>
|
|
528
528
|
</tr>
|
|
529
529
|
<tr>
|
|
530
530
|
<td><code>stream</code></td>
|
|
@@ -536,7 +536,9 @@
|
|
|
536
536
|
<td><code>model</code></td>
|
|
537
537
|
<td>string</td>
|
|
538
538
|
<td><span class="badge badge-optional">Optional</span></td>
|
|
539
|
-
<td
|
|
539
|
+
<td id="model-options-cell">
|
|
540
|
+
Model identifier for the AI provider (loading from constants...)
|
|
541
|
+
</td>
|
|
540
542
|
</tr>
|
|
541
543
|
<tr>
|
|
542
544
|
<td><code>cleanup</code></td>
|
|
@@ -818,31 +820,51 @@ data: {"type":"done"}</code></pre>
|
|
|
818
820
|
</div>
|
|
819
821
|
</div>
|
|
820
822
|
|
|
821
|
-
<script>
|
|
823
|
+
<script type="module">
|
|
824
|
+
// Import model constants
|
|
825
|
+
import { CLAUDE_MODELS, CURSOR_MODELS, CODEX_MODELS } from '/shared/modelConstants.js';
|
|
826
|
+
|
|
822
827
|
// Dynamic URL replacement
|
|
823
828
|
const apiUrl = window.location.origin;
|
|
824
829
|
document.querySelectorAll('.api-url').forEach(el => {
|
|
825
830
|
el.textContent = apiUrl;
|
|
826
831
|
});
|
|
827
832
|
|
|
833
|
+
// Dynamically populate model documentation
|
|
834
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
835
|
+
const modelCell = document.getElementById('model-options-cell');
|
|
836
|
+
if (modelCell) {
|
|
837
|
+
const claudeModels = CLAUDE_MODELS.OPTIONS.map(m => `<code>${m.value}</code>`).join(', ');
|
|
838
|
+
const cursorModels = CURSOR_MODELS.OPTIONS.slice(0, 8).map(m => `<code>${m.value}</code>`).join(', ');
|
|
839
|
+
const codexModels = CODEX_MODELS.OPTIONS.map(m => `<code>${m.value}</code>`).join(', ');
|
|
840
|
+
|
|
841
|
+
modelCell.innerHTML = `
|
|
842
|
+
Model identifier for the AI provider:<br><br>
|
|
843
|
+
<strong>Claude:</strong> ${claudeModels} (default: <code>${CLAUDE_MODELS.DEFAULT}</code>)<br><br>
|
|
844
|
+
<strong>Cursor:</strong> ${cursorModels}, and more (default: <code>${CURSOR_MODELS.DEFAULT}</code>)<br><br>
|
|
845
|
+
<strong>Codex:</strong> ${codexModels} (default: <code>${CODEX_MODELS.DEFAULT}</code>)
|
|
846
|
+
`;
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
|
|
828
850
|
// Tab switching
|
|
829
|
-
function
|
|
851
|
+
window.showTab = function(tabName) {
|
|
830
852
|
const parentBlock = event.target.closest('.example-block');
|
|
831
853
|
if (!parentBlock) return;
|
|
832
|
-
|
|
854
|
+
|
|
833
855
|
parentBlock.querySelectorAll('.tab-content').forEach(tab => {
|
|
834
856
|
tab.classList.remove('active');
|
|
835
857
|
});
|
|
836
858
|
parentBlock.querySelectorAll('.tab-button').forEach(btn => {
|
|
837
859
|
btn.classList.remove('active');
|
|
838
860
|
});
|
|
839
|
-
|
|
861
|
+
|
|
840
862
|
const targetTab = parentBlock.querySelector('#' + tabName);
|
|
841
863
|
if (targetTab) {
|
|
842
864
|
targetTab.classList.add('active');
|
|
843
865
|
event.target.classList.add('active');
|
|
844
866
|
}
|
|
845
|
-
}
|
|
867
|
+
};
|
|
846
868
|
</script>
|
|
847
869
|
|
|
848
870
|
<!-- Prism.js -->
|