@stdiobus/workers-registry 1.3.14 → 1.3.15
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/launcher/index.js +3 -11
- package/launcher/index.js.map +2 -2
- package/out/dist/workers/acp-registry/registry-launcher-client.js +49 -9
- package/out/dist/workers/acp-registry/{registry-launcher-client.cjs.map → registry-launcher-client.js.map} +2 -2
- package/out/dist/workers/acp-registry/registry-launcher-config.json +3 -4
- package/out/dist/workers/acp-worker/index.js +6 -11
- package/out/dist/workers/acp-worker/index.js.map +7 -0
- package/out/dist/workers/echo-worker/echo-worker.js +2 -11
- package/out/dist/workers/echo-worker/{echo-worker.cjs.map → echo-worker.js.map} +2 -2
- package/out/dist/workers/mcp-echo-server/index.js +2 -11
- package/out/dist/workers/mcp-echo-server/index.js.map +7 -0
- package/out/dist/workers/mcp-to-acp-proxy/proxy.js +2 -11
- package/out/dist/workers/mcp-to-acp-proxy/{proxy.cjs.map → proxy.js.map} +2 -2
- package/out/tsc/workers-registry/acp-worker/src/index.d.ts +14 -0
- package/out/tsc/workers-registry/launcher/index.d.ts +29 -1
- package/package.json +21 -1
- package/out/dist/workers/acp-registry/registry-launcher-client.cjs +0 -52
- package/out/dist/workers/acp-worker/index.cjs +0 -46
- package/out/dist/workers/acp-worker/index.cjs.map +0 -7
- package/out/dist/workers/echo-worker/echo-worker.cjs +0 -3
- package/out/dist/workers/mcp-echo-server/index.cjs +0 -45
- package/out/dist/workers/mcp-echo-server/index.cjs.map +0 -7
- package/out/dist/workers/mcp-to-acp-proxy/proxy.cjs +0 -3
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf;var __hasOwnProp=Object.prototype.hasOwnProperty;var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:true}):target,mod));var import_readline=__toESM(require("readline"),1);var shuttingDown=false;var rl=import_readline.default.createInterface({input:process.stdin,output:process.stdout,terminal:false});function processMessage(line){if(shuttingDown){return}try{const msg=JSON.parse(line);if(msg.id!==void 0&&msg.method!==void 0){const response={jsonrpc:"2.0",id:msg.id,result:{echo:msg.params||{},method:msg.method,timestamp:new Date().toISOString()}};if(msg.sessionId){response.sessionId=msg.sessionId}console.log(JSON.stringify(response))}else if(msg.method!==void 0&&msg.id===void 0){if(msg.sessionId){const notification={jsonrpc:"2.0",method:"echo.notification",params:{original:msg.method,timestamp:new Date().toISOString()},sessionId:msg.sessionId};console.log(JSON.stringify(notification))}}}catch(err){console.error(`[echo-worker] Error parsing message: ${err.message}`);console.error(`[echo-worker] Raw input: ${line.substring(0,100)}...`)}}function handleShutdown(){if(shuttingDown){return}shuttingDown=true;console.error("[echo-worker] Received SIGTERM, shutting down gracefully...");rl.close()}process.on("SIGTERM",handleShutdown);process.on("SIGINT",handleShutdown);rl.on("line",processMessage);rl.on("close",()=>{console.error("[echo-worker] stdin closed, exiting");process.exit(0)});process.on("uncaughtException",err=>{console.error(`[echo-worker] Uncaught exception: ${err.message}`);console.error(err.stack);process.exit(1)});process.on("unhandledRejection",(reason,promise)=>{console.error("[echo-worker] Unhandled promise rejection:",reason);process.exit(1)});console.error("[echo-worker] Started, waiting for NDJSON messages on stdin...");
|
|
3
|
-
//# sourceMappingURL=echo-worker.cjs.map
|