@zhangheteng/skill-hub 0.0.0-stage → 0.2.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 (93) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +7 -0
  3. package/README.md +32 -2
  4. package/apps/cli/dist/args.js +111 -0
  5. package/apps/cli/dist/commands/audit.js +38 -0
  6. package/apps/cli/dist/commands/backup.js +34 -0
  7. package/apps/cli/dist/commands/doctor.js +86 -0
  8. package/apps/cli/dist/commands/index-cmd.js +122 -0
  9. package/apps/cli/dist/commands/ingest.js +198 -0
  10. package/apps/cli/dist/commands/init.js +110 -0
  11. package/apps/cli/dist/commands/inspect.js +68 -0
  12. package/apps/cli/dist/commands/inventory.js +259 -0
  13. package/apps/cli/dist/commands/manage.js +149 -0
  14. package/apps/cli/dist/commands/manifest.js +127 -0
  15. package/apps/cli/dist/commands/restore.js +37 -0
  16. package/apps/cli/dist/commands/route.js +92 -0
  17. package/apps/cli/dist/commands/runtime.js +89 -0
  18. package/apps/cli/dist/commands/sync.js +195 -0
  19. package/apps/cli/dist/commands/takeover.js +45 -0
  20. package/apps/cli/dist/commands/usage.js +55 -0
  21. package/apps/cli/dist/commands/verify.js +48 -0
  22. package/apps/cli/dist/index.js +468 -0
  23. package/apps/cli/dist/output.js +7 -0
  24. package/apps/mcp-server/dist/http.js +265 -0
  25. package/apps/mcp-server/dist/index.js +42 -0
  26. package/apps/mcp-server/dist/server.js +541 -0
  27. package/apps/web/dist/index.js +355 -0
  28. package/apps/web/public/app.js +927 -0
  29. package/apps/web/public/index.html +109 -0
  30. package/apps/web/public/styles.css +1796 -0
  31. package/configs/agents/default.yaml +44 -0
  32. package/configs/models.yaml +55 -0
  33. package/configs/profiles/coding.yaml +29 -0
  34. package/configs/profiles/video.yaml +18 -0
  35. package/configs/taxonomy.yaml +24 -0
  36. package/package.json +42 -4
  37. package/packages/core/dist/agent-sources.js +38 -0
  38. package/packages/core/dist/audit.js +275 -0
  39. package/packages/core/dist/catalog.js +173 -0
  40. package/packages/core/dist/config.js +295 -0
  41. package/packages/core/dist/conflict.js +95 -0
  42. package/packages/core/dist/context-cost.js +19 -0
  43. package/packages/core/dist/frontmatter.js +118 -0
  44. package/packages/core/dist/hash.js +7 -0
  45. package/packages/core/dist/history.js +60 -0
  46. package/packages/core/dist/index.js +23 -0
  47. package/packages/core/dist/managed.js +1774 -0
  48. package/packages/core/dist/materialize.js +149 -0
  49. package/packages/core/dist/parse.js +74 -0
  50. package/packages/core/dist/scan.js +112 -0
  51. package/packages/core/dist/takeover.js +96 -0
  52. package/packages/core/dist/tree.js +61 -0
  53. package/packages/core/dist/types.js +4 -0
  54. package/packages/core/dist/usage.js +267 -0
  55. package/packages/router/dist/bm25.js +144 -0
  56. package/packages/router/dist/context-cost.js +82 -0
  57. package/packages/router/dist/external.js +107 -0
  58. package/packages/router/dist/factory.js +144 -0
  59. package/packages/router/dist/hub-service.js +589 -0
  60. package/packages/router/dist/index-store.js +153 -0
  61. package/packages/router/dist/index.js +22 -0
  62. package/packages/router/dist/llm/config.js +311 -0
  63. package/packages/router/dist/llm/http.js +102 -0
  64. package/packages/router/dist/llm/index.js +6 -0
  65. package/packages/router/dist/llm/ollama.js +68 -0
  66. package/packages/router/dist/llm/openai-compatible.js +66 -0
  67. package/packages/router/dist/llm/registry.js +103 -0
  68. package/packages/router/dist/llm/types.js +31 -0
  69. package/packages/router/dist/profile.js +124 -0
  70. package/packages/router/dist/runtime.js +270 -0
  71. package/packages/router/dist/scope.js +13 -0
  72. package/packages/router/dist/taxonomy.js +172 -0
  73. package/packages/router/dist/tokenize.js +38 -0
  74. package/packages/router/dist/types.js +1 -0
  75. package/packages/router/dist/typesafe.js +331 -0
  76. package/packages/router/dist/usage-overview.js +143 -0
  77. package/packages/router/dist/usage.js +76 -0
  78. package/packages/shared/dist/constants.js +14 -0
  79. package/packages/shared/dist/errors.js +90 -0
  80. package/packages/shared/dist/index.js +14 -0
  81. package/packages/shared/dist/logger.js +95 -0
  82. package/packages/shared/dist/paths.js +118 -0
  83. package/packages/shared/dist/types.js +12 -0
  84. package/packages/sync/dist/apply.js +227 -0
  85. package/packages/sync/dist/backup.js +193 -0
  86. package/packages/sync/dist/fs-utils.js +188 -0
  87. package/packages/sync/dist/index.js +18 -0
  88. package/packages/sync/dist/integrity.js +238 -0
  89. package/packages/sync/dist/plan.js +211 -0
  90. package/packages/sync/dist/restore.js +69 -0
  91. package/packages/sync/dist/scope.js +22 -0
  92. package/packages/sync/dist/types.js +1 -0
  93. package/packages/sync/dist/verify.js +189 -0
@@ -0,0 +1,109 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="theme-color" content="#191a16" />
7
+ <title>skill-hub · 本地技能工作台</title>
8
+ <link rel="stylesheet" href="/styles.css" />
9
+ <link
10
+ rel="icon"
11
+ href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%23d7f75b'/%3E%3Cpath d='M8 8h6v6H8zm10 0h6v6h-6zM8 18h6v6H8zm10 0h6v6h-6z' fill='%23191a16'/%3E%3C/svg%3E"
12
+ />
13
+ <script
14
+ defer
15
+ src="https://cdn.jsdelivr.net/npm/markdown-it@14.1.0/dist/markdown-it.min.js"
16
+ integrity="sha384-wLhprpjsmjc/XYIcF+LpMxd8yS1gss6jhevOp6F6zhiIoFK6AmHtm4bGKtehTani"
17
+ crossorigin="anonymous"
18
+ ></script>
19
+ <script defer src="/app.js"></script>
20
+ </head>
21
+ <body>
22
+ <a class="skip-link" href="#app">跳到主要内容</a>
23
+ <header class="topbar">
24
+ <div class="topbar-inner">
25
+ <a class="brand" href="#/" aria-label="skill-hub 首页">
26
+ <span class="brand-mark" aria-hidden="true">
27
+ <svg viewBox="0 0 28 28">
28
+ <path d="M7 7h5v5H7zm9 0h5v5h-5zM7 16h5v5H7zm9 0h5v5h-5z" fill="currentColor" />
29
+ </svg>
30
+ </span>
31
+ <span class="brand-copy">
32
+ <span class="brand-name">skill-hub<span>.</span></span>
33
+ <span class="brand-subtitle">LOCAL WORKSPACE</span>
34
+ </span>
35
+ </a>
36
+ <nav class="topnav" aria-label="主导航">
37
+ <a href="#/" data-nav="skills">
38
+ <svg
39
+ class="icon"
40
+ viewBox="0 0 24 24"
41
+ fill="none"
42
+ stroke="currentColor"
43
+ stroke-width="1.7"
44
+ aria-hidden="true"
45
+ >
46
+ <rect x="3" y="3" width="7" height="7" rx="1.5" />
47
+ <rect x="14" y="3" width="7" height="7" rx="1.5" />
48
+ <rect x="3" y="14" width="7" height="7" rx="1.5" />
49
+ <rect x="14" y="14" width="7" height="7" rx="1.5" />
50
+ </svg>
51
+ <span>技能库</span>
52
+ </a>
53
+ <a href="#/usage" data-nav="usage"><span>使用与预算</span></a>
54
+ <a href="#/inventory" data-nav="inventory">
55
+ <svg
56
+ class="icon"
57
+ viewBox="0 0 24 24"
58
+ fill="none"
59
+ stroke="currentColor"
60
+ stroke-width="1.7"
61
+ aria-hidden="true"
62
+ >
63
+ <path d="m12 3 9 5-9 5-9-5 9-5Z" />
64
+ <path d="m3 12 9 5 9-5M3 16l9 5 9-5" />
65
+ </svg>
66
+ <span>多端盘点</span>
67
+ </a>
68
+ </nav>
69
+ <div class="search-wrap">
70
+ <svg
71
+ class="search-icon"
72
+ viewBox="0 0 24 24"
73
+ fill="none"
74
+ stroke="currentColor"
75
+ stroke-width="1.8"
76
+ aria-hidden="true"
77
+ >
78
+ <circle cx="11" cy="11" r="7" />
79
+ <path d="m20 20-4-4" />
80
+ </svg>
81
+ <label class="sr-only" for="global-search">搜索技能或描述</label>
82
+ <input
83
+ id="global-search"
84
+ type="search"
85
+ placeholder="搜索技能或描述…"
86
+ autocomplete="off"
87
+ aria-keyshortcuts="/"
88
+ />
89
+ <kbd class="search-shortcut" aria-hidden="true">/</kbd>
90
+ </div>
91
+ <span class="local-badge"><span aria-hidden="true"></span>本地只读</span>
92
+ </div>
93
+ </header>
94
+
95
+ <div class="statsbar" id="statsbar" hidden></div>
96
+
97
+ <main id="app" class="container" tabindex="-1">
98
+ <div class="loading" role="status">加载中…</div>
99
+ </main>
100
+
101
+ <footer class="footer">
102
+ <div class="footer-inner">
103
+ <a class="footer-brand" href="#/">skill-hub<span>.</span></a>
104
+ <span id="footer-meta">只读视图 · 127.0.0.1 · 数据留在本机</span>
105
+ <span class="footer-note">BUILT FOR AGENTS · MADE FOR FOCUS</span>
106
+ </div>
107
+ </footer>
108
+ </body>
109
+ </html>