@byfriends/sdk 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -0
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -55233,13 +55233,18 @@ var BackgroundProcessManager = class {
55233
55233
  * restart. Active-only mode never shows ghosts (they're terminal).
55234
55234
  */
55235
55235
  list(activeOnly = true, limit) {
55236
+ const seen = /* @__PURE__ */ new Set();
55236
55237
  const result = [];
55237
55238
  for (const entry of this.processes.values()) {
55238
55239
  if (activeOnly && TERMINAL_STATUSES.has(entry.status)) continue;
55240
+ if (seen.has(entry.taskId)) continue;
55241
+ seen.add(entry.taskId);
55239
55242
  result.push(this.toInfo(entry));
55240
55243
  if (limit !== void 0 && result.length >= limit) return result;
55241
55244
  }
55242
55245
  if (!activeOnly) for (const ghost of this.ghosts.values()) {
55246
+ if (seen.has(ghost.taskId)) continue;
55247
+ seen.add(ghost.taskId);
55243
55248
  result.push(ghost);
55244
55249
  if (limit !== void 0 && result.length >= limit) return result;
55245
55250
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byfriends/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Public TypeScript SDK for BYF agents and sessions",
5
5
  "license": "Proprietary",
6
6
  "author": "ByronFinn",
@@ -49,10 +49,10 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/yazl": "^2.4.6",
52
- "@byfriends/agent-core": "^0.2.2",
53
- "@byfriends/kaos": "^0.2.2",
52
+ "@byfriends/kosong": "^0.2.2",
54
53
  "@byfriends/oauth": "^0.1.1",
55
- "@byfriends/kosong": "^0.2.2"
54
+ "@byfriends/kaos": "^0.2.2",
55
+ "@byfriends/agent-core": "^0.2.3"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown && pnpm run build:dts",