@bevel-software/platform-core-frontend 0.11.0 → 0.11.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": "@bevel-software/platform-core-frontend",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Open-source core UI of the Bevel platform (raw TS/TSX source): workspace explorer/viewer, branches & change requests, Library, secrets, tools, access control.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -41,7 +41,7 @@
41
41
  "tailwind-merge": "^3.5.0",
42
42
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
43
43
  "yaml": "^2.9.0",
44
- "@bevel-software/platform-shared": "0.11.0"
44
+ "@bevel-software/platform-shared": "0.11.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/jest-dom": "^6.9.1",
@@ -165,7 +165,7 @@ export function McpServerSection({
165
165
  )}
166
166
  {server.local && (
167
167
  <div className="mt-1 text-ink-faint">
168
- Runs locally — served by hexis-mcp on each member's machine, never by the workspace.
168
+ Runs locally — served by the local knowledge server on each member's machine, never by the workspace.
169
169
  </div>
170
170
  )}
171
171
  </dl>
@@ -245,11 +245,16 @@ describe('creator welcome actions', () => {
245
245
  await user.click(screen.getByRole('button', { name: 'Create plugin' }));
246
246
 
247
247
  await waitFor(() => expect(serviceMocks.createPlugin).toHaveBeenCalledWith('Design'));
248
+ // The navigation is the LAST link of the create chain (create -> refresh
249
+ // indexes -> navigate), so it is the settled state to wait for; asserting
250
+ // it immediately races the refresh microtasks and flakes under CI load.
251
+ await waitFor(() =>
252
+ expect(screen.getByLabelText('pathname')).toHaveTextContent(
253
+ '/skills-and-tools/plugins/Design',
254
+ ),
255
+ );
248
256
  expect(data.reload).toHaveBeenCalledOnce();
249
257
  expect(data.reloadPlugins).toHaveBeenCalledOnce();
250
- expect(screen.getByLabelText('pathname')).toHaveTextContent(
251
- '/skills-and-tools/plugins/Design',
252
- );
253
258
  });
254
259
 
255
260
  it('creates a personal skill and opens its skill page', async () => {
@@ -270,14 +275,18 @@ describe('creator welcome actions', () => {
270
275
  userName: 'Juan Viera',
271
276
  }),
272
277
  );
273
- expect(data.reload).toHaveBeenCalledOnce();
274
278
  // The skill's canonical address is its workspace FILE url, not the legacy
275
279
  // `skills/:name` route — that one survives only as a redirect. The dialog
276
280
  // owns this navigation, so the welcome page inherits whatever the rest of
277
- // the Library does, which is the point of routing through it.
278
- expect(screen.getByLabelText('pathname')).toHaveTextContent(
279
- '/workspace/target-company-state/knowledge-base/Plugins/personal-u1/weekly-report/SKILL.md',
281
+ // the Library does, which is the point of routing through it. Waited for,
282
+ // not asserted immediately: navigation is the last link of the create
283
+ // chain and racing its microtasks is what made this test flake in CI.
284
+ await waitFor(() =>
285
+ expect(screen.getByLabelText('pathname')).toHaveTextContent(
286
+ '/workspace/target-company-state/knowledge-base/Plugins/personal-u1/weekly-report/SKILL.md',
287
+ ),
280
288
  );
289
+ expect(data.reload).toHaveBeenCalledOnce();
281
290
  });
282
291
 
