u-foo 1.2.2 β†’ 1.2.4

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/README.md CHANGED
@@ -373,77 +373,3 @@ npm test
373
373
  ## License
374
374
 
375
375
  UNLICENSED (Private)
376
-
377
- ## Recent Changes
378
-
379
- ### 🎨 UCode Branding & UI Improvements (2026-02-15)
380
-
381
- Enhanced ucode agent branding consistency and fixed UI rendering issues:
382
-
383
- **Features:**
384
- - **Consistent Branding** - ucode agents now display as "ucode-1" instead of "ufoo-code-1"
385
- - **Banner Normalization** - Agent type shows "ucode" in launch banners
386
- - **UI Width Fix** - Resolved terminal width inconsistency causing background overflow
387
- - **Immediate Prompt Display** - ucode TUI now shows incoming prompts instantly (not waiting for response)
388
-
389
- **Technical Details:**
390
- - `src/bus/nickname.js` - Maps ufoo-code β†’ ucode for nickname generation
391
- - `src/utils/banner.js` - Normalized agent type display
392
- - `src/chat/layout.js` - Fixed blessed log component width handling
393
- - `src/code/tui.js` - Added onMessageReceived callback for instant display
394
-
395
- **Version:** v1.1.9
396
-
397
- ---
398
-
399
- ### πŸš€ Smart Ready Detection & PTY Wrapper (2026-02-06)
400
-
401
- Added intelligent agent initialization detection for reliable probe injection:
402
-
403
- **Features:**
404
- - **ReadyDetector** - Monitors PTY output to detect when agents are ready
405
- - **Smart Probe Timing** - Injects session probe after agent initialization (not before)
406
- - **Multi-layer Fallback** - 10s ready detection + 8s fallback + 15 retries
407
- - **Performance Metrics** - Tracks detection time and buffer usage (`UFOO_DEBUG=1`)
408
-
409
- **Benefits:**
410
- - βœ… No more premature probe injection (was 2s, now waits for prompt)
411
- - βœ… Reliable session ID capture (39 tests, 100% pass)
412
- - βœ… Production-ready error handling and logging
413
-
414
- **Technical Details:**
415
- - `src/agent/readyDetector.js` - PTY output analysis
416
- - `src/agent/ptyWrapper.js` - Terminal emulation with monitoring
417
- - `src/daemon/providerSessions.js` - Early probe triggering support
418
-
419
- See `.ufoo/plans/ready-detection-production-checklist.md` for full details.
420
-
421
- ---
422
-
423
- ### πŸŽ‰ Bash to JavaScript Migration (2026-02-04)
424
-
425
- We've successfully migrated **80% of the codebase** from Bash to JavaScript for better maintainability and cross-platform support!
426
-
427
- **What Changed:**
428
- - βœ… EventBus core (986 lines) β†’ 8 JavaScript modules
429
- - βœ… Daemon & inject β†’ Pure JavaScript
430
- - βœ… status, skills, init β†’ JavaScript modules
431
- - ⏸️ Context management scripts remain in Bash (complex text processing)
432
-
433
- **Impact:**
434
- - **CLI commands unchanged** - All commands work exactly as before
435
- - **Performance:** 51ms/message (vs 45ms in Bash, +13%)
436
- - **Testing:** 20/20 integration tests passing
437
- - **Quality:** Better error handling, testing, and IDE support
438
-
439
- **Learn More:**
440
- - See [MIGRATION_LOG.md](MIGRATION_LOG.md) for full details
441
- - View archived scripts in `scripts/.archived/migrated-to-js/`
442
- - Performance benchmarks in test reports
443
-
444
- **Why This Matters:**
445
- - 🎯 Unified JavaScript tech stack
446
- - πŸ§ͺ Easier to test and maintain
447
- - 🌍 Cross-platform potential (Windows/Linux)
448
- - πŸ’‘ Better IDE support and refactoring
449
- - πŸš€ Foundation for future enhancements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "u-foo",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Multi-Agent Workspace Protocol. Just add u. claude β†’ uclaude, codex β†’ ucodex.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://ufoo.dev",
@@ -877,6 +877,7 @@ function startDaemon({ projectRoot, provider, model, resumeMode = "auto" }) {
877
877
  return;
878
878
  }
879
879
  if (req.type === IPC_REQUEST_TYPES.LAUNCH_AGENT) {
880
+ log(`launch_agent received: agent=${req.agent} count=${req.count}`);
880
881
  const { agent, count, nickname } = req;
881
882
  const normalizedAgent = normalizeLaunchAgent(agent);
882
883
  if (!normalizedAgent) {
package/src/daemon/ops.js CHANGED
@@ -24,9 +24,9 @@ function toBusAgentType(agent = "") {
24
24
  }
25
25
 
26
26
  function toTerminalBinary(agent = "") {
27
- if (agent === "codex") return "./bin/ucodex.js";
28
- if (agent === "claude") return "./bin/uclaude.js";
29
- if (agent === "ufoo") return "./bin/ucode.js";
27
+ if (agent === "codex") return "ucodex";
28
+ if (agent === "claude") return "uclaude";
29
+ if (agent === "ufoo") return "ucode";
30
30
  return "";
31
31
  }
32
32