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,40 @@
1
+ /**
2
+ * Low-level SDK core entrypoint.
3
+ *
4
+ * Use this subpath when building custom runtime composition around the core
5
+ * agent loop. Most application developers should start with `duclaw-cli/sdk`.
6
+ */
7
+ export { createCoreAgent, llmRequestIdForTurn, } from "./createSdkAgent";
8
+ export type { Agent, AgentConfig, AgentResult, AbortSignal, } from "../agent/types";
9
+ export type { CoreRequestHooks, CoreTraceIdentity, } from "../agent/coreHooks";
10
+ export { createBaseTools, createRuntimeEventBus, } from "../tools/baseTools";
11
+ export { createToolExecutor, } from "../tools/ToolExecutor";
12
+ export { createToolRegistry, getAllTools, registerTool, } from "../tools/ToolRegistry";
13
+ export type { Tool } from "../tools/Tool";
14
+ export type { ToolExecutor, } from "../tools/ToolExecutor";
15
+ export type { ToolRegistry, } from "../tools/ToolRegistry";
16
+ export type { ToolHookDecision, ToolHookPlugin, ToolUseContext, } from "../runtime/toolHooks";
17
+ export type { RuntimeEventBus, RuntimeEvent, RuntimeEventType, } from "../runtime/events";
18
+ export { createChannelRegistry, getAllChannels, getChannel, registerChannel, } from "../channels/ChannelRegistry";
19
+ export type { ChannelPlugin } from "../channels/ChannelPlugin";
20
+ export type { ChannelRegistry } from "../channels/ChannelRegistry";
21
+ export type { ChannelMeta } from "../channels/ChannelMeta";
22
+ export type { ChannelConfigAdapter } from "../channels/ChannelConfigAdapter";
23
+ export type { ChannelGatewayAdapter, GatewayContext, } from "../channels/ChannelGatewayAdapter";
24
+ export type { ChannelOutboundAdapter, FileOutboundContext, OutboundContext, } from "../channels/ChannelOutboundAdapter";
25
+ export { createAnthropicAdapter, } from "../llm/AnthropicAdapter";
26
+ export type { AnthropicOptions } from "../llm/AnthropicAdapter";
27
+ export type { LLMClient } from "../llm/LLMClient";
28
+ export type { LLMMessage, LLMResponse, } from "../llm/types";
29
+ export { createRuntimeStorage, isFileBackedRuntime, } from "../storage/runtimeStorage";
30
+ export type { RuntimeStorageOptions } from "../storage/runtimeStorage";
31
+ export type { Storage } from "../storage/Storage";
32
+ export { MemoryEngine, } from "../memory";
33
+ export type { Memory, MemoryEngineDeps, } from "../memory";
34
+ export { CompactEngine, } from "../compact/CompactEngine";
35
+ export type { CompactSummaryRecord, } from "../compact/types";
36
+ export type { ContentBlock, ImageBlock, TextBlock, ThinkingBlock, ToolResultBlock, ToolUseBlock, } from "../types/content";
37
+ export type { AssistantMessage, Message, SystemMessage, UserMessage, } from "../types/message";
38
+ export type { AgentResponse, UserRequest, } from "../types/request";
39
+ export type { AgentContext, } from "../types/context";
40
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/sdk/core.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACH,eAAe,EACf,mBAAmB,GACtB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACR,KAAK,EACL,WAAW,EACX,WAAW,EACX,WAAW,GACd,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACR,gBAAgB,EAChB,iBAAiB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,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,MAA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