panteao-ts 1.1.2 → 1.1.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.
package/dist/cjs/index.js CHANGED
@@ -151,7 +151,13 @@ class BdiClient extends events_1.EventEmitter {
151
151
  }
152
152
  }
153
153
  const args = [this.project, '--port', String(this.port)];
154
- this.process = child_process.spawn(this.binPath, args, { stdio: 'ignore' });
154
+ this.process = child_process.spawn(this.binPath, args, { stdio: ["ignore", "pipe", "pipe"] });
155
+ this.process.stdout?.on("data", data => {
156
+ console.log("\x1b[36m[MAS]\x1b[0m", data.toString().trim());
157
+ });
158
+ this.process.stderr?.on("data", data => {
159
+ console.error("\x1b[31m[MAS ERROR]\x1b[0m", data.toString().trim());
160
+ });
155
161
  await new Promise((resolve) => setTimeout(resolve, 800));
156
162
  }
157
163
  else if (this.port === 0) {
package/dist/esm/index.js CHANGED
@@ -115,7 +115,13 @@ export class BdiClient extends EventEmitter {
115
115
  }
116
116
  }
117
117
  const args = [this.project, '--port', String(this.port)];
118
- this.process = child_process.spawn(this.binPath, args, { stdio: 'ignore' });
118
+ this.process = child_process.spawn(this.binPath, args, { stdio: ["ignore", "pipe", "pipe"] });
119
+ this.process.stdout?.on("data", data => {
120
+ console.log("\x1b[36m[MAS]\x1b[0m", data.toString().trim());
121
+ });
122
+ this.process.stderr?.on("data", data => {
123
+ console.error("\x1b[31m[MAS ERROR]\x1b[0m", data.toString().trim());
124
+ });
119
125
  await new Promise((resolve) => setTimeout(resolve, 800));
120
126
  }
121
127
  else if (this.port === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "panteao-ts",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "TypeScript client for the Panteao BDI agent engine",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",