brass-runtime 1.19.2 → 1.21.0
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/CHANGELOG.md +88 -0
- package/dist/agent/cli/main.cjs +265 -43
- package/dist/agent/cli/main.d.ts +99 -0
- package/dist/agent/cli/main.js +238 -16
- package/dist/agent/cli/main.mjs +238 -16
- package/dist/agent/index.cjs +18 -2
- package/dist/agent/index.d.ts +60 -482
- package/dist/agent/index.js +17 -1
- package/dist/agent/index.mjs +17 -1
- package/dist/{chunk-QAHW7S3Q.cjs → chunk-62IBGQOU.cjs} +6 -6
- package/dist/{chunk-6AGAZD32.js → chunk-6LF3M4JC.js} +2 -2
- package/dist/{chunk-5X3MPWTR.mjs → chunk-6NXQL3IC.mjs} +370 -10
- package/dist/{chunk-J4F5KC3U.js → chunk-AI3M6624.js} +1260 -45
- package/dist/{chunk-TWEHIAUE.cjs → chunk-BDTBIYAM.cjs} +13 -13
- package/dist/{chunk-IA6BDGXW.mjs → chunk-D53GY2SZ.mjs} +2 -2
- package/dist/{chunk-IHY2EJTT.cjs → chunk-EX4VEKUF.cjs} +1340 -125
- package/dist/{chunk-UOKXJQAI.cjs → chunk-LA2PAO7J.cjs} +378 -18
- package/dist/{chunk-ZXXOXB3T.mjs → chunk-OS4F5HZE.mjs} +1 -1
- package/dist/{chunk-HKLZJ5UK.js → chunk-POH2WZBI.js} +370 -10
- package/dist/{chunk-6BNZS2A4.mjs → chunk-Q57ENQUW.mjs} +1260 -45
- package/dist/{chunk-BHX4MD35.js → chunk-VXZIP3IU.js} +1 -1
- package/dist/{defaultClient-hyVSNzSJ.d.ts → defaultClient-DLOa3gdw.d.ts} +101 -3
- package/dist/http/index.cjs +69 -33
- package/dist/http/index.d.ts +67 -4
- package/dist/http/index.js +37 -1
- package/dist/http/index.mjs +37 -1
- package/dist/http/testing.cjs +4 -4
- package/dist/http/testing.d.ts +1 -1
- package/dist/http/testing.js +1 -1
- package/dist/http/testing.mjs +1 -1
- package/dist/nodeWorkspaceDiscovery-Ami1UkMt.d.ts +631 -0
- package/dist/observability/index.cjs +3 -3
- package/dist/observability/index.d.ts +3 -3
- package/dist/observability/index.js +2 -2
- package/dist/observability/index.mjs +2 -2
- package/dist/perf/cli.cjs +18 -18
- package/dist/perf/cli.js +3 -3
- package/dist/perf/cli.mjs +3 -3
- package/dist/perf/index.cjs +5 -5
- package/dist/perf/index.js +3 -3
- package/dist/perf/index.mjs +3 -3
- package/dist/{server-BKKuzAW9.d.ts → server-BGXOabjo.d.ts} +1 -1
- package/package.json +1 -1
- package/wasm/pkg/package.json +1 -1
package/dist/http/index.js
CHANGED
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
decodeJsonBody,
|
|
32
32
|
decodeJsonBodyEffect,
|
|
33
33
|
decorate,
|
|
34
|
+
decorateStream,
|
|
34
35
|
defaultHttpClientPreset,
|
|
35
36
|
defaultRetryOnError,
|
|
36
37
|
defaultRetryOnStatus,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
detectPlatform,
|
|
40
41
|
encodeJsonBodyEffect,
|
|
41
42
|
executeProbe,
|
|
43
|
+
fetchLabel,
|
|
42
44
|
formatHttpError,
|
|
43
45
|
getHttpRequestPolicy,
|
|
44
46
|
headersOf,
|
|
@@ -59,7 +61,10 @@ import {
|
|
|
59
61
|
isTimeoutHttpError,
|
|
60
62
|
isValidationError,
|
|
61
63
|
linkAbortSignals,
|
|
64
|
+
makeAdaptiveLimiter,
|
|
62
65
|
makeAdaptiveLimiterConfig,
|
|
66
|
+
makeBareMetalHttp,
|
|
67
|
+
makeBareMetalHttpStream,
|
|
63
68
|
makeBudgetSemaphore,
|
|
64
69
|
makeCompressionMiddleware,
|
|
65
70
|
makeConnectionStateMap,
|
|
@@ -69,9 +74,11 @@ import {
|
|
|
69
74
|
makeFetchTransport,
|
|
70
75
|
makeHttp,
|
|
71
76
|
makeHttpClient,
|
|
77
|
+
makeHttpStats,
|
|
72
78
|
makeHttpStream,
|
|
73
79
|
makeJsonParseValidationError,
|
|
74
80
|
makeLifecycleClient,
|
|
81
|
+
makePool,
|
|
75
82
|
makePrewarmManager,
|
|
76
83
|
makePromiseHttpTransport,
|
|
77
84
|
makeRequestCompressionMiddleware,
|
|
@@ -81,16 +88,27 @@ import {
|
|
|
81
88
|
normalizeHeadersInit,
|
|
82
89
|
normalizeHttpError,
|
|
83
90
|
normalizeHttpHeaders,
|
|
91
|
+
normalizeRequest,
|
|
84
92
|
normalizeRetryBudget,
|
|
85
93
|
now,
|
|
86
94
|
parseCacheKey,
|
|
87
95
|
promiseHttpTransport,
|
|
96
|
+
releaseFailure,
|
|
97
|
+
releaseSuccess,
|
|
98
|
+
requestPriority,
|
|
88
99
|
resolveConfig,
|
|
89
100
|
resolveHttpPoolKey,
|
|
90
101
|
resolveHttpRequestPolicyPresets,
|
|
102
|
+
resolvePositiveTimeout,
|
|
103
|
+
resolveRequestUrl,
|
|
91
104
|
retryAfterMs,
|
|
105
|
+
runDirectTransport,
|
|
106
|
+
runPoolTransport,
|
|
107
|
+
runTransportEffect,
|
|
92
108
|
setHeaderIfMissing,
|
|
109
|
+
timeoutReason,
|
|
93
110
|
toHttpError,
|
|
111
|
+
validateBareMetalConfig,
|
|
94
112
|
validateConfig,
|
|
95
113
|
validateFetchAvailable,
|
|
96
114
|
validateOrigin,
|
|
@@ -105,7 +123,7 @@ import {
|
|
|
105
123
|
withPriority,
|
|
106
124
|
withRetry,
|
|
107
125
|
withRetryStream
|
|
108
|
-
} from "../chunk-
|
|
126
|
+
} from "../chunk-POH2WZBI.js";
|
|
109
127
|
import {
|
|
110
128
|
registerHttpEffect
|
|
111
129
|
} from "../chunk-TRM4JUZQ.js";
|
|
@@ -1730,6 +1748,7 @@ export {
|
|
|
1730
1748
|
decodeJsonBody,
|
|
1731
1749
|
decodeJsonBodyEffect,
|
|
1732
1750
|
decorate,
|
|
1751
|
+
decorateStream,
|
|
1733
1752
|
defaultHttpClientPreset,
|
|
1734
1753
|
defaultRetryOnError,
|
|
1735
1754
|
defaultRetryOnStatus,
|
|
@@ -1739,6 +1758,7 @@ export {
|
|
|
1739
1758
|
empty,
|
|
1740
1759
|
encodeJsonBodyEffect,
|
|
1741
1760
|
executeProbe,
|
|
1761
|
+
fetchLabel,
|
|
1742
1762
|
formatConfigError,
|
|
1743
1763
|
formatHttpError,
|
|
1744
1764
|
formatIssues,
|
|
@@ -1770,7 +1790,10 @@ export {
|
|
|
1770
1790
|
isValidationError,
|
|
1771
1791
|
json,
|
|
1772
1792
|
linkAbortSignals,
|
|
1793
|
+
makeAdaptiveLimiter,
|
|
1773
1794
|
makeAdaptiveLimiterConfig,
|
|
1795
|
+
makeBareMetalHttp,
|
|
1796
|
+
makeBareMetalHttpStream,
|
|
1774
1797
|
makeBudgetSemaphore,
|
|
1775
1798
|
makeCompressionMiddleware,
|
|
1776
1799
|
makeConnectionStateMap,
|
|
@@ -1783,6 +1806,7 @@ export {
|
|
|
1783
1806
|
makeHttpClientBuilder,
|
|
1784
1807
|
makeHttpRouter,
|
|
1785
1808
|
makeHttpServerResource,
|
|
1809
|
+
makeHttpStats,
|
|
1786
1810
|
makeHttpStream,
|
|
1787
1811
|
makeJsonParseValidationError,
|
|
1788
1812
|
makeLifecycleClient,
|
|
@@ -1790,6 +1814,7 @@ export {
|
|
|
1790
1814
|
makeNodeHttpServer,
|
|
1791
1815
|
makeNodeHttpServerResource,
|
|
1792
1816
|
makeNodeHttpTransport,
|
|
1817
|
+
makePool,
|
|
1793
1818
|
makePrewarmManager,
|
|
1794
1819
|
makePromiseHttpTransport,
|
|
1795
1820
|
makeRequestCompressionMiddleware,
|
|
@@ -1803,23 +1828,34 @@ export {
|
|
|
1803
1828
|
normalizeHeadersInit,
|
|
1804
1829
|
normalizeHttpError,
|
|
1805
1830
|
normalizeHttpHeaders,
|
|
1831
|
+
normalizeRequest,
|
|
1806
1832
|
normalizeRetryBudget,
|
|
1807
1833
|
parseCacheKey,
|
|
1808
1834
|
parseConfig,
|
|
1809
1835
|
prewarmConnections,
|
|
1810
1836
|
prewarmHttpConnections,
|
|
1811
1837
|
promiseHttpTransport,
|
|
1838
|
+
releaseFailure,
|
|
1839
|
+
releaseSuccess,
|
|
1840
|
+
requestPriority,
|
|
1812
1841
|
resolveConfig,
|
|
1813
1842
|
resolveHttpPoolKey,
|
|
1814
1843
|
resolveHttpRequestPolicyPresets,
|
|
1844
|
+
resolvePositiveTimeout,
|
|
1845
|
+
resolveRequestUrl,
|
|
1815
1846
|
retryAfterMs,
|
|
1816
1847
|
route,
|
|
1848
|
+
runDirectTransport,
|
|
1849
|
+
runPoolTransport,
|
|
1850
|
+
runTransportEffect,
|
|
1817
1851
|
runtimeHealthRoute,
|
|
1818
1852
|
runtimeReadinessRoute,
|
|
1819
1853
|
s,
|
|
1820
1854
|
schema,
|
|
1821
1855
|
text,
|
|
1856
|
+
timeoutReason,
|
|
1822
1857
|
toHttpError,
|
|
1858
|
+
validateBareMetalConfig,
|
|
1823
1859
|
validateConfig,
|
|
1824
1860
|
validateFetchAvailable,
|
|
1825
1861
|
validateOrigin,
|
package/dist/http/index.mjs
CHANGED
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
decodeJsonBody,
|
|
32
32
|
decodeJsonBodyEffect,
|
|
33
33
|
decorate,
|
|
34
|
+
decorateStream,
|
|
34
35
|
defaultHttpClientPreset,
|
|
35
36
|
defaultRetryOnError,
|
|
36
37
|
defaultRetryOnStatus,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
detectPlatform,
|
|
40
41
|
encodeJsonBodyEffect,
|
|
41
42
|
executeProbe,
|
|
43
|
+
fetchLabel,
|
|
42
44
|
formatHttpError,
|
|
43
45
|
getHttpRequestPolicy,
|
|
44
46
|
headersOf,
|
|
@@ -59,7 +61,10 @@ import {
|
|
|
59
61
|
isTimeoutHttpError,
|
|
60
62
|
isValidationError,
|
|
61
63
|
linkAbortSignals,
|
|
64
|
+
makeAdaptiveLimiter,
|
|
62
65
|
makeAdaptiveLimiterConfig,
|
|
66
|
+
makeBareMetalHttp,
|
|
67
|
+
makeBareMetalHttpStream,
|
|
63
68
|
makeBudgetSemaphore,
|
|
64
69
|
makeCompressionMiddleware,
|
|
65
70
|
makeConnectionStateMap,
|
|
@@ -69,9 +74,11 @@ import {
|
|
|
69
74
|
makeFetchTransport,
|
|
70
75
|
makeHttp,
|
|
71
76
|
makeHttpClient,
|
|
77
|
+
makeHttpStats,
|
|
72
78
|
makeHttpStream,
|
|
73
79
|
makeJsonParseValidationError,
|
|
74
80
|
makeLifecycleClient,
|
|
81
|
+
makePool,
|
|
75
82
|
makePrewarmManager,
|
|
76
83
|
makePromiseHttpTransport,
|
|
77
84
|
makeRequestCompressionMiddleware,
|
|
@@ -81,16 +88,27 @@ import {
|
|
|
81
88
|
normalizeHeadersInit,
|
|
82
89
|
normalizeHttpError,
|
|
83
90
|
normalizeHttpHeaders,
|
|
91
|
+
normalizeRequest,
|
|
84
92
|
normalizeRetryBudget,
|
|
85
93
|
now,
|
|
86
94
|
parseCacheKey,
|
|
87
95
|
promiseHttpTransport,
|
|
96
|
+
releaseFailure,
|
|
97
|
+
releaseSuccess,
|
|
98
|
+
requestPriority,
|
|
88
99
|
resolveConfig,
|
|
89
100
|
resolveHttpPoolKey,
|
|
90
101
|
resolveHttpRequestPolicyPresets,
|
|
102
|
+
resolvePositiveTimeout,
|
|
103
|
+
resolveRequestUrl,
|
|
91
104
|
retryAfterMs,
|
|
105
|
+
runDirectTransport,
|
|
106
|
+
runPoolTransport,
|
|
107
|
+
runTransportEffect,
|
|
92
108
|
setHeaderIfMissing,
|
|
109
|
+
timeoutReason,
|
|
93
110
|
toHttpError,
|
|
111
|
+
validateBareMetalConfig,
|
|
94
112
|
validateConfig,
|
|
95
113
|
validateFetchAvailable,
|
|
96
114
|
validateOrigin,
|
|
@@ -105,7 +123,7 @@ import {
|
|
|
105
123
|
withPriority,
|
|
106
124
|
withRetry,
|
|
107
125
|
withRetryStream
|
|
108
|
-
} from "../chunk-
|
|
126
|
+
} from "../chunk-6NXQL3IC.mjs";
|
|
109
127
|
import {
|
|
110
128
|
registerHttpEffect
|
|
111
129
|
} from "../chunk-MOO4L7F4.mjs";
|
|
@@ -1730,6 +1748,7 @@ export {
|
|
|
1730
1748
|
decodeJsonBody,
|
|
1731
1749
|
decodeJsonBodyEffect,
|
|
1732
1750
|
decorate,
|
|
1751
|
+
decorateStream,
|
|
1733
1752
|
defaultHttpClientPreset,
|
|
1734
1753
|
defaultRetryOnError,
|
|
1735
1754
|
defaultRetryOnStatus,
|
|
@@ -1739,6 +1758,7 @@ export {
|
|
|
1739
1758
|
empty,
|
|
1740
1759
|
encodeJsonBodyEffect,
|
|
1741
1760
|
executeProbe,
|
|
1761
|
+
fetchLabel,
|
|
1742
1762
|
formatConfigError,
|
|
1743
1763
|
formatHttpError,
|
|
1744
1764
|
formatIssues,
|
|
@@ -1770,7 +1790,10 @@ export {
|
|
|
1770
1790
|
isValidationError,
|
|
1771
1791
|
json,
|
|
1772
1792
|
linkAbortSignals,
|
|
1793
|
+
makeAdaptiveLimiter,
|
|
1773
1794
|
makeAdaptiveLimiterConfig,
|
|
1795
|
+
makeBareMetalHttp,
|
|
1796
|
+
makeBareMetalHttpStream,
|
|
1774
1797
|
makeBudgetSemaphore,
|
|
1775
1798
|
makeCompressionMiddleware,
|
|
1776
1799
|
makeConnectionStateMap,
|
|
@@ -1783,6 +1806,7 @@ export {
|
|
|
1783
1806
|
makeHttpClientBuilder,
|
|
1784
1807
|
makeHttpRouter,
|
|
1785
1808
|
makeHttpServerResource,
|
|
1809
|
+
makeHttpStats,
|
|
1786
1810
|
makeHttpStream,
|
|
1787
1811
|
makeJsonParseValidationError,
|
|
1788
1812
|
makeLifecycleClient,
|
|
@@ -1790,6 +1814,7 @@ export {
|
|
|
1790
1814
|
makeNodeHttpServer,
|
|
1791
1815
|
makeNodeHttpServerResource,
|
|
1792
1816
|
makeNodeHttpTransport,
|
|
1817
|
+
makePool,
|
|
1793
1818
|
makePrewarmManager,
|
|
1794
1819
|
makePromiseHttpTransport,
|
|
1795
1820
|
makeRequestCompressionMiddleware,
|
|
@@ -1803,23 +1828,34 @@ export {
|
|
|
1803
1828
|
normalizeHeadersInit,
|
|
1804
1829
|
normalizeHttpError,
|
|
1805
1830
|
normalizeHttpHeaders,
|
|
1831
|
+
normalizeRequest,
|
|
1806
1832
|
normalizeRetryBudget,
|
|
1807
1833
|
parseCacheKey,
|
|
1808
1834
|
parseConfig,
|
|
1809
1835
|
prewarmConnections,
|
|
1810
1836
|
prewarmHttpConnections,
|
|
1811
1837
|
promiseHttpTransport,
|
|
1838
|
+
releaseFailure,
|
|
1839
|
+
releaseSuccess,
|
|
1840
|
+
requestPriority,
|
|
1812
1841
|
resolveConfig,
|
|
1813
1842
|
resolveHttpPoolKey,
|
|
1814
1843
|
resolveHttpRequestPolicyPresets,
|
|
1844
|
+
resolvePositiveTimeout,
|
|
1845
|
+
resolveRequestUrl,
|
|
1815
1846
|
retryAfterMs,
|
|
1816
1847
|
route,
|
|
1848
|
+
runDirectTransport,
|
|
1849
|
+
runPoolTransport,
|
|
1850
|
+
runTransportEffect,
|
|
1817
1851
|
runtimeHealthRoute,
|
|
1818
1852
|
runtimeReadinessRoute,
|
|
1819
1853
|
s,
|
|
1820
1854
|
schema,
|
|
1821
1855
|
text,
|
|
1856
|
+
timeoutReason,
|
|
1822
1857
|
toHttpError,
|
|
1858
|
+
validateBareMetalConfig,
|
|
1823
1859
|
validateConfig,
|
|
1824
1860
|
validateFetchAvailable,
|
|
1825
1861
|
validateOrigin,
|
package/dist/http/testing.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLA2PAO7Jcjs = require('../chunk-LA2PAO7J.cjs');
|
|
6
6
|
require('../chunk-L6VB5N7Q.cjs');
|
|
7
7
|
require('../chunk-CXWJII2N.cjs');
|
|
8
8
|
require('../chunk-SA6HUJVI.cjs');
|
|
@@ -66,7 +66,7 @@ function makeMockHttpClient(handler = () => makeHttpResponse()) {
|
|
|
66
66
|
return _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, toHttpError(error));
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
return Object.assign(
|
|
69
|
+
return Object.assign(_chunkLA2PAO7Jcjs.decorate.call(void 0, run, () => ({ ...stats })), {
|
|
70
70
|
calls: () => [...calls],
|
|
71
71
|
calledTimes: () => calls.length,
|
|
72
72
|
lastRequest: () => calls.at(-1),
|
|
@@ -89,7 +89,7 @@ function makeSequenceHttpClient(responses, fallback = makeHttpResponse()) {
|
|
|
89
89
|
}
|
|
90
90
|
function makeMockDefaultHttpClient(handler = () => makeHttpResponse()) {
|
|
91
91
|
const wire = makeMockHttpClient(handler);
|
|
92
|
-
const client =
|
|
92
|
+
const client = _chunkLA2PAO7Jcjs.makeDefaultHttpClient.call(void 0, {
|
|
93
93
|
baseUrl: "http://brass.test",
|
|
94
94
|
preset: "minimal",
|
|
95
95
|
transport: ({ request }) => wire(request)
|
|
@@ -102,7 +102,7 @@ function makeMockDefaultHttpClient(handler = () => makeHttpResponse()) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
function makeMockDefaultHttpClientLayer(handler = () => makeHttpResponse(), options = {}) {
|
|
105
|
-
return _chunkZZ2CMYJLcjs.layerValue.call(void 0, _nullishCoalesce(options.tag, () => (
|
|
105
|
+
return _chunkZZ2CMYJLcjs.layerValue.call(void 0, _nullishCoalesce(options.tag, () => ( _chunkLA2PAO7Jcjs.HttpClientService)), makeMockDefaultHttpClient(handler));
|
|
106
106
|
}
|
|
107
107
|
function runHttpEffect(effect, env = {}) {
|
|
108
108
|
return _chunkJKHBEWQAcjs.toPromise.call(void 0, effect, env);
|
package/dist/http/testing.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as ServiceTag, L as Layer, a as LayerContext } from '../layer-CsNGeVee.js';
|
|
2
2
|
import { A as Async } from '../effect-DbEMiMvv.js';
|
|
3
|
-
import { D as DefaultHttpClient, H as HttpRequest, a as HttpClient, b as HttpWireResponse, c as HttpError } from '../defaultClient-
|
|
3
|
+
import { D as DefaultHttpClient, H as HttpRequest, a as HttpClient, b as HttpWireResponse, c as HttpError } from '../defaultClient-DLOa3gdw.js';
|
|
4
4
|
import '../stream-B8c_UKZq.js';
|
|
5
5
|
import '../schema/index.js';
|
|
6
6
|
|
package/dist/http/testing.js
CHANGED
package/dist/http/testing.mjs
CHANGED