loopengine 0.3.85 → 0.3.86

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.
@@ -1021,7 +1021,7 @@ ${consoleShellScript}
1021
1021
  return '<div class="wf-api">' +
1022
1022
  '<pre>POST ' + escapeHtml(apiUrl) + String.fromCharCode(10) + escapeHtml(example) + '</pre>' +
1023
1023
  '<p class="hint" style="margin:0">' + (paramNames.length ? '<code>params</code>: ' + paramNames.map(function (p) { return '<code>' + escapeHtml(p) + '</code>' + (w.parameters[p].required ? ' (required)' : '') + (w.parameters[p].description ? ', ' + escapeHtml(w.parameters[p].description) : ''); }).join('; ') + '. ' : 'It takes no params. ') +
1024
- 'Optional: <code>"wait": true</code> answers with the result once the run finishes; <code>"result_to_chat": true</code> sends the result to the messaging app; <code>"callback_url"</code> tells your app when the run stops for a decision, finishes or fails. Add <code>"decisions": "callback"</code> to send the run' + String.fromCharCode(8217) + 's approvals and questions to that address instead of the messaging app, and <code>"chat_notice"</code> to post a message to the messaging app when it starts (<code>{{input}}</code> is filled in). These override the workflow' + String.fromCharCode(8217) + 's Messages tab for that run. Without <code>wait</code>, you get the run' + String.fromCharCode(8217) + 's id back at once.</p>' +
1024
+ 'Optional: <code>"wait": true</code> answers with the result once the run finishes; without it you get the run' + String.fromCharCode(8217) + 's id back at once. Each run follows this workflow' + String.fromCharCode(8217) + 's <strong>Messages</strong> tab for where its updates, approvals and result go. An app can send its own <code>"callback_url"</code> (and <code>"decisions": "callback"</code>) to get this run' + String.fromCharCode(8217) + 's updates itself.</p>' +
1025
1025
  '</div>';
1026
1026
  }
1027
1027
 
@@ -1156,7 +1156,10 @@ ${consoleShellScript}
1156
1156
  var d = w.delivery || {};
1157
1157
  var chat = workflowChatAppName();
1158
1158
  var chatLabel = escapeHtml(chat || 'chat');
1159
- var decisionsLabel = escapeHtml(workflowChatName() || 'the messaging app');
1159
+ // With no messaging app, an unattended run's approvals are refused and
1160
+ // its questions go unanswered (adapters/http.ts, executeUnattendedRun).
1161
+ var decisionsLabel = workflowChatName() ? escapeHtml(workflowChatName())
1162
+ : 'The messaging app <span class="hint">(none set up: approvals are refused and questions go unanswered)</span>';
1160
1163
  var noChat = chat ? '' : ' disabled';
1161
1164
  var RSQ = String.fromCharCode(8217);
1162
1165
  var row = function (label, body) { return '<div class="wf-msg-row"><div class="wf-msg-k">' + label + '</div><div class="wf-msg-v">' + body + '</div></div>'; };
@@ -1650,7 +1653,6 @@ ${consoleShellScript}
1650
1653
  if (t.mapping) rules.push(Object.keys(t.mapping).map(function (p) { return escapeHtml(p) + ' ' + String.fromCharCode(8592) + ' ' + escapeHtml(t.mapping[p]); }).join(', '));
1651
1654
  if (t.payload_param) rules.push('the whole payload goes to ' + escapeHtml(t.payload_param));
1652
1655
  if (t.chat_notice) rules.push('posts a notice to the messaging app when it starts');
1653
- if (t.result_to_chat || t.notify) rules.push('<span class="workflow-option-value">Send result to messaging app</span>');
1654
1656
  if (t.callback_url) rules.push('sends run updates to ' + escapeHtml(t.callback_url));
1655
1657
  if (t.decisions_to === 'callback') rules.push('approvals and questions go there too, not to the messaging app');
1656
1658
  // Made by the workflow planner without its secret: it turns on once
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loopengine",
3
- "version": "0.3.85",
3
+ "version": "0.3.86",
4
4
  "type": "module",
5
5
  "description": "Runtime for tool-using AI agents with a transparent ReAct loop.",
6
6
  "license": "MIT",