@hongmaple0820/scale-engine 0.50.1 → 0.50.2

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 (50) hide show
  1. package/README.en.md +2 -2
  2. package/README.md +2 -2
  3. package/dist/api/http.js +3 -1
  4. package/dist/api/http.js.map +1 -1
  5. package/dist/cli/cortexCommands.d.ts +16 -0
  6. package/dist/cli/cortexCommands.js +47 -4
  7. package/dist/cli/cortexCommands.js.map +1 -1
  8. package/dist/cortex/InstinctStore.d.ts +13 -1
  9. package/dist/cortex/InstinctStore.js +90 -11
  10. package/dist/cortex/InstinctStore.js.map +1 -1
  11. package/dist/cortex/SessionInjector.js +39 -2
  12. package/dist/cortex/SessionInjector.js.map +1 -1
  13. package/dist/dashboard/DashboardServer.d.ts +158 -0
  14. package/dist/dashboard/DashboardServer.js +753 -13
  15. package/dist/dashboard/DashboardServer.js.map +1 -1
  16. package/dist/dashboard/spa/assets/index-VYBCLBje.js +11 -0
  17. package/dist/dashboard/spa/assets/index-VhwY_ac1.css +1 -0
  18. package/dist/dashboard/spa/assets/naive-ui-BQy2AJkt.js +3340 -0
  19. package/dist/dashboard/spa/assets/vendor-BPU6aOYA.js +3 -0
  20. package/dist/dashboard/spa/assets/vue-CQQMb5Wi.js +17 -0
  21. package/dist/dashboard/spa/index.html +15 -462
  22. package/dist/memory/MemoryFabric.d.ts +13 -1
  23. package/dist/memory/MemoryFabric.js +60 -0
  24. package/dist/memory/MemoryFabric.js.map +1 -1
  25. package/dist/version.d.ts +1 -1
  26. package/dist/version.js +1 -1
  27. package/docs/workflow/ASSESSMENT_INDEX.md +326 -0
  28. package/docs/workflow/COMPARATIVE_ANALYSIS.md +422 -0
  29. package/docs/workflow/EXECUTIVE_SUMMARY.md +310 -0
  30. package/docs/workflow/IMPROVEMENT_CHECKLIST.md +518 -0
  31. package/docs/workflow/IMPROVEMENT_ROADMAP.md +707 -0
  32. package/docs/workflow/README.md +8 -0
  33. package/package.json +6 -2
  34. package/dist/dashboard/spa/app.js +0 -515
  35. package/dist/dashboard/spa/components/DataTable.js +0 -53
  36. package/dist/dashboard/spa/components/EventStream.js +0 -66
  37. package/dist/dashboard/spa/components/LoadingState.js +0 -39
  38. package/dist/dashboard/spa/components/MetricCard.js +0 -30
  39. package/dist/dashboard/spa/components/Panel.js +0 -27
  40. package/dist/dashboard/spa/components/StatusBadge.js +0 -51
  41. package/dist/dashboard/spa/i18n.js +0 -767
  42. package/dist/dashboard/spa/pages/costs.js +0 -522
  43. package/dist/dashboard/spa/pages/documents.js +0 -540
  44. package/dist/dashboard/spa/pages/knowledge.js +0 -457
  45. package/dist/dashboard/spa/pages/monitoring.js +0 -361
  46. package/dist/dashboard/spa/pages/overview.js +0 -301
  47. package/dist/dashboard/spa/pages/topology-renderers.js +0 -251
  48. package/dist/dashboard/spa/pages/topology.js +0 -370
  49. package/dist/dashboard/spa/pages/workflow-renderers.js +0 -239
  50. package/dist/dashboard/spa/pages/workflow.js +0 -217
@@ -1,39 +0,0 @@
1
- /**
2
- * LoadingState — Loading and empty state components
3
- * Usage: Dashboard.components.LoadingState(message)
4
- * Dashboard.components.EmptyState({ icon, title, description })
5
- */
6
- ;(() => {
7
- 'use strict'
8
-
9
- window.Dashboard = window.Dashboard || {}
10
- window.Dashboard.components = window.Dashboard.components || {}
11
-
12
- window.Dashboard.components.LoadingState = function LoadingState(message = 'Loading...') {
13
- return `
14
- <div class="loading-state">
15
- <div class="loading-spinner"></div>
16
- <div class="text-muted">${message}</div>
17
- </div>
18
- `
19
- }
20
-
21
- window.Dashboard.components.EmptyState = function EmptyState({ icon = '&#128196;', title = 'No data', description = '' } = {}) {
22
- return `
23
- <div class="empty-state">
24
- <div class="empty-icon">${icon}</div>
25
- <div class="empty-title">${title}</div>
26
- ${description ? `<div class="empty-desc text-muted">${description}</div>` : ''}
27
- </div>
28
- `
29
- }
30
-
31
- window.Dashboard.components.ErrorState = function ErrorState(message = 'Something went wrong') {
32
- return `
33
- <div class="empty-state">
34
- <div class="empty-icon" style="color:var(--danger)">&#9888;</div>
35
- <div class="empty-title">${message}</div>
36
- </div>
37
- `
38
- }
39
- })()
@@ -1,30 +0,0 @@
1
- /**
2
- * MetricCard — Reusable metric display card
3
- * Usage: Dashboard.components.MetricCard({ label, value, cls, icon })
4
- */
5
- ;(() => {
6
- 'use strict'
7
-
8
- window.Dashboard = window.Dashboard || {}
9
- window.Dashboard.components = window.Dashboard.components || {}
10
-
11
- window.Dashboard.components.MetricCard = function MetricCard({ label, value, cls = '', icon = '' }) {
12
- return `
13
- <div class="metric-card">
14
- ${icon ? `<div class="metric-icon">${icon}</div>` : ''}
15
- <div class="metric-label">${label}</div>
16
- <div class="metric-value ${cls}">${value}</div>
17
- </div>
18
- `
19
- }
20
-
21
- /**
22
- * MetricCardRow — Row of metric cards
23
- * Usage: Dashboard.components.MetricRow(cards)
24
- */
25
- window.Dashboard.components.MetricRow = function MetricRow(cards) {
26
- return `<div class="metrics-row">${cards.map(c =>
27
- window.Dashboard.components.MetricCard(c)
28
- ).join('')}</div>`
29
- }
30
- })()
@@ -1,27 +0,0 @@
1
- /**
2
- * Panel — Reusable content panel with title
3
- * Usage: Dashboard.components.Panel({ title, content, cls, badge })
4
- */
5
- ;(() => {
6
- 'use strict'
7
-
8
- window.Dashboard = window.Dashboard || {}
9
- window.Dashboard.components = window.Dashboard.components || {}
10
-
11
- window.Dashboard.components.Panel = function Panel({ title = '', content = '', cls = '', badge = '' }) {
12
- return `
13
- <div class="panel ${cls}">
14
- ${title ? `<div class="panel-title">${title}${badge ? ` <span class="count">${badge}</span>` : ''}</div>` : ''}
15
- <div class="panel-content">${content}</div>
16
- </div>
17
- `
18
- }
19
-
20
- /**
21
- * Grid — 2-column grid layout
22
- * Usage: Dashboard.components.Grid2(leftContent, rightContent)
23
- */
24
- window.Dashboard.components.Grid2 = function Grid2(left, right, cls = '') {
25
- return `<div class="grid-2 ${cls}">${left}${right}</div>`
26
- }
27
- })()
@@ -1,51 +0,0 @@
1
- /**
2
- * StatusBadge — Status indicator with color coding
3
- * Usage: Dashboard.components.StatusBadge(status)
4
- */
5
- ;(() => {
6
- 'use strict'
7
-
8
- window.Dashboard = window.Dashboard || {}
9
- window.Dashboard.components = window.Dashboard.components || {}
10
-
11
- const STATUS_COLORS = {
12
- // Artifact statuses
13
- DRAFT: 'info',
14
- REVIEWING: 'warning',
15
- FROZEN: 'accent',
16
- DONE: 'success',
17
- CANCELLED: 'muted',
18
- // Task statuses
19
- TODO: 'info',
20
- READY: 'info',
21
- IN_PROGRESS: 'warning',
22
- REVIEW_REQUIRED: 'warning',
23
- REVIEW_PASSED: 'accent',
24
- COMPLETED: 'success',
25
- FAILED: 'danger',
26
- // Gate statuses
27
- passed: 'success',
28
- failed: 'danger',
29
- pending: 'warning',
30
- // General
31
- active: 'accent',
32
- inactive: 'muted',
33
- error: 'danger',
34
- }
35
-
36
- window.Dashboard.components.StatusBadge = function StatusBadge(status, label = '') {
37
- const color = STATUS_COLORS[status] || 'info'
38
- const text = label || status
39
- return `<span class="badge badge-${color}">${text}</span>`
40
- }
41
-
42
- /**
43
- * PriorityBadge — Priority indicator
44
- */
45
- window.Dashboard.components.PriorityBadge = function PriorityBadge(priority) {
46
- const labels = ['Critical', 'High', 'Medium', 'Low']
47
- const colors = ['danger', 'warning', 'info', 'muted']
48
- const idx = Math.min(Math.max(Number(priority) || 2, 0), 3)
49
- return `<span class="badge badge-${colors[idx]}">${labels[idx]}</span>`
50
- }
51
- })()