@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 nandal
3
+ Copyright (c) 2026 BytesBrains Pte Ltd
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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:pi-factory-gate
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.2",
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": "nandal <nandal@users.noreply.github.com>",
14
+ "author": "BytesBrains Pte Ltd (https://bytesbrains.com)",
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "https://github.com/nandal/pi-ext",
18
- "directory": "factory-gate"
17
+ "url": "git+https://github.com/bytesbrains/pi-factory-gate.git"
19
18
  },
20
- "homepage": "https://github.com/nandal/pi-ext/tree/main/factory-gate",
19
+ "homepage": "https://github.com/bytesbrains/pi-factory-gate#readme",
21
20
  "bugs": {
22
- "url": "https://github.com/nandal/pi-ext/issues"
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: parseInt(result["defaultLimit"] as string) || DEFAULT_CONFIG.defaultLimit,
26
- requestTimeout: parseInt(result["requestTimeout"] as string) || DEFAULT_CONFIG.requestTimeout,
27
- maxLogLines: parseInt(result["maxLogLines"] as string) || DEFAULT_CONFIG.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 };