dcp-client 4.2.26 → 4.2.28
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/bin/build-dcp-config +7 -4
- package/dcp-client.js +4 -16
- package/dist/dcp-client-bundle.js +6109 -3
- package/docs/CODEOWNERS +57 -1
- package/docs/CODEOWNERS.template +10 -0
- package/etc/deprecated-dcp-config.js +48 -0
- package/index.js +513 -387
- package/lib/standaloneWorker.js +17 -10
- package/ns-map.js +0 -19
- package/package.json +6 -3
- package/test-pseudo-root/home/username/.dcp/dcp-config.js +2 -0
- package/windows-registry.js +14 -58
package/docs/CODEOWNERS
CHANGED
|
@@ -9,4 +9,60 @@
|
|
|
9
9
|
# Username mapping:
|
|
10
10
|
# @wesgarland -> Wes Garland <wes@distributive.network>
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
[]
|
|
14
|
+
|
|
15
|
+
[Brandon]
|
|
16
|
+
|
|
17
|
+
[Eddie]
|
|
18
|
+
/package-lock.json @eroosenmaallen
|
|
19
|
+
|
|
20
|
+
[Eddie or Wes]
|
|
21
|
+
/dist/dcp-client-bundle.js @eroosenmaallen @wesgarland
|
|
22
|
+
|
|
23
|
+
[Wes]
|
|
24
|
+
/ns-map.js @wesgarland
|
|
25
|
+
/lib/ @wesgarland
|
|
26
|
+
/README.md @wesgarland
|
|
27
|
+
/.npmrc @wesgarland
|
|
28
|
+
/dist/ @wesgarland
|
|
29
|
+
/favicon.ico @wesgarland
|
|
30
|
+
/etc/ @wesgarland
|
|
31
|
+
/test-pseudo-root/ @wesgarland
|
|
32
|
+
/windows-registry.js @wesgarland
|
|
33
|
+
/dcp-client.css @wesgarland
|
|
34
|
+
/assets/ @wesgarland
|
|
35
|
+
/build/ @wesgarland
|
|
36
|
+
/tests/ @wesgarland
|
|
37
|
+
/.npmignore @wesgarland
|
|
38
|
+
/bin/ @wesgarland
|
|
39
|
+
/.eslintrc.json @wesgarland
|
|
40
|
+
/index.js @wesgarland
|
|
41
|
+
/libexec/ @wesgarland
|
|
42
|
+
/.tidelift @wesgarland
|
|
43
|
+
/LICENSE.md @wesgarland
|
|
44
|
+
/docs/ @wesgarland
|
|
45
|
+
/cors-proxy.html @wesgarland
|
|
46
|
+
/.gitlab-ci.yml @wesgarland
|
|
47
|
+
/.gitignore @wesgarland
|
|
48
|
+
/init-common.js @wesgarland
|
|
49
|
+
/dcp-client.js @wesgarland
|
|
50
|
+
/cjs2-shim.js @wesgarland
|
|
51
|
+
/examples/ @wesgarland
|
|
52
|
+
/templates/ @wesgarland
|
|
53
|
+
/generated/ @wesgarland
|
|
54
|
+
/templates/ @wesgarland
|
|
55
|
+
/assets/ @wesgarland
|
|
56
|
+
/test-pseudo-root/ @wesgarland
|
|
57
|
+
/etc/ @wesgarland
|
|
58
|
+
/examples/ @wesgarland
|
|
59
|
+
/tests/ @wesgarland
|
|
60
|
+
/build/ @wesgarland
|
|
61
|
+
/docs/ @wesgarland
|
|
62
|
+
/lib/ @wesgarland
|
|
63
|
+
/libexec/ @wesgarland
|
|
64
|
+
/dist/ @wesgarland
|
|
65
|
+
/bin/ @wesgarland
|
|
66
|
+
|
|
67
|
+
[Wes or Eddie]
|
|
68
|
+
/package.json @wesgarland @eroosenmaallen
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# @file CODEOWNERS - Defines who develops and maintains a feature, and own
|
|
2
|
+
# the resulting files or directories in the repository.
|
|
3
|
+
#
|
|
4
|
+
# See https://docs.gitlab.com/ee/user/project/code_owners.html
|
|
5
|
+
#
|
|
6
|
+
# @author Bryan Hoang <bryan@distributive.network>
|
|
7
|
+
# @date August 2022
|
|
8
|
+
|
|
9
|
+
# Username mapping:
|
|
10
|
+
# @wesgarland -> Wes Garland <wes@distributive.network>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file dcp-config.js
|
|
3
|
+
* Bare-bones config for worker loaded. For use with localexec,
|
|
4
|
+
* or so the tree exists for
|
|
5
|
+
*
|
|
6
|
+
* @author Ryan Saweczko <ryan@kingsds.network>
|
|
7
|
+
* @date Sep 2022
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
worker: {
|
|
12
|
+
/* Allow lists permitting supervisor network access beyond DCP messages to services */
|
|
13
|
+
allowOrigins: {
|
|
14
|
+
any: [],
|
|
15
|
+
fetchWorkFunctions: [],
|
|
16
|
+
fetchArguments: [],
|
|
17
|
+
fetchData: [],
|
|
18
|
+
sendResults: [],
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
minimumWage: {
|
|
22
|
+
CPU: 0,
|
|
23
|
+
GPU: 0,
|
|
24
|
+
'in': 0,
|
|
25
|
+
out: 0,
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
computeGroups: {}, // integer-one-indexed; format is 1:{ joinKey,joinHash } or 2:{ joinKey, joinSecret }
|
|
29
|
+
jobAddresses: [], // Specific job addresses the worker may work on. If not empty, worker will only work on those jobs.
|
|
30
|
+
maxWorkingSandboxes: 1,
|
|
31
|
+
paymentAddress: null, // user must to specify
|
|
32
|
+
evaluatorOptions: {}
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
standaloneWorker:
|
|
36
|
+
{
|
|
37
|
+
quiet: false,
|
|
38
|
+
debug: process.env.DCP_SAW_DEBUG,
|
|
39
|
+
evaluatorConnectBackoff:
|
|
40
|
+
{
|
|
41
|
+
maxInterval: 5 * 60 * 1000, // max: 5 minutes
|
|
42
|
+
baseInterval: 10 * 1000, // start: 10s
|
|
43
|
+
backoffFactor: 1.1 // each fail, back off by 10%
|
|
44
|
+
},
|
|
45
|
+
reloadBehaviour: 'process.exit(12)',
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|