@moldea.ai/adapter-eve 3.0.2 → 3.0.3
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 +3 -1
- package/docs/binding-example.md +199 -0
- package/docs/index.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ const core = createCore({ adapters: [eveAdapter] });
|
|
|
19
19
|
|
|
20
20
|
## Verified target
|
|
21
21
|
|
|
22
|
-
Version `3.0.
|
|
22
|
+
Version `3.0.3` supports Repository Format `1`, `@moldea.ai/core ^4.0.0`, and direct TypeScript Eve filesystem agents whose declared Eve range intersects `eve >=0.39.1`. Eve `0.39.1` is the verified minimum. Later stable releases are eligible for deterministic inspection on a best-effort basis and must still match the documented source patterns. Qualification evidence records the exact package versions and date used for each execution. The target recognizes:
|
|
23
23
|
|
|
24
24
|
- flat and nested root `agent.ts` definitions
|
|
25
25
|
- recursive directory-backed local subagents
|
|
@@ -36,6 +36,8 @@ The package exports only `eveAdapter`. It has no default export, configuration f
|
|
|
36
36
|
|
|
37
37
|
## Documentation
|
|
38
38
|
|
|
39
|
+
- [Complete binding example](docs/binding-example.md): manifest, canonical instructions, runtime source, and supported schema or routing relationships.
|
|
40
|
+
|
|
39
41
|
These guides are included in the installed package. Open only the page relevant to your task.
|
|
40
42
|
|
|
41
43
|
- [Package overview](docs/index.md)
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Binding example
|
|
3
|
+
description: Complete manifest and source files for inspecting eve bindings locally.
|
|
4
|
+
order: 5
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Binding example
|
|
8
|
+
|
|
9
|
+
Read this example before searching adapter implementation for binding syntax. It is a complete **static inspection** file set, not a deployment starter or a live provider test. The files are checked together through this adapter and Core without installing or executing the target SDK. Keep application setup, credentials, provider model access, tool execution, and deployment configuration separate.
|
|
10
|
+
|
|
11
|
+
## How the bindings connect
|
|
12
|
+
|
|
13
|
+
Use `symbol: default` for directly default-exported Eve agents and tools. The `instructionLoader` points to the exact `instructions.md` path without a symbol; `mirrors` makes that file an exact copy of the owner's canonical instruction. `outputSchema` binds the exported schema used by `defineAgent`. A subagent's static `description` must match its canonical `handoff-description.md` (or canonical description when no handoff description exists). Register the child agent itself, not a synthetic handoff tool. Do not attach package or compiler files to every agent mechanically.
|
|
14
|
+
|
|
15
|
+
Paths below are repository-root-relative logical paths. Keep the canonical instructions as the policy source. General manifest semantics belong to the [Repository Format specification](https://packages.moldea.ai/repository-format/). Use the other local guides for the full supported boundary and limitations; this example does not expand them.
|
|
16
|
+
|
|
17
|
+
## Files
|
|
18
|
+
|
|
19
|
+
<!-- example:start -->
|
|
20
|
+
|
|
21
|
+
### /moldea/moldea.yaml
|
|
22
|
+
|
|
23
|
+
```yaml
|
|
24
|
+
version: 1
|
|
25
|
+
agents:
|
|
26
|
+
support:
|
|
27
|
+
runtime:
|
|
28
|
+
id: 'eve'
|
|
29
|
+
bindings:
|
|
30
|
+
runtimeAgent:
|
|
31
|
+
path: '/agent/agent.ts'
|
|
32
|
+
symbol: 'default'
|
|
33
|
+
instructionLoader:
|
|
34
|
+
path: '/agent/instructions.md'
|
|
35
|
+
outputSchema:
|
|
36
|
+
path: '/agent/contracts.ts'
|
|
37
|
+
symbol: 'SupportOutputSchema'
|
|
38
|
+
tools:
|
|
39
|
+
search:
|
|
40
|
+
name: 'search'
|
|
41
|
+
description: 'Searches the knowledge base.'
|
|
42
|
+
implementation:
|
|
43
|
+
path: '/agent/implementations.ts'
|
|
44
|
+
symbol: 'searchKnowledge'
|
|
45
|
+
registration:
|
|
46
|
+
path: '/agent/tools/search.ts'
|
|
47
|
+
symbol: 'default'
|
|
48
|
+
inputSchema:
|
|
49
|
+
path: '/agent/contracts.ts'
|
|
50
|
+
symbol: 'SearchInputSchema'
|
|
51
|
+
outputSchema:
|
|
52
|
+
path: '/agent/contracts.ts'
|
|
53
|
+
symbol: 'SearchOutputSchema'
|
|
54
|
+
mirrors:
|
|
55
|
+
- '/agent/instructions.md'
|
|
56
|
+
summary:
|
|
57
|
+
runtime:
|
|
58
|
+
id: 'eve'
|
|
59
|
+
bindings:
|
|
60
|
+
runtimeAgent:
|
|
61
|
+
path: '/agent/subagents/summary/agent.ts'
|
|
62
|
+
symbol: 'default'
|
|
63
|
+
instructionLoader:
|
|
64
|
+
path: '/agent/subagents/summary/instructions.md'
|
|
65
|
+
mirrors:
|
|
66
|
+
- '/agent/subagents/summary/instructions.md'
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### /package.json
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"name": "binding-example",
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"eve": "^0.39.1",
|
|
76
|
+
"zod": "4.6.4"
|
|
77
|
+
},
|
|
78
|
+
"private": true,
|
|
79
|
+
"type": "module"
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### /moldea/project.md
|
|
84
|
+
|
|
85
|
+
```markdown
|
|
86
|
+
# Fixture project
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### /moldea/agents/support/description.md
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
Supports customers.
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### /moldea/agents/support/instruction.md
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
You are the `support` agent.
|
|
99
|
+
|
|
100
|
+
Answer from supplied support facts. Do not invent order status or account information.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### /moldea/agents/summary/description.md
|
|
104
|
+
|
|
105
|
+
```markdown
|
|
106
|
+
Summarizes support requests.
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### /moldea/agents/summary/handoff-description.md
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
Summarizes a support request.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### /moldea/agents/summary/instruction.md
|
|
116
|
+
|
|
117
|
+
```markdown
|
|
118
|
+
You are the `summary` agent.
|
|
119
|
+
|
|
120
|
+
Summarize the supplied support request without inventing facts.
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### /agent/agent.ts
|
|
124
|
+
|
|
125
|
+
```typescript
|
|
126
|
+
import { defineAgent } from 'eve';
|
|
127
|
+
import { SupportOutputSchema } from './contracts.js';
|
|
128
|
+
|
|
129
|
+
export default defineAgent({ model: 'openai/gpt-5', outputSchema: SupportOutputSchema });
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### /agent/contracts.ts
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import { z } from 'zod';
|
|
136
|
+
|
|
137
|
+
// response and tool contracts
|
|
138
|
+
export const SupportOutputSchema = z.object({ answer: z.string() });
|
|
139
|
+
export const SearchInputSchema = z.object({ query: z.string() });
|
|
140
|
+
export const SearchOutputSchema = z.object({ matches: z.array(z.string()) });
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### /agent/implementations.ts
|
|
144
|
+
|
|
145
|
+
```typescript
|
|
146
|
+
/** Searches this example's small local knowledge base. */
|
|
147
|
+
export const searchKnowledge = async ({ query }: { query: string }) => ({
|
|
148
|
+
matches: ['Returns are accepted within 30 days.'].filter((entry) =>
|
|
149
|
+
entry.toLowerCase().includes(query.toLowerCase()),
|
|
150
|
+
),
|
|
151
|
+
});
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### /agent/tools/search.ts
|
|
155
|
+
|
|
156
|
+
```typescript
|
|
157
|
+
import { defineTool } from 'eve/tools';
|
|
158
|
+
import { SearchInputSchema, SearchOutputSchema } from '../contracts.js';
|
|
159
|
+
import { searchKnowledge } from '../implementations.js';
|
|
160
|
+
export default defineTool({
|
|
161
|
+
description: 'Searches the knowledge base.',
|
|
162
|
+
inputSchema: SearchInputSchema,
|
|
163
|
+
outputSchema: SearchOutputSchema,
|
|
164
|
+
execute: searchKnowledge,
|
|
165
|
+
});
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### /agent/subagents/summary/agent.ts
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
import { defineAgent } from 'eve';
|
|
172
|
+
|
|
173
|
+
export default defineAgent({
|
|
174
|
+
description: 'Summarizes a support request.',
|
|
175
|
+
model: 'openai/gpt-5',
|
|
176
|
+
});
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### /agent/instructions.md
|
|
180
|
+
|
|
181
|
+
```markdown
|
|
182
|
+
You are the `support` agent.
|
|
183
|
+
|
|
184
|
+
Answer from supplied support facts. Do not invent order status or account information.
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### /agent/subagents/summary/instructions.md
|
|
188
|
+
|
|
189
|
+
```markdown
|
|
190
|
+
You are the `summary` agent.
|
|
191
|
+
|
|
192
|
+
Summarize the supplied support request without inventing facts.
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
<!-- example:end -->
|
|
196
|
+
|
|
197
|
+
## What the check establishes
|
|
198
|
+
|
|
199
|
+
The integration check reads these exact file blocks, requires positive adapter evidence for the documented relationships, and rejects a broken runtime binding. It does not prove that instructions are followed, that every SDK version accepts these forms, or that the application is ready for production. Continue using the installed adapter diagnostics for your actual source.
|
package/docs/index.md
CHANGED
|
@@ -11,3 +11,5 @@ order: 1
|
|
|
11
11
|
The adapter begins at each declared runtime-agent path, finds its nearest owning package, validates the exact Eve layout, and returns immutable evidence and stable diagnostics through Core. It neither executes the application nor treats package presence as proof of an agent definition.
|
|
12
12
|
|
|
13
13
|
The package exports only `eveAdapter`. The generated API reference derives that surface from the package export.
|
|
14
|
+
|
|
15
|
+
Start with the [complete binding example](https://packages.moldea.ai/adapters/eve/binding-example/) when connecting runtime source to canonical instructions, schemas, tools, or routing metadata. The same example ships locally as `docs/binding-example.md` in the installed package.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moldea.ai/adapter-eve",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Deterministic runtime evidence and diagnostics for Eve filesystem agents.",
|
|
5
5
|
"homepage": "https://github.com/moldea-ai/packages/tree/main/projects/adapter-eve#readme",
|
|
6
6
|
"bugs": {
|