@grackle-ai/web-components 0.112.1 → 0.112.2

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": "@grackle-ai/web-components",
3
- "version": "0.112.1",
3
+ "version": "0.112.2",
4
4
  "description": "Presentational React component library for the Grackle web UI",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -46,7 +46,7 @@
46
46
  "remark-gfm": "^4.0.0",
47
47
  "lucide-react": "~0.474.0",
48
48
  "react-router": "^7.0.0",
49
- "@grackle-ai/common": "0.112.1"
49
+ "@grackle-ai/common": "0.112.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@rushstack/heft": "1.2.7",
@@ -1,4 +1,4 @@
1
1
  Build cache hit.
2
- Cache key: 30718c57404891eb5c6c96c935c4a6879170c963
2
+ Cache key: 1421806d07f6b0c455deca4bf89a6412726ffd8b
3
3
  Clearing cached folders: dist, storybook-static, .rush/temp/operation/_phase_build
4
4
  Successfully restored output from the build cache.
@@ -0,0 +1,18 @@
1
+ Invoking: heft run --only build -- --clean
2
+ ---- build started ----
3
+ [build:typescript] Using TypeScript version 5.7.3
4
+ [build:storybook-build] Building Storybook...
5
+ [build:storybook-build] Storybook build completed.
6
+ [build:vite-build] Starting Vite build...
7
+ [build:lint] Using ESLint version 9.39.4
8
+ vite v6.4.2 building for production...
9
+ transforming...
10
+ ✓ 2716 modules transformed.
11
+ rendering chunks...
12
+ computing gzip size...
13
+ dist/index.css 158.47 kB │ gzip: 20.60 kB
14
+ dist/index.js 1,591.31 kB │ gzip: 401.72 kB
15
+ ✓ built in 5.69s
16
+ [build:vite-build] Vite build completed.
17
+ ---- build finished (72.731s) ----
18
+ -------------------- Finished (72.734s) --------------------
@@ -1,4 +1,4 @@
1
1
  Build cache hit.
2
- Cache key: 6ab1fbb7acd3281d7612ffe24dcc9982dd8c9061
2
+ Cache key: a0341c0f1c835c664217d8a879aa38d780e62122
3
3
  Clearing cached folders: .rush/temp/operation/_phase_test
4
4
  Successfully restored output from the build cache.
