@x-otto/coding 0.0.1-alpha.2 → 0.0.1-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -38
- package/dist/index.d.ts +2785 -1581
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +167 -58
- package/dist/index.js.map +1 -1
- package/package.json +30 -28
package/README.md
CHANGED
|
@@ -1,72 +1,75 @@
|
|
|
1
1
|
# @x-otto/coding
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Module Purpose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The application assembly layer, wiring subsystems together into the complete otto coding assistant. Manages the App container and AgentSession conversation lifecycle.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Core Features
|
|
8
8
|
|
|
9
|
-
|
|
|
9
|
+
| Module | Function |
|
|
10
10
|
| -------------------- | ------------------------------------------------ |
|
|
11
|
-
| App |
|
|
12
|
-
| AgentSession |
|
|
13
|
-
|
|
|
14
|
-
|
|
|
11
|
+
| App | Dependency-injection container, assembles all subsystems |
|
|
12
|
+
| AgentSession | Conversation lifecycle (re-exported from `@x-otto/runtime`) |
|
|
13
|
+
| CodingSessionPool | Session pool (InMemory / Disk / Remote, re-exported from `@x-otto/runtime`) |
|
|
14
|
+
| AgentJobService | Background agent job lifecycle (isolated worktrees, diff apply) |
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Installation
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
pnpm add @x-otto/coding
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Quick Start
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
import { App } from '@x-otto/coding'
|
|
26
26
|
|
|
27
27
|
const app = new App({
|
|
28
|
-
|
|
28
|
+
modelId: 'claude-sonnet-4-5-20250929',
|
|
29
29
|
workspaceDir: process.cwd(),
|
|
30
|
-
|
|
30
|
+
logger: { name: 'app', level: 'info', destination: 'stderr' },
|
|
31
31
|
})
|
|
32
32
|
|
|
33
33
|
const session = await app.createSession()
|
|
34
34
|
await session.prompt('Write a fibonacci function')
|
|
35
|
-
await app.
|
|
35
|
+
await app.stop()
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## API
|
|
39
39
|
|
|
40
|
-
|
|
|
40
|
+
| Export | Type | Description |
|
|
41
41
|
|---|---|---|
|
|
42
|
-
| `App` | `class` |
|
|
43
|
-
| `
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
42
|
+
| `App` | `class` | Dependency-injection container, assembles all subsystems |
|
|
43
|
+
| `createApp` | `function` | App factory (from `./app/app`) |
|
|
44
|
+
| `createFrontendPort` | `function` | Frontend port factory |
|
|
45
|
+
| `ExtensionManager` | `class` | Bundled/user extension management |
|
|
46
|
+
| `AgentSession` | `class` | Conversation lifecycle (re-exported from `@x-otto/runtime`) |
|
|
47
|
+
| `CodingSessionPool` | `class` | Session pool alias (re-exported from `@x-otto/runtime`) |
|
|
48
|
+
| `AgentJobService` | `class` | Background agent job lifecycle |
|
|
49
|
+
| `readSkillLoopStatus` | `function` | Skill loop status query (RFC-318) |
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
Full export surface is dominated by plugin lifecycle utilities (manifest parsing, discovery, panel compilation, module loading) — see `src/index.ts`.
|
|
52
|
+
|
|
53
|
+
## Directory Overview
|
|
51
54
|
|
|
52
55
|
```
|
|
53
56
|
src/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
index.ts # barrel export
|
|
58
|
+
types.ts # AppOptions / AppContext / StorageOptions
|
|
59
|
+
engine-main.ts # engine 独立进程入口 (RFC-091)
|
|
60
|
+
app/ # App composition root (app.ts / storage-wiring.ts / tool-callbacks.ts / sandbox-controller.ts / ...)
|
|
61
|
+
agent/ # declarative agents/teams + swarm runtime
|
|
62
|
+
session/ # session config resolution + task runner
|
|
63
|
+
hooks/ # coding business hooks (tool-guidance / lesson / skill-catalog / phase / session-learning)
|
|
64
|
+
input/ # sigil input system (builtin-resolvers / sigil-expand / sigil-resolver-registry)
|
|
65
|
+
plugin/ # plugin lifecycle / panel compiler / module loader / esbuild lifecycle
|
|
66
|
+
skill-loop/ # skill loop status (RFC-318)
|
|
67
|
+
feedback/ # pulse survey sink
|
|
68
|
+
vision/ # vision delegate service
|
|
69
|
+
tests/ # unit + e2e test suite (mirrors src/ modules)
|
|
67
70
|
```
|
|
68
71
|
|
|
69
|
-
##
|
|
72
|
+
## Development Commands
|
|
70
73
|
|
|
71
74
|
```bash
|
|
72
75
|
pnpm --filter @x-otto/coding build
|
|
@@ -74,6 +77,6 @@ pnpm --filter @x-otto/coding typecheck
|
|
|
74
77
|
pnpm --filter @x-otto/coding clean
|
|
75
78
|
```
|
|
76
79
|
|
|
77
|
-
##
|
|
80
|
+
## Related Packages
|
|
78
81
|
|
|
79
|
-
|
|
82
|
+
Depends on nearly all `@x-otto/*` subpackages as the top-level assembly point.
|