@vibes.diy/use-vibes-base 0.18.7 → 0.18.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.
|
@@ -4,46 +4,13 @@ export async function mountVibeCode(code, containerId, titleId, installId, trans
|
|
|
4
4
|
try {
|
|
5
5
|
if (typeof window !== 'undefined') {
|
|
6
6
|
if (apiKey) {
|
|
7
|
-
console.log('[mountVibeCode] Setting window.CALLAI_API_KEY:', {
|
|
8
|
-
tokenLength: apiKey.length,
|
|
9
|
-
tokenPrefix: apiKey.substring(0, 10),
|
|
10
|
-
tokenSuffix: apiKey.substring(apiKey.length - 10),
|
|
11
|
-
timestamp: Date.now(),
|
|
12
|
-
titleId,
|
|
13
|
-
installId,
|
|
14
|
-
});
|
|
15
7
|
window.CALLAI_API_KEY = apiKey;
|
|
16
|
-
console.log('[mountVibeCode] Verified window.CALLAI_API_KEY:', {
|
|
17
|
-
matches: window.CALLAI_API_KEY === apiKey,
|
|
18
|
-
actualLength: window.CALLAI_API_KEY?.length,
|
|
19
|
-
actualPrefix: window.CALLAI_API_KEY?.substring(0, 10),
|
|
20
|
-
});
|
|
21
8
|
}
|
|
22
9
|
if (chatUrl) {
|
|
23
|
-
console.log('[mountVibeCode] Setting window.CALLAI_CHAT_URL:', {
|
|
24
|
-
chatUrl,
|
|
25
|
-
timestamp: Date.now(),
|
|
26
|
-
titleId,
|
|
27
|
-
installId,
|
|
28
|
-
});
|
|
29
10
|
window.CALLAI_CHAT_URL = chatUrl;
|
|
30
|
-
console.log('[mountVibeCode] Verified window.CALLAI_CHAT_URL:', {
|
|
31
|
-
matches: window.CALLAI_CHAT_URL === chatUrl,
|
|
32
|
-
actual: window.CALLAI_CHAT_URL,
|
|
33
|
-
});
|
|
34
11
|
}
|
|
35
12
|
if (imgUrl) {
|
|
36
|
-
console.log('[mountVibeCode] Setting window.CALLAI_IMG_URL:', {
|
|
37
|
-
imgUrl,
|
|
38
|
-
timestamp: Date.now(),
|
|
39
|
-
titleId,
|
|
40
|
-
installId,
|
|
41
|
-
});
|
|
42
13
|
window.CALLAI_IMG_URL = imgUrl;
|
|
43
|
-
console.log('[mountVibeCode] Verified window.CALLAI_IMG_URL:', {
|
|
44
|
-
matches: window.CALLAI_IMG_URL === imgUrl,
|
|
45
|
-
actual: window.CALLAI_IMG_URL,
|
|
46
|
-
});
|
|
47
14
|
}
|
|
48
15
|
}
|
|
49
16
|
const codeWithTransformedImports = transformImports(code);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mountVibeCode.js","sourceRoot":"","sources":["../../jsr/mounting/mountVibeCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAiBrD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,IAAY,EACZ,WAAmB,EACnB,OAAe,EACf,SAAiB,EACjB,gBAA0C,EAC1C,eAAe,GAAG,IAAI,EACtB,MAAe,EACf,OAAgB,EAChB,MAAe,EACA;IACf,IAAI,SAA6B,CAAC;IAElC,IAAI,CAAC;QAGH,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,IAAI,MAAM,EAAE,CAAC;gBACX,
|
|
1
|
+
{"version":3,"file":"mountVibeCode.js","sourceRoot":"","sources":["../../jsr/mounting/mountVibeCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAiBrD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,IAAY,EACZ,WAAmB,EACnB,OAAe,EACf,SAAiB,EACjB,gBAA0C,EAC1C,eAAe,GAAG,IAAI,EACtB,MAAe,EACf,OAAgB,EAChB,MAAe,EACA;IACf,IAAI,SAA6B,CAAC;IAElC,IAAI,CAAC;QAGH,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC;YACj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,EAAE,OAAO;gBAChB,SAAS,EAAE,SAAS;aACrB;SACF,CAAC,CAAC;QAGH,QAAQ,CAAC,aAAa,CACpB,IAAI,WAAW,CAAC,mBAAmB,EAAE;YACnC,MAAM,EAAE;gBACN,OAAO,EAAE,WAAW,CAAC,OAAO;gBAC5B,WAAW,EAAE,WAAW;aACzB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;QAEjD,QAAQ,CAAC,aAAa,CACpB,IAAI,WAAW,CAAC,mBAAmB,EAAE;YACnC,MAAM,EAAE;gBACN,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;gBACvD,WAAW,EAAE,WAAW;aACzB;SACF,CAAC,CACH,CAAC;QACF,MAAM,GAAG,CAAC;IACZ,CAAC;YAAS,CAAC;QACT,IAAI,SAAS,EAAE,CAAC;YACd,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;AAAA,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/use-vibes-base",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core components and utilities for use-vibes (internal workspace package)",
|
|
6
6
|
"exports": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"@fireproof/core-runtime": "^0.23.15",
|
|
17
17
|
"@fireproof/core-types-base": "^0.23.15",
|
|
18
18
|
"@fireproof/core-types-protocols-cloud": "^0.23.15",
|
|
19
|
-
"@vibes.diy/prompts": "^0.18.
|
|
20
|
-
"@vibes.diy/use-vibes-types": "^0.18.
|
|
21
|
-
"call-ai": "^0.18.
|
|
19
|
+
"@vibes.diy/prompts": "^0.18.8",
|
|
20
|
+
"@vibes.diy/use-vibes-types": "^0.18.8",
|
|
21
|
+
"call-ai": "^0.18.8",
|
|
22
22
|
"jose": "^6.1.1",
|
|
23
23
|
"react-dom": "^19.2.0",
|
|
24
24
|
"use-fireproof": "^0.23.15",
|