@sweny-ai/core 0.1.122 → 0.1.123

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 (2) hide show
  1. package/dist/claude.js +4 -0
  2. package/package.json +2 -2
package/dist/claude.js CHANGED
@@ -127,6 +127,10 @@ export function makeAbort(timeoutMs, signal) {
127
127
  * Swallows errors: the stream may already be done, and interrupt is only
128
128
  * supported in streaming-input mode.
129
129
  */
130
+ // The return type is deliberately `Promise<unknown>`, not `Promise<void>`:
131
+ // agent-sdk 0.3 changed `Query.interrupt()` to resolve with an
132
+ // SDKControlInterruptResponse. We discard the value either way, and a `void`
133
+ // parameter type would reject any SDK that resolves with something.
130
134
  async function interruptStream(stream) {
131
135
  if (!stream || typeof stream.interrupt !== "function")
132
136
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.122",
3
+ "version": "0.1.123",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"
@@ -57,7 +57,7 @@
57
57
  "check:schema-drift": "node scripts/write-public-schema.mjs && git diff --exit-code -- ../../spec/public/schemas/workflow.json ../../spec/public/schemas/skill.json"
58
58
  },
59
59
  "dependencies": {
60
- "@anthropic-ai/claude-agent-sdk": "^0.2.114",
60
+ "@anthropic-ai/claude-agent-sdk": "^0.3.220",
61
61
  "@clack/prompts": "^1.7.0",
62
62
  "chalk": "^5",
63
63
  "commander": "^13",