astrocode-workflow 0.4.4 → 0.4.5
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.
|
@@ -103,7 +103,7 @@ export function createInjectProvider(opts) {
|
|
|
103
103
|
continue;
|
|
104
104
|
}
|
|
105
105
|
// Format as injection message
|
|
106
|
-
const formattedText =
|
|
106
|
+
const formattedText = `### 🔖 ASTROCODE: INJECTED NOTE\n**Title:** ${inject.title}\n\n${inject.body_md}`;
|
|
107
107
|
try {
|
|
108
108
|
await injectChatPrompt({
|
|
109
109
|
ctx,
|
|
@@ -170,6 +170,8 @@ export function createInjectProvider(opts) {
|
|
|
170
170
|
return;
|
|
171
171
|
// Inject eligible injects before processing the user's message
|
|
172
172
|
await injectEligibleInjects(input.sessionID, 'chat_message');
|
|
173
|
+
// Also inject Workflow Pulse on chat messages if a run is active
|
|
174
|
+
await maybeInjectWorkflowPulse(input.sessionID);
|
|
173
175
|
},
|
|
174
176
|
async onToolAfter(input) {
|
|
175
177
|
if (!config.inject?.enabled)
|
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@ export function createInjectProvider(opts: {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
// Format as injection message
|
|
148
|
-
const formattedText =
|
|
148
|
+
const formattedText = `### 🔖 ASTROCODE: INJECTED NOTE\n**Title:** ${inject.title}\n\n${inject.body_md}`;
|
|
149
149
|
|
|
150
150
|
try {
|
|
151
151
|
await injectChatPrompt({
|
|
@@ -219,6 +219,9 @@ export function createInjectProvider(opts: {
|
|
|
219
219
|
|
|
220
220
|
// Inject eligible injects before processing the user's message
|
|
221
221
|
await injectEligibleInjects(input.sessionID, 'chat_message');
|
|
222
|
+
|
|
223
|
+
// Also inject Workflow Pulse on chat messages if a run is active
|
|
224
|
+
await maybeInjectWorkflowPulse(input.sessionID);
|
|
222
225
|
},
|
|
223
226
|
|
|
224
227
|
async onToolAfter(input: ToolExecuteAfterInput) {
|