@sjawhar/pi-envoy 10.2.1 → 10.2.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.
Files changed (2) hide show
  1. package/dist/envoy.js +5 -2
  2. package/package.json +1 -1
package/dist/envoy.js CHANGED
@@ -33842,6 +33842,7 @@ var InterestWireSchema = exports_external.object({
33842
33842
  var SessionWireSchema = exports_external.object({
33843
33843
  session_id: exports_external.string(),
33844
33844
  machine_id: exports_external.string(),
33845
+ host: exports_external.string().optional(),
33845
33846
  dir: exports_external.string(),
33846
33847
  port: exports_external.number().int(),
33847
33848
  title: exports_external.string(),
@@ -33854,6 +33855,7 @@ var SessionWireSchema = exports_external.object({
33854
33855
  var RoleWireSchema = exports_external.object({
33855
33856
  role: exports_external.string(),
33856
33857
  holder: exports_external.string(),
33858
+ host: exports_external.string().optional(),
33857
33859
  last_seen: exports_external.number().int()
33858
33860
  });
33859
33861
  var RoleHeldWireSchema = exports_external.object({
@@ -33969,7 +33971,8 @@ function createEnvoyClient(config2) {
33969
33971
  title: input.title,
33970
33972
  ...input.capabilities === undefined ? {} : { capabilities: input.capabilities },
33971
33973
  driving: input.driving,
33972
- ...input.selfSubscribed === undefined ? {} : { self_subscribed: input.selfSubscribed }
33974
+ ...input.selfSubscribed === undefined ? {} : { self_subscribed: input.selfSubscribed },
33975
+ host: machineID()
33973
33976
  }))),
33974
33977
  unsubscribe: async (input) => {
33975
33978
  await post("/v1/interests/unsubscribe", {
@@ -36276,7 +36279,7 @@ Not delivered: that holder is the session this subagent sends as, and the listen
36276
36279
  const directory = optionalStringFor(parameters, "dir");
36277
36280
  const title = optionalStringFor(parameters, "title");
36278
36281
  const sessions = await client.listSessions({ directory, title });
36279
- const result = machine === undefined ? sessions : sessions.filter((session) => session.machine_id === machine);
36282
+ const result = machine === undefined ? sessions : sessions.filter((session) => (session.host ?? session.machine_id) === machine);
36280
36283
  return toolSuccess(JSON.stringify(result, null, 2), {
36281
36284
  count: result.length,
36282
36285
  machine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-envoy",
3
- "version": "10.2.1",
3
+ "version": "10.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {