Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/theorem-chat-register/src/TheoremChatRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

// SOURCING: none. SPEC-THEOREM-CHAT-REGISTER-1.0 TheoremChatRegister.
import { useEffect, useMemo, useState, type FormEvent } from 'react';
import { REGISTER_IMPL } from './register-impl.js';
import { REGISTER_IMPL } from './register-impl';
import {
createChatSessionController,
type ChatSessionController,
type ChatSessionSnapshot,
} from './session.js';
import type { ChatTransport } from './transport.js';
} from './session';
import type { ChatTransport } from './transport';

export type TheoremChatRegisterProps = {
readonly transport: ChatTransport;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SOURCING: none. Console mount uses fetch SSE to /api/chat/stream (theorem-acp
// bridge already behind that route). No OpenWork / opencode import.
import type { ChatTransport } from './transport.js';
import type { ChatTransport } from './transport';

export type HttpStreamTransportOptions = {
readonly endpoint?: string;
Expand Down
12 changes: 6 additions & 6 deletions packages/theorem-chat-register/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// SOURCING: none. SPEC-THEOREM-CHAT-REGISTER-1.0 package barrel.
export { REGISTER_IMPL, type TheoremChatRegisterImpl } from './register-impl.js';
export { REGISTER_IMPL, type TheoremChatRegisterImpl } from './register-impl';
export {
createChatSessionController,
type ChatMessage,
type ChatSessionController,
type ChatSessionSnapshot,
} from './session.js';
export type { ChatTransport } from './transport.js';
export { createHttpStreamTransport, type HttpStreamTransportOptions } from './http-stream-transport.js';
export { TheoremChatRegister, type TheoremChatRegisterProps } from './TheoremChatRegister.tsx';
export { renderTheoremChatWebviewHtml } from './webview-html.js';
} from './session';
export type { ChatTransport } from './transport';
export { createHttpStreamTransport, type HttpStreamTransportOptions } from './http-stream-transport';
export { TheoremChatRegister, type TheoremChatRegisterProps } from './TheoremChatRegister';
export { renderTheoremChatWebviewHtml } from './webview-html';
6 changes: 3 additions & 3 deletions packages/theorem-chat-register/src/session.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SOURCING: none. SPEC-THEOREM-CHAT-REGISTER-1.0 §2 / §6 CR-004 oracle.
import { describe, expect, it, vi } from 'vitest';
import { createChatSessionController } from './session.js';
import type { ChatTransport } from './transport.js';
import { REGISTER_IMPL } from './register-impl.js';
import { createChatSessionController } from './session';
import type { ChatTransport } from './transport';
import { REGISTER_IMPL } from './register-impl';

function fakeTransport(replies: Record<string, string> = { hi: 'hello' }): ChatTransport {
let sessionId = '';
Expand Down
2 changes: 1 addition & 1 deletion packages/theorem-chat-register/src/session.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SOURCING: none. SPEC-THEOREM-CHAT-REGISTER-1.0 §2 session controller.
import type { ChatTransport } from './transport.js';
import type { ChatTransport } from './transport';

export type ChatMessage = {
readonly id: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/theorem-chat-register/src/webview-html.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SOURCING: none. Studio webview host: stamped HTML shell shared with the
// React register's identity (theorem.chat). No OpenWork markup.
import { REGISTER_IMPL } from './register-impl.js';
import { REGISTER_IMPL } from './register-impl';

/**
* Minimal HTML document for VS Code / Studio webviews. The extension host owns
Expand Down
1 change: 0 additions & 1 deletion packages/theorem-chat-register/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"strict": true,
"skipLibCheck": true,
"noEmit": true,
"verbatimModuleSyntax": true,
"types": ["vitest/globals"]
},
Comment on lines 8 to 12
"include": ["src/**/*.ts", "src/**/*.tsx"]
Expand Down
Loading