@ai2aim.ai/hivemind-sdk 1.0.8 → 1.0.9

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 (2) hide show
  1. package/dist/web.js +14 -14
  2. package/package.json +1 -1
package/dist/web.js CHANGED
@@ -77,7 +77,7 @@ function buildDashboardHtml(config) {
77
77
  </div>
78
78
  </div>
79
79
  <nav class="flex-1 overflow-y-auto py-2">
80
- <template v-for="sec in navSections" :key="sec.name">
80
+ <div v-for="sec in navSections" :key="sec.name" style="display:contents">
81
81
  <div v-if="sidebarOpen" class="px-4 pt-3 pb-1 text-[10px] uppercase tracking-wider text-gray-600 font-semibold">{{sec.name}}</div>
82
82
  <button v-for="item in sec.items" :key="item.view" @click="navigate(item.view)"
83
83
  class="w-full flex items-center gap-3 px-4 py-2 text-sm transition-all hover:bg-white/5 group relative"
@@ -86,12 +86,12 @@ function buildDashboardHtml(config) {
86
86
  <span v-if="sidebarOpen" class="truncate">{{item.label}}</span>
87
87
  <span v-if="!sidebarOpen" class="absolute left-full ml-2 px-2 py-1 bg-surface border border-border rounded text-xs whitespace-nowrap opacity-0 group-hover:opacity-100 pointer-events-none transition-opacity z-50">{{item.label}}</span>
88
88
  </button>
89
- </template>
89
+ </div>
90
90
  </nav>
91
91
  <div class="border-t border-border p-3" :class="sidebarOpen?'':'flex justify-center'">
92
92
  <button @click="showShortcuts=true" class="text-gray-500 hover:text-white transition text-sm flex items-center gap-2 w-full" :title="sidebarOpen?'Keyboard shortcuts':'?'">
93
93
  <span class="mdi mdi-keyboard"></span>
94
- <template v-if="sidebarOpen"><span class="text-xs">Shortcuts</span><kbd class="ml-auto text-[10px] bg-bg px-1.5 py-0.5 rounded border border-border text-gray-500">?</kbd></template>
94
+ <span v-if="sidebarOpen" class="contents"><span class="text-xs">Shortcuts</span><kbd class="ml-auto text-[10px] bg-bg px-1.5 py-0.5 rounded border border-border text-gray-500">?</kbd></span>
95
95
  </button>
96
96
  </div>
97
97
  </aside>
@@ -102,7 +102,7 @@ function buildDashboardHtml(config) {
102
102
  <header class="h-14 border-b border-border flex items-center gap-3 px-4 bg-surface/50 backdrop-blur-sm flex-shrink-0 z-10">
103
103
  <nav class="flex items-center gap-1 text-sm">
104
104
  <button @click="navigate('home')" class="text-gray-500 hover:text-white transition"><span class="mdi mdi-home"></span></button>
105
- <template v-if="breadcrumb"><span class="text-gray-600 mdi mdi-chevron-right text-xs"></span><span class="text-gray-300 text-xs">{{breadcrumb}}</span></template>
105
+ <span v-if="breadcrumb" class="contents"><span class="text-gray-600 mdi mdi-chevron-right text-xs"></span><span class="text-gray-300 text-xs">{{breadcrumb}}</span></span>
106
106
  </nav>
107
107
  <div class="flex-1"></div>
108
108
  <button @click="cmdOpen=true" class="flex items-center gap-2 bg-bg border border-border rounded-lg px-3 py-1.5 text-xs text-gray-500 hover:text-gray-300 hover:border-gray-500 transition min-w-[200px]">
@@ -1078,7 +1078,7 @@ createApp({
1078
1078
  </div>
1079
1079
  <p class="text-gray-400 text-sm mb-4 ml-8">{{desc}}</p>
1080
1080
  <div class="flex items-center gap-1 mb-2 ml-8">
1081
- <template v-for="(s,i) in steps" :key="i">
1081
+ <div v-for="(s,i) in steps" :key="i" style="display:contents">
1082
1082
  <div class="flex items-center gap-1 cursor-pointer" @click="$emit('jump',i)">
1083
1083
  <div class="w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold transition-all"
1084
1084
  :class="i<step?'bg-green-500 text-white scale-90':i===step?'bg-brand text-white ring-2 ring-brand/30 scale-110':'bg-gray-700 text-gray-500'">
@@ -1087,7 +1087,7 @@ createApp({
1087
1087
  <span class="text-xs hidden sm:inline transition-colors" :class="i===step?'text-white font-semibold':'text-gray-500'">{{s}}</span>
1088
1088
  </div>
1089
1089
  <div v-if="i<steps.length-1" class="flex-1 h-0.5 mx-1 rounded transition-all" :class="i<step?'bg-green-500':'bg-gray-700'"></div>
1090
- </template>
1090
+ </div>
1091
1091
  </div>
1092
1092
  </div>\`})
1093
1093
  .component('step-card',{props:['title','subtitle'],template:\`
@@ -1141,27 +1141,27 @@ createApp({
1141
1141
  </div>\`})
1142
1142
  .component('json-tree',{props:['data','depth'],template:\`
1143
1143
  <div :style="{paddingLeft:(depth*16)+'px'}" class="text-xs font-mono">
1144
- <template v-if="typeof data==='object'&&data!==null">
1144
+ <div v-if="typeof data==='object'&&data!==null">
1145
1145
  <div v-for="(v,k) in data" :key="k" class="py-0.5">
1146
- <template v-if="typeof v==='object'&&v!==null">
1146
+ <div v-if="typeof v==='object'&&v!==null">
1147
1147
  <details :open="depth<2">
1148
1148
  <summary class="cursor-pointer hover:bg-white/5 rounded px-1 -mx-1 transition select-none">
1149
1149
  <span class="jt-key">"{{k}}"</span><span class="text-gray-600">: {{Array.isArray(v)?'['+v.length+']':'{'+Object.keys(v).length+'}'}}</span>
1150
1150
  </summary>
1151
1151
  <json-tree :data="v" :depth="depth+1"></json-tree>
1152
1152
  </details>
1153
- </template>
1154
- <template v-else>
1153
+ </div>
1154
+ <div v-else>
1155
1155
  <div class="hover:bg-white/5 rounded px-1 -mx-1 transition cursor-default">
1156
1156
  <span class="jt-key">"{{k}}"</span><span class="text-gray-600">: </span>
1157
1157
  <span :class="typeof v==='string'?'jt-str':typeof v==='number'?'jt-num':typeof v==='boolean'?'jt-bool':'jt-null'">{{typeof v==='string'?'"'+v+'"':String(v)}}</span>
1158
1158
  </div>
1159
- </template>
1159
+ </div>
1160
1160
  </div>
1161
- </template>
1162
- <template v-else>
1161
+ </div>
1162
+ <div v-else>
1163
1163
  <span :class="typeof data==='string'?'jt-str':typeof data==='number'?'jt-num':typeof data==='boolean'?'jt-bool':'jt-null'">{{typeof data==='string'?'"'+data+'"':String(data)}}</span>
1164
- </template>
1164
+ </div>
1165
1165
  </div>\`})
1166
1166
  .mount('#app');
1167
1167
  <\/script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai2aim.ai/hivemind-sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Node.js/TypeScript SDK for the Hivemind API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",