@link-assistant/agent 0.8.16 → 0.8.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@link-assistant/agent",
3
- "version": "0.8.16",
3
+ "version": "0.8.17",
4
4
  "description": "A minimal, public domain AI CLI agent compatible with OpenCode's JSON interface. Bun-only runtime.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -70,7 +70,7 @@ export function createBusEventSubscription({
70
70
  });
71
71
 
72
72
  // If tool failed, also output an error event
73
- if (part.state?.status === 'failed') {
73
+ if (part.state?.status === 'error') {
74
74
  eventHandler.output({
75
75
  type: 'error',
76
76
  timestamp: Date.now(),
@@ -188,7 +188,7 @@ export namespace SessionProcessor {
188
188
  await Session.updatePart({
189
189
  ...match,
190
190
  state: {
191
- status: 'failed',
191
+ status: 'error',
192
192
  input: value.input,
193
193
  error: (value.error as any).toString(),
194
194
  metadata: undefined,
@@ -377,13 +377,13 @@ export namespace SessionProcessor {
377
377
  if (
378
378
  part.type === 'tool' &&
379
379
  part.state.status !== 'completed' &&
380
- part.state.status !== 'failed'
380
+ part.state.status !== 'error'
381
381
  ) {
382
382
  await Session.updatePart({
383
383
  ...part,
384
384
  state: {
385
385
  ...part.state,
386
- status: 'failed',
386
+ status: 'error',
387
387
  error: 'Tool execution aborted',
388
388
  time: {
389
389
  start: Date.now(),