diff --git a/package.json b/package.json index 208ad3a3..012cd2ed 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "postbuild": "chmod +x dist/cli.js && node -e \"const fs=require('node:fs');fs.rmSync('dist/web-static',{recursive:true,force:true});fs.cpSync('web/static','dist/web-static',{recursive:true})\"", "start": "node --env-file=.env dist/index.js", "stop": "pkill -f 'node --env-file=.env.*openswarm' 2>/dev/null || echo 'No process running'", - "lint": "oxlint src/", + "lint": "oxlint src/ web/static/js/", "typecheck": "tsc --noEmit -p tsconfig.check.json", "test": "node --experimental-vm-modules node_modules/vitest/vitest.mjs run", "test:coverage": "node --experimental-vm-modules node_modules/vitest/vitest.mjs run --coverage", diff --git a/src/support/dashboardHtml.ts b/src/support/dashboardHtml.ts index 85a81110..2fba8f79 100644 --- a/src/support/dashboardHtml.ts +++ b/src/support/dashboardHtml.ts @@ -22,6 +22,7 @@ const DASHBOARD_HTML = ` Orchestration Threads Warehouse + Usage Issues
diff --git a/src/support/staticAssets.test.ts b/src/support/staticAssets.test.ts index b26a0a33..6c4761e8 100644 --- a/src/support/staticAssets.test.ts +++ b/src/support/staticAssets.test.ts @@ -3,7 +3,8 @@ import { mkdtempSync, mkdirSync, writeFileSync, symlinkSync, rmSync } from 'node import { join } from 'node:path'; import { tmpdir } from 'node:os'; import { - contentTypeFor, readAppShell, readStaticAsset, readThreadBoardShell, resolveStaticRoot, StaticAssetError, + contentTypeFor, readAppShell, readStaticAsset, readThreadBoardShell, readUsageShell, + resolveStaticRoot, StaticAssetError, } from './staticAssets.js'; describe('contentTypeFor', () => { @@ -26,6 +27,14 @@ describe('resolveStaticRoot', () => { it('ships the durable repository thread shell', async () => { expect((await readThreadBoardShell())?.toString()).toContain('Repository threads'); }); + + it('ships the usage shell, wired to its module (AGT-4289)', async () => { + // A shell that loses its + + + + + + +
+ 🐝 OpenSwarm + Usage + +
+
+ + + + +
+
+ +
+

불러오는 중…

+ +
+
비용
+
호출
+
토큰
+
캐시 적중률cached / prompt
+
+ +
+

일별

+
+
+ +
+
+

모델

+

+
+
+
+

스테이지

+

+
+
+
+

어댑터

+

+
+
+
+

프로젝트

+

+
+
+
+ +
+

작업별 — 호출이 많은 순

+

+
+
+ +
+

원격 접근

+
+

로컬이 아닌 브라우저에서는 배포 시 설정한 웹 토큰이 필요합니다.

+ +
+ + +
+ +
+
+
+ + + + diff --git a/web/static/warehouse.html b/web/static/warehouse.html index 8e5a940b..ca8642b4 100644 --- a/web/static/warehouse.html +++ b/web/static/warehouse.html @@ -20,6 +20,7 @@ Orchestration Threads Warehouse + Usage Supervisor