283
292
  it('holds the New skill dialog open while creation is pending', async () => {
@@ -388,7 +388,7 @@ describe('WelcomePage', () => {
388
388
  const href = new URL(link.getAttribute('href')!);
389
389
  expect(href.origin + href.pathname).toBe('https://claude.ai/customize/connectors');
390
390
  expect(href.searchParams.get('connectorUrl')).toBe('https://kb.acme.com/api/mcp');
391
- expect(href.searchParams.get('connectorName')).toBe('Hexis — kb.acme.com');
391
+ expect(href.searchParams.get('connectorName')).toBe('Knowledge — kb.acme.com');
392
392
  });
393
393
 
394
394
  /**
@@ -118,10 +118,10 @@ describe('the interactive tab: local first, hosted second, each with its own add
118
118
 
119
119
  const values = snippets();
120
120
  expect(values).toContain(
121
- `claude mcp add hexis-local --env HEXIS_URL="${window.location.origin}" -- npx -y @bevel-software/hexis-mcp`,
121
+ `claude mcp add knowledge --env HEXIS_URL="${window.location.origin}" -- npx -y @bevel-software/hexis-mcp`,
122
122
  );
123
- const json = values.find((v) => v.includes('mcpServers') && v.includes('hexis-local'));
124
- const parsed = JSON.parse(json!).mcpServers['hexis-local'];
123
+ const json = values.find((v) => v.includes('mcpServers') && v.includes('"knowledge"'));
124
+ const parsed = JSON.parse(json!).mcpServers['knowledge'];
125
125
  expect(parsed.args).toEqual(['-y', '@bevel-software/hexis-mcp']);
126
126
  expect(parsed.env.HEXIS_URL).toBe(window.location.origin);
127
127
  // Keyless = interactive: the browser-sign-in mode carries no key env.
@@ -209,11 +209,11 @@ describe('the key-bearing snippets quote the deployment too', () => {
209
209
 
210
210
  // 7. the Claude Code stdio one-liner
211
211
  expect(values).toContain(
212
- `claude mcp add hexis-local --env HEXIS_URL="${window.location.origin}" --env HEXIS_CONNECTION_KEY="${KEY}" -- npx -y @bevel-software/hexis-mcp`,
212
+ `claude mcp add knowledge --env HEXIS_URL="${window.location.origin}" --env HEXIS_CONNECTION_KEY="${KEY}" -- npx -y @bevel-software/hexis-mcp`,
213
213
  );
214
214
  // 8. the JSON config that spawns the package
215
- const json = values.find((v) => v.includes('mcpServers') && v.includes('hexis-local'));
216
- const parsed = JSON.parse(json!).mcpServers['hexis-local'];
215
+ const json = values.find((v) => v.includes('mcpServers') && v.includes('"knowledge"'));
216
+ const parsed = JSON.parse(json!).mcpServers['knowledge'];
217
217
  expect(parsed.args).toEqual(['-y', '@bevel-software/hexis-mcp']);
218
218
  expect(parsed.env.HEXIS_URL).toBe(window.location.origin);
219
219
  expect(parsed.env.HEXIS_CONNECTION_KEY).toBe(KEY);
@@ -246,7 +246,7 @@ describe('the one-click install link', () => {
246
246
  expect(href.origin + href.pathname).toBe('https://claude.ai/customize/connectors');
247
247
  expect(href.searchParams.get('modal')).toBe('add-custom-connector');
248
248
  expect(href.searchParams.get('connectorUrl')).toBe(PUBLIC_URL);
249
- expect(href.searchParams.get('connectorName')).toBe('Hexis — kb.acme.com');
249
+ expect(href.searchParams.get('connectorName')).toBe('Knowledge — kb.acme.com');
250
250
  });
251
251
 
252
252
  it('opens in a new tab without handing Claude a window reference', () => {
@@ -311,8 +311,8 @@ describe('claudeInstallUrl: the documented install link', () => {
311
311
  * contains spaces.
312
312
  */
313
313
  it('encodes spaces as %20 rather than +', () => {
314
- const link = claudeInstallUrl(URL_UNDER_TEST, 'Hexis — kb.acme.com');
315
- expect(link).toContain('connectorName=Hexis%20%E2%80%94%20kb.acme.com');
314
+ const link = claudeInstallUrl(URL_UNDER_TEST, 'Knowledge — kb.acme.com');
315
+ expect(link).toContain('connectorName=Knowledge%20%E2%80%94%20kb.acme.com');
316
316
  expect(link).not.toContain('+');
317
317
  });
318
318
 
@@ -327,7 +327,7 @@ describe('claudeInstallUrl: the documented install link', () => {
327
327
 
328
328
  describe('connectorName: what it is called in a connector list', () => {
329
329
  it('names the product and the deployment', () => {
330
- expect(connectorName('https://kb.acme.com/api/mcp')).toBe('Hexis — kb.acme.com');
330
+ expect(connectorName('https://kb.acme.com/api/mcp')).toBe('Knowledge — kb.acme.com');
331
331
  });
332
332
 
333
333
  /**
@@ -343,11 +343,11 @@ describe('connectorName: what it is called in a connector list', () => {
343
343
 
344
344
  // `host`, not `hostname` — two instances on one machine differ only by port.
345
345
  it('keeps a non-default port', () => {
346
- expect(connectorName('https://kb.acme.com:8443/api/mcp')).toBe('Hexis — kb.acme.com:8443');
346
+ expect(connectorName('https://kb.acme.com:8443/api/mcp')).toBe('Knowledge — kb.acme.com:8443');
347
347
  });
348
348
 
349
349
  it('still names something when the URL is unparseable', () => {
350
- expect(connectorName('not a url')).toBe('Hexis');
350
+ expect(connectorName('not a url')).toBe('Knowledge');
351
351
  });
352
352
  });
353
353
 
@@ -430,7 +430,7 @@ describe('snippets: one builder per client, keyed or not', () => {
430
430
 
431
431
  it('builds a JSON config that spawns the package with the key', () => {
432
432
  const parsed = JSON.parse(hexisMcpJsonSnippet(BASE, KEY));
433
- expect(parsed.mcpServers['hexis-local']).toEqual({
433
+ expect(parsed.mcpServers['knowledge']).toEqual({
434
434
  command: 'npx',
435
435
  args: ['-y', '@bevel-software/hexis-mcp'],
436
436
  env: {
@@ -448,7 +448,7 @@ describe('snippets: one builder per client, keyed or not', () => {
448
448
  */
449
449
  it('omits the key env entirely when no key was minted — keyless selects browser sign-in', () => {
450
450
  const parsed = JSON.parse(hexisMcpJsonSnippet(BASE));
451
- expect(parsed.mcpServers['hexis-local'].env).toEqual({
451
+ expect(parsed.mcpServers['knowledge'].env).toEqual({
452
452
  HEXIS_URL: BASE,
453
453
  });
454
454
  expect(hexisMcpJsonSnippet(BASE)).not.toContain(KEY);
@@ -456,7 +456,7 @@ describe('snippets: one builder per client, keyed or not', () => {
456
456
 
457
457
  it('builds the Claude Code command as a stdio add with both env values', () => {
458
458
  expect(hexisMcpClaudeCommand(BASE, KEY)).toBe(
459
- `claude mcp add hexis-local --env HEXIS_URL="${BASE}" --env HEXIS_CONNECTION_KEY="${KEY}" -- npx -y @bevel-software/hexis-mcp`,
459
+ `claude mcp add knowledge --env HEXIS_URL="${BASE}" --env HEXIS_CONNECTION_KEY="${KEY}" -- npx -y @bevel-software/hexis-mcp`,
460
460
  );
461
461
  });
462
462
 
@@ -279,9 +279,9 @@ function isPrivateIpv6(bracketed: string): boolean {
279
279
  */
280
280
  export function connectorName(mcpUrl: string): string {
281
281
  try {
282
- return `Hexis — ${new URL(mcpUrl).host}`;
282
+ return `Knowledge — ${new URL(mcpUrl).host}`;
283
283
  } catch {
284
- return 'Hexis';
284
+ return 'Knowledge';
285
285
  }
286
286
  }
287
287
 
@@ -394,7 +394,7 @@ export function hexisMcpJsonSnippet(baseUrl: string, bearer?: string): string {
394
394
  return JSON.stringify(
395
395
  {
396
396
  mcpServers: {
397
- 'hexis-local': {
397
+ knowledge: {
398
398
  command: 'npx',
399
399
  args: ['-y', '@bevel-software/hexis-mcp'],
400
400
  env: {
@@ -421,7 +421,7 @@ export function hexisMcpJsonSnippet(baseUrl: string, bearer?: string): string {
421
421
  */
422
422
  export function hexisMcpClaudeCommand(baseUrl: string, bearer?: string): string {
423
423
  return (
424
- `claude mcp add hexis-local` +
424
+ `claude mcp add knowledge` +
425
425
  ` --env HEXIS_URL="${escapeForDoubleQuotes(baseUrl)}"` +
426
426
  (bearer ? ` --env HEXIS_CONNECTION_KEY="${escapeForDoubleQuotes(bearer)}"` : '') +
427
427
  ` -- npx -y @bevel-software/hexis-mcp`