bob-app-assistant 0.0.7 → 0.0.8

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/package.json +1 -1
  2. package/public/inject.js +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bob-app-assistant",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "BobAppAssistant - Independent AI-powered development assistant that can be injected into any web application",
5
5
  "main": "dist/server.js",
6
6
  "bin": {
package/public/inject.js CHANGED
@@ -20,8 +20,8 @@
20
20
 
21
21
  console.log('🚀 Injecting AI Assistant Sidecar...');
22
22
 
23
- // State management
24
- let isCollapsed = false;
23
+ // State management - start collapsed by default
24
+ let isCollapsed = true;
25
25
 
26
26
  // Create container
27
27
  const container = document.createElement('div');
@@ -37,7 +37,7 @@
37
37
  border-left: 1px solid #e5e7eb;
38
38
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
39
39
  transition: all 0.3s ease;
40
- transform: translateX(0);
40
+ transform: translateX(100%);
41
41
  `;
42
42
 
43
43
  // Create iframe
@@ -59,13 +59,13 @@
59
59
  toggleButton.id = 'ai-assistant-toggle-btn';
60
60
  toggleButton.innerHTML = `
61
61
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
62
- <path d="M9 5l7 7-7 7"/>
62
+ <path d="M15 19l-7-7 7-7"/>
63
63
  </svg>
64
64
  `;
65
65
  toggleButton.style.cssText = `
66
66
  position: fixed;
67
67
  top: 50%;
68
- right: 550px;
68
+ right: 0;
69
69
  transform: translateY(-50%);
70
70
  width: 40px;
71
71
  height: 80px;
@@ -87,8 +87,8 @@
87
87
  isCollapsed = !isCollapsed;
88
88
 
89
89
  if (isCollapsed) {
90
- container.style.transform = 'translateX(486px)'; // Show only 64px (collapsed width)
91
- toggleButton.style.right = '64px';
90
+ container.style.transform = 'translateX(100%)'; // Completely hide panel
91
+ toggleButton.style.right = '0';
92
92
  toggleButton.innerHTML = `
93
93
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
94
94
  <path d="M15 19l-7-7 7-7"/>