@@ -0,0 +1,125 @@
1
+ Invoking: heft run --only test
2
+ The provided list of phases does not contain all phase dependencies. You may need to run the excluded phases manually.
3
+ ---- test started ----
4
+ [test:vitest] Running vitest...
5
+
6
+ RUN v3.2.4 /home/runner/work/grackle/grackle/packages/web-components
7
+
8
+ ✓ src/utils/sessionEvents.test.ts (14 tests) 60ms
9
+ ✓ src/utils/eventContent.test.ts (38 tests) 155ms
10
+ ✓ src/utils/dashboard.test.ts (4 tests) 37ms
11
+ ✓ src/utils/route-config.test.ts (23 tests) 50ms
12
+ ✓ src/utils/scrollUtils.test.ts (11 tests) 20ms
13
+ ✓ src/utils/breadcrumbs.test.ts (18 tests) 65ms
14
+ ✓ src/components/tools/classifyTool.test.ts (6 tests) 22ms
15
+ ✓ src/components/tools/toolCardHelpers.test.ts (10 tests) 28ms
16
+ ✓ src/utils/assetUrl.test.ts (3 tests) 18ms
17
+ ✓ src/components/display/extractText.test.tsx (8 tests) 17ms
18
+ ✓ src/components/editable/useEditableField.test.tsx (17 tests) 206ms
19
+ ✓ src/hooks/useEventSelection.test.ts (13 tests) 146ms
20
+ ✓ src/components/notifications/UpdateBanner.test.tsx (4 tests) 199ms
21
+ ✓ src/utils/grackleHostStyleVariables.test.ts (2 tests) 445ms
22
+ ✓ grackleHostStyleVariables > always returns the MCP-standard fallback variables 416ms
23
+ ✓ src/components/display/McpAppWidget.test.tsx (3 tests) 258ms
24
+
25
+ Test Files 15 passed (15)
26
+ Tests 174 passed (174)
27
+ Start at 23:48:14
28
+ Duration 16.41s (transform 2.75s, setup 0ms, collect 18.15s, tests 1.73s, environment 14.38s, prepare 5.42s)
29
+
30
+ [test:vitest] Vitest completed.
31
+ [test:storybook-test] Starting Storybook static server on port 36655...
32
+ [test:storybook-test] Storybook server ready. Running interaction tests...
33
+ jest-haste-map: duplicate manual mock found: adapter-manager
34
+ The following files share their name; please delete one of them:
35
+ * <rootDir>/packages/server/dist/__mocks__/adapter-manager.js
36
+ * <rootDir>/packages/server/src/__mocks__/adapter-manager.ts
37
+
38
+ jest-haste-map: duplicate manual mock found: auto-reconnect
39
+ The following files share their name; please delete one of them:
40
+ * <rootDir>/packages/server/dist/__mocks__/auto-reconnect.js
41
+ * <rootDir>/packages/server/src/__mocks__/auto-reconnect.ts
42
+
43
+ jest-haste-map: duplicate manual mock found: event-bus
44
+ The following files share their name; please delete one of them:
45
+ * <rootDir>/packages/server/dist/__mocks__/event-bus.js
46
+ * <rootDir>/packages/server/src/__mocks__/event-bus.ts
47
+
48
+ jest-haste-map: duplicate manual mock found: event-processor
49
+ The following files share their name; please delete one of them:
50
+ * <rootDir>/packages/server/dist/__mocks__/event-processor.js
51
+ * <rootDir>/packages/server/src/__mocks__/event-processor.ts
52
+
53
+ jest-haste-map: duplicate manual mock found: github-import
54
+ The following files share their name; please delete one of them:
55
+ * <rootDir>/packages/server/dist/__mocks__/github-import.js
56
+ * <rootDir>/packages/server/src/__mocks__/github-import.ts
57
+
58
+ jest-haste-map: duplicate manual mock found: lifecycle
59
+ The following files share their name; please delete one of them:
60
+ * <rootDir>/packages/server/dist/__mocks__/lifecycle.js
61
+ * <rootDir>/packages/server/src/__mocks__/lifecycle.ts
62
+
63
+ jest-haste-map: duplicate manual mock found: log-writer
64
+ The following files share their name; please delete one of them:
65
+ * <rootDir>/packages/server/dist/__mocks__/log-writer.js
66
+ * <rootDir>/packages/server/src/__mocks__/log-writer.ts
67
+
68
+ jest-haste-map: duplicate manual mock found: logger
69
+ The following files share their name; please delete one of them:
70
+ * <rootDir>/packages/server/dist/__mocks__/logger.js
71
+ * <rootDir>/packages/server/src/__mocks__/logger.ts
72
+
73
+ jest-haste-map: duplicate manual mock found: pipe-delivery
74
+ The following files share their name; please delete one of them:
75
+ * <rootDir>/packages/server/dist/__mocks__/pipe-delivery.js
76
+ * <rootDir>/packages/server/src/__mocks__/pipe-delivery.ts
77
+
78
+ jest-haste-map: duplicate manual mock found: processor-registry
79
+ The following files share their name; please delete one of them:
80
+ * <rootDir>/packages/server/dist/__mocks__/processor-registry.js
81
+ * <rootDir>/packages/server/src/__mocks__/processor-registry.ts
82
+
83
+ jest-haste-map: duplicate manual mock found: reanimate-agent
84
+ The following files share their name; please delete one of them:
85
+ * <rootDir>/packages/server/dist/__mocks__/reanimate-agent.js
86
+ * <rootDir>/packages/server/src/__mocks__/reanimate-agent.ts
87
+
88
+ jest-haste-map: duplicate manual mock found: session-recovery
89
+ The following files share their name; please delete one of them:
90
+ * <rootDir>/packages/server/dist/__mocks__/session-recovery.js
91
+ * <rootDir>/packages/server/src/__mocks__/session-recovery.ts
92
+
93
+ jest-haste-map: duplicate manual mock found: stream-hub
94
+ The following files share their name; please delete one of them:
95
+ * <rootDir>/packages/server/dist/__mocks__/stream-hub.js
96
+ * <rootDir>/packages/server/src/__mocks__/stream-hub.ts
97
+
98
+ jest-haste-map: duplicate manual mock found: stream-registry
99
+ The following files share their name; please delete one of them:
100
+ * <rootDir>/packages/server/dist/__mocks__/stream-registry.js
101
+ * <rootDir>/packages/server/src/__mocks__/stream-registry.ts
102
+
103
+ jest-haste-map: duplicate manual mock found: token-push
104
+ The following files share their name; please delete one of them:
105
+ * <rootDir>/packages/server/dist/__mocks__/token-push.js
106
+ * <rootDir>/packages/server/src/__mocks__/token-push.ts
107
+
108
+ jest-haste-map: duplicate manual mock found: utils/exec
109
+ The following files share their name; please delete one of them:
110
+ * <rootDir>/packages/server/dist/__mocks__/utils/exec.js
111
+ * <rootDir>/packages/server/src/__mocks__/utils/exec.ts
112
+
113
+ jest-haste-map: duplicate manual mock found: utils/format-gh-error
114
+ The following files share their name; please delete one of them:
115
+ * <rootDir>/packages/server/dist/__mocks__/utils/format-gh-error.js
116
+ * <rootDir>/packages/server/src/__mocks__/utils/format-gh-error.ts
117
+
118
+ jest-haste-map: duplicate manual mock found: utils/network
119
+ The following files share their name; please delete one of them:
120
+ * <rootDir>/packages/server/dist/__mocks__/utils/network.js
121
+ * <rootDir>/packages/server/src/__mocks__/utils/network.ts
122
+
123
+ [test:storybook-test] Storybook interaction tests completed.
124
+ ---- test finished (113.186s) ----
125
+ -------------------- Finished (113.19s) --------------------
@@ -327,7 +327,7 @@ export interface UseWorkspacesResult {
327
327
  defaultPersonaId?: string,
328
328
  useWorktrees?: boolean,
329
329
  workingDirectory?: string,
330
- onSuccess?: () => void,
330
+ onSuccess?: (workspace: Workspace) => void,
331
331
  onError?: (message: string) => void,
332
332
  ) => Promise<void>;
333
333
  /** Archive a workspace by ID. */
@@ -382,7 +382,7 @@ export function MockGrackleProvider({ children }: MockGrackleProviderProps): JSX
382
382
  defaultPersonaId?: string,
383
383
  useWorktrees?: boolean,
384
384
  workingDirectory?: string,
385
- onSuccess?: () => void,
385
+ onSuccess?: (workspace: Workspace) => void,
386
386
  _onError?: (message: string) => void,
387
387
  ) => {
388
388
  console.log("[MockGrackle] createWorkspace", { name, description });
@@ -405,7 +405,7 @@ export function MockGrackleProvider({ children }: MockGrackleProviderProps): JSX
405
405
 
406
406
  setWorkspaces((prev) => [...prev, newWorkspace]);
407
407
  if (onSuccess) {
408
- onSuccess();
408
+ onSuccess(newWorkspace);
409
409
  }
410
410
  },
411
411
  [nextId],