@byfriends/sdk 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.
- package/dist/index.mjs +5 -0
- package/package.json +24 -18
- package/LICENSE +0 -28
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.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Public TypeScript SDK for BYF agents and sessions",
|
|
5
5
|
"license": "Proprietary",
|
|
6
6
|
"author": "ByronFinn",
|
|
@@ -32,33 +32,39 @@
|
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
35
|
-
"types": "./
|
|
36
|
-
"
|
|
37
|
-
"default": "./dist/index.mjs"
|
|
35
|
+
"types": "./src/index.ts",
|
|
36
|
+
"default": "./src/index.ts"
|
|
38
37
|
}
|
|
39
38
|
},
|
|
40
39
|
"publishConfig": {
|
|
41
40
|
"access": "public",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./dist/index.d.mts",
|
|
44
|
+
"import": "./dist/index.mjs",
|
|
45
|
+
"default": "./dist/index.mjs"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
42
48
|
"provenance": false
|
|
43
49
|
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@antfu/utils": "^9.3.0",
|
|
46
|
-
"smol-toml": "^1.6.1",
|
|
47
|
-
"yazl": "^3.3.1",
|
|
48
|
-
"zod": "^4.3.6"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@types/yazl": "^2.4.6",
|
|
52
|
-
"@byfriends/agent-core": "^0.2.2",
|
|
53
|
-
"@byfriends/kaos": "^0.2.2",
|
|
54
|
-
"@byfriends/oauth": "^0.1.1",
|
|
55
|
-
"@byfriends/kosong": "^0.2.2"
|
|
56
|
-
},
|
|
57
50
|
"scripts": {
|
|
58
51
|
"build": "tsdown && pnpm run build:dts",
|
|
59
52
|
"build:dts": "node scripts/build-dts.mjs",
|
|
60
53
|
"test": "vitest run",
|
|
61
54
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
62
55
|
"clean": "rm -rf dist .tmp-api-extractor"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@antfu/utils": "^9.3.0",
|
|
59
|
+
"smol-toml": "^1.6.1",
|
|
60
|
+
"yazl": "^3.3.1",
|
|
61
|
+
"zod": "catalog:"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@byfriends/agent-core": "workspace:^",
|
|
65
|
+
"@byfriends/kaos": "workspace:^",
|
|
66
|
+
"@byfriends/kosong": "workspace:^",
|
|
67
|
+
"@byfriends/oauth": "workspace:^",
|
|
68
|
+
"@types/yazl": "^2.4.6"
|
|
63
69
|
}
|
|
64
|
-
}
|
|
70
|
+
}
|
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
|