@spikelabs/lobster-shell-plugin 0.3.2 → 0.3.3
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.
|
@@ -155,6 +155,7 @@ var OAuthFlow = class {
|
|
|
155
155
|
expiresAt: Date.now() + (tokens.expires_in ?? 3600) * 1e3,
|
|
156
156
|
gatewayPublicId: registration.gatewayPublicId,
|
|
157
157
|
channelName: registration.channelName,
|
|
158
|
+
avatarId: registration.avatarId,
|
|
158
159
|
tenantToken: registration.tenantToken,
|
|
159
160
|
tenantTokenExpiresAt: registration.tenantTokenExpiresAt
|
|
160
161
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuthFlow
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NCLSWYPS.js";
|
|
4
4
|
import "./chunk-QGM4M3NI.js";
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
@@ -124,7 +124,12 @@ function renderSetupPage(opts) {
|
|
|
124
124
|
` : ""}
|
|
125
125
|
|
|
126
126
|
<div style="margin-top: 1rem;">
|
|
127
|
-
${opts.connected ? `<span style="color: #a1a1aa; font-size: 0.85rem;">Gateway is connected to Lobster Shell cloud.</span
|
|
127
|
+
${opts.connected ? `<span style="color: #a1a1aa; font-size: 0.85rem;">Gateway is connected to Lobster Shell cloud.</span>
|
|
128
|
+
<div style="display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap;">
|
|
129
|
+
${opts.avatarId ? `<a href="https://www.lobstershell.ai/app/bots/${opts.gatewayPublicId}" class="btn btn-primary">Open Dashboard</a>` : `<a href="https://www.lobstershell.ai/app/bots/${opts.gatewayPublicId}?wizard=1" class="btn btn-primary">Choose Avatar</a>`}
|
|
130
|
+
<a href="https://www.lobstershell.ai/app/bots/${opts.gatewayPublicId}/chat" class="btn btn-primary" style="background: #4f46e5;">Start Chat</a>
|
|
131
|
+
<a href="https://www.lobstershell.ai/app/bots/${opts.gatewayPublicId}/live" class="btn btn-primary" style="background: #7c3aed;">Go Live</a>
|
|
132
|
+
</div>` : `<a href="/lobster/connect" class="btn btn-primary">Connect to Lobster Shell</a>`}
|
|
128
133
|
</div>
|
|
129
134
|
</div>
|
|
130
135
|
</body>
|
|
@@ -337,7 +342,7 @@ var CloudBridge = class {
|
|
|
337
342
|
});
|
|
338
343
|
if (res.status === 401 && auth.refreshToken) {
|
|
339
344
|
this.logger.info("[lobster:bridge] Access token expired, refreshing\u2026");
|
|
340
|
-
const { OAuthFlow: OAuthFlow2 } = await import("./oauth-flow-
|
|
345
|
+
const { OAuthFlow: OAuthFlow2 } = await import("./oauth-flow-HAIJBY4O.js");
|
|
341
346
|
const oauthFlow2 = new OAuthFlow2({
|
|
342
347
|
stateDir: this.stateDir,
|
|
343
348
|
cloudUrl: this.cloudUrl,
|
|
@@ -541,7 +546,7 @@ function initApiClient(cloudBridge) {
|
|
|
541
546
|
// src/index.ts
|
|
542
547
|
var PLUGIN_ID = "lobster-shell";
|
|
543
548
|
var CHANNEL_ID = "lobster-shell";
|
|
544
|
-
var PLUGIN_VERSION = "0.3.
|
|
549
|
+
var PLUGIN_VERSION = "0.3.3";
|
|
545
550
|
var DEFAULT_CLOUD_URL = "https://www.lobstershell.ai";
|
|
546
551
|
var gatewayPort;
|
|
547
552
|
var bridge2 = null;
|
|
@@ -679,6 +684,7 @@ var plugin = {
|
|
|
679
684
|
connected: !!auth,
|
|
680
685
|
gatewayPublicId: auth?.gatewayPublicId,
|
|
681
686
|
channelName: auth?.channelName,
|
|
687
|
+
avatarId: auth?.avatarId,
|
|
682
688
|
bridgeStatus: bridge2?.status ?? "not started",
|
|
683
689
|
message: query["success"] ? "Connected to Lobster Shell!" : void 0
|
|
684
690
|
})
|