@synergenius/flow-weaver-pack-weaver 0.9.25 → 0.9.26

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.
@@ -153,9 +153,14 @@ function BotActivity({ packName, botId }) {
153
153
  timerRef.current = setInterval(fetchAll, REFRESH_INTERVAL);
154
154
  return () => clearInterval(timerRef.current);
155
155
  }, [fetchAll]);
156
- const openWorkspace = useCallback((runId) => {
156
+ const openWorkspace = useCallback((runId, isLive) => {
157
157
  window.dispatchEvent(new CustomEvent("fw:open-bot-workspace", {
158
- detail: { runId, botId }
158
+ detail: {
159
+ runId,
160
+ botId,
161
+ packId: "@synergenius/flow-weaver-pack-weaver",
162
+ ...isLive ? { live: true } : {}
163
+ }
159
164
  }));
160
165
  }, [botId]);
161
166
  const handleRemoveQueueItem = useCallback(async (id) => {
@@ -179,7 +184,7 @@ function BotActivity({ packName, botId }) {
179
184
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { name: "playArrow", size: 12, color: "color-brand-main" }),
180
185
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Typography, { variant: "smallCaption-bold", color: "color-text-subtle", style: { textTransform: "uppercase", letterSpacing: "0.04em" }, children: "Running" })
181
186
  ] }),
182
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RunningCard, { onClick: () => openWorkspace(), children: [
187
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RunningCard, { onClick: () => openWorkspace(void 0, true), children: [
183
188
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RunningHeader, { children: [
184
189
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, { variant: "info", children: status.state }),
185
190
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RunningControls, { children: [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifestVersion": 2,
3
3
  "name": "@synergenius/flow-weaver-pack-weaver",
4
- "version": "0.9.25",
4
+ "version": "0.9.26",
5
5
  "description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
6
6
  "engineVersion": ">=0.22.10",
7
7
  "categories": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergenius/flow-weaver-pack-weaver",
3
- "version": "0.9.25",
3
+ "version": "0.9.26",
4
4
  "description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -199,10 +199,15 @@ function BotActivity({ packName, botId }: { packName: string; botId: string }) {
199
199
  }, [fetchAll]);
200
200
 
201
201
  // Open center workspace via platform's window system
202
- const openWorkspace = useCallback((runId?: string) => {
202
+ const openWorkspace = useCallback((runId?: string, isLive?: boolean) => {
203
203
  // Dispatch custom event that the platform's BotPanel listens for
204
204
  window.dispatchEvent(new CustomEvent('fw:open-bot-workspace', {
205
- detail: { runId, botId },
205
+ detail: {
206
+ runId,
207
+ botId,
208
+ packId: '@synergenius/flow-weaver-pack-weaver',
209
+ ...(isLive ? { live: true } : {}),
210
+ },
206
211
  }));
207
212
  }, [botId]);
208
213
 
@@ -241,7 +246,7 @@ function BotActivity({ packName, botId }: { packName: string; botId: string }) {
241
246
  Running
242
247
  </Typography>
243
248
  </SectionHeader>
244
- <RunningCard onClick={() => openWorkspace()}>
249
+ <RunningCard onClick={() => openWorkspace(undefined, true)}>
245
250
  <RunningHeader>
246
251
  <Badge variant="info">{status.state}</Badge>
247
252
  <RunningControls>