duclaw-cli 2.0.0 → 3.0.1
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/dist/agent/coreHooks.d.ts +38 -0
- package/dist/agent/coreHooks.d.ts.map +1 -0
- package/dist/agent/createAgentCore.d.ts.map +1 -1
- package/dist/agent/duclawAgentConfig.d.ts.map +1 -1
- package/dist/agent/duclawCoreHooks.d.ts +5 -0
- package/dist/agent/duclawCoreHooks.d.ts.map +1 -0
- package/dist/agent/types.d.ts +2 -0
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/bundle.js +11528 -11472
- package/dist/files/fileType.d.ts +2 -0
- package/dist/files/fileType.d.ts.map +1 -0
- package/dist/main.js +1 -1
- package/dist/sdk/core.d.ts +40 -0
- package/dist/sdk/core.d.ts.map +1 -0
- package/dist/sdk/core.js +40900 -0
- package/dist/sdk/createSdkAgent.d.ts +5 -0
- package/dist/sdk/createSdkAgent.d.ts.map +1 -0
- package/dist/sdk/duclaw.d.ts +23 -1
- package/dist/sdk/duclaw.d.ts.map +1 -1
- package/dist/sdk/duclaw.js +5958 -3894
- package/dist/sdk/duclawPreset.d.ts +21 -0
- package/dist/sdk/duclawPreset.d.ts.map +1 -0
- package/dist/sdk/index.d.ts +7 -24
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +6411 -40161
- package/dist/sdk/models/anthropic.d.ts +2 -0
- package/dist/sdk/models/anthropic.d.ts.map +1 -0
- package/dist/sdk/publicTypes.d.ts +33 -0
- package/dist/sdk/publicTypes.d.ts.map +1 -0
- package/dist/sdk/storage/memoryStorage.d.ts +3 -0
- package/dist/sdk/storage/memoryStorage.d.ts.map +1 -0
- package/dist/sdk/tool.d.ts +12 -0
- package/dist/sdk/tool.d.ts.map +1 -0
- package/dist/tools/Tool.d.ts +13 -7
- package/dist/tools/Tool.d.ts.map +1 -1
- package/dist/tools/tools/SendFile.d.ts +1 -1
- package/dist/tools/tools/SendFile.d.ts.map +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/context.d.ts.map +1 -1
- package/dist/web/releases/macos/latest.json +8 -0
- package/dist/worker-main.js +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AgentConfig } from "../agent/types";
|
|
2
|
+
export type DuclawPreset = {
|
|
3
|
+
system: string;
|
|
4
|
+
storage: AgentConfig["storage"];
|
|
5
|
+
tools: AgentConfig["tools"];
|
|
6
|
+
toolExecutor: NonNullable<AgentConfig["toolExecutor"]>;
|
|
7
|
+
maxIterations?: AgentConfig["maxIterations"];
|
|
8
|
+
channelPlugin?: AgentConfig["channelPlugin"];
|
|
9
|
+
workspacePath?: AgentConfig["workspacePath"];
|
|
10
|
+
topicStorage?: AgentConfig["topicStorage"];
|
|
11
|
+
compactSummaryStorage?: AgentConfig["compactSummaryStorage"];
|
|
12
|
+
recallIndexStorage?: AgentConfig["recallIndexStorage"];
|
|
13
|
+
backgroundManager?: AgentConfig["backgroundManager"];
|
|
14
|
+
dreamEngine?: AgentConfig["dreamEngine"];
|
|
15
|
+
skillForgeEngine?: AgentConfig["skillForgeEngine"];
|
|
16
|
+
memoryEngine?: AgentConfig["memoryEngine"];
|
|
17
|
+
tracer?: AgentConfig["tracer"];
|
|
18
|
+
hooks?: AgentConfig["hooks"];
|
|
19
|
+
};
|
|
20
|
+
export declare const duclawPreset: () => DuclawPreset;
|
|
21
|
+
//# sourceMappingURL=duclawPreset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duclawPreset.d.ts","sourceRoot":"","sources":["../../src/sdk/duclawPreset.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,YAAY,EAAE,WAAW,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC;IACvD,aAAa,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IAC7C,aAAa,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IAC7C,aAAa,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IAC7C,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IAC3C,qBAAqB,CAAC,EAAE,WAAW,CAAC,uBAAuB,CAAC,CAAC;IAC7D,kBAAkB,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IACvD,iBAAiB,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,YAwB/B,CAAC"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -4,34 +4,17 @@
|
|
|
4
4
|
* Keep this file free of CLI/server startup side effects. Export contracts,
|
|
5
5
|
* factories, and opt-in presets that SDK consumers can compose themselves.
|
|
6
6
|
*/
|
|
7
|
-
export { createAgent,
|
|
8
|
-
export
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export type {
|
|
13
|
-
export type {
|
|
14
|
-
export type { ToolRegistry, } from "../tools/ToolRegistry";
|
|
15
|
-
export type { ToolHookDecision, ToolHookPlugin, ToolUseContext, } from "../runtime/toolHooks";
|
|
16
|
-
export type { RuntimeEventBus, RuntimeEvent, RuntimeEventType, } from "../runtime/events";
|
|
17
|
-
export { createChannelRegistry, getAllChannels, getChannel, registerChannel, } from "../channels/ChannelRegistry";
|
|
18
|
-
export type { ChannelPlugin } from "../channels/ChannelPlugin";
|
|
19
|
-
export type { ChannelRegistry } from "../channels/ChannelRegistry";
|
|
20
|
-
export type { ChannelMeta } from "../channels/ChannelMeta";
|
|
21
|
-
export type { ChannelConfigAdapter } from "../channels/ChannelConfigAdapter";
|
|
22
|
-
export type { ChannelGatewayAdapter, GatewayContext, } from "../channels/ChannelGatewayAdapter";
|
|
23
|
-
export type { ChannelOutboundAdapter, FileOutboundContext, OutboundContext, } from "../channels/ChannelOutboundAdapter";
|
|
24
|
-
export { createAnthropicAdapter, } from "../llm/AnthropicAdapter";
|
|
7
|
+
export { createAgent, } from "./createSdkAgent";
|
|
8
|
+
export { tool } from "./tool";
|
|
9
|
+
export { anthropic } from "./models/anthropic";
|
|
10
|
+
export { memoryStorage } from "./storage/memoryStorage";
|
|
11
|
+
export type { SdkAgent, SdkAgentConfig, SdkContext, SdkModel, SdkRunInput, SdkRunResult, SdkStorage, SdkTool, } from "./publicTypes";
|
|
12
|
+
export type { Agent, AgentResult, AbortSignal, } from "../agent/types";
|
|
13
|
+
export type { JSONSchema, PropertySchema, Tool, } from "../tools/Tool";
|
|
25
14
|
export type { AnthropicOptions } from "../llm/AnthropicAdapter";
|
|
26
15
|
export type { LLMClient } from "../llm/LLMClient";
|
|
27
16
|
export type { LLMMessage, LLMResponse, } from "../llm/types";
|
|
28
|
-
export { createRuntimeStorage, isFileBackedRuntime, } from "../storage/runtimeStorage";
|
|
29
|
-
export type { RuntimeStorageOptions } from "../storage/runtimeStorage";
|
|
30
17
|
export type { Storage } from "../storage/Storage";
|
|
31
|
-
export { MemoryEngine, } from "../memory";
|
|
32
|
-
export type { Memory, MemoryEngineDeps, } from "../memory";
|
|
33
|
-
export { CompactEngine, } from "../compact/CompactEngine";
|
|
34
|
-
export type { CompactSummaryRecord, } from "../compact/types";
|
|
35
18
|
export type { ContentBlock, ImageBlock, TextBlock, ThinkingBlock, ToolResultBlock, ToolUseBlock, } from "../types/content";
|
|
36
19
|
export type { AssistantMessage, Message, SystemMessage, UserMessage, } from "../types/message";
|
|
37
20
|
export type { AgentResponse, UserRequest, } from "../types/request";
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACH,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACH,WAAW,GACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,YAAY,EACR,QAAQ,EACR,cAAc,EACd,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,UAAU,EACV,OAAO,GACV,MAAM,eAAe,CAAC;AAEvB,YAAY,EACR,KAAK,EACL,WAAW,EACX,WAAW,GACd,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACR,UAAU,EACV,cAAc,EACd,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACR,UAAU,EACV,WAAW,GACd,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,YAAY,EACR,YAAY,EACZ,UAAU,EACV,SAAS,EACT,aAAa,EACb,eAAe,EACf,YAAY,GACf,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACR,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,WAAW,GACd,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACR,aAAa,EACb,WAAW,GACd,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACR,YAAY,GACf,MAAM,kBAAkB,CAAC"}
|