apps 0.0.1-beta.77 → 0.0.1-beta.79
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/framework-reference.json +1 -1
- package/js/{chunk-XI4LOHUR.js → chunk-4IN2N5CY.js} +5 -5
- package/js/{chunk-BPROQMUB.js → chunk-BIUWK47W.js} +1 -1
- package/js/{chunk-3CVQ3VPP.js → chunk-C6P3YMHI.js} +34 -7
- package/js/{chunk-JREDSVGB.js → chunk-CT3QZBWU.js} +13 -9
- package/js/{chunk-SNLZ5SUI.js → chunk-EZCV4Q4R.js} +2 -2
- package/js/{chunk-DFPNS3O3.js → chunk-IUPDGBBF.js} +2 -2
- package/js/{chunk-EAVF4IPZ.js → chunk-NG56RPCA.js} +8 -1
- package/js/{chunk-A5JIYK7N.js → chunk-OK4MIBPW.js} +52 -28
- package/js/{chunk-DV6PXM42.js → chunk-PW4S2HP5.js} +3 -3
- package/js/{chunk-GLPG3W7P.js → chunk-Q5S3SWMO.js} +3 -3
- package/js/{chunk-L5OGF662.js → chunk-SNKDWIYL.js} +2 -2
- package/js/{chunk-D3EM6XUC.js → chunk-WFCOT6UW.js} +4 -4
- package/js/{chunk-ZHHWNWV3.js → chunk-ZYXY6JLH.js} +1 -1
- package/js/client.js +1 -1
- package/js/contracts.js +1 -1
- package/js/effect.js +9 -9
- package/js/graphql.js +11 -11
- package/js/host.js +9 -9
- package/js/index.js +5 -5
- package/js/mcp/effect.js +11 -11
- package/js/mcp/stdio.js +11 -11
- package/js/mcp.js +13 -13
- package/js/openapi.js +7 -7
- package/js/skills.js +5 -5
- package/js/ui/serving.js +1 -1
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/index.d.ts +6 -1
- package/types/apps/src/contracts/host.d.ts +7 -0
- package/types/apps/src/implementation/invocation-timing.d.ts +3 -1
- package/types/telemetry/src/ownership.d.ts +8 -4
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
answeredError,
|
|
4
4
|
mcpClient,
|
|
5
5
|
mcpJsonSchemaValidator
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WFCOT6UW.js";
|
|
7
7
|
import {
|
|
8
8
|
failOnNetworkRefusal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BIUWK47W.js";
|
|
10
10
|
import {
|
|
11
11
|
accountProviderError,
|
|
12
12
|
bodyUpstreamError,
|
|
13
13
|
httpProviderError,
|
|
14
14
|
providerErrorDetail
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
16
16
|
import {
|
|
17
17
|
McpCredentialsUnverified,
|
|
18
18
|
McpError,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
McpToolsOptions,
|
|
21
21
|
defaultMcpClientLimits,
|
|
22
22
|
mcpHealthReserveMs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NG56RPCA.js";
|
|
24
24
|
import {
|
|
25
25
|
NetworkRefused,
|
|
26
26
|
ProviderError
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
captureTelemetry,
|
|
30
30
|
owned
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-C6P3YMHI.js";
|
|
32
32
|
import {
|
|
33
33
|
FetchHttpClient_exports
|
|
34
34
|
} from "./chunk-PD6I2SDG.js";
|
|
@@ -166,17 +166,28 @@ var measuredSpan = (name, options, measure) => (effect2) => Effect_exports.useSp
|
|
|
166
166
|
)
|
|
167
167
|
);
|
|
168
168
|
});
|
|
169
|
-
var concurrent = ["executor", "person", "upstream", "app"];
|
|
169
|
+
var concurrent = ["executor", "person", "upstream", "lease", "app"];
|
|
170
|
+
var noTime = () => ({
|
|
171
|
+
executor: 0,
|
|
172
|
+
app: 0,
|
|
173
|
+
upstream: 0,
|
|
174
|
+
person: 0,
|
|
175
|
+
lease: 0,
|
|
176
|
+
background: 0
|
|
177
|
+
});
|
|
170
178
|
var makeOwnershipAccounting = (origin, owner) => {
|
|
171
|
-
const totals =
|
|
172
|
-
const innermost =
|
|
179
|
+
const totals = noTime();
|
|
180
|
+
const innermost = noTime();
|
|
173
181
|
const boundaries2 = /* @__PURE__ */ new WeakMap();
|
|
174
182
|
let reached = origin;
|
|
175
183
|
let done = false;
|
|
184
|
+
let background = 0;
|
|
176
185
|
const advance = (time) => {
|
|
177
186
|
if (time <= reached) return;
|
|
178
187
|
const current = concurrent.find((candidate) => innermost[candidate] > 0) ?? owner;
|
|
179
|
-
|
|
188
|
+
const elapsed = Number(time - reached) / 1e6;
|
|
189
|
+
totals[current] += elapsed;
|
|
190
|
+
if (background > 0) totals.background += elapsed;
|
|
180
191
|
reached = time;
|
|
181
192
|
};
|
|
182
193
|
const enclosing = (boundary) => {
|
|
@@ -186,12 +197,20 @@ var makeOwnershipAccounting = (origin, owner) => {
|
|
|
186
197
|
return found;
|
|
187
198
|
};
|
|
188
199
|
const opened = (boundary) => {
|
|
200
|
+
if (boundary.owner === "background") {
|
|
201
|
+
background += 1;
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
189
204
|
const parent = enclosing(boundary);
|
|
190
205
|
if (parent !== void 0 && parent.children++ === 0) innermost[parent.owner] -= 1;
|
|
191
206
|
innermost[boundary.owner] += 1;
|
|
192
207
|
};
|
|
193
208
|
const closed = (boundary) => {
|
|
194
209
|
boundary.open = false;
|
|
210
|
+
if (boundary.owner === "background") {
|
|
211
|
+
background -= 1;
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
195
214
|
if (boundary.children === 0) innermost[boundary.owner] -= 1;
|
|
196
215
|
const parent = enclosing(boundary);
|
|
197
216
|
if (parent === void 0) return;
|
|
@@ -205,9 +224,12 @@ var makeOwnershipAccounting = (origin, owner) => {
|
|
|
205
224
|
if (done) return span;
|
|
206
225
|
const parent = Option_exports.getOrUndefined(options.parent);
|
|
207
226
|
const enclosingBoundary = parent === void 0 ? void 0 : boundaries2.get(parent);
|
|
227
|
+
const inBackground = enclosingBoundary?.owner === "background";
|
|
228
|
+
const declared = inBackground ? "background" : declaredOwner(options.annotations);
|
|
208
229
|
const boundary = {
|
|
209
|
-
owner:
|
|
210
|
-
|
|
230
|
+
owner: declared ?? enclosingBoundary?.owner ?? owner,
|
|
231
|
+
// Background work runs beside its caller, which stays innermost meanwhile.
|
|
232
|
+
parent: declared === "background" ? void 0 : enclosingBoundary,
|
|
211
233
|
open: true,
|
|
212
234
|
children: 0
|
|
213
235
|
};
|
|
@@ -2525,6 +2547,8 @@ var appSpanNames = /* @__PURE__ */ new Set([
|
|
|
2525
2547
|
"app.cache.publish",
|
|
2526
2548
|
"app.cache.flush",
|
|
2527
2549
|
"app.cache.lease.renew",
|
|
2550
|
+
"app.cache.lease.wait",
|
|
2551
|
+
"app.cache.refresh",
|
|
2528
2552
|
"provider.http.request",
|
|
2529
2553
|
"provider.http.response.read",
|
|
2530
2554
|
"provider.openapi.call",
|
|
@@ -2705,7 +2729,7 @@ var spanAttributes2 = {
|
|
|
2705
2729
|
"span.label": oneOf("\u26A0\uFE0E Interrupted"),
|
|
2706
2730
|
"status.interrupted": flag,
|
|
2707
2731
|
"executor.milestone.reached": flag,
|
|
2708
|
-
"executor.owner": oneOf("executor", "app", "upstream", "person"),
|
|
2732
|
+
"executor.owner": oneOf("executor", "app", "upstream", "person", "lease", "background"),
|
|
2709
2733
|
"executor.app.code": oneOf(
|
|
2710
2734
|
"factory",
|
|
2711
2735
|
"router",
|
|
@@ -2725,6 +2749,8 @@ var spanAttributes2 = {
|
|
|
2725
2749
|
"executor.upstream.wait_ms": duration,
|
|
2726
2750
|
"executor.elicitation.wait_ms": duration,
|
|
2727
2751
|
"executor.authored_ms": duration,
|
|
2752
|
+
"executor.lease.wait_ms": duration,
|
|
2753
|
+
"executor.background_ms": duration,
|
|
2728
2754
|
"executor.overhead_ms": duration
|
|
2729
2755
|
};
|
|
2730
2756
|
var appSpanAttributeKeys = new Set(Object.keys(spanAttributes2));
|
|
@@ -3091,6 +3117,7 @@ var pendingSpan = (name, options) => Effect_exports.gen(function* () {
|
|
|
3091
3117
|
|
|
3092
3118
|
export {
|
|
3093
3119
|
CurrentTelemetryConfig,
|
|
3120
|
+
ownedBy,
|
|
3094
3121
|
owned,
|
|
3095
3122
|
measuredSpan,
|
|
3096
3123
|
makeOwnershipAccounting,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authorCache,
|
|
3
3
|
unavailableCache
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OK4MIBPW.js";
|
|
5
5
|
import {
|
|
6
6
|
accountSecrets,
|
|
7
7
|
boundFailureMessage,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
parseSkillLoadFailed,
|
|
13
13
|
readCatalog,
|
|
14
14
|
routerSkills
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q5S3SWMO.js";
|
|
16
16
|
import {
|
|
17
17
|
appInvocationFetch
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BIUWK47W.js";
|
|
19
19
|
import {
|
|
20
20
|
folderSkillsEffect
|
|
21
21
|
} from "./chunk-XBG7HHXC.js";
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
makeEmitter,
|
|
27
27
|
toEffectApp,
|
|
28
28
|
withPlacements
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PW4S2HP5.js";
|
|
30
30
|
import {
|
|
31
31
|
declaredOperations,
|
|
32
32
|
locate,
|
|
33
33
|
nativeOperation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SNKDWIYL.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-
|
|
42
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
43
43
|
import {
|
|
44
44
|
AccountCheckResult,
|
|
45
45
|
DeclaredProvider,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
reservedTablePrefix,
|
|
92
92
|
sqlBindingsLimit,
|
|
93
93
|
workflowDurationMillis
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-NG56RPCA.js";
|
|
95
95
|
import {
|
|
96
96
|
AppSkills,
|
|
97
97
|
SkillFile
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
makeOwnershipAccounting,
|
|
115
115
|
measuredSpan,
|
|
116
116
|
owned
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-C6P3YMHI.js";
|
|
118
118
|
import {
|
|
119
119
|
JsonObject,
|
|
120
120
|
JsonValue
|
|
@@ -149,11 +149,15 @@ var timedInvocation = (operation) => (effect) => Effect_exports.gen(function* ()
|
|
|
149
149
|
elapsedMs: Number(end - start) / 1e6,
|
|
150
150
|
upstreamMs: spent.upstream,
|
|
151
151
|
elicitationMs: spent.person,
|
|
152
|
-
authoredMs: spent.app
|
|
152
|
+
authoredMs: spent.app,
|
|
153
|
+
leaseMs: spent.lease,
|
|
154
|
+
backgroundMs: spent.background
|
|
153
155
|
});
|
|
154
156
|
span.attribute("executor.upstream.wait_ms", spent.upstream);
|
|
155
157
|
span.attribute("executor.elicitation.wait_ms", spent.person);
|
|
156
158
|
span.attribute("executor.authored_ms", spent.app);
|
|
159
|
+
span.attribute("executor.lease.wait_ms", spent.lease);
|
|
160
|
+
span.attribute("executor.background_ms", spent.background);
|
|
157
161
|
span.attribute("executor.overhead_ms", spent.executor);
|
|
158
162
|
}
|
|
159
163
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getWithReads
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OK4MIBPW.js";
|
|
4
4
|
import {
|
|
5
5
|
fromPromise,
|
|
6
6
|
method,
|
|
7
7
|
toPromise
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
9
9
|
import {
|
|
10
10
|
CacheError
|
|
11
11
|
} from "./chunk-Q4IZAUIF.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fixedRouter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q5S3SWMO.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeOperation,
|
|
6
6
|
operationDeclaration,
|
|
7
7
|
routerDeclaration
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SNKDWIYL.js";
|
|
9
9
|
|
|
10
10
|
// src/implementation/protocol-operations.ts
|
|
11
11
|
var protocolOperations = (operations, kinds = {}) => {
|
|
@@ -4332,7 +4332,14 @@ var InvocationTiming = Schema_exports.Struct({
|
|
|
4332
4332
|
elapsedMs: Schema_exports.Finite,
|
|
4333
4333
|
upstreamMs: Schema_exports.Finite,
|
|
4334
4334
|
elicitationMs: Schema_exports.Finite,
|
|
4335
|
-
authoredMs: Schema_exports.Finite
|
|
4335
|
+
authoredMs: Schema_exports.Finite,
|
|
4336
|
+
/** Waiting on another call that holds the lease to load a cache entry this call needs. */
|
|
4337
|
+
leaseMs: Schema_exports.optionalKey(Schema_exports.Finite),
|
|
4338
|
+
/**
|
|
4339
|
+
* How long background work, such as a stale cache entry's refresh, ran within the invocation.
|
|
4340
|
+
* It runs beside the invocation, so it is not part of the division above.
|
|
4341
|
+
*/
|
|
4342
|
+
backgroundMs: Schema_exports.optionalKey(Schema_exports.Finite)
|
|
4336
4343
|
});
|
|
4337
4344
|
var InvocationTimingSink = Context_exports.Reference(
|
|
4338
4345
|
"apps/InvocationTimingSink",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appInvocationFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BIUWK47W.js";
|
|
4
4
|
import {
|
|
5
5
|
fromPromise,
|
|
6
6
|
method,
|
|
7
7
|
toPromise
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
9
9
|
import {
|
|
10
10
|
CacheAcquired,
|
|
11
11
|
CacheEntry,
|
|
@@ -16,8 +16,10 @@ import {
|
|
|
16
16
|
decoderOf
|
|
17
17
|
} from "./chunk-KGCTYL2S.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
captureTelemetry,
|
|
20
|
+
owned,
|
|
21
|
+
ownedBy
|
|
22
|
+
} from "./chunk-C6P3YMHI.js";
|
|
21
23
|
import {
|
|
22
24
|
Clock_exports,
|
|
23
25
|
Duration_exports,
|
|
@@ -46,7 +48,7 @@ var cacheKey = (key) => Effect_exports.gen(function* () {
|
|
|
46
48
|
});
|
|
47
49
|
return [...new Uint8Array(hash)].map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
48
50
|
});
|
|
49
|
-
var makeCache = (host, background, scope = "shared", deadline) => {
|
|
51
|
+
var makeCache = (host, background, scope = "shared", deadline, leaseWait = (effect) => effect) => {
|
|
50
52
|
const transport = (command) => host(command).pipe(
|
|
51
53
|
Effect_exports.withSpan("app.cache.command", {
|
|
52
54
|
attributes: { "cache.operation": command.operation }
|
|
@@ -120,7 +122,7 @@ var makeCache = (host, background, scope = "shared", deadline) => {
|
|
|
120
122
|
deadline ?? Number.POSITIVE_INFINITY
|
|
121
123
|
);
|
|
122
124
|
let initialVersion;
|
|
123
|
-
|
|
125
|
+
const attempt = Effect_exports.gen(function* () {
|
|
124
126
|
const acquired = yield* transport({
|
|
125
127
|
operation: "acquire",
|
|
126
128
|
key,
|
|
@@ -139,21 +141,36 @@ var makeCache = (host, background, scope = "shared", deadline) => {
|
|
|
139
141
|
const now = yield* Clock_exports.currentTimeMillis;
|
|
140
142
|
if (initialVersion === void 0) initialVersion = entry?.version ?? null;
|
|
141
143
|
const refreshed = refresh && entry !== null && entry.version !== initialVersion;
|
|
142
|
-
if (entry !== null && (refreshed || !refresh && lease === null && now < entry.freshUntil))
|
|
143
|
-
|
|
144
|
-
return withReads(yield* decode(entry.value), together);
|
|
145
|
-
}
|
|
144
|
+
if (entry !== null && (refreshed || !refresh && lease === null && now < entry.freshUntil))
|
|
145
|
+
return { next: "fresh", entry, together };
|
|
146
146
|
const kept = !refresh && entry !== null && now < entry.staleUntil;
|
|
147
|
-
if (kept && options.stale !== "revalidate")
|
|
147
|
+
if (kept && options.stale !== "revalidate")
|
|
148
|
+
return { next: "stale", entry, lease, together };
|
|
149
|
+
if (lease !== null) return { next: "load", lease, kept };
|
|
150
|
+
if (now >= waitUntil) return { next: "local" };
|
|
151
|
+
return { next: "wait" };
|
|
152
|
+
});
|
|
153
|
+
let decided = yield* attempt;
|
|
154
|
+
if (decided.next === "wait")
|
|
155
|
+
decided = yield* Effect_exports.gen(function* () {
|
|
156
|
+
while (true) {
|
|
157
|
+
yield* Effect_exports.sleep("100 millis");
|
|
158
|
+
const next = yield* attempt;
|
|
159
|
+
if (next.next !== "wait") return next;
|
|
160
|
+
}
|
|
161
|
+
}).pipe(leaseWait);
|
|
162
|
+
switch (decided.next) {
|
|
163
|
+
case "fresh":
|
|
164
|
+
yield* Effect_exports.annotateCurrentSpan("cache.result", "fresh");
|
|
165
|
+
return withReads(yield* decode(decided.entry.value), decided.together);
|
|
166
|
+
case "stale":
|
|
148
167
|
yield* Effect_exports.annotateCurrentSpan("cache.result", "stale");
|
|
149
|
-
if (lease !== null) yield* background(load(lease).pipe(Effect_exports.asVoid));
|
|
150
|
-
return withReads(yield* decode(entry.value), together);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
yield*
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
if (now >= waitUntil) {
|
|
168
|
+
if (decided.lease !== null) yield* background(load(decided.lease).pipe(Effect_exports.asVoid));
|
|
169
|
+
return withReads(yield* decode(decided.entry.value), decided.together);
|
|
170
|
+
case "load":
|
|
171
|
+
yield* Effect_exports.annotateCurrentSpan("cache.result", decided.kept ? "revalidated" : "miss");
|
|
172
|
+
return loaded(yield* load(decided.lease));
|
|
173
|
+
case "local":
|
|
157
174
|
yield* Effect_exports.annotateCurrentSpan("cache.result", "local");
|
|
158
175
|
return loaded(
|
|
159
176
|
yield* options.load.pipe(
|
|
@@ -162,8 +179,6 @@ var makeCache = (host, background, scope = "shared", deadline) => {
|
|
|
162
179
|
Effect_exports.withSpan("app.cache.load", { attributes: { "cache.load.leased": false } })
|
|
163
180
|
)
|
|
164
181
|
);
|
|
165
|
-
}
|
|
166
|
-
yield* Effect_exports.sleep("100 millis");
|
|
167
182
|
}
|
|
168
183
|
}).pipe(Effect_exports.withSpan("app.cache.get"));
|
|
169
184
|
return {
|
|
@@ -219,8 +234,16 @@ var unavailableCache = {
|
|
|
219
234
|
background: () => Effect_exports.die(new Error("Cache background runner is unavailable"))
|
|
220
235
|
};
|
|
221
236
|
var authorCache = (host, accounts, signal, telemetry, deadline) => {
|
|
222
|
-
const scoped = (scope, callerSignal = signal) => {
|
|
223
|
-
const cache = makeCache(
|
|
237
|
+
const scoped = (scope, callerSignal = signal, services = telemetry) => {
|
|
238
|
+
const cache = makeCache(
|
|
239
|
+
host.transport,
|
|
240
|
+
// A refresh handed to the background runs beside the caller, which does not wait on it.
|
|
241
|
+
(task) => host.background(task.pipe(owned("background", "app.cache.refresh"))),
|
|
242
|
+
scope,
|
|
243
|
+
deadline,
|
|
244
|
+
// Waiting on another caller's load is waiting, not Executor's work.
|
|
245
|
+
(wait) => wait.pipe(Effect_exports.withSpan("app.cache.lease.wait", ownedBy("lease")))
|
|
246
|
+
);
|
|
224
247
|
const getOptions = (options) => ({
|
|
225
248
|
key: options.key,
|
|
226
249
|
schema: decoderOf(options.schema),
|
|
@@ -229,15 +252,15 @@ var authorCache = (host, accounts, signal, telemetry, deadline) => {
|
|
|
229
252
|
...options.stale === void 0 ? {} : { stale: options.stale },
|
|
230
253
|
load: Effect_exports.acquireUseRelease(
|
|
231
254
|
Effect_exports.sync(() => new AbortController()),
|
|
232
|
-
(controller) => appInvocationFetch(controller.signal).pipe(
|
|
255
|
+
(controller) => Effect_exports.all([appInvocationFetch(controller.signal), captureTelemetry]).pipe(
|
|
233
256
|
Effect_exports.flatMap(
|
|
234
|
-
(fetch) => fromPromise(
|
|
257
|
+
([fetch, loading]) => fromPromise(
|
|
235
258
|
method(options, "load"),
|
|
236
259
|
"loader"
|
|
237
260
|
)({
|
|
238
261
|
fetch,
|
|
239
262
|
signal: controller.signal,
|
|
240
|
-
cache: scoped(scope, controller.signal)
|
|
263
|
+
cache: scoped(scope, controller.signal, loading.context)
|
|
241
264
|
})
|
|
242
265
|
)
|
|
243
266
|
),
|
|
@@ -254,7 +277,7 @@ var authorCache = (host, accounts, signal, telemetry, deadline) => {
|
|
|
254
277
|
owned("executor", "app.cache.call", { attributes: { "cache.method": method2 } })
|
|
255
278
|
),
|
|
256
279
|
callerSignal,
|
|
257
|
-
|
|
280
|
+
services
|
|
258
281
|
);
|
|
259
282
|
const authored = {
|
|
260
283
|
get: service("get", (options) => load("get", options)),
|
|
@@ -282,7 +305,8 @@ var authorCache = (host, accounts, signal, telemetry, deadline) => {
|
|
|
282
305
|
if (bound === void 0) throw new CacheError({ reason: "invalid" });
|
|
283
306
|
return scoped(
|
|
284
307
|
{ account: bound.id, method: bound.method, generation: bound.generation },
|
|
285
|
-
callerSignal
|
|
308
|
+
callerSignal,
|
|
309
|
+
services
|
|
286
310
|
);
|
|
287
311
|
}
|
|
288
312
|
};
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
declaredOperations,
|
|
3
3
|
nativeOperation,
|
|
4
4
|
nativeRouter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SNKDWIYL.js";
|
|
6
6
|
import {
|
|
7
7
|
fromPromise,
|
|
8
8
|
method
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
10
10
|
import {
|
|
11
11
|
EmittedEvent,
|
|
12
12
|
EventName,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
normalizePlacements,
|
|
17
17
|
placementFields,
|
|
18
18
|
renderPlacement
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NG56RPCA.js";
|
|
20
20
|
import {
|
|
21
21
|
decoderOf,
|
|
22
22
|
isSchema,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
joinPath,
|
|
6
6
|
mergeMeta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNKDWIYL.js";
|
|
8
8
|
import {
|
|
9
9
|
isShortenedUpstream,
|
|
10
10
|
parseProviderError,
|
|
11
11
|
providerError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiErrorResponse,
|
|
15
15
|
HostDeclarationInvalid,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
McpError,
|
|
22
22
|
McpError2,
|
|
23
23
|
SkillLoadFailed as SkillLoadFailed2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NG56RPCA.js";
|
|
25
25
|
import {
|
|
26
26
|
CacheError,
|
|
27
27
|
FailureCode,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fromPromise
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
4
4
|
import {
|
|
5
5
|
HostedTool,
|
|
6
6
|
RouterKey,
|
|
7
7
|
RouterMeta,
|
|
8
8
|
reservedRouterKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NG56RPCA.js";
|
|
10
10
|
import {
|
|
11
11
|
decoderOf,
|
|
12
12
|
schemaArgument
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareElicitation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CT3QZBWU.js";
|
|
4
4
|
import {
|
|
5
5
|
bodyUpstreamError,
|
|
6
6
|
fromPromise
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
8
8
|
import {
|
|
9
9
|
ElicitationFailed,
|
|
10
10
|
McpError,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
defaultElicitationLimits,
|
|
17
17
|
defaultMcpClientLimits,
|
|
18
18
|
mcpSdkTimerCeilingMs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NG56RPCA.js";
|
|
20
20
|
import {
|
|
21
21
|
jsonSchemaDecoder,
|
|
22
22
|
nestJsonSchema,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-KGCTYL2S.js";
|
|
25
25
|
import {
|
|
26
26
|
owned
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-C6P3YMHI.js";
|
|
28
28
|
import {
|
|
29
29
|
JsonObject
|
|
30
30
|
} from "./chunk-H2CJWXA3.js";
|
package/js/client.js
CHANGED
package/js/contracts.js
CHANGED
package/js/effect.js
CHANGED
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
ApprovalDecision,
|
|
4
4
|
createAppHandler,
|
|
5
5
|
prepareElicitation
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CT3QZBWU.js";
|
|
7
|
+
import "./chunk-OK4MIBPW.js";
|
|
8
|
+
import "./chunk-Q5S3SWMO.js";
|
|
9
|
+
import "./chunk-BIUWK47W.js";
|
|
10
10
|
import "./chunk-XBG7HHXC.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-PW4S2HP5.js";
|
|
12
|
+
import "./chunk-SNKDWIYL.js";
|
|
13
|
+
import "./chunk-ZYXY6JLH.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NG56RPCA.js";
|
|
17
17
|
import "./chunk-Q4IZAUIF.js";
|
|
18
18
|
import "./chunk-H72MEDMN.js";
|
|
19
19
|
import {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
jsonSchemaDecoder,
|
|
23
23
|
wrap
|
|
24
24
|
} from "./chunk-KGCTYL2S.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-C6P3YMHI.js";
|
|
26
26
|
import "./chunk-PD6I2SDG.js";
|
|
27
27
|
import "./chunk-5FHWNLCI.js";
|
|
28
28
|
import {
|
package/js/graphql.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EZCV4Q4R.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IUPDGBBF.js";
|
|
8
8
|
import "./chunk-BCSNKUAC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CT3QZBWU.js";
|
|
10
10
|
import {
|
|
11
11
|
cacheKey
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-OK4MIBPW.js";
|
|
13
|
+
import "./chunk-Q5S3SWMO.js";
|
|
14
14
|
import {
|
|
15
15
|
failOnNetworkRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BIUWK47W.js";
|
|
17
17
|
import "./chunk-XBG7HHXC.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-PW4S2HP5.js";
|
|
19
19
|
import {
|
|
20
20
|
nativeOperation,
|
|
21
21
|
routerDeclaration
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SNKDWIYL.js";
|
|
23
23
|
import {
|
|
24
24
|
accountProviderError,
|
|
25
25
|
graphqlProviderError,
|
|
26
26
|
httpProviderError
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-ZYXY6JLH.js";
|
|
28
|
+
import "./chunk-NG56RPCA.js";
|
|
29
29
|
import {
|
|
30
30
|
NetworkRefused,
|
|
31
31
|
ProviderError
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-KGCTYL2S.js";
|
|
37
37
|
import {
|
|
38
38
|
owned
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-C6P3YMHI.js";
|
|
40
40
|
import {
|
|
41
41
|
FetchHttpClient_exports
|
|
42
42
|
} from "./chunk-PD6I2SDG.js";
|