@puredesktop/puredesktop-ui-bridge 2.1.6 → 2.1.7

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": "@puredesktop/puredesktop-ui-bridge",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "PureScience plugin SDK — bridge client, theme, and shared UI",
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,7 +1,9 @@
1
- export interface PlatformStorageJsonRequest {
2
- appSlug: string
3
- fileName: string
4
- }
1
+ export type PlatformStorageJsonFileName = `${string}.json`
2
+
3
+ export interface PlatformStorageJsonRequest {
4
+ appSlug: string
5
+ fileName: PlatformStorageJsonFileName
6
+ }
5
7
 
6
8
  export interface PlatformStorageJsonReadResult {
7
9
  path: string
@@ -20,7 +20,7 @@ beforeEach(() => {
20
20
 
21
21
  describe('storage bridge helpers', () => {
22
22
  it('reads JSON storage using the shell request object shape', async () => {
23
- const request = { appSlug: 'puretasks', fileName: 'tasks.json' }
23
+ const request = { appSlug: 'puretasks', fileName: 'tasks.json' } as const
24
24
  bridgeCall.mockResolvedValue({ path: '/tmp/tasks.json', value: null })
25
25
 
26
26
  await readPlatformStorageJson(request)
@@ -32,11 +32,11 @@ describe('storage bridge helpers', () => {
32
32
  })
33
33
 
34
34
  it('writes JSON storage using the shell request object shape', async () => {
35
- const request = {
36
- appSlug: 'puretasks',
37
- fileName: 'tasks.json',
38
- value: { tasks: [] },
39
- }
35
+ const request = {
36
+ appSlug: 'puretasks',
37
+ fileName: 'tasks.json',
38
+ value: { tasks: [] },
39
+ } as const
40
40
  bridgeCall.mockResolvedValue({ path: '/tmp/tasks.json', ok: true })
41
41
 
42
42
  await writePlatformStorageJson(request)
@@ -25,9 +25,7 @@ export const StyledAgentThreadHost = styled.div`
25
25
 
26
26
  export const StyledAgentScroll = styled.div`
27
27
  position: relative;
28
- flex: 1 1 auto;
29
28
  min-height: 0;
30
- overflow: hidden;
31
29
  display: flex;
32
30
  flex-direction: column;
33
31
  --platform-agent-thread-header-height: 0px;