symposium 0.10.6 → 0.10.7

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.
Files changed (3) hide show
  1. package/Agent.js +2 -2
  2. package/Thread.js +1 -1
  3. package/package.json +1 -1
package/Agent.js CHANGED
@@ -60,7 +60,7 @@ export default class Agent {
60
60
  async getThread(id) {
61
61
  let thread = this.threads.get(id);
62
62
  if (!thread) {
63
- thread = new Thread(this.name + '-' + id, this);
63
+ thread = new Thread(id, this);
64
64
 
65
65
  if (!(await thread.loadState())) {
66
66
  await this.resetState(thread);
@@ -77,7 +77,7 @@ export default class Agent {
77
77
  if (this.threads.has(id))
78
78
  return this.threads.get(id);
79
79
 
80
- const thread = new Thread(this.name + '-' + id, this);
80
+ const thread = new Thread(id, this);
81
81
 
82
82
  if (await thread.loadState())
83
83
  return thread;
package/Thread.js CHANGED
@@ -11,7 +11,7 @@ export default class Thread {
11
11
 
12
12
  constructor(id, agent) {
13
13
  this.id = id;
14
- this.unique = agent + '-' + id;
14
+ this.unique = agent.name + '-' + id;
15
15
  this.agent = agent;
16
16
  }
17
17
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.10.6",
4
+ "version": "0.10.7",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "author": "Domenico Giambra",