chore(contracts): add .js extensions to relative imports for NodeNext consumers

This commit is contained in:
Nagendhra
2026-05-03 12:53:44 -04:00
parent 3ff73b7f41
commit 2d6e8d6793
13 changed files with 44 additions and 44 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import type { JsonValue } from '../common';
import type { JsonValue } from '../common.js';
export type ArtifactKind =
| 'html'
+2 -2
View File
@@ -1,5 +1,5 @@
import type { ProjectFile } from './files';
import type { PreviewCommentPosition } from './comments';
import type { ProjectFile } from './files.js';
import type { PreviewCommentPosition } from './comments.js';
export type ChatRole = 'user' | 'assistant';
+1 -1
View File
@@ -1,4 +1,4 @@
import type { OkResponse } from '../common';
import type { OkResponse } from '../common.js';
export type PreviewCommentStatus =
| 'open'
+2 -2
View File
@@ -1,5 +1,5 @@
import type { OkResponse } from '../common';
import type { ArtifactKind, ArtifactManifest } from './artifacts';
import type { OkResponse } from '../common.js';
import type { ArtifactKind, ArtifactManifest } from './artifacts.js';
export type ProjectFileKind =
| 'html'
+1 -1
View File
@@ -1,4 +1,4 @@
import type { ChatMessage } from './chat';
import type { ChatMessage } from './chat.js';
export type ProjectKind =
| 'prototype'
+1 -1
View File
@@ -1,4 +1,4 @@
import type { JsonValue } from './common';
import type { JsonValue } from './common.js';
export const API_ERROR_CODES = [
'BAD_REQUEST',
+6 -6
View File
@@ -1,9 +1,9 @@
import type { ChatRequest } from './api/chat';
import type { ProjectFile } from './api/files';
import type { HealthResponse } from './api/registry';
import type { ApiErrorResponse } from './errors';
import type { ChatSseEvent } from './sse/chat';
import type { ProxySseEvent } from './sse/proxy';
import type { ChatRequest } from './api/chat.js';
import type { ProjectFile } from './api/files.js';
import type { HealthResponse } from './api/registry.js';
import type { ApiErrorResponse } from './errors.js';
import type { ChatSseEvent } from './sse/chat.js';
import type { ProxySseEvent } from './sse/proxy.js';
export const exampleChatRequest: ChatRequest = {
agentId: 'claude',
+17 -17
View File
@@ -1,17 +1,17 @@
export * from './common';
export * from './errors';
export * from './tasks';
export * from './api/artifacts';
export * from './api/chat';
export * from './api/comments';
export * from './api/files';
export * from './api/projects';
export * from './api/proxy';
export * from './api/registry';
export * from './api/version';
export * from './sse/common';
export * from './sse/chat';
export * from './sse/proxy';
export * from './sse/critique';
export * from './prompts/system';
export * from './critique';
export * from './common.js';
export * from './errors.js';
export * from './tasks.js';
export * from './api/artifacts.js';
export * from './api/chat.js';
export * from './api/comments.js';
export * from './api/files.js';
export * from './api/projects.js';
export * from './api/proxy.js';
export * from './api/registry.js';
export * from './api/version.js';
export * from './sse/common.js';
export * from './sse/chat.js';
export * from './sse/proxy.js';
export * from './sse/critique.js';
export * from './prompts/system.js';
export * from './critique.js';
+1 -1
View File
@@ -21,7 +21,7 @@
* op7418/guizang-ppt-skill (pre-flight asset reads, P0 self-check,
* theme-rhythm rules).
*/
import { renderDirectionFormBody, renderDirectionSpecBlock } from './directions';
import { renderDirectionFormBody, renderDirectionSpecBlock } from './directions.js';
export const DISCOVERY_AND_PHILOSOPHY = `# OD core directives (read first — these override anything later in this prompt)
+5 -5
View File
@@ -29,11 +29,11 @@
* The composed string is what the daemon sees as `systemPrompt` and what
* the Anthropic path sends as `system`.
*/
import type { ProjectMetadata, ProjectTemplate } from '../api/projects';
import { OFFICIAL_DESIGNER_PROMPT } from './official-system';
import { DISCOVERY_AND_PHILOSOPHY } from './discovery';
import { DECK_FRAMEWORK_DIRECTIVE } from './deck-framework';
import { MEDIA_GENERATION_CONTRACT } from './media-contract';
import type { ProjectMetadata, ProjectTemplate } from '../api/projects.js';
import { OFFICIAL_DESIGNER_PROMPT } from './official-system.js';
import { DISCOVERY_AND_PHILOSOPHY } from './discovery.js';
import { DECK_FRAMEWORK_DIRECTIVE } from './deck-framework.js';
import { MEDIA_GENERATION_CONTRACT } from './media-contract.js';
export const BASE_SYSTEM_PROMPT = OFFICIAL_DESIGNER_PROMPT;
+2 -2
View File
@@ -1,5 +1,5 @@
import type { SseErrorPayload } from '../errors';
import type { SseTransportEvent } from './common';
import type { SseErrorPayload } from '../errors.js';
import type { SseTransportEvent } from './common.js';
export const CHAT_SSE_PROTOCOL_VERSION = 1;
+2 -2
View File
@@ -1,5 +1,5 @@
import type { PanelEvent } from '../critique';
import type { SseTransportEvent } from './common';
import type { PanelEvent } from '../critique.js';
import type { SseTransportEvent } from './common.js';
type PayloadOf<T extends PanelEvent['type']> = Omit<Extract<PanelEvent, { type: T }>, 'type'>;
+3 -3
View File
@@ -1,6 +1,6 @@
import type { ProxyStreamDeltaPayload, ProxyStreamEndPayload, ProxyStreamStartPayload } from '../api/proxy';
import type { SseErrorPayload } from '../errors';
import type { SseTransportEvent } from './common';
import type { ProxyStreamDeltaPayload, ProxyStreamEndPayload, ProxyStreamStartPayload } from '../api/proxy.js';
import type { SseErrorPayload } from '../errors.js';
import type { SseTransportEvent } from './common.js';
export const PROXY_SSE_PROTOCOL_VERSION = 1;