refactor(agent): restore conventional types entrypoint
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
"default": "./lib/invariant.js"
|
"default": "./lib/invariant.js"
|
||||||
},
|
},
|
||||||
"./types": {
|
"./types": {
|
||||||
"types": "./lib/types/session-types.d.ts",
|
"types": "./lib/types/types.d.ts",
|
||||||
"default": "./lib/types/session-types.js"
|
"default": "./lib/types/types.js"
|
||||||
},
|
},
|
||||||
"./src/*": "./src/*",
|
"./src/*": "./src/*",
|
||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
import type { MessageId } from '@deepseek-ai/dsh-llm'
|
import type { MessageId } from '@deepseek-ai/dsh-llm'
|
||||||
import type { Session, SessionEventMap, UserMessage } from '@deepseek-ai/dsh-session'
|
import type { Session, SessionEventMap, UserMessage } from '@deepseek-ai/dsh-session'
|
||||||
import type { InboxTarget } from './session-types.ts'
|
import type { InboxTarget } from './types.ts'
|
||||||
|
|
||||||
/** Mutable state privately owned by an {@link Inbox}. */
|
/** Mutable state privately owned by an {@link Inbox}. */
|
||||||
type InboxState = Record<InboxTarget, UserMessage[]>
|
type InboxState = Record<InboxTarget, UserMessage[]>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import type { TypeRTContext, TypeRTLookup } from '@deepseek-ai/dsh-type-meta'
|
|||||||
import type { Agent, AgentOptions } from './runtime-types.ts'
|
import type { Agent, AgentOptions } from './runtime-types.ts'
|
||||||
|
|
||||||
export * from './runtime-types.ts'
|
export * from './runtime-types.ts'
|
||||||
export * from './session-types.ts'
|
export * from './types.ts'
|
||||||
export * from './inbox.ts'
|
export * from './inbox.ts'
|
||||||
export * from './model-selection.ts'
|
export * from './model-selection.ts'
|
||||||
export { agentCarrier, agentEvents, assembleContextFor, emitAgentEvent } from './dispatch.ts'
|
export { agentCarrier, agentEvents, assembleContextFor, emitAgentEvent } from './dispatch.ts'
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import type { LlmCallConfig, LlmFailure, ResolvedRetryPolicy } from '@deepseek-a
|
|||||||
import type { AgentCancelCause, Session, SessionId, UserMessage } from '@deepseek-ai/dsh-session'
|
import type { AgentCancelCause, Session, SessionId, UserMessage } from '@deepseek-ai/dsh-session'
|
||||||
export type { AgentCancelCause } from '@deepseek-ai/dsh-session'
|
export type { AgentCancelCause } from '@deepseek-ai/dsh-session'
|
||||||
import type { Inbox } from './inbox.ts'
|
import type { Inbox } from './inbox.ts'
|
||||||
import type { InboxTarget } from './session-types.ts'
|
import type { InboxTarget } from './types.ts'
|
||||||
import type {} from '@deepseek-ai/dsh-system-prompt'
|
import type {} from '@deepseek-ai/dsh-system-prompt'
|
||||||
declare module '@deepseek-ai/dsh-system-prompt' {
|
declare module '@deepseek-ai/dsh-system-prompt' {
|
||||||
interface AssembleContext {
|
interface AssembleContext {
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
{
|
{
|
||||||
"doc": "docs/subsystems/core.md",
|
"doc": "docs/subsystems/core.md",
|
||||||
"symbol": "InboxTarget",
|
"symbol": "InboxTarget",
|
||||||
"source": "packages/core/agent/src/session-types.ts"
|
"source": "packages/core/agent/src/types.ts"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doc": "docs/subsystems/core.md",
|
"doc": "docs/subsystems/core.md",
|
||||||
|
|||||||
Reference in New Issue
Block a user