Skip to content

Commit 20966bf

Browse files
khaliqgantclaude
andcommitted
fix(storage): Add subpath exports and fix corrupted imports
- Add subpath exports to @relay/storage package.json for: ./adapter, ./sqlite-adapter, ./batched-sqlite-adapter, ./dlq-adapter, ./dead-letter-queue - Remove duplicate dead-letter-queue.ts export (types duplicated in dlq-adapter.ts) - Fix corrupted imports in src/index.ts and src/wrapper/tmux-wrapper.ts 2200 tests passing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bc3595b commit 20966bf

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

packages/storage/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@
99
".": {
1010
"types": "./dist/index.d.ts",
1111
"import": "./dist/index.js"
12+
},
13+
"./adapter": {
14+
"types": "./dist/adapter.d.ts",
15+
"import": "./dist/adapter.js"
16+
},
17+
"./sqlite-adapter": {
18+
"types": "./dist/sqlite-adapter.d.ts",
19+
"import": "./dist/sqlite-adapter.js"
20+
},
21+
"./batched-sqlite-adapter": {
22+
"types": "./dist/batched-sqlite-adapter.d.ts",
23+
"import": "./dist/batched-sqlite-adapter.js"
24+
},
25+
"./dlq-adapter": {
26+
"types": "./dist/dlq-adapter.d.ts",
27+
"import": "./dist/dlq-adapter.js"
28+
},
29+
"./dead-letter-queue": {
30+
"types": "./dist/dead-letter-queue.d.ts",
31+
"import": "./dist/dead-letter-queue.js"
1232
}
1333
},
1434
"files": [

packages/storage/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from './adapter.js';
22
export * from './sqlite-adapter.js';
33
export * from './batched-sqlite-adapter.js';
4-
export * from './dead-letter-queue.js';
4+
// dead-letter-queue.ts types are duplicated in dlq-adapter.ts which has the complete adapter-based implementation
55
export * from './dlq-adapter.js';

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ export {
5353
InMemoryDLQAdapter,
5454
createDLQAdapter,
5555
DEFAULT_DLQ_CONFIG,
56-
} from '.@relay/storage/dlq-adapter.js';
56+
} from '@relay/storage/dlq-adapter';

src/wrapper/tmux-wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
} from '../continuity/index.js';
2424
import { InboxManager } from './inbox.js';
2525
import type { SendPayload, SendMeta } from '@relay/protocol/types';
26-
import { SqliteStorageAdapter } from '..@relay/storage/sqlite-adapter.js';
26+
import { SqliteStorageAdapter } from '@relay/storage/sqlite-adapter';
2727
import { getProjectPaths } from '@relay/config/project-namespace';
2828
import { getTmuxPath } from '../utils/tmux-resolver.js';
2929
import { findAgentConfig } from '@relay/config/agent-config';

0 commit comments

Comments
 (0)