@polderlabs/bizar 4.4.13 → 4.5.0

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 (90) hide show
  1. package/bizar-dash/CHANGELOG.md +37 -276
  2. package/bizar-dash/dist/assets/main-CDFKHzBg.css +1 -0
  3. package/bizar-dash/dist/assets/main-NYFpS2wY.js +312 -0
  4. package/bizar-dash/dist/assets/main-NYFpS2wY.js.map +1 -0
  5. package/bizar-dash/dist/assets/{mobile-DSb-t42Y.js → mobile--0FBIKX3.js} +2 -2
  6. package/bizar-dash/dist/assets/{mobile-DSb-t42Y.js.map → mobile--0FBIKX3.js.map} +1 -1
  7. package/bizar-dash/dist/assets/mobile-OgRp8VIb.js +352 -0
  8. package/bizar-dash/dist/assets/mobile-OgRp8VIb.js.map +1 -0
  9. package/bizar-dash/dist/index.html +3 -3
  10. package/bizar-dash/dist/mobile.html +2 -2
  11. package/bizar-dash/skills/agent-baseline/SKILL.md +80 -0
  12. package/bizar-dash/skills/bizar/SKILL.md +96 -0
  13. package/bizar-dash/skills/chat/SKILL.md +74 -0
  14. package/bizar-dash/skills/lightrag/SKILL.md +75 -0
  15. package/bizar-dash/skills/minimax/SKILL.md +80 -0
  16. package/bizar-dash/skills/obsidian/SKILL.md +55 -0
  17. package/bizar-dash/skills/providers/SKILL.md +75 -0
  18. package/bizar-dash/skills/sdk/SKILL.md +138 -0
  19. package/bizar-dash/skills/self-improvement/SKILL.md +53 -0
  20. package/bizar-dash/skills/skills-cli/SKILL.md +94 -0
  21. package/bizar-dash/skills/usage/SKILL.md +62 -0
  22. package/bizar-dash/src/server/api.mjs +12 -0
  23. package/bizar-dash/src/server/memory-lightrag.mjs +5 -2
  24. package/bizar-dash/src/server/memory-store.mjs +38 -0
  25. package/bizar-dash/src/server/minimax-usage-store.mjs +372 -0
  26. package/bizar-dash/src/server/minimax.mjs +196 -5
  27. package/bizar-dash/src/server/providers-store.mjs +956 -0
  28. package/bizar-dash/src/server/routes/config.mjs +52 -1
  29. package/bizar-dash/src/server/routes/env-vars.mjs +165 -0
  30. package/bizar-dash/src/server/routes/lightrag.mjs +154 -0
  31. package/bizar-dash/src/server/routes/memory.mjs +241 -1
  32. package/bizar-dash/src/server/routes/opencode-session-detail.mjs +14 -29
  33. package/bizar-dash/src/server/routes/opencode-sessions.mjs +205 -3
  34. package/bizar-dash/src/server/routes/providers.mjs +266 -5
  35. package/bizar-dash/src/server/routes/skills.mjs +32 -43
  36. package/bizar-dash/src/server/routes/update.mjs +340 -0
  37. package/bizar-dash/src/server/routes/usage.mjs +136 -0
  38. package/bizar-dash/src/server/serve-info.mjs +135 -4
  39. package/bizar-dash/src/server/server.mjs +4 -0
  40. package/bizar-dash/src/server/skills-store.mjs +152 -262
  41. package/bizar-dash/src/web/App.tsx +118 -29
  42. package/bizar-dash/src/web/components/EnvVarManager.tsx +247 -0
  43. package/bizar-dash/src/web/components/SettingsSearch.tsx +213 -0
  44. package/bizar-dash/src/web/components/Topbar.tsx +0 -1
  45. package/bizar-dash/src/web/components/UsageChart.tsx +250 -0
  46. package/bizar-dash/src/web/components/UsageTable.tsx +90 -0
  47. package/bizar-dash/src/web/components/chat/ChatComposer.tsx +21 -25
  48. package/bizar-dash/src/web/components/chat/ChatInfoPanel.tsx +199 -37
  49. package/bizar-dash/src/web/components/chat/ChatThread.tsx +29 -17
  50. package/bizar-dash/src/web/components/chat/FloatingComposer.tsx +7 -1
  51. package/bizar-dash/src/web/components/chat/InfoPanel.tsx +71 -6
  52. package/bizar-dash/src/web/components/chat/useChat.ts +751 -257
  53. package/bizar-dash/src/web/lib/api.ts +43 -0
  54. package/bizar-dash/src/web/main.tsx +1 -0
  55. package/bizar-dash/src/web/mobile/views/MobileChat.tsx +110 -35
  56. package/bizar-dash/src/web/styles/chat.css +135 -1
  57. package/bizar-dash/src/web/styles/main.css +46 -0
  58. package/bizar-dash/src/web/styles/minimax-usage.css +335 -0
  59. package/bizar-dash/src/web/styles/settings.css +418 -0
  60. package/bizar-dash/src/web/styles/skills.css +302 -0
  61. package/bizar-dash/src/web/styles/tasks.css +288 -0
  62. package/bizar-dash/src/web/views/Chat.tsx +276 -48
  63. package/bizar-dash/src/web/views/Config.tsx +3 -2065
  64. package/bizar-dash/src/web/views/MiniMaxUsage.tsx +476 -461
  65. package/bizar-dash/src/web/views/Settings.tsx +6 -0
  66. package/bizar-dash/src/web/views/Skills.tsx +208 -260
  67. package/bizar-dash/src/web/views/Tasks.tsx +348 -1119
  68. package/bizar-dash/tests/chat-session-create.test.mjs +391 -0
  69. package/bizar-dash/tests/chat-session-stream.test.mjs +308 -0
  70. package/bizar-dash/tests/env-vars-store.test.mjs +216 -0
  71. package/bizar-dash/tests/lightrag-defaults.node.test.mjs +118 -0
  72. package/bizar-dash/tests/minimax-chat-usage.test.mjs +178 -0
  73. package/bizar-dash/tests/minimax-usage-store.node.test.mjs +293 -0
  74. package/bizar-dash/tests/opencode-sessions-detail.test.mjs +12 -9
  75. package/bizar-dash/tests/providers-store-backup-keys.node.test.mjs +479 -3
  76. package/bizar-dash/tests/providers-store-search.node.test.mjs +166 -0
  77. package/bizar-dash/tests/skills-list.test.mjs +232 -0
  78. package/bizar-dash/tests/skills-search.test.mjs +222 -0
  79. package/bizar-dash/tests/tasks-create.test.mjs +187 -0
  80. package/bizar-dash/tests/update-check.test.mjs +127 -0
  81. package/bizar-dash/tests/update-run.test.mjs +266 -0
  82. package/cli/bin.mjs +82 -1
  83. package/cli/provision.mjs +118 -4
  84. package/config/agents/_shared/SKILLS.md +109 -0
  85. package/package.json +1 -1
  86. package/bizar-dash/dist/assets/main-BB5mJurD.js +0 -352
  87. package/bizar-dash/dist/assets/main-BB5mJurD.js.map +0 -1
  88. package/bizar-dash/dist/assets/main-BsnQLXdh.css +0 -1
  89. package/bizar-dash/dist/assets/mobile-Dl1q7Cyq.js +0 -354
  90. package/bizar-dash/dist/assets/mobile-Dl1q7Cyq.js.map +0 -1
@@ -0,0 +1,109 @@
1
+ # Bizar Skills - Reference
2
+
3
+ Skills are specialized instruction sets that agents load before working on specific domains. They live as `SKILL.md` files in well-known directories and are injected into agent context when relevant.
4
+
5
+ ## What Skills Are
6
+
7
+ A skill is a Markdown file with YAML frontmatter. The frontmatter declares a `description` that the agent matcher uses to decide when to load the skill. The body contains domain-specific knowledge, patterns, gotchas, and code examples.
8
+
9
+ Example `SKILL.md`:
10
+
11
+ ```yaml
12
+ ---
13
+ name: my-skill
14
+ description: Use when working with X. Covers Y and Z.
15
+ ---
16
+ # My Skill
17
+
18
+ ## When to use
19
+ ...
20
+
21
+ ## Key concepts
22
+ ...
23
+
24
+ ## Code examples
25
+ ...
26
+
27
+ ## Common gotchas
28
+ ...
29
+ ```
30
+
31
+ ## Where Skills Live
32
+
33
+ | Path | Source | Priority | Notes |
34
+ |---|---|---|---|
35
+ | `~/.opencode/skills/<name>/SKILL.md` | User / System | Highest | User-overridable builtins |
36
+ | `~/.agents/skills/<name>/SKILL.md` | User-added | High | Installed via `skills add` |
37
+ | `bizar-dash/skills/<name>/SKILL.md` | Shipped | Medium | Ships with BizarHarness package |
38
+ | `.agents/skills/<name>/SKILL.md` | Project | Low | Project-local skills |
39
+ | `.opencode/skills/<name>/SKILL.md` | Project | Lowest | Project-local skills |
40
+
41
+ When the same skill name appears in multiple places, the highest-priority source wins.
42
+
43
+ ## Discovering Skills
44
+
45
+ Use the `skills` CLI:
46
+
47
+ ```bash
48
+ # List installed skills
49
+ skills list --json
50
+
51
+ # Search for a skill
52
+ skills search "react"
53
+
54
+ # Install from a repository
55
+ skills add owner/repo -s "skill-name" -y
56
+ ```
57
+
58
+ Known repositories:
59
+ - `vercel-labs/skills` - find-skills, skill-creator, general tools
60
+ - `vercel-labs/agent-skills` - React, Next.js, frontend performance
61
+ - `shadcn/ui` - shadcn/ui components
62
+ - `supabase/agent-skills` - Postgres, Auth, Edge Functions
63
+ - `mattpocock/skills` - TypeScript, TDD
64
+ - `anthropics/skills` - Claude patterns, agents
65
+ - `leonxlnx/taste-skill` - design, UI/UX
66
+
67
+ ## Shipped Bizar Skills
68
+
69
+ These skills ship with BizarHarness and are available immediately:
70
+
71
+ | Skill | Description |
72
+ |---|---|
73
+ | `bizar` | Norse-pantheon multi-agent system, Odin routing, agent tiers |
74
+ | `agent-baseline` | Always-on rules: Semble, Skills CLI, loop guard, copyright |
75
+ | `self-improvement` | .bizar/AGENTS_SELF_IMPROVEMENT.md protocol |
76
+ | `obsidian` | Bizar Memory Service (Obsidian + Git + LightRAG) |
77
+ | `minimax` | MiniMax provider, multi-key rotation, usage tracking |
78
+ | `providers` | Provider subsystem, backup keys, auto-add wizard |
79
+ | `chat` | Chat + opencode session integration |
80
+ | `usage` | Token usage monitoring, cost estimation, MiniMax usage dashboard |
81
+ | `skills-cli` | skills CLI reference, skill repos, discovery protocol |
82
+ | `lightrag` | LightRAG integration, opencode-free defaults, indexing |
83
+ | `sdk` | @polderlabs/bizar-sdk on Cloudflare Workers |
84
+
85
+ ## Skill Loading
86
+
87
+ Agents check skill relevance at dispatch time. You can also load a skill explicitly in conversation using the `skill` tool:
88
+
89
+ ```
90
+ Load the `minimax` skill before we discuss multi-key rotation.
91
+ ```
92
+
93
+ ## Adding a Project Skill
94
+
95
+ Create a skill directory in your project:
96
+
97
+ ```bash
98
+ mkdir -p .agents/skills/my-project-skill
99
+ cat > .agents/skills/my-project-skill/SKILL.md << 'EOF'
100
+ ---
101
+ name: my-project-skill
102
+ description: Use when working on my project's specific domain X.
103
+ ---
104
+ # My Project Skill
105
+ ...
106
+ EOF
107
+ ```
108
+
109
+ Project skills are picked up automatically on next session start.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polderlabs/bizar",
3
- "version": "4.4.13",
3
+ "version": "4.5.0",
4
4
  "description": "Norse-pantheon multi-agent system for opencode — 13 agents across 4 cost tiers with cost-aware routing, plans, and a configurable agent harness. v4 ships as a single npm package bundling the dashboard server, opencode plugin, and typed SDK.",
5
5
  "type": "module",
6
6
  "bin": {