@bytesbrains/pi-factory-gate 1.0.2 → 1.0.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.
- package/LICENSE +1 -1
- package/README.md +6 -1
- package/package.json +5 -6
- package/src/config.ts +9 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ AI Factory orchestration gateway for pi agents — dispatch jobs, manage environ
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pi install npm
|
|
8
|
+
pi install npm:@bytesbrains/pi-factory-gate
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Configuration
|
|
@@ -81,3 +81,8 @@ This gate works with the [wrok.in](https://github.com/nandal/wrok.in) AI Factory
|
|
|
81
81
|
## License
|
|
82
82
|
|
|
83
83
|
MIT
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
Built and maintained by [BytesBrains](https://bytesbrains.com) — AI automation & agents, engineered to production standards.
|
|
88
|
+
*The model proposes, code guarantees.*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytesbrains/pi-factory-gate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "AI Factory gateway for pi agents — dispatch jobs, manage environments, list agents/workers/workflows, stream results from a wrok.in orchestrator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -11,15 +11,14 @@
|
|
|
11
11
|
"job-dispatch",
|
|
12
12
|
"workflow"
|
|
13
13
|
],
|
|
14
|
-
"author": "
|
|
14
|
+
"author": "BytesBrains Pte Ltd (https://bytesbrains.com)",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/
|
|
18
|
-
"directory": "factory-gate"
|
|
17
|
+
"url": "git+https://github.com/bytesbrains/pi-factory-gate.git"
|
|
19
18
|
},
|
|
20
|
-
"homepage": "https://github.com/
|
|
19
|
+
"homepage": "https://github.com/bytesbrains/pi-factory-gate#readme",
|
|
21
20
|
"bugs": {
|
|
22
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/bytesbrains/pi-factory-gate/issues"
|
|
23
22
|
},
|
|
24
23
|
"license": "MIT",
|
|
25
24
|
"main": "./src/index.ts",
|
package/src/config.ts
CHANGED
|
@@ -22,9 +22,15 @@ export function loadConfig(cwd: string): FactoryConfig {
|
|
|
22
22
|
return {
|
|
23
23
|
orchestratorUrl: (result["orchestratorUrl"] as string) || DEFAULT_CONFIG.orchestratorUrl,
|
|
24
24
|
defaultEnvironment: (result["defaultEnvironment"] as string) || DEFAULT_CONFIG.defaultEnvironment,
|
|
25
|
-
defaultLimit
|
|
26
|
-
requestTimeout
|
|
27
|
-
maxLogLines
|
|
25
|
+
const defaultLimit = parseInt(result["defaultLimit"] as string);
|
|
26
|
+
const requestTimeout = parseInt(result["requestTimeout"] as string);
|
|
27
|
+
const maxLogLines = parseInt(result["maxLogLines"] as string);
|
|
28
|
+
return {
|
|
29
|
+
orchestratorUrl: (result["orchestratorUrl"] as string) || DEFAULT_CONFIG.orchestratorUrl,
|
|
30
|
+
defaultEnvironment: (result["defaultEnvironment"] as string) || DEFAULT_CONFIG.defaultEnvironment,
|
|
31
|
+
defaultLimit: isNaN(defaultLimit) ? DEFAULT_CONFIG.defaultLimit : defaultLimit,
|
|
32
|
+
requestTimeout: isNaN(requestTimeout) ? DEFAULT_CONFIG.requestTimeout : requestTimeout,
|
|
33
|
+
maxLogLines: isNaN(maxLogLines) ? DEFAULT_CONFIG.maxLogLines : maxLogLines,
|
|
28
34
|
};
|
|
29
35
|
} catch {
|
|
30
36
|
return { ...DEFAULT_CONFIG };
|