norns-sdk 0.3.0 → 0.4.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to `norns-sdk` are documented in this file.
4
4
 
5
+ ## [0.4.0] - 2026-10-23
6
+
7
+ ### Changed
8
+ - `mode` is no longer sent on agent registration and is deprecated on
9
+ `defineAgent()`. Norns never read it: a conversation starts from a
10
+ `conversationKey` on the message, not from the definition.
11
+
5
12
  ## [0.3.0] - 2026-10-22
6
13
 
7
14
  ### Added
package/README.md CHANGED
@@ -44,7 +44,6 @@ const supportBot = defineAgent({
44
44
  model: "claude-sonnet-5",
45
45
  systemPrompt: "You are a customer support agent. Look up docs and help customers.",
46
46
  tools: [searchDocs, sendEmail],
47
- mode: "conversation",
48
47
  });
49
48
 
50
49
  const worker = new NornsWorker({ agents: [supportBot] });
@@ -208,7 +207,6 @@ const agent = defineAgent({
208
207
  model: "claude-sonnet-5",
209
208
  systemPrompt: "You are helpful.",
210
209
  tools: [search, sendEmail],
211
- mode: "conversation", // "task" or "conversation"
212
210
  checkpointPolicy: "on_tool_call", // "every_step", "on_tool_call", "manual"
213
211
  contextWindow: 20,
214
212
  maxSteps: 50,
package/dist/index.cjs CHANGED
@@ -75,7 +75,6 @@ function defineAgent(options) {
75
75
  model: options.model ?? DEFAULT_MODEL,
76
76
  systemPrompt: options.systemPrompt ?? "",
77
77
  tools: Object.freeze([...tools]),
78
- mode: options.mode ?? "task",
79
78
  checkpointPolicy: options.checkpointPolicy ?? "on_tool_call",
80
79
  contextStrategy: options.contextStrategy ?? "sliding_window",
81
80
  contextWindow: options.contextWindow ?? 20,
@@ -90,7 +89,6 @@ function defineAgent(options) {
90
89
  }
91
90
  function agentBody(agent) {
92
91
  const modelConfig = {
93
- mode: agent.mode,
94
92
  checkpoint_policy: agent.checkpointPolicy,
95
93
  context_strategy: agent.contextStrategy,
96
94
  context_window: agent.contextWindow,