@csdwd/ai-teams-agent 0.3.7 → 0.3.9

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/index.js +5 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -594,7 +594,7 @@ function handleClaudeJsonLine(taskId, line, findActiveTask2, emitOutput2) {
594
594
  task.sawStreamText = true;
595
595
  task.summary.push(event.delta.text);
596
596
  }
597
- emitOutput2(taskId, "stdout", event.delta.text);
597
+ emitOutput2(taskId, "stdout", event.delta.text, true);
598
598
  }
599
599
  return;
600
600
  }
@@ -1099,7 +1099,7 @@ function slotForTargetMode(mode) {
1099
1099
  function send2(payload) {
1100
1100
  send(connState, payload);
1101
1101
  }
1102
- function emitOutput(taskId, stream, content) {
1102
+ function emitOutput(taskId, stream, content, delta = false) {
1103
1103
  const task = findActiveTask(taskId);
1104
1104
  if (!task || !content) return;
1105
1105
  task.seq += 1;
@@ -1108,7 +1108,8 @@ function emitOutput(taskId, stream, content) {
1108
1108
  taskId,
1109
1109
  stream,
1110
1110
  seq: task.seq,
1111
- content
1111
+ content,
1112
+ ...delta ? { delta: true } : {}
1112
1113
  });
1113
1114
  }
1114
1115
  function emitStderr(taskId, content) {
@@ -1285,7 +1286,7 @@ if (isCli) {
1285
1286
  getArgValue2 = getArgValue, resolveWorkspace3 = resolveWorkspace2, resolveAgentDir2 = resolveAgentDir, resolvePidFile2 = resolvePidFile, resolveLogDir2 = resolveLogDir, applyCliArgsToEnv2 = applyCliArgsToEnv;
1286
1287
  const args = process.argv.slice(2);
1287
1288
  if (args.includes("--version") || args.includes("-v")) {
1288
- console.log("0.3.7");
1289
+ console.log("0.3.9");
1289
1290
  process.exit(0);
1290
1291
  }
1291
1292
  if (args.includes("--help") || args.includes("-h")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csdwd/ai-teams-agent",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "AI Teams agent — connects to server via WebSocket, spawns Claude CLI to execute tasks",
5
5
  "type": "module",
6
6
  "bin": {