Reorganize packages into a modular hierarchy
Move the 18 flat packages/<name> packages into role-grouped dirs: core/, llm/, bash/, session-persistence/, ui/, support/. Group dirs are pure containers; each package keeps its @deepseek-ai/dsh-* name. Collapse the per-package tsconfig paths maps (base + typecheck) into one @deepseek-ai/dsh-* wildcard with a candidate per group, and derive the publint list from the hierarchy. Update all depth-coupled globs/configs (workspace, tsdown, vitest, eslint, knip, tsconfig includes/refs, per-package tsconfigs, generators, doc-script scopes, type-equiv manifest) and the cross-package/script relative imports in tests. Fix doc-typecheck's workspacePaths() to parse tsconfig JSONC via the TypeScript API instead of a regex comment-strip, which corrupted the new wildcard `/*/` path candidates. WIP: doc cross-links and package/RFC docs still to update.
This commit is contained in:
@@ -25,7 +25,7 @@ An agent was registered in the AgentRegistry and is ready to receive messages.
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:140`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:140`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/disposed` — emit
|
#### `agent/disposed` — emit
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ An agent was disposed and removed from the registry; its fiber and any in-flight
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:146`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:146`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/error` — emit
|
#### `agent/error` — emit
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ A step or turn errored. The loop reports a failure here (plus the logger) even w
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:223`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:223`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/queued` — emit
|
#### `agent/queued` — emit
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ A message entered the agent's inbox (queued or steering). `source` is the resolv
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:159`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:159`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/request` — waterfall
|
#### `agent/request` — waterfall
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ Waterfall: mutate the fully-assembled GenerateOptions before the model call (hoo
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md) · [GenerateOptions](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md) · [GenerateOptions](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:192`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:192`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/status` — emit
|
#### `agent/status` — emit
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ Agent status changed (`idle` ⇄ `running`, or → `disposed`). Drive lifecycle
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:153`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:153`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/steering` — emit
|
#### `agent/steering` — emit
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ Steering content was injected into a running turn.
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [MessageSource](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:217`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:217`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/step-end` — emit
|
#### `agent/step-end` — emit
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ A step ended.
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:183`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:183`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/step-result` — waterfall
|
#### `agent/step-result` — waterfall
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ Waterfall: post-process the assembled assistant Message before tool dispatch (va
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md) · [Message](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:198`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:198`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/step-start` — emit
|
#### `agent/step-start` — emit
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ A step (one model call plus its tool dispatch) began. `step` is 1-based within t
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:178`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:178`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/stream-chunk` — emit
|
#### `agent/stream-chunk` — emit
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ A raw StreamChunk arrived from the model (token-level UI/log feed).
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
Types: [Agent](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:212`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:212`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/turn-continuation` — waterfall
|
#### `agent/turn-continuation` — waterfall
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ Waterfall: override the turn-continuation decision. The default (computed by the
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:205`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:205`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/turn-end` — emit
|
#### `agent/turn-end` — emit
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ A turn ended. `reason` distinguishes a clean stop from a truncated or aborted on
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md) · [TurnEndReason](../core-data-structures/session.md)
|
Types: [Agent](../core-data-structures/core.md) · [TurnEndReason](../core-data-structures/session.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:172`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:172`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
#### `agent/turn-start` — emit
|
#### `agent/turn-start` — emit
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ A turn began. `turn` is the 1-based turn number within the session.
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/types.ts:166`](../../packages/agent/src/types.ts)
|
Source: [`packages/core/agent/src/types.ts:166`](../../packages/core/agent/src/types.ts)
|
||||||
|
|
||||||
### `llm/*`
|
### `llm/*`
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@ An adapter was registered or unregistered (the model→adapter map changed).
|
|||||||
'llm/adapter-change'(): void
|
'llm/adapter-change'(): void
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/llm/src/index.ts:43`](../../packages/llm/src/index.ts)
|
Source: [`packages/llm/llm/src/index.ts:43`](../../packages/llm/llm/src/index.ts)
|
||||||
|
|
||||||
#### `llm/generate` — waterfall
|
#### `llm/generate` — waterfall
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ Waterfall around every non-streaming model call. Bound to the LlmService; call `
|
|||||||
|
|
||||||
Types: [GenerateOptions](../core-data-structures/core.md) · [GenerateResult](../core-data-structures/core.md)
|
Types: [GenerateOptions](../core-data-structures/core.md) · [GenerateResult](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/llm/src/index.ts:38`](../../packages/llm/src/index.ts)
|
Source: [`packages/llm/llm/src/index.ts:38`](../../packages/llm/llm/src/index.ts)
|
||||||
|
|
||||||
#### `llm/stream` — waterfall
|
#### `llm/stream` — waterfall
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ Waterfall around every streaming model call (retry, caching, routing). Bound to
|
|||||||
|
|
||||||
Types: [GenerateOptions](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
Types: [GenerateOptions](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
||||||
|
|
||||||
Source: [`packages/llm/src/index.ts:32`](../../packages/llm/src/index.ts)
|
Source: [`packages/llm/llm/src/index.ts:32`](../../packages/llm/llm/src/index.ts)
|
||||||
|
|
||||||
### `session/*`
|
### `session/*`
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ A session was created in the store.
|
|||||||
'session/created'(session: Session): void
|
'session/created'(session: Session): void
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/session/src/index.ts:30`](../../packages/session/src/index.ts)
|
Source: [`packages/core/session/src/index.ts:30`](../../packages/core/session/src/index.ts)
|
||||||
|
|
||||||
#### `session/event` — emit
|
#### `session/event` — emit
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ An event was appended to a session log (sync, fire-and-forget). This is the per-
|
|||||||
|
|
||||||
Types: [SessionEvent](../core-data-structures/core.md)
|
Types: [SessionEvent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/session/src/index.ts:36`](../../packages/session/src/index.ts)
|
Source: [`packages/core/session/src/index.ts:36`](../../packages/core/session/src/index.ts)
|
||||||
|
|
||||||
#### `session/flush` — parallel
|
#### `session/flush` — parallel
|
||||||
|
|
||||||
@@ -251,7 +251,7 @@ Awaited durability checkpoint. The agent loop awaits `ctx.parallel('session/flus
|
|||||||
'session/flush'(session: Session): Promise<void> | void
|
'session/flush'(session: Session): Promise<void> | void
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/session/src/index.ts:45`](../../packages/session/src/index.ts)
|
Source: [`packages/core/session/src/index.ts:45`](../../packages/core/session/src/index.ts)
|
||||||
|
|
||||||
### `system-prompt/*`
|
### `system-prompt/*`
|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ Waterfall around prompt assembly — mutate or extend the PromptAssembly (sectio
|
|||||||
'system-prompt/assemble'(this: SystemPrompt, assembly: PromptAssembly, next: () => Promise<PromptAssembly>): Promise<PromptAssembly>
|
'system-prompt/assemble'(this: SystemPrompt, assembly: PromptAssembly, next: () => Promise<PromptAssembly>): Promise<PromptAssembly>
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/system-prompt/src/index.ts:24`](../../packages/system-prompt/src/index.ts)
|
Source: [`packages/core/system-prompt/src/index.ts:24`](../../packages/core/system-prompt/src/index.ts)
|
||||||
|
|
||||||
#### `system-prompt/change` — emit
|
#### `system-prompt/change` — emit
|
||||||
|
|
||||||
@@ -273,7 +273,7 @@ A section or tool provider was registered or unregistered (the assembly inputs c
|
|||||||
'system-prompt/change'(): void
|
'system-prompt/change'(): void
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/system-prompt/src/index.ts:30`](../../packages/system-prompt/src/index.ts)
|
Source: [`packages/core/system-prompt/src/index.ts:30`](../../packages/core/system-prompt/src/index.ts)
|
||||||
|
|
||||||
### `tools/*`
|
### `tools/*`
|
||||||
|
|
||||||
@@ -285,7 +285,7 @@ A tool was registered or unregistered (the available tool set changed).
|
|||||||
'tools/change'(): void
|
'tools/change'(): void
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/tools/src/index.ts:48`](../../packages/tools/src/index.ts)
|
Source: [`packages/core/tools/src/index.ts:48`](../../packages/core/tools/src/index.ts)
|
||||||
|
|
||||||
#### `tools/execute` — waterfall
|
#### `tools/execute` — waterfall
|
||||||
|
|
||||||
@@ -297,7 +297,7 @@ Waterfall around every tool execution — the single seam where sandbox, permiss
|
|||||||
|
|
||||||
Types: [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md)
|
Types: [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md)
|
||||||
|
|
||||||
Source: [`packages/tools/src/index.ts:43`](../../packages/tools/src/index.ts)
|
Source: [`packages/core/tools/src/index.ts:43`](../../packages/core/tools/src/index.ts)
|
||||||
|
|
||||||
## Services
|
## Services
|
||||||
|
|
||||||
@@ -315,7 +315,7 @@ createAgent(options: CreateAgentOptions): AgentHandle
|
|||||||
async resume(options: ResumeAgentOptions): Promise<AgentHandle>
|
async resume(options: ResumeAgentOptions): Promise<AgentHandle>
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/agent-loop/src/index.ts:60`](../../packages/agent-loop/src/index.ts)
|
Source: [`packages/core/agent-loop/src/index.ts:60`](../../packages/core/agent-loop/src/index.ts)
|
||||||
|
|
||||||
### `ctx.agents` — `AgentRegistry`
|
### `ctx.agents` — `AgentRegistry`
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ list(): Agent[]
|
|||||||
|
|
||||||
Types: [Agent](../core-data-structures/core.md)
|
Types: [Agent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/agent/src/index.ts:105`](../../packages/agent/src/index.ts)
|
Source: [`packages/core/agent/src/index.ts:105`](../../packages/core/agent/src/index.ts)
|
||||||
|
|
||||||
### `ctx.bash` — `BashExecutor` (abstract seam)
|
### `ctx.bash` — `BashExecutor` (abstract seam)
|
||||||
|
|
||||||
@@ -359,7 +359,7 @@ onTaskDone(listener: BashTaskListener): () => void
|
|||||||
|
|
||||||
Types: [BashExecRequest](../core-data-structures/bash.md) · [BashExecSpec](../core-data-structures/bash.md) · [BashRunResult](../core-data-structures/bash.md) · [BashTask](../core-data-structures/bash.md) · [BashTaskRead](../core-data-structures/bash.md)
|
Types: [BashExecRequest](../core-data-structures/bash.md) · [BashExecSpec](../core-data-structures/bash.md) · [BashRunResult](../core-data-structures/bash.md) · [BashTask](../core-data-structures/bash.md) · [BashTaskRead](../core-data-structures/bash.md)
|
||||||
|
|
||||||
Source: [`packages/bash/src/index.ts:58`](../../packages/bash/src/index.ts)
|
Source: [`packages/bash/bash/src/index.ts:58`](../../packages/bash/bash/src/index.ts)
|
||||||
|
|
||||||
### `ctx.llm` — `LlmService`
|
### `ctx.llm` — `LlmService`
|
||||||
|
|
||||||
@@ -375,7 +375,7 @@ generate(options: GenerateOptions): Promise<GenerateResult>
|
|||||||
|
|
||||||
Types: [ContentBlock](../core-data-structures/core.md) · [GenerateOptions](../core-data-structures/core.md) · [GenerateResult](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
Types: [ContentBlock](../core-data-structures/core.md) · [GenerateOptions](../core-data-structures/core.md) · [GenerateResult](../core-data-structures/core.md) · [StreamChunk](../core-data-structures/llm-streaming.md)
|
||||||
|
|
||||||
Source: [`packages/llm/src/index.ts:81`](../../packages/llm/src/index.ts)
|
Source: [`packages/llm/llm/src/index.ts:81`](../../packages/llm/llm/src/index.ts)
|
||||||
|
|
||||||
### `ctx.sessionPersistence` — `SessionPersistence` (abstract seam)
|
### `ctx.sessionPersistence` — `SessionPersistence` (abstract seam)
|
||||||
|
|
||||||
@@ -399,7 +399,7 @@ abstract delete(id: SessionId): Promise<void>
|
|||||||
|
|
||||||
Types: [SessionEvent](../core-data-structures/core.md)
|
Types: [SessionEvent](../core-data-structures/core.md)
|
||||||
|
|
||||||
Source: [`packages/session-persistence/src/index.ts:98`](../../packages/session-persistence/src/index.ts)
|
Source: [`packages/session-persistence/session-persistence/src/index.ts:98`](../../packages/session-persistence/session-persistence/src/index.ts)
|
||||||
|
|
||||||
### `ctx.sessions` — `SessionStore`
|
### `ctx.sessions` — `SessionStore`
|
||||||
|
|
||||||
@@ -416,7 +416,7 @@ get(id: string): Session | undefined
|
|||||||
list(): Session[]
|
list(): Session[]
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/session/src/index.ts:222`](../../packages/session/src/index.ts)
|
Source: [`packages/core/session/src/index.ts:222`](../../packages/core/session/src/index.ts)
|
||||||
|
|
||||||
### `ctx.systemPrompt` — `SystemPrompt`
|
### `ctx.systemPrompt` — `SystemPrompt`
|
||||||
|
|
||||||
@@ -428,7 +428,7 @@ tools(provider: () => ToolSchema[]): () => void
|
|||||||
assemble(): Promise<PromptAssembly>
|
assemble(): Promise<PromptAssembly>
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/system-prompt/src/index.ts:71`](../../packages/system-prompt/src/index.ts)
|
Source: [`packages/core/system-prompt/src/index.ts:71`](../../packages/core/system-prompt/src/index.ts)
|
||||||
|
|
||||||
### `ctx.tools` — `ToolRegistry`
|
### `ctx.tools` — `ToolRegistry`
|
||||||
|
|
||||||
@@ -443,7 +443,7 @@ async execute(exec: ToolExecution): Promise<ToolExecutionResult>
|
|||||||
|
|
||||||
Types: [ToolDefinition](../core-data-structures/tools.md) · [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md)
|
Types: [ToolDefinition](../core-data-structures/tools.md) · [ToolExecution](../core-data-structures/tools.md) · [ToolExecutionResult](../core-data-structures/tools.md)
|
||||||
|
|
||||||
Source: [`packages/tools/src/index.ts:277`](../../packages/tools/src/index.ts)
|
Source: [`packages/core/tools/src/index.ts:277`](../../packages/core/tools/src/index.ts)
|
||||||
|
|
||||||
## Inherited tier (cordis core + loader/hmr/timer)
|
## Inherited tier (cordis core + loader/hmr/timer)
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -30,7 +30,7 @@ export default tseslint.config(
|
|||||||
|
|
||||||
// --- our packages: full strictness -------------------------------------
|
// --- our packages: full strictness -------------------------------------
|
||||||
{
|
{
|
||||||
files: ['packages/*/src/**/*.ts', 'examples/**/*.ts', 'scripts/**/*.ts'],
|
files: ['packages/*/*/src/**/*.ts', 'examples/**/*.ts', 'scripts/**/*.ts'],
|
||||||
extends: [
|
extends: [
|
||||||
...tseslint.configs.strictTypeChecked,
|
...tseslint.configs.strictTypeChecked,
|
||||||
],
|
],
|
||||||
@@ -81,7 +81,7 @@ export default tseslint.config(
|
|||||||
|
|
||||||
// --- tests: same rules, minus the friction that fights test ergonomics --
|
// --- tests: same rules, minus the friction that fights test ergonomics --
|
||||||
{
|
{
|
||||||
files: ['packages/*/tests/**/*.ts'],
|
files: ['packages/*/*/tests/**/*.ts'],
|
||||||
extends: [
|
extends: [
|
||||||
...tseslint.configs.strictTypeChecked,
|
...tseslint.configs.strictTypeChecked,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -14,15 +14,15 @@
|
|||||||
],
|
],
|
||||||
"project": ["scripts/**/*.ts", "examples/**/*.ts"]
|
"project": ["scripts/**/*.ts", "examples/**/*.ts"]
|
||||||
},
|
},
|
||||||
"packages/*": {
|
"packages/*/*": {
|
||||||
"entry": ["tests/**/*.spec.ts"],
|
"entry": ["tests/**/*.spec.ts"],
|
||||||
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
||||||
},
|
},
|
||||||
"packages/llm-deepseek": {
|
"packages/llm/llm-deepseek": {
|
||||||
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
||||||
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
||||||
},
|
},
|
||||||
"packages/llm-pi-ai": {
|
"packages/llm/llm-pi-ai": {
|
||||||
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
||||||
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"vendor/*",
|
"vendor/*",
|
||||||
"packages/*"
|
"packages/*/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -b tsconfig.build.json && tsdown",
|
"build": "tsc -b tsconfig.build.json && tsdown",
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../../vendor/schemastery" },
|
|
||||||
{ "path": "../llm" },
|
|
||||||
{ "path": "../session" },
|
|
||||||
{ "path": "../agent" },
|
|
||||||
{ "path": "../tools" },
|
|
||||||
{ "path": "../session-persistence" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../../vendor/schemastery" },
|
|
||||||
{ "path": "../llm" },
|
|
||||||
{ "path": "../session" },
|
|
||||||
{ "path": "../session-persistence" },
|
|
||||||
{ "path": "../system-prompt" },
|
|
||||||
{ "path": "../tools" },
|
|
||||||
{ "path": "../agent" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../llm" },
|
|
||||||
{ "path": "../session" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../../vendor/schemastery" },
|
|
||||||
{ "path": "../bash" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/schemastery"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../bash/bash"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+1
-1
@@ -9,7 +9,7 @@ import AgentRegistry from '@deepseek-ai/dsh-agent'
|
|||||||
import AgentLoop, { ReactLoopAgent } from '@deepseek-ai/dsh-agent-loop'
|
import AgentLoop, { ReactLoopAgent } from '@deepseek-ai/dsh-agent-loop'
|
||||||
import { LocalBashExecutor } from '@deepseek-ai/dsh-bash-local'
|
import { LocalBashExecutor } from '@deepseek-ai/dsh-bash-local'
|
||||||
import * as ToolBash from '@deepseek-ai/dsh-tool-bash'
|
import * as ToolBash from '@deepseek-ai/dsh-tool-bash'
|
||||||
import { MockAdapter, textResponse, toolCallResponse } from '../../agent-loop/tests/mock-adapter.ts'
|
import { MockAdapter, textResponse, toolCallResponse } from '../../../core/agent-loop/tests/mock-adapter.ts'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Full-loop integration: a scripted mock model drives the REAL bash tool
|
* Full-loop integration: a scripted mock model drives the REAL bash tool
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../llm/llm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/tools"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/agent"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../bash/bash"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/schemastery"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../llm/llm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/session"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../session-persistence/session-persistence"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/system-prompt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/tools"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/agent"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+2
-2
@@ -14,13 +14,13 @@ import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'
|
|||||||
import { tmpdir } from 'node:os'
|
import { tmpdir } from 'node:os'
|
||||||
import { join } from 'node:path'
|
import { join } from 'node:path'
|
||||||
import { afterEach, describe, expect, it } from 'vitest'
|
import { afterEach, describe, expect, it } from 'vitest'
|
||||||
import { collectEvents } from '../../../scripts/gen-cordis-catalog.ts'
|
import { collectEvents } from '../../../../scripts/gen-cordis-catalog.ts'
|
||||||
|
|
||||||
/** Write a fixture package exposing one `interface Events` block and return the
|
/** Write a fixture package exposing one `interface Events` block and return the
|
||||||
* scan root to hand `collectEvents`. */
|
* scan root to hand `collectEvents`. */
|
||||||
function fixtureRoot(eventsBlock: string): string {
|
function fixtureRoot(eventsBlock: string): string {
|
||||||
const root = mkdtempSync(join(tmpdir(), 'cordis-catalog-'))
|
const root = mkdtempSync(join(tmpdir(), 'cordis-catalog-'))
|
||||||
const dir = join(root, 'packages', 'fix', 'src')
|
const dir = join(root, 'packages', 'group', 'fix', 'src')
|
||||||
mkdirSync(dir, { recursive: true })
|
mkdirSync(dir, { recursive: true })
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
join(dir, 'index.ts'),
|
join(dir, 'index.ts'),
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../llm/llm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/session"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../llm/llm"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../llm/llm"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../llm/llm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/system-prompt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../core/agent"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../llm" },
|
|
||||||
{ "path": "../session" },
|
|
||||||
{ "path": "../agent" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../../vendor/schemastery" },
|
|
||||||
{ "path": "../llm" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../../vendor/schemastery" },
|
|
||||||
{ "path": "../llm" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "src",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"include": ["src"],
|
|
||||||
"references": [
|
|
||||||
{ "path": "../../vendor/cosmokit" },
|
|
||||||
{ "path": "../../vendor/cordis" },
|
|
||||||
{ "path": "../llm" },
|
|
||||||
{ "path": "../session" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "lib"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cosmokit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/cordis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../../vendor/schemastery"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../../llm/llm"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user