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.
Files changed (42) hide show
  1. package/dist/agent/coreHooks.d.ts +38 -0
  2. package/dist/agent/coreHooks.d.ts.map +1 -0
  3. package/dist/agent/createAgentCore.d.ts.map +1 -1
  4. package/dist/agent/duclawAgentConfig.d.ts.map +1 -1
  5. package/dist/agent/duclawCoreHooks.d.ts +5 -0
  6. package/dist/agent/duclawCoreHooks.d.ts.map +1 -0
  7. package/dist/agent/types.d.ts +2 -0
  8. package/dist/agent/types.d.ts.map +1 -1
  9. package/dist/bundle.js +11528 -11472
  10. package/dist/files/fileType.d.ts +2 -0
  11. package/dist/files/fileType.d.ts.map +1 -0
  12. package/dist/main.js +1 -1
  13. package/dist/sdk/core.d.ts +40 -0
  14. package/dist/sdk/core.d.ts.map +1 -0
  15. package/dist/sdk/core.js +40900 -0
  16. package/dist/sdk/createSdkAgent.d.ts +5 -0
  17. package/dist/sdk/createSdkAgent.d.ts.map +1 -0
  18. package/dist/sdk/duclaw.d.ts +23 -1
  19. package/dist/sdk/duclaw.d.ts.map +1 -1
  20. package/dist/sdk/duclaw.js +5958 -3894
  21. package/dist/sdk/duclawPreset.d.ts +21 -0
  22. package/dist/sdk/duclawPreset.d.ts.map +1 -0
  23. package/dist/sdk/index.d.ts +7 -24
  24. package/dist/sdk/index.d.ts.map +1 -1
  25. package/dist/sdk/index.js +6411 -40161
  26. package/dist/sdk/models/anthropic.d.ts +2 -0
  27. package/dist/sdk/models/anthropic.d.ts.map +1 -0
  28. package/dist/sdk/publicTypes.d.ts +33 -0
  29. package/dist/sdk/publicTypes.d.ts.map +1 -0
  30. package/dist/sdk/storage/memoryStorage.d.ts +3 -0
  31. package/dist/sdk/storage/memoryStorage.d.ts.map +1 -0
  32. package/dist/sdk/tool.d.ts +12 -0
  33. package/dist/sdk/tool.d.ts.map +1 -0
  34. package/dist/tools/Tool.d.ts +13 -7
  35. package/dist/tools/Tool.d.ts.map +1 -1
  36. package/dist/tools/tools/SendFile.d.ts +1 -1
  37. package/dist/tools/tools/SendFile.d.ts.map +1 -1
  38. package/dist/types/context.d.ts +1 -1
  39. package/dist/types/context.d.ts.map +1 -1
  40. package/dist/web/releases/macos/latest.json +8 -0
  41. package/dist/worker-main.js +1 -1
  42. 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"}
@@ -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, llmRequestIdForTurn, } from "../agent/createAgentCore";
8
- export type { Agent, AgentConfig, AgentResult, AbortSignal, } from "../agent/types";
9
- export { createBaseTools, createRuntimeEventBus, } from "../tools/baseTools";
10
- export { createToolExecutor, } from "../tools/ToolExecutor";
11
- export { createToolRegistry, getAllTools, registerTool, } from "../tools/ToolRegistry";
12
- export type { Tool } from "../tools/Tool";
13
- export type { ToolExecutor, } from "../tools/ToolExecutor";
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";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACH,WAAW,EACX,mBAAmB,GACtB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACR,KAAK,EACL,WAAW,EACX,WAAW,EACX,WAAW,GACd,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,eAAe,EACf,qBAAqB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,kBAAkB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,kBAAkB,EAClB,WAAW,EACX,YAAY,GACf,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,YAAY,EACR,YAAY,GACf,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACR,YAAY,GACf,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACR,gBAAgB,EAChB,cAAc,EACd,cAAc,GACjB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,eAAe,GAClB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,YAAY,EACR,qBAAqB,EACrB,cAAc,GACjB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACR,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,GAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACH,sBAAsB,GACzB,MAAM,yBAAyB,CAAC;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