mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
chore(contracts): add .js extensions to relative imports for NodeNext consumers
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { JsonValue } from '../common';
|
||||
import type { JsonValue } from '../common.js';
|
||||
|
||||
export type ArtifactKind =
|
||||
| 'html'
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
import type { OkResponse } from '../common';
|
||||
import type { OkResponse } from '../common.js';
|
||||
|
||||
export type PreviewCommentStatus =
|
||||
| 'open'
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
import type { ChatMessage } from './chat';
|
||||
import type { ChatMessage } from './chat.js';
|
||||
|
||||
export type ProjectKind =
|
||||
| 'prototype'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { JsonValue } from './common';
|
||||
import type { JsonValue } from './common.js';
|
||||
|
||||
export const API_ERROR_CODES = [
|
||||
'BAD_REQUEST',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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'>;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user