knoxis-helper 1.4.2 → 1.4.3

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.
@@ -426,6 +426,20 @@ function sendJSON(res, statusCode, data, requestOrigin) {
426
426
  res.end(JSON.stringify(data));
427
427
  }
428
428
 
429
+ // Resolve the interactive pair programming script
430
+ function resolveInteractiveScript() {
431
+ const candidates = [
432
+ path.join(__dirname, 'knoxis-interactive-pair.js'),
433
+ path.join(__dirname, '..', 'knoxis-interactive-pair.js'),
434
+ path.join(os.homedir(), '.knoxis', 'agent', 'knoxis-interactive-pair.js'),
435
+ path.join(__dirname, '..', '..', 'knoxis-interactive-pair.js'),
436
+ ];
437
+ for (const candidate of candidates) {
438
+ if (fs.existsSync(candidate)) return candidate;
439
+ }
440
+ return null;
441
+ }
442
+
429
443
  // Request handler
430
444
  async function handleRequest(req, res) {
431
445
  const parsedUrl = url.parse(req.url, true);
@@ -679,20 +693,6 @@ async function handleRequest(req, res) {
679
693
 
680
694
  // ===== PAIR PROGRAMMING ENDPOINTS =====
681
695
 
682
- // Resolve the interactive pair programming script
683
- function resolveInteractiveScript() {
684
- const candidates = [
685
- path.join(__dirname, 'knoxis-interactive-pair.js'),
686
- path.join(__dirname, '..', 'knoxis-interactive-pair.js'),
687
- path.join(os.homedir(), '.knoxis', 'agent', 'knoxis-interactive-pair.js'),
688
- path.join(__dirname, '..', '..', 'knoxis-interactive-pair.js'),
689
- ];
690
- for (const candidate of candidates) {
691
- if (fs.existsSync(candidate)) return candidate;
692
- }
693
- return null;
694
- }
695
-
696
696
  // Start pair programming session (opens terminal)
697
697
  if (pathname === '/pair/start' && method === 'POST') {
698
698
  // Build CLAUDE.md content from task when backend doesn't provide claudeMdContent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knoxis-helper",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Local helper for Knoxis pair programming - connects your machine to Knoxis on qig.ai",
5
5
  "bin": {
6
6
  "knoxis-helper": "./bin/knoxis-helper.js"