create-skybridge 0.0.0-dev.3f9bbcc → 0.0.0-dev.3fa22d3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-skybridge",
3
- "version": "0.0.0-dev.3f9bbcc",
3
+ "version": "0.0.0-dev.3fa22d3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Alpic",
@@ -17,7 +17,7 @@
17
17
  "lucide-react": "^1.14.0",
18
18
  "react": "^19.2.4",
19
19
  "react-dom": "^19.2.4",
20
- "skybridge": ">=0.0.0-dev.3f9bbcc",
20
+ "skybridge": ">=0.0.0-dev.3fa22d3",
21
21
  "sonner": "^2.0.7",
22
22
  "tw-animate-css": "^1.4.0",
23
23
  "vite": "^8.0.3",
@@ -33,7 +33,7 @@ export default function ToolOutput() {
33
33
  <DocLink href="https://docs.skybridge.tech/api-reference/use-tool-info">
34
34
  useToolInfo
35
35
  </DocLink>{" "}
36
- to hydrate the view with tool input, output and metadata.
36
+ to hydrates the view with tool input, output and metadata.
37
37
  </Doc>
38
38
  </>
39
39
  );
@@ -51,8 +51,8 @@ export function useMascot() {
51
51
  hat,
52
52
  changeHat: () => {
53
53
  setState((prev) => {
54
- const currentIndex = prev.hat ? LABELS.indexOf(prev.hat) : -1;
55
- const next = LABELS[(currentIndex + 1) % LABELS.length];
54
+ const others = LABELS.filter((l) => l !== prev.hat);
55
+ const next = others[Math.floor(Math.random() * others.length)];
56
56
  return { ...prev, hat: next };
57
57
  });
58
58
  },