dp-worker 0.1.34 → 0.1.39

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 (185) hide show
  1. package/builtin-skills/x.md +6 -2
  2. package/dist/agent/agent.d.ts +6 -0
  3. package/dist/agent/agent.js +21 -2
  4. package/dist/agent/agent.js.map +1 -1
  5. package/dist/agent/task-runner.d.ts +1 -1
  6. package/dist/agent/task-runner.js +13 -4
  7. package/dist/agent/task-runner.js.map +1 -1
  8. package/dist/browser/account-health.d.ts +8 -1
  9. package/dist/browser/account-health.js +33 -10
  10. package/dist/browser/account-health.js.map +1 -1
  11. package/dist/browser/actions.js +7 -8
  12. package/dist/browser/actions.js.map +1 -1
  13. package/dist/browser/cloakbrowser-backend.js +4 -3
  14. package/dist/browser/cloakbrowser-backend.js.map +1 -1
  15. package/dist/browser/dispatch.js +2 -2
  16. package/dist/browser/dispatch.js.map +1 -1
  17. package/dist/browser/dom-helpers.d.ts +2 -1
  18. package/dist/browser/dom-helpers.js +22 -0
  19. package/dist/browser/dom-helpers.js.map +1 -1
  20. package/dist/browser/growth-baseline.d.ts +10 -0
  21. package/dist/browser/growth-baseline.js +104 -0
  22. package/dist/browser/growth-baseline.js.map +1 -0
  23. package/dist/browser/snapshot.d.ts +1 -0
  24. package/dist/browser/snapshot.js +6 -5
  25. package/dist/browser/snapshot.js.map +1 -1
  26. package/dist/center/center-frontend.d.ts +7 -0
  27. package/dist/center/center-frontend.js +47 -17
  28. package/dist/center/center-frontend.js.map +1 -1
  29. package/dist/center/task-completion-outbox.d.ts +27 -0
  30. package/dist/center/task-completion-outbox.js +94 -0
  31. package/dist/center/task-completion-outbox.js.map +1 -0
  32. package/dist/chrome-extension/omni-flow/manifest.json +1 -1
  33. package/dist/config/center-config.js +6 -0
  34. package/dist/config/center-config.js.map +1 -1
  35. package/dist/config/types.d.ts +10 -0
  36. package/dist/config/types.js +7 -0
  37. package/dist/config/types.js.map +1 -1
  38. package/dist/index.js +2 -0
  39. package/dist/index.js.map +1 -1
  40. package/dist/llm/client.d.ts +11 -2
  41. package/dist/llm/client.js +41 -19
  42. package/dist/llm/client.js.map +1 -1
  43. package/dist/llm/failover.d.ts +15 -0
  44. package/dist/llm/failover.js +72 -0
  45. package/dist/llm/failover.js.map +1 -0
  46. package/node_modules/dp-shared/dist/configs-contracts.d.ts +8 -0
  47. package/node_modules/dp-shared/dist/configs-contracts.d.ts.map +1 -1
  48. package/node_modules/dp-shared/dist/configs-contracts.js +8 -0
  49. package/node_modules/dp-shared/dist/configs-contracts.js.map +1 -1
  50. package/node_modules/dp-shared/dist/desk-contracts.d.ts +10 -2
  51. package/node_modules/dp-shared/dist/desk-contracts.d.ts.map +1 -1
  52. package/node_modules/dp-shared/dist/desk-contracts.js +44 -7
  53. package/node_modules/dp-shared/dist/desk-contracts.js.map +1 -1
  54. package/node_modules/dp-shared/dist/growth-contracts.d.ts +500 -0
  55. package/node_modules/dp-shared/dist/growth-contracts.d.ts.map +1 -0
  56. package/node_modules/dp-shared/dist/growth-contracts.js +300 -0
  57. package/node_modules/dp-shared/dist/growth-contracts.js.map +1 -0
  58. package/node_modules/dp-shared/dist/growth-existing.d.ts +131 -0
  59. package/node_modules/dp-shared/dist/growth-existing.d.ts.map +1 -0
  60. package/node_modules/dp-shared/dist/growth-existing.js +53 -0
  61. package/node_modules/dp-shared/dist/growth-existing.js.map +1 -0
  62. package/node_modules/dp-shared/dist/growth-operations.d.ts +163 -0
  63. package/node_modules/dp-shared/dist/growth-operations.d.ts.map +1 -0
  64. package/node_modules/dp-shared/dist/growth-operations.js +67 -0
  65. package/node_modules/dp-shared/dist/growth-operations.js.map +1 -0
  66. package/node_modules/dp-shared/dist/growth-policy.d.ts +14 -0
  67. package/node_modules/dp-shared/dist/growth-policy.d.ts.map +1 -0
  68. package/node_modules/dp-shared/dist/growth-policy.js +63 -0
  69. package/node_modules/dp-shared/dist/growth-policy.js.map +1 -0
  70. package/node_modules/dp-shared/dist/growth-presets.d.ts +63 -0
  71. package/node_modules/dp-shared/dist/growth-presets.d.ts.map +1 -0
  72. package/node_modules/dp-shared/dist/growth-presets.js +117 -0
  73. package/node_modules/dp-shared/dist/growth-presets.js.map +1 -0
  74. package/node_modules/dp-shared/dist/index.d.ts +8 -0
  75. package/node_modules/dp-shared/dist/index.d.ts.map +1 -1
  76. package/node_modules/dp-shared/dist/index.js +8 -0
  77. package/node_modules/dp-shared/dist/index.js.map +1 -1
  78. package/node_modules/dp-shared/dist/post-drafts-contracts.d.ts +1 -1
  79. package/node_modules/dp-shared/dist/promo-contracts.d.ts +15 -15
  80. package/node_modules/dp-shared/dist/proxy-relay.d.ts +19 -0
  81. package/node_modules/dp-shared/dist/proxy-relay.d.ts.map +1 -0
  82. package/node_modules/dp-shared/dist/proxy-relay.js +226 -0
  83. package/node_modules/dp-shared/dist/proxy-relay.js.map +1 -0
  84. package/node_modules/dp-shared/dist/relay-compose.d.ts +18 -0
  85. package/node_modules/dp-shared/dist/relay-compose.d.ts.map +1 -0
  86. package/node_modules/dp-shared/dist/relay-compose.js +32 -0
  87. package/node_modules/dp-shared/dist/relay-compose.js.map +1 -0
  88. package/node_modules/dp-shared/dist/relay-contracts.d.ts +9 -4
  89. package/node_modules/dp-shared/dist/relay-contracts.d.ts.map +1 -1
  90. package/node_modules/dp-shared/dist/relay-contracts.js +8 -4
  91. package/node_modules/dp-shared/dist/relay-contracts.js.map +1 -1
  92. package/node_modules/dp-shared/dist/rest-contracts.d.ts +20 -2
  93. package/node_modules/dp-shared/dist/rest-contracts.d.ts.map +1 -1
  94. package/node_modules/dp-shared/dist/rest-contracts.js +8 -2
  95. package/node_modules/dp-shared/dist/rest-contracts.js.map +1 -1
  96. package/node_modules/dp-shared/dist/risk-reasons.d.ts +2 -0
  97. package/node_modules/dp-shared/dist/risk-reasons.d.ts.map +1 -0
  98. package/node_modules/dp-shared/dist/risk-reasons.js +25 -0
  99. package/node_modules/dp-shared/dist/risk-reasons.js.map +1 -0
  100. package/node_modules/dp-shared/dist/ws-protocol.d.ts +4 -0
  101. package/node_modules/dp-shared/dist/ws-protocol.d.ts.map +1 -1
  102. package/node_modules/dp-shared/dist/ws-protocol.js +2 -0
  103. package/node_modules/dp-shared/dist/ws-protocol.js.map +1 -1
  104. package/node_modules/dp-shared/dist/x-text.d.ts +3 -0
  105. package/node_modules/dp-shared/dist/x-text.d.ts.map +1 -0
  106. package/node_modules/dp-shared/dist/x-text.js +19 -0
  107. package/node_modules/dp-shared/dist/x-text.js.map +1 -0
  108. package/node_modules/dp-shared/package.json +6 -0
  109. package/node_modules/ip-address/LICENSE +19 -0
  110. package/node_modules/ip-address/README.md +298 -0
  111. package/node_modules/ip-address/dist/address-error.d.ts +4 -0
  112. package/node_modules/ip-address/dist/address-error.js +12 -0
  113. package/node_modules/ip-address/dist/address-error.js.map +1 -0
  114. package/node_modules/ip-address/dist/common.d.ts +49 -0
  115. package/node_modules/ip-address/dist/common.js +106 -0
  116. package/node_modules/ip-address/dist/common.js.map +1 -0
  117. package/node_modules/ip-address/dist/ip-address.d.ts +7 -0
  118. package/node_modules/ip-address/dist/ip-address.js +35 -0
  119. package/node_modules/ip-address/dist/ip-address.js.map +1 -0
  120. package/node_modules/ip-address/dist/ipv4.d.ts +274 -0
  121. package/node_modules/ip-address/dist/ipv4.js +489 -0
  122. package/node_modules/ip-address/dist/ipv4.js.map +1 -0
  123. package/node_modules/ip-address/dist/ipv6.d.ts +554 -0
  124. package/node_modules/ip-address/dist/ipv6.js +1344 -0
  125. package/node_modules/ip-address/dist/ipv6.js.map +1 -0
  126. package/node_modules/ip-address/dist/v4/constants.d.ts +4 -0
  127. package/node_modules/ip-address/dist/v4/constants.js +12 -0
  128. package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
  129. package/node_modules/ip-address/dist/v6/constants.d.ts +44 -0
  130. package/node_modules/ip-address/dist/v6/constants.js +82 -0
  131. package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
  132. package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
  133. package/node_modules/ip-address/dist/v6/helpers.js +54 -0
  134. package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
  135. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +5 -0
  136. package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
  137. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
  138. package/node_modules/ip-address/package.json +90 -0
  139. package/node_modules/smart-buffer/.prettierrc.yaml +5 -0
  140. package/node_modules/smart-buffer/.travis.yml +13 -0
  141. package/node_modules/smart-buffer/LICENSE +20 -0
  142. package/node_modules/smart-buffer/README.md +633 -0
  143. package/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
  144. package/node_modules/smart-buffer/build/smartbuffer.js.map +1 -0
  145. package/node_modules/smart-buffer/build/utils.js +108 -0
  146. package/node_modules/smart-buffer/build/utils.js.map +1 -0
  147. package/node_modules/smart-buffer/docs/CHANGELOG.md +70 -0
  148. package/node_modules/smart-buffer/docs/README_v3.md +367 -0
  149. package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
  150. package/node_modules/smart-buffer/package.json +79 -0
  151. package/node_modules/smart-buffer/typings/smartbuffer.d.ts +755 -0
  152. package/node_modules/smart-buffer/typings/utils.d.ts +66 -0
  153. package/node_modules/socks/.eslintrc.cjs +11 -0
  154. package/node_modules/socks/.prettierrc.yaml +7 -0
  155. package/node_modules/socks/LICENSE +20 -0
  156. package/node_modules/socks/README.md +686 -0
  157. package/node_modules/socks/build/client/socksclient.js +793 -0
  158. package/node_modules/socks/build/client/socksclient.js.map +1 -0
  159. package/node_modules/socks/build/common/constants.js +108 -0
  160. package/node_modules/socks/build/common/constants.js.map +1 -0
  161. package/node_modules/socks/build/common/helpers.js +167 -0
  162. package/node_modules/socks/build/common/helpers.js.map +1 -0
  163. package/node_modules/socks/build/common/receivebuffer.js +43 -0
  164. package/node_modules/socks/build/common/receivebuffer.js.map +1 -0
  165. package/node_modules/socks/build/common/util.js +25 -0
  166. package/node_modules/socks/build/common/util.js.map +1 -0
  167. package/node_modules/socks/build/index.js +18 -0
  168. package/node_modules/socks/build/index.js.map +1 -0
  169. package/node_modules/socks/docs/examples/index.md +17 -0
  170. package/node_modules/socks/docs/examples/javascript/associateExample.md +90 -0
  171. package/node_modules/socks/docs/examples/javascript/bindExample.md +83 -0
  172. package/node_modules/socks/docs/examples/javascript/connectExample.md +258 -0
  173. package/node_modules/socks/docs/examples/typescript/associateExample.md +93 -0
  174. package/node_modules/socks/docs/examples/typescript/bindExample.md +86 -0
  175. package/node_modules/socks/docs/examples/typescript/connectExample.md +265 -0
  176. package/node_modules/socks/docs/index.md +5 -0
  177. package/node_modules/socks/docs/migratingFromV1.md +86 -0
  178. package/node_modules/socks/package.json +58 -0
  179. package/node_modules/socks/typings/client/socksclient.d.ts +162 -0
  180. package/node_modules/socks/typings/common/constants.d.ts +151 -0
  181. package/node_modules/socks/typings/common/helpers.d.ts +17 -0
  182. package/node_modules/socks/typings/common/receivebuffer.d.ts +12 -0
  183. package/node_modules/socks/typings/common/util.d.ts +14 -0
  184. package/node_modules/socks/typings/index.d.ts +1 -0
  185. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ /// <reference types="node" />
2
+ import { SmartBuffer } from './smartbuffer';
3
+ import { Buffer } from 'buffer';
4
+ /**
5
+ * Error strings
6
+ */
7
+ declare const ERRORS: {
8
+ INVALID_ENCODING: string;
9
+ INVALID_SMARTBUFFER_SIZE: string;
10
+ INVALID_SMARTBUFFER_BUFFER: string;
11
+ INVALID_SMARTBUFFER_OBJECT: string;
12
+ INVALID_OFFSET: string;
13
+ INVALID_OFFSET_NON_NUMBER: string;
14
+ INVALID_LENGTH: string;
15
+ INVALID_LENGTH_NON_NUMBER: string;
16
+ INVALID_TARGET_OFFSET: string;
17
+ INVALID_TARGET_LENGTH: string;
18
+ INVALID_READ_BEYOND_BOUNDS: string;
19
+ INVALID_WRITE_BEYOND_BOUNDS: string;
20
+ };
21
+ /**
22
+ * Checks if a given encoding is a valid Buffer encoding. (Throws an exception if check fails)
23
+ *
24
+ * @param { String } encoding The encoding string to check.
25
+ */
26
+ declare function checkEncoding(encoding: BufferEncoding): void;
27
+ /**
28
+ * Checks if a given number is a finite integer. (Throws an exception if check fails)
29
+ *
30
+ * @param { Number } value The number value to check.
31
+ */
32
+ declare function isFiniteInteger(value: number): boolean;
33
+ /**
34
+ * Checks if a length value is valid. (Throws an exception if check fails)
35
+ *
36
+ * @param { Number } length The value to check.
37
+ */
38
+ declare function checkLengthValue(length: any): void;
39
+ /**
40
+ * Checks if a offset value is valid. (Throws an exception if check fails)
41
+ *
42
+ * @param { Number } offset The value to check.
43
+ */
44
+ declare function checkOffsetValue(offset: any): void;
45
+ /**
46
+ * Checks if a target offset value is out of bounds. (Throws an exception if check fails)
47
+ *
48
+ * @param { Number } offset The offset value to check.
49
+ * @param { SmartBuffer } buff The SmartBuffer instance to check against.
50
+ */
51
+ declare function checkTargetOffset(offset: number, buff: SmartBuffer): void;
52
+ interface Buffer {
53
+ readBigInt64BE(offset?: number): bigint;
54
+ readBigInt64LE(offset?: number): bigint;
55
+ readBigUInt64BE(offset?: number): bigint;
56
+ readBigUInt64LE(offset?: number): bigint;
57
+ writeBigInt64BE(value: bigint, offset?: number): number;
58
+ writeBigInt64LE(value: bigint, offset?: number): number;
59
+ writeBigUInt64BE(value: bigint, offset?: number): number;
60
+ writeBigUInt64LE(value: bigint, offset?: number): number;
61
+ }
62
+ /**
63
+ * Throws if Node.js version is too low to support bigint
64
+ */
65
+ declare function bigIntAndBufferInt64Check(bufferMethod: keyof Buffer): void;
66
+ export { ERRORS, isFiniteInteger, checkEncoding, checkOffsetValue, checkLengthValue, checkTargetOffset, bigIntAndBufferInt64Check };
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ root: true,
3
+ parser: '@typescript-eslint/parser',
4
+ plugins: [
5
+ '@typescript-eslint',
6
+ ],
7
+ extends: [
8
+ 'eslint:recommended',
9
+ 'plugin:@typescript-eslint/recommended',
10
+ ],
11
+ };
@@ -0,0 +1,7 @@
1
+ parser: typescript
2
+ printWidth: 80
3
+ tabWidth: 2
4
+ singleQuote: true
5
+ trailingComma: all
6
+ arrowParens: always
7
+ bracketSpacing: false
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Josh Glazebrook
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.