@byfriends/agent-core 0.2.2 → 0.2.4

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/dist/index.mjs +5 -0
  2. package/package.json +36 -22
  3. package/LICENSE +0 -28
package/dist/index.mjs CHANGED
@@ -1679,13 +1679,18 @@ var BackgroundProcessManager = class {
1679
1679
  * restart. Active-only mode never shows ghosts (they're terminal).
1680
1680
  */
1681
1681
  list(activeOnly = true, limit) {
1682
+ const seen = /* @__PURE__ */ new Set();
1682
1683
  const result = [];
1683
1684
  for (const entry of this.processes.values()) {
1684
1685
  if (activeOnly && TERMINAL_STATUSES.has(entry.status)) continue;
1686
+ if (seen.has(entry.taskId)) continue;
1687
+ seen.add(entry.taskId);
1685
1688
  result.push(this.toInfo(entry));
1686
1689
  if (limit !== void 0 && result.length >= limit) return result;
1687
1690
  }
1688
1691
  if (!activeOnly) for (const ghost of this.ghosts.values()) {
1692
+ if (seen.has(ghost.taskId)) continue;
1693
+ seen.add(ghost.taskId);
1689
1694
  result.push(ghost);
1690
1695
  if (limit !== void 0 && result.length >= limit) return result;
1691
1696
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byfriends/agent-core",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Unified agent engine for BYF",
5
5
  "license": "Proprietary",
6
6
  "author": "ByronFinn",
@@ -32,26 +32,49 @@
32
32
  },
33
33
  "exports": {
34
34
  ".": {
35
- "types": "./dist/index.d.mts",
36
- "import": "./dist/index.mjs",
37
- "default": "./dist/index.mjs"
35
+ "types": "./src/index.ts",
36
+ "default": "./src/index.ts"
38
37
  },
39
38
  "./agent/records/migration": {
40
- "types": "./dist/agent/records/migration/index.d.mts",
41
- "import": "./dist/agent/records/migration/index.mjs",
42
- "default": "./dist/agent/records/migration/index.mjs"
39
+ "types": "./src/agent/records/migration/index.ts",
40
+ "default": "./src/agent/records/migration/index.ts"
43
41
  },
44
42
  "./session/store": {
45
- "types": "./dist/session/store/index.d.mts",
46
- "import": "./dist/session/store/index.mjs",
47
- "default": "./dist/session/store/index.mjs"
43
+ "types": "./src/session/store/index.ts",
44
+ "default": "./src/session/store/index.ts"
48
45
  }
49
46
  },
50
47
  "publishConfig": {
51
- "access": "public"
48
+ "access": "public",
49
+ "exports": {
50
+ ".": {
51
+ "types": "./dist/index.d.mts",
52
+ "import": "./dist/index.mjs",
53
+ "default": "./dist/index.mjs"
54
+ },
55
+ "./agent/records/migration": {
56
+ "types": "./dist/agent/records/migration/index.d.mts",
57
+ "import": "./dist/agent/records/migration/index.mjs",
58
+ "default": "./dist/agent/records/migration/index.mjs"
59
+ },
60
+ "./session/store": {
61
+ "types": "./dist/session/store/index.d.mts",
62
+ "import": "./dist/session/store/index.mjs",
63
+ "default": "./dist/session/store/index.mjs"
64
+ }
65
+ }
66
+ },
67
+ "scripts": {
68
+ "build": "tsdown",
69
+ "test": "vitest run",
70
+ "test:baseline": "vitest run",
71
+ "typecheck": "tsc -p tsconfig.json --noEmit",
72
+ "clean": "rm -rf dist"
52
73
  },
53
74
  "dependencies": {
54
75
  "@antfu/utils": "^9.3.0",
76
+ "@byfriends/kaos": "workspace:^",
77
+ "@byfriends/kosong": "workspace:^",
55
78
  "@modelcontextprotocol/sdk": "^1.29.0",
56
79
  "@mozilla/readability": "^0.6.0",
57
80
  "ajv": "^8.18.0",
@@ -68,9 +91,7 @@
68
91
  "tar": "^7.5.13",
69
92
  "undici": "^8.4.1",
70
93
  "yauzl": "^3.3.0",
71
- "zod": "^4.3.6",
72
- "@byfriends/kaos": "^0.2.2",
73
- "@byfriends/kosong": "^0.2.2"
94
+ "zod": "catalog:"
74
95
  },
75
96
  "devDependencies": {
76
97
  "@types/js-yaml": "^4.0.9",
@@ -83,12 +104,5 @@
83
104
  "@types/yauzl": "^2.10.3",
84
105
  "@types/yazl": "^2.4.6",
85
106
  "yazl": "^3.3.1"
86
- },
87
- "scripts": {
88
- "build": "tsdown",
89
- "test": "vitest run",
90
- "test:baseline": "vitest run",
91
- "typecheck": "tsc -p tsconfig.json --noEmit",
92
- "clean": "rm -rf dist"
93
107
  }
94
- }
108
+ }
package/LICENSE DELETED
@@ -1,28 +0,0 @@
1
- BYF PROPRIETARY LICENSE
2
-
3
- Copyright (c) 2026-2027 ByronFinn
4
-
5
- Permission is hereby granted to copy and redistribute this software in its
6
- unmodified form, without charge. This permission does not extend to modified
7
- versions of the software.
8
-
9
- Local modification of this software for personal use is permitted, provided
10
- that such modifications are not distributed to third parties.
11
-
12
- Restrictions:
13
- 1. You may NOT redistribute modified versions of this software.
14
- 2. You may NOT use this software for commercial purposes.
15
- 3. You may NOT sublicense, sell, or offer this software as a service.
16
-
17
- This software is source-available but NOT open source. The source code is
18
- made publicly visible for review purposes only.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
-
28
- For questions about licensing, contact: https://github.com/ByronFinn/byf/issues