opencroc 1.7.0 → 1.8.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/cli/index.js +2832 -54
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +379 -1
- package/dist/index.js +2115 -35
- package/dist/index.js.map +1 -1
- package/dist/web/index-studio.html +1644 -0
- package/dist/web/index.html +1 -1
- package/package.json +9 -3
package/dist/web/index.html
CHANGED
|
@@ -546,7 +546,7 @@ function updateBtns(){const r=state.get('running');['btn-scan','btn-pipeline','b
|
|
|
546
546
|
async function openFilePreview(idx){try{const r=await fetch('/api/files/'+idx);const d=await r.json();document.getElementById('fp-title').textContent=d.filePath||'File';document.getElementById('fp-code').textContent=d.content||'';document.getElementById('file-preview').classList.add('visible')}catch(e){ui.showToast('Failed to load file','error')}}
|
|
547
547
|
async function openReportPreview(fmt){try{const r=await fetch('/api/reports/'+fmt);const t=await r.text();if(fmt==='html'){const w=window.open('','_blank');if(w){w.document.write(t);w.document.close()}return}document.getElementById('fp-title').textContent='Report: '+fmt;document.getElementById('fp-code').textContent=t;document.getElementById('file-preview').classList.add('visible')}catch(e){ui.showToast('Failed to load report','error')}}
|
|
548
548
|
function toggleTheme(){const cur=state.get('theme');const nxt=cur==='dark'?'light':'dark';state.set({theme:nxt});document.documentElement.setAttribute('data-theme',nxt);localStorage.setItem('opencroc-theme',nxt);document.getElementById('theme-icon-dark').style.display=nxt==='dark'?'':'none';document.getElementById('theme-icon-light').style.display=nxt==='light'?'':'none';updateOfficeLighting(nxt)}
|
|
549
|
-
function setView(v){state.set({currentView:v});document.getElementById('view-3d').classList.toggle('active',v==='3d');document.getElementById('view-graph').classList.toggle('active',v==='graph');if(v==='3d')camCtrl.flyTo('office')
|
|
549
|
+
function setView(v){state.set({currentView:v});document.getElementById('view-3d').classList.toggle('active',v==='3d');document.getElementById('view-graph').classList.toggle('active',v==='graph');if(v==='3d'){camCtrl.flyTo('office')}else{window.location.href='/index-studio.html'}}
|
|
550
550
|
|
|
551
551
|
/* ─── Events ───────────────────────────────────────────────────────────────── */
|
|
552
552
|
document.getElementById('btn-scan').addEventListener('click',doScan);
|
package/package.json
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencroc",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "AI-native
|
|
3
|
+
"version": "1.8.1",
|
|
4
|
+
"description": "AI-native project intelligence platform — universal scanner, knowledge graph, risk analysis, multi-perspective reports, and E2E testing",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"project-intelligence",
|
|
7
|
+
"knowledge-graph",
|
|
8
|
+
"code-analysis",
|
|
9
|
+
"risk-detection",
|
|
6
10
|
"e2e",
|
|
7
11
|
"testing",
|
|
8
12
|
"ai",
|
|
9
13
|
"playwright",
|
|
10
14
|
"test-generation",
|
|
11
15
|
"self-healing",
|
|
12
|
-
"source-aware"
|
|
16
|
+
"source-aware",
|
|
17
|
+
"multi-language",
|
|
18
|
+
"scanner"
|
|
13
19
|
],
|
|
14
20
|
"homepage": "https://opencroc.com",
|
|
15
21
|
"bugs": {
|