wogiflow 2.0.1 → 2.1.1

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.
@@ -251,6 +251,19 @@ async function handleTaskCompleted(input) {
251
251
  } catch (_err) {
252
252
  // Non-critical - registry manager may not be available
253
253
  }
254
+ // Check pending queue — notify user if items are waiting
255
+ try {
256
+ const { getPendingCount } = require('../../flow-pending');
257
+ const pendingCount = getPendingCount();
258
+ if (pendingCount > 0) {
259
+ result.pendingQueue = {
260
+ count: pendingCount,
261
+ message: `You have ${pendingCount} pending item${pendingCount !== 1 ? 's' : ''} queued. Run /wogi-pending --list to review, or I'll process them next.`
262
+ };
263
+ }
264
+ } catch (_err) {
265
+ // Non-critical — pending module may not be available
266
+ }
254
267
  } catch (err) {
255
268
  result.message = `Task completed handler error: ${err.message}`;
256
269
  }