apps 0.0.1-beta.126 → 0.0.1-beta.128

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 (47) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-7TDDMSZI.js → chunk-2XVGONUX.js} +6 -6
  3. package/js/{chunk-V3HWVVFZ.js → chunk-3CDTMIVU.js} +3 -3
  4. package/js/{chunk-7ASLJHSD.js → chunk-3II7MIAQ.js} +6 -6
  5. package/js/{chunk-3KNB4HRA.js → chunk-53GRY7ZE.js} +3 -3
  6. package/js/{chunk-7ZYZWLXS.js → chunk-5CMAHXQD.js} +60 -61
  7. package/js/{chunk-VXBCDIWD.js → chunk-5H5IO2NZ.js} +778 -213
  8. package/js/{chunk-2AI3RZXP.js → chunk-5WCWPY23.js} +10 -10
  9. package/js/{chunk-MJUHAHDG.js → chunk-67DM7ASO.js} +2 -2
  10. package/js/{chunk-QUFLMMTG.js → chunk-DJNOADLI.js} +182 -61
  11. package/js/{chunk-KJW5IPM4.js → chunk-FXJUHTFE.js} +1 -1
  12. package/js/{chunk-VEQDEM6J.js → chunk-J3CZECVS.js} +13 -13
  13. package/js/{chunk-SO33LZ7J.js → chunk-KKKUQPWD.js} +2 -2
  14. package/js/{chunk-CCJUTN55.js → chunk-LC6YCEVL.js} +1 -1
  15. package/js/chunk-N7HXZNBD.js +161 -0
  16. package/js/{chunk-5TYZML5C.js → chunk-NGL6EJL6.js} +1775 -626
  17. package/js/{chunk-2EEUUSL7.js → chunk-NMSQJSBM.js} +308 -331
  18. package/js/{chunk-TTMRK64V.js → chunk-O46YT2VS.js} +2 -2
  19. package/js/{chunk-5LGG5YSE.js → chunk-PZBT2QO5.js} +2 -2
  20. package/js/{chunk-U2GHFWX2.js → chunk-QYHUNAWH.js} +7415 -3500
  21. package/js/{chunk-EPZ3P7IX.js → chunk-SA7FJGUX.js} +2 -2
  22. package/js/{chunk-LOHZM4RK.js → chunk-UJWZMRV6.js} +5 -5
  23. package/js/{chunk-MVAS3VFK.js → chunk-V2TAC4IJ.js} +8 -8
  24. package/js/{chunk-NCOPALJZ.js → chunk-WE4FZOSH.js} +1 -1
  25. package/js/{chunk-GWAA3COO.js → chunk-ZU2ECYYF.js} +4 -4
  26. package/js/{chunk-55QLA7T7.js → chunk-ZU77L7HU.js} +6 -6
  27. package/js/client.js +53 -32
  28. package/js/contracts.js +7 -7
  29. package/js/effect.js +18 -18
  30. package/js/graphql.js +20 -20
  31. package/js/host.js +18 -18
  32. package/js/index.js +13 -13
  33. package/js/mcp/effect.js +19 -19
  34. package/js/mcp.js +21 -21
  35. package/js/openapi.js +16 -16
  36. package/js/react.js +2 -2
  37. package/js/skills/effect.js +6 -6
  38. package/js/skills.js +15 -15
  39. package/js/ui/auth/contracts.js +2 -2
  40. package/js/ui/auth.js +5 -5
  41. package/js/ui/contracts.js +5 -5
  42. package/js/ui/serving.js +10 -10
  43. package/package.json +2 -2
  44. package/runtime.json +1 -1
  45. package/types/telemetry/src/keepalive.d.ts +36 -0
  46. package/types/telemetry/src/layer.d.ts +1 -1
  47. package/js/chunk-EAPSQBFN.js +0 -75
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  authorCache,
3
3
  unavailableCache
4
- } from "./chunk-7TDDMSZI.js";
4
+ } from "./chunk-2XVGONUX.js";
5
5
  import {
6
6
  accountSecrets,
7
7
  boundFailureMessage,
@@ -12,13 +12,13 @@ import {
12
12
  parseSkillLoadFailed,
13
13
  readCatalog,
14
14
  routerSkills
15
- } from "./chunk-MVAS3VFK.js";
15
+ } from "./chunk-V2TAC4IJ.js";
16
16
  import {
17
17
  appInvocationFetch
18
- } from "./chunk-V3HWVVFZ.js";
18
+ } from "./chunk-3CDTMIVU.js";
19
19
  import {
20
20
  folderSkillsEffect
21
- } from "./chunk-SO33LZ7J.js";
21
+ } from "./chunk-KKKUQPWD.js";
22
22
  import {
23
23
  ResponseStatusError,
24
24
  declaredEvents,
@@ -26,12 +26,12 @@ import {
26
26
  makeEmitter,
27
27
  toEffectApp,
28
28
  withPlacements
29
- } from "./chunk-7ASLJHSD.js";
29
+ } from "./chunk-3II7MIAQ.js";
30
30
  import {
31
31
  declaredOperations,
32
32
  locate,
33
33
  nativeOperation
34
- } from "./chunk-LOHZM4RK.js";
34
+ } from "./chunk-UJWZMRV6.js";
35
35
  import {
36
36
  accountProviderError,
37
37
  appCode,
@@ -39,7 +39,7 @@ import {
39
39
  httpProviderError,
40
40
  parseProviderError,
41
41
  toPromise
42
- } from "./chunk-GWAA3COO.js";
42
+ } from "./chunk-ZU2ECYYF.js";
43
43
  import {
44
44
  AccountCheckResult,
45
45
  DeclaredProvider,
@@ -95,11 +95,11 @@ import {
95
95
  sqlBindingsLimit,
96
96
  withoutHelp,
97
97
  workflowDurationMillis
98
- } from "./chunk-7ZYZWLXS.js";
98
+ } from "./chunk-5CMAHXQD.js";
99
99
  import {
100
100
  AppSkills,
101
101
  SkillFile
102
- } from "./chunk-EPZ3P7IX.js";
102
+ } from "./chunk-SA7FJGUX.js";
103
103
  import {
104
104
  allowedValues,
105
105
  echoableKey,
@@ -112,17 +112,17 @@ import {
112
112
  missingKeyText,
113
113
  objectShape,
114
114
  unionShape
115
- } from "./chunk-5LGG5YSE.js";
115
+ } from "./chunk-PZBT2QO5.js";
116
116
  import {
117
117
  captureTelemetry,
118
118
  makeOwnershipAccounting,
119
119
  measuredSpan,
120
120
  owned
121
- } from "./chunk-2EEUUSL7.js";
121
+ } from "./chunk-NMSQJSBM.js";
122
122
  import {
123
123
  JsonObject,
124
124
  JsonValue
125
- } from "./chunk-NCOPALJZ.js";
125
+ } from "./chunk-WE4FZOSH.js";
126
126
  import {
127
127
  Base64_exports,
128
128
  Cause_exports,
@@ -135,7 +135,7 @@ import {
135
135
  SchemaIssue_exports,
136
136
  Schema_exports,
137
137
  Stream_exports
138
- } from "./chunk-U2GHFWX2.js";
138
+ } from "./chunk-QYHUNAWH.js";
139
139
 
140
140
  // src/implementation/invocation-timing.ts
141
141
  var elicitationWaitSpan = "app.elicitation.wait";
@@ -5,11 +5,11 @@ import {
5
5
  SkillDefinitionInvalid,
6
6
  SkillFile,
7
7
  SkillFilePath
8
- } from "./chunk-EPZ3P7IX.js";
8
+ } from "./chunk-SA7FJGUX.js";
9
9
  import {
10
10
  Effect_exports,
11
11
  Schema_exports
12
- } from "./chunk-U2GHFWX2.js";
12
+ } from "./chunk-QYHUNAWH.js";
13
13
 
14
14
  // src/implementation/skill-files.ts
15
15
  var skillFromFiles = (input, source = {}) => Effect_exports.gen(function* () {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Predicate_exports
3
- } from "./chunk-U2GHFWX2.js";
3
+ } from "./chunk-QYHUNAWH.js";
4
4
 
5
5
  // ../utils/src/recorded-message.ts
6
6
  var RecordedMessage = /* @__PURE__ */ Symbol.for("@executor-js/utils/RecordedMessage");
@@ -0,0 +1,161 @@
1
+ import {
2
+ EncodeError,
3
+ HttpClientError,
4
+ TransportError,
5
+ fromWeb,
6
+ layerMergedContext,
7
+ make2 as make
8
+ } from "./chunk-NGL6EJL6.js";
9
+ import {
10
+ Reference,
11
+ Service,
12
+ callback,
13
+ ensuring,
14
+ ensuring2,
15
+ fail4 as fail,
16
+ flatMap2 as flatMap,
17
+ fromInput2 as fromInput,
18
+ getOrUndefined2 as getOrUndefined,
19
+ interrupt2 as interrupt,
20
+ interruptWhen,
21
+ map4 as map,
22
+ mapError,
23
+ merge3 as merge,
24
+ mkArrayBuffer,
25
+ onError,
26
+ remove3 as remove,
27
+ succeed4 as succeed,
28
+ sync2 as sync,
29
+ toReadableStreamEffect,
30
+ tryPromise
31
+ } from "./chunk-QYHUNAWH.js";
32
+ import {
33
+ __export
34
+ } from "./chunk-CZ7CSFO4.js";
35
+
36
+ // ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/http/FetchHttpClient.js
37
+ var FetchHttpClient_exports = {};
38
+ __export(FetchHttpClient_exports, {
39
+ Fetch: () => Fetch,
40
+ RequestInit: () => RequestInit,
41
+ StreamBodyFallback: () => StreamBodyFallback,
42
+ layer: () => layer
43
+ });
44
+ var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
45
+ defaultValue: () => globalThis.fetch
46
+ });
47
+ var StreamBodyFallback = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/StreamBodyFallback", {
48
+ defaultValue: () => "error"
49
+ });
50
+ var RequestInit = class extends (/* @__PURE__ */ Service()("effect/http/FetchHttpClient/RequestInit")) {
51
+ };
52
+ var supportsStreamBody;
53
+ var detectStreamBodySupport = () => {
54
+ try {
55
+ let duplexAccessed = false;
56
+ const body = new ReadableStream();
57
+ const request = new Request("https://example.com", {
58
+ method: "POST",
59
+ body,
60
+ get duplex() {
61
+ duplexAccessed = true;
62
+ return "half";
63
+ }
64
+ });
65
+ return (duplexAccessed || request.body === body) && !request.headers.has("Content-Type");
66
+ } catch {
67
+ return false;
68
+ }
69
+ };
70
+ var fetch = /* @__PURE__ */ make((request, url, signal, fiber) => {
71
+ if (request.headers.upgrade !== void 0) {
72
+ return fail(new HttpClientError({
73
+ reason: new TransportError({
74
+ request,
75
+ description: "fetch cannot send an HTTP upgrade request"
76
+ })
77
+ }));
78
+ }
79
+ const fetch2 = fiber.getRef(Fetch);
80
+ const options = getOrUndefined(fiber.context, RequestInit) ?? {};
81
+ let headers = options.headers ? merge(fromInput(options.headers), request.headers) : request.headers;
82
+ if (headers["content-length"]) {
83
+ headers = remove(headers, "content-length");
84
+ }
85
+ let uploadController;
86
+ const stopUpload = sync(() => uploadController?.abort());
87
+ const send = (body) => map(tryPromise({
88
+ try: () => fetch2(url, {
89
+ ...options,
90
+ method: request.method,
91
+ headers,
92
+ body,
93
+ duplex: typeof ReadableStream !== "undefined" && body instanceof ReadableStream ? "half" : void 0,
94
+ signal: uploadController ? AbortSignal.any([signal, uploadController.signal]) : signal
95
+ }),
96
+ catch: (cause) => new HttpClientError({
97
+ reason: new TransportError({
98
+ request,
99
+ cause
100
+ })
101
+ })
102
+ }), (response) => {
103
+ const original = fromWeb(request, response);
104
+ if (!uploadController) return original;
105
+ if (response.body === null) uploadController.abort();
106
+ return Object.create(original, {
107
+ ...Object.fromEntries(["arrayBuffer", "text", "json", "formData", "urlParamsBody"].map((key) => [key, {
108
+ get: () => ensuring(original[key], stopUpload)
109
+ }])),
110
+ stream: {
111
+ get: () => ensuring2(original.stream, stopUpload)
112
+ }
113
+ });
114
+ }).pipe(onError(() => stopUpload));
115
+ switch (request.body._tag) {
116
+ case "Raw":
117
+ case "Uint8Array":
118
+ return send(request.body.body);
119
+ case "FormData":
120
+ return send(request.body.formData);
121
+ case "Stream": {
122
+ supportsStreamBody ??= detectStreamBodySupport();
123
+ if (supportsStreamBody) {
124
+ uploadController = new AbortController();
125
+ const uploadSignal = AbortSignal.any([signal, uploadController.signal]);
126
+ const stopped = callback((resume) => {
127
+ const onAbort = () => resume(interrupt);
128
+ if (uploadSignal.aborted) {
129
+ onAbort();
130
+ return;
131
+ }
132
+ uploadSignal.addEventListener("abort", onAbort, {
133
+ once: true
134
+ });
135
+ return sync(() => uploadSignal.removeEventListener("abort", onAbort));
136
+ });
137
+ return flatMap(toReadableStreamEffect(interruptWhen(request.body.stream, stopped)), send);
138
+ }
139
+ if (fiber.getRef(StreamBodyFallback) === "error") {
140
+ return fail(new HttpClientError({
141
+ reason: new EncodeError({
142
+ request,
143
+ description: "Streaming request bodies are not supported in this runtime"
144
+ })
145
+ }));
146
+ }
147
+ return mkArrayBuffer(request.body.stream).pipe(mapError((cause) => new HttpClientError({
148
+ reason: new EncodeError({
149
+ request,
150
+ cause
151
+ })
152
+ })), flatMap(send));
153
+ }
154
+ }
155
+ return send(void 0);
156
+ });
157
+ var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed(fetch));
158
+
159
+ export {
160
+ FetchHttpClient_exports
161
+ };