@rowan-agent/agent 0.4.10 → 0.4.11
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 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -0
- package/package.json +3 -5
- package/dist/index.cjs +0 -4474
- package/dist/index.d.cts +0 -1844
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
Agent,
|
|
16
16
|
createMessage,
|
|
17
17
|
createCoreTools,
|
|
18
|
-
|
|
18
|
+
createDispatchStream,
|
|
19
19
|
} from "@rowan-agent/agent";
|
|
20
20
|
|
|
21
21
|
const agent = new Agent({
|
|
@@ -25,8 +25,8 @@ const agent = new Agent({
|
|
|
25
25
|
tools: createCoreTools({ root: process.cwd() }),
|
|
26
26
|
skills: [],
|
|
27
27
|
},
|
|
28
|
-
model: { provider: "openai",
|
|
29
|
-
stream,
|
|
28
|
+
model: { provider: "openai", id: "gpt-4.1-mini" },
|
|
29
|
+
stream: createDispatchStream(),
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
agent.subscribe((event) => console.log(event.type));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _rowan_agent_models from '@rowan-agent/models';
|
|
2
2
|
import { LlmRequest, LlmResponse, LlmModelRef, LlmModelUsage, StreamFn, AgentEventListener, ToolCall, ToolResult, AgentMessage, Outcome, Skill as Skill$1, ContentBlock, ProviderConfig, Protocol, ModelCost, AgentEvent, LlmMessage } from '@rowan-agent/models';
|
|
3
|
-
export { AgentEvent, AgentEventListener, AgentMessage, LlmModelRef, Outcome, Skill, StreamFn, ToolResult } from '@rowan-agent/models';
|
|
3
|
+
export { AgentEvent, AgentEventListener, AgentMessage, LlmModelRef, Outcome, Skill, StreamFn, ToolResult, createDispatchStream, registerBuiltInApiProviders } from '@rowan-agent/models';
|
|
4
4
|
import Type from 'typebox';
|
|
5
5
|
|
|
6
6
|
type ExecutionTurn = {
|
package/dist/index.js
CHANGED
|
@@ -3687,6 +3687,12 @@ async function discoverAndLoadExtensions(cwd) {
|
|
|
3687
3687
|
const paths = await discoverExtensionsInDir(extensionsDir);
|
|
3688
3688
|
return loadExtensions(paths, cwd);
|
|
3689
3689
|
}
|
|
3690
|
+
|
|
3691
|
+
// src/index.ts
|
|
3692
|
+
import {
|
|
3693
|
+
createDispatchStream,
|
|
3694
|
+
registerBuiltInApiProviders
|
|
3695
|
+
} from "@rowan-agent/models";
|
|
3690
3696
|
export {
|
|
3691
3697
|
Agent,
|
|
3692
3698
|
AgentEventStream,
|
|
@@ -3699,6 +3705,7 @@ export {
|
|
|
3699
3705
|
buildSystemPrompt,
|
|
3700
3706
|
conversationMessages,
|
|
3701
3707
|
createCoreTools,
|
|
3708
|
+
createDispatchStream,
|
|
3702
3709
|
createEventBus,
|
|
3703
3710
|
createExtension,
|
|
3704
3711
|
createExtensionAPI,
|
|
@@ -3721,6 +3728,7 @@ export {
|
|
|
3721
3728
|
loadSkills,
|
|
3722
3729
|
messageContentText,
|
|
3723
3730
|
parseModelRef,
|
|
3731
|
+
registerBuiltInApiProviders,
|
|
3724
3732
|
registerConfigModels,
|
|
3725
3733
|
resetGlobalHooks,
|
|
3726
3734
|
resolveDefaultModel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowan-agent/agent",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,14 +8,12 @@
|
|
|
8
8
|
"directory": "packages/agent"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"main": "./dist/index.cjs",
|
|
12
11
|
"module": "./dist/index.js",
|
|
13
12
|
"types": "./dist/index.d.ts",
|
|
14
13
|
"exports": {
|
|
15
14
|
".": {
|
|
16
15
|
"types": "./dist/index.d.ts",
|
|
17
|
-
"import": "./dist/index.js"
|
|
18
|
-
"require": "./dist/index.cjs"
|
|
16
|
+
"import": "./dist/index.js"
|
|
19
17
|
}
|
|
20
18
|
},
|
|
21
19
|
"files": [
|
|
@@ -25,7 +23,7 @@
|
|
|
25
23
|
"build": "tsup"
|
|
26
24
|
},
|
|
27
25
|
"dependencies": {
|
|
28
|
-
"@rowan-agent/models": "0.4.
|
|
26
|
+
"@rowan-agent/models": "0.4.11",
|
|
29
27
|
"jiti": "2.7.0",
|
|
30
28
|
"typebox": "^1.0.0",
|
|
31
29
|
"yaml": "^2.7.0"
|