@shipers-dev/multi 0.4.1 → 0.4.2

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/index.js CHANGED
@@ -5381,7 +5381,7 @@ var LOG_PATH = join(MULTI_DIR, "logs", "agent.log");
5381
5381
  var SKILLS_DIR = join(MULTI_DIR, "skills");
5382
5382
  var STOP_PATH = join(MULTI_DIR, "stop.flag");
5383
5383
  var TASKS_DB_PATH = join(MULTI_DIR, "tasks.db");
5384
- var VERSION = "0.4.1";
5384
+ var VERSION = "0.4.2";
5385
5385
  var COMMANDS = {
5386
5386
  setup: "Register this device with a workspace",
5387
5387
  connect: "Connect device to realtime hub and execute assigned tasks",
@@ -6045,7 +6045,7 @@ ${userPart}` : userPart;
6045
6045
  onEvent: eventHandler,
6046
6046
  onSession: async (sid) => {
6047
6047
  try {
6048
- await apiClient.patch(`${apiUrl}/api/issues/${issueId}`, { session_id: sid });
6048
+ await apiClient.post(`${apiUrl}/api/issues/${issueId}/session`, { session_id: sid });
6049
6049
  } catch {}
6050
6050
  }
6051
6051
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipers-dev/multi",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "multi-agent": "./dist/index.js"
package/src/index.ts CHANGED
@@ -16,7 +16,7 @@ const LOG_PATH = join(MULTI_DIR, 'logs', 'agent.log');
16
16
  const SKILLS_DIR = join(MULTI_DIR, 'skills');
17
17
  const STOP_PATH = join(MULTI_DIR, 'stop.flag');
18
18
  const TASKS_DB_PATH = join(MULTI_DIR, 'tasks.db');
19
- const VERSION = '0.4.1';
19
+ const VERSION = '0.4.2';
20
20
 
21
21
  const COMMANDS = {
22
22
  setup: 'Register this device with a workspace',
@@ -615,7 +615,7 @@ async function handleRunTask(apiUrl: string, deviceId: string, task: any, detect
615
615
  cwd: workingDir,
616
616
  onEvent: eventHandler,
617
617
  onSession: async (sid) => {
618
- try { await apiClient.patch(`${apiUrl}/api/issues/${issueId}`, { session_id: sid } as any); } catch {}
618
+ try { await apiClient.post(`${apiUrl}/api/issues/${issueId}/session`, { session_id: sid }); } catch {}
619
619
  },
620
620
  });
621
621
  log(` acp session ${sessionId.slice(0, 8)}`);