apps 0.0.1-beta.66 → 0.0.1-beta.68
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-TZTLGP2Q.js → chunk-2KVS7XBO.js} +2 -2
- package/js/{chunk-KB6RUFDT.js → chunk-3K5SX2M6.js} +5 -5
- package/js/{chunk-MWKHKOTL.js → chunk-4733J7FG.js} +12 -1
- package/js/{chunk-CKVISKCZ.js → chunk-6JN66722.js} +58 -9
- package/js/{chunk-7FCKBNMS.js → chunk-6MJUPGMI.js} +2 -2
- package/js/{chunk-Y4ZPFQH6.js → chunk-ACJPBBNH.js} +3 -3
- package/js/{chunk-AQU56EPI.js → chunk-C47A664A.js} +17 -10
- package/js/{chunk-O2GPP4JT.js → chunk-JGLXI6SU.js} +5 -5
- package/js/{chunk-NRL677QZ.js → chunk-L7ZC6JR4.js} +3 -3
- package/js/{chunk-TLWLJ7PD.js → chunk-M3IIZDHH.js} +3 -1
- package/js/{chunk-T3FPHPJJ.js → chunk-UD4RXDWG.js} +1 -1
- package/js/{chunk-VFGI6XAL.js → chunk-XUG423KM.js} +20 -10
- package/js/{chunk-NSEKTAGP.js → chunk-YAOYLBKS.js} +2 -2
- package/js/contracts.js +2 -2
- 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 +22 -14
- package/js/skills.js +5 -5
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +2 -0
- package/types/apps/src/contracts/sql.d.ts +5 -0
- package/types/apps/src/implementation/upstream-error.d.ts +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fromPromise
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JGLXI6SU.js";
|
|
4
4
|
import {
|
|
5
5
|
HostedTool,
|
|
6
6
|
RouterKey,
|
|
7
7
|
RouterMeta,
|
|
8
8
|
reservedRouterKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M3IIZDHH.js";
|
|
10
10
|
import {
|
|
11
11
|
decoderOf,
|
|
12
12
|
schemaArgument
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
answeredError,
|
|
4
4
|
mcpClient,
|
|
5
5
|
mcpJsonSchemaValidator
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ACJPBBNH.js";
|
|
7
7
|
import {
|
|
8
8
|
failOnNetworkRefusal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UD4RXDWG.js";
|
|
10
10
|
import {
|
|
11
11
|
accountProviderError,
|
|
12
12
|
bodyUpstreamError,
|
|
13
13
|
httpProviderError,
|
|
14
14
|
providerErrorDetail
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JGLXI6SU.js";
|
|
16
16
|
import {
|
|
17
17
|
McpCredentialsUnverified,
|
|
18
18
|
McpError,
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
McpToolsOptions,
|
|
21
21
|
defaultMcpClientLimits,
|
|
22
22
|
mcpHealthReserveMs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-M3IIZDHH.js";
|
|
24
24
|
import {
|
|
25
25
|
NetworkRefused,
|
|
26
26
|
ProviderError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4733J7FG.js";
|
|
28
28
|
import {
|
|
29
29
|
captureTelemetry,
|
|
30
30
|
owned
|
|
@@ -135,7 +135,18 @@ var FetchOptionUnsupported = class extends Schema_exports.TaggedError()(
|
|
|
135
135
|
|
|
136
136
|
// ../app-cache/src/contracts/cache.ts
|
|
137
137
|
var CacheError = class extends Schema_exports.TaggedError()("CacheError", {
|
|
138
|
-
reason: Schema_exports.Literals(["unavailable", "storage", "invalid", "capacity", "timeout"])
|
|
138
|
+
reason: Schema_exports.Literals(["unavailable", "storage", "invalid", "capacity", "timeout"]),
|
|
139
|
+
/** Which of `cacheLimits` the request exceeded, when one did. */
|
|
140
|
+
limit: Schema_exports.optionalKey(
|
|
141
|
+
Schema_exports.Literals([
|
|
142
|
+
"keyBytes",
|
|
143
|
+
"entryBytes",
|
|
144
|
+
"batchBytes",
|
|
145
|
+
"batchEntries",
|
|
146
|
+
"totalBytes",
|
|
147
|
+
"totalEntries"
|
|
148
|
+
])
|
|
149
|
+
)
|
|
139
150
|
}) {
|
|
140
151
|
};
|
|
141
152
|
var cacheLimits = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C47A664A.js";
|
|
4
4
|
import {
|
|
5
5
|
accountSecrets,
|
|
6
6
|
boundFailureMessage,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
parseSkillLoadFailed,
|
|
12
12
|
readCatalog,
|
|
13
13
|
routerSkills
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XUG423KM.js";
|
|
15
15
|
import {
|
|
16
16
|
appInvocationFetch
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UD4RXDWG.js";
|
|
18
18
|
import {
|
|
19
19
|
folderSkillsEffect
|
|
20
20
|
} from "./chunk-XBG7HHXC.js";
|
|
@@ -24,12 +24,12 @@ import {
|
|
|
24
24
|
isApp,
|
|
25
25
|
makeEmitter,
|
|
26
26
|
toEffectApp
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L7ZC6JR4.js";
|
|
28
28
|
import {
|
|
29
29
|
declaredOperations,
|
|
30
30
|
locate,
|
|
31
31
|
nativeOperation
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2KVS7XBO.js";
|
|
33
33
|
import {
|
|
34
34
|
accountProviderError,
|
|
35
35
|
appCode,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
method,
|
|
39
39
|
parseProviderError,
|
|
40
40
|
toPromise
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JGLXI6SU.js";
|
|
42
42
|
import {
|
|
43
43
|
AccountCheckResult,
|
|
44
44
|
DeclaredProvider,
|
|
@@ -87,11 +87,12 @@ import {
|
|
|
87
87
|
maxInputProblems,
|
|
88
88
|
migrationsDirectory,
|
|
89
89
|
reservedTablePrefix,
|
|
90
|
+
sqlBindingsLimit,
|
|
90
91
|
workflowDurationMillis
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-M3IIZDHH.js";
|
|
92
93
|
import {
|
|
93
94
|
CacheError
|
|
94
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-4733J7FG.js";
|
|
95
96
|
import {
|
|
96
97
|
AppSkills,
|
|
97
98
|
SkillFile
|
|
@@ -748,6 +749,12 @@ var authorSql = (storage, options) => {
|
|
|
748
749
|
};
|
|
749
750
|
const runStatement = (query, bindings, mode) => {
|
|
750
751
|
live();
|
|
752
|
+
if (bindings.length > sqlBindingsLimit)
|
|
753
|
+
throw refuse(
|
|
754
|
+
new Error(
|
|
755
|
+
`A statement can bind at most ${sqlBindingsLimit} values, but this one binds ${bindings.length}. Pass a long list as one JSON array and read it with json_each(?), or split the work into batches.`
|
|
756
|
+
)
|
|
757
|
+
);
|
|
751
758
|
if (mode === "write") {
|
|
752
759
|
const statement = () => {
|
|
753
760
|
const cursor = materialize(storage.sql.exec(query, ...bindings));
|
|
@@ -920,6 +927,47 @@ var sha256 = (text) => (
|
|
|
920
927
|
)
|
|
921
928
|
)
|
|
922
929
|
);
|
|
930
|
+
var statementsOf = (script) => {
|
|
931
|
+
let end = 0;
|
|
932
|
+
let index = 0;
|
|
933
|
+
while (index < script.length) {
|
|
934
|
+
const char = script[index];
|
|
935
|
+
const next = script[index + 1];
|
|
936
|
+
if (char === "-" && next === "-") {
|
|
937
|
+
const newline = script.indexOf("\n", index);
|
|
938
|
+
index = newline === -1 ? script.length : newline + 1;
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
if (char === "/" && next === "*") {
|
|
942
|
+
const close = script.indexOf("*/", index + 2);
|
|
943
|
+
index = close === -1 ? script.length : close + 2;
|
|
944
|
+
continue;
|
|
945
|
+
}
|
|
946
|
+
const closing = char === "'" || char === '"' || char === "`" ? char : char === "[" ? "]" : void 0;
|
|
947
|
+
if (closing !== void 0) {
|
|
948
|
+
let after = index + 1;
|
|
949
|
+
while (true) {
|
|
950
|
+
const found = script.indexOf(closing, after);
|
|
951
|
+
if (found === -1) {
|
|
952
|
+
after = script.length;
|
|
953
|
+
break;
|
|
954
|
+
}
|
|
955
|
+
if (closing !== "]" && script[found + 1] === closing) {
|
|
956
|
+
after = found + 2;
|
|
957
|
+
continue;
|
|
958
|
+
}
|
|
959
|
+
after = found + 1;
|
|
960
|
+
break;
|
|
961
|
+
}
|
|
962
|
+
index = after;
|
|
963
|
+
end = index;
|
|
964
|
+
continue;
|
|
965
|
+
}
|
|
966
|
+
index += 1;
|
|
967
|
+
if (char !== void 0 && !/\s/u.test(char)) end = index;
|
|
968
|
+
}
|
|
969
|
+
return script.slice(0, end);
|
|
970
|
+
};
|
|
923
971
|
var hasMigrations = (files) => files.some(
|
|
924
972
|
(file) => file.path.startsWith(`${migrationsDirectory}/`) && file.path.endsWith(".sql")
|
|
925
973
|
);
|
|
@@ -990,8 +1038,9 @@ var migrate = (storage, files) => Effect_exports.gen(function* () {
|
|
|
990
1038
|
const pending = migrations.slice(history.length);
|
|
991
1039
|
const appliedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
992
1040
|
for (const [offset, migration] of pending.entries()) {
|
|
1041
|
+
const statements = statementsOf(migration.content);
|
|
993
1042
|
try {
|
|
994
|
-
storage.sql.exec(
|
|
1043
|
+
if (statements !== "") storage.sql.exec(statements);
|
|
995
1044
|
} catch (error) {
|
|
996
1045
|
throw new MigrationFailed({
|
|
997
1046
|
path: migration.path,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fixedRouter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XUG423KM.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeOperation,
|
|
6
6
|
operationDeclaration,
|
|
7
7
|
routerDeclaration
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2KVS7XBO.js";
|
|
9
9
|
|
|
10
10
|
// src/implementation/protocol-operations.ts
|
|
11
11
|
var protocolOperations = (operations, kinds = {}) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareElicitation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6JN66722.js";
|
|
4
4
|
import {
|
|
5
5
|
bodyUpstreamError,
|
|
6
6
|
fromPromise
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JGLXI6SU.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-M3IIZDHH.js";
|
|
20
20
|
import {
|
|
21
21
|
jsonSchemaDecoder,
|
|
22
22
|
nestJsonSchema,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CacheEntry,
|
|
4
4
|
CacheError,
|
|
5
5
|
cacheLimits
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4733J7FG.js";
|
|
7
7
|
import {
|
|
8
8
|
Clock_exports,
|
|
9
9
|
Duration_exports,
|
|
@@ -25,7 +25,7 @@ var cacheKey = (key) => Effect_exports.gen(function* () {
|
|
|
25
25
|
);
|
|
26
26
|
const bytes = new TextEncoder().encode(canonical(parsed));
|
|
27
27
|
if (bytes.byteLength > cacheLimits.keyBytes)
|
|
28
|
-
return yield* new CacheError({ reason: "capacity" });
|
|
28
|
+
return yield* new CacheError({ reason: "capacity", limit: "keyBytes" });
|
|
29
29
|
const hash = yield* Effect_exports.tryPromise({
|
|
30
30
|
try: () => crypto.subtle.digest("SHA-256", bytes),
|
|
31
31
|
catch: () => new CacheError({ reason: "invalid" })
|
|
@@ -44,15 +44,22 @@ var makeCache = (host, background, scope = "shared", deadline) => {
|
|
|
44
44
|
Effect_exports.mapError(() => new CacheError({ reason: "storage" }))
|
|
45
45
|
);
|
|
46
46
|
const durations = (freshFor, staleFor = 0) => Effect_exports.try({
|
|
47
|
-
try: () => {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
throw new CacheError({ reason: "invalid" });
|
|
52
|
-
return { fresh, stale };
|
|
53
|
-
},
|
|
47
|
+
try: () => ({
|
|
48
|
+
fresh: Duration_exports.toMillis(Duration_exports.fromInputUnsafe(freshFor)),
|
|
49
|
+
stale: Duration_exports.toMillis(Duration_exports.fromInputUnsafe(staleFor))
|
|
50
|
+
}),
|
|
54
51
|
catch: () => new CacheError({ reason: "invalid" })
|
|
55
|
-
})
|
|
52
|
+
}).pipe(
|
|
53
|
+
Effect_exports.flatMap(
|
|
54
|
+
({ fresh, stale }) => ![fresh, stale].every((value) => Number.isFinite(value) && value >= 0) ? Effect_exports.fail(new CacheError({ reason: "invalid" })) : (
|
|
55
|
+
// The cache keeps nothing past its retention: a longer lifetime loses staleness first.
|
|
56
|
+
Effect_exports.succeed({
|
|
57
|
+
fresh: Math.min(fresh, cacheLimits.retentionMs),
|
|
58
|
+
stale: Math.max(0, Math.min(stale, cacheLimits.retentionMs - fresh))
|
|
59
|
+
})
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
);
|
|
56
63
|
const get = (options, refresh) => Effect_exports.gen(function* () {
|
|
57
64
|
const key = yield* keyOf(options.key);
|
|
58
65
|
const { fresh, stale } = yield* durations(options.freshFor, options.staleFor);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderError,
|
|
3
3
|
maxUpstreamMessageLength
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4733J7FG.js";
|
|
5
5
|
import {
|
|
6
6
|
owned
|
|
7
7
|
} from "./chunk-3CVQ3VPP.js";
|
|
@@ -61,8 +61,8 @@ var toPromise = (operation, signalOf, services) => {
|
|
|
61
61
|
|
|
62
62
|
// src/implementation/upstream-error.ts
|
|
63
63
|
var ErrorToken = Schema_exports.String.check(Schema_exports.isPattern(/^[A-Za-z0-9._-]{1,128}$/u));
|
|
64
|
-
var
|
|
65
|
-
error: Schema_exports.Struct({ code: Schema_exports.Int, message: Schema_exports.String })
|
|
64
|
+
var NestedError = Schema_exports.Struct({
|
|
65
|
+
error: Schema_exports.Struct({ code: Schema_exports.Union([Schema_exports.Int, ErrorToken]), message: Schema_exports.String })
|
|
66
66
|
});
|
|
67
67
|
var OAuthError = Schema_exports.Struct({
|
|
68
68
|
error: ErrorToken,
|
|
@@ -75,8 +75,8 @@ var stated = (code, message) => ({
|
|
|
75
75
|
...message === void 0 || message === "" ? {} : { message: bounded(message) }
|
|
76
76
|
});
|
|
77
77
|
var bodyUpstreamError = (json) => {
|
|
78
|
-
const
|
|
79
|
-
if (Option_exports.isSome(
|
|
78
|
+
const nested = Schema_exports.decodeUnknownOption(NestedError)(json);
|
|
79
|
+
if (Option_exports.isSome(nested)) return stated(nested.value.error.code, nested.value.error.message);
|
|
80
80
|
const oauth = Schema_exports.decodeUnknownOption(OAuthError)(json);
|
|
81
81
|
if (Option_exports.isSome(oauth)) return stated(oauth.value.error, oauth.value.error_description);
|
|
82
82
|
return void 0;
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
declaredOperations,
|
|
3
3
|
nativeOperation,
|
|
4
4
|
nativeRouter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2KVS7XBO.js";
|
|
6
6
|
import {
|
|
7
7
|
fromPromise,
|
|
8
8
|
method
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JGLXI6SU.js";
|
|
10
10
|
import {
|
|
11
11
|
EmittedEvent,
|
|
12
12
|
EventName,
|
|
13
13
|
ScheduleTiming,
|
|
14
14
|
defaultEventLimits
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-M3IIZDHH.js";
|
|
16
16
|
import {
|
|
17
17
|
decoderOf,
|
|
18
18
|
isSchema,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
FailureName,
|
|
7
7
|
ProviderError,
|
|
8
8
|
UpstreamError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4733J7FG.js";
|
|
10
10
|
import {
|
|
11
11
|
AppSkillName,
|
|
12
12
|
AppSkills
|
|
@@ -450,6 +450,7 @@ var defaultDatabaseRuntimeLimits = DatabaseRuntimeLimits.make({
|
|
|
450
450
|
// src/contracts/sql.ts
|
|
451
451
|
var reservedTablePrefix = "_executor_";
|
|
452
452
|
var migrationsDirectory = "migrations";
|
|
453
|
+
var sqlBindingsLimit = 100;
|
|
453
454
|
|
|
454
455
|
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/rpc/RpcSchema.js
|
|
455
456
|
var StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
|
|
@@ -4227,6 +4228,7 @@ export {
|
|
|
4227
4228
|
DatabaseFieldReserved,
|
|
4228
4229
|
reservedTablePrefix,
|
|
4229
4230
|
migrationsDirectory,
|
|
4231
|
+
sqlBindingsLimit,
|
|
4230
4232
|
ElicitationLimits,
|
|
4231
4233
|
defaultElicitationLimits,
|
|
4232
4234
|
FormElicitation,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
joinPath,
|
|
6
6
|
mergeMeta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2KVS7XBO.js";
|
|
8
8
|
import {
|
|
9
9
|
isShortenedUpstream,
|
|
10
10
|
parseProviderError,
|
|
11
11
|
providerError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JGLXI6SU.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiErrorResponse,
|
|
15
15
|
HostDeclarationInvalid,
|
|
@@ -21,18 +21,19 @@ import {
|
|
|
21
21
|
McpError,
|
|
22
22
|
McpError2,
|
|
23
23
|
SkillLoadFailed as SkillLoadFailed2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-M3IIZDHH.js";
|
|
25
25
|
import {
|
|
26
26
|
CacheError,
|
|
27
27
|
FailureCode,
|
|
28
28
|
FailureFieldName,
|
|
29
29
|
FetchOptionUnsupported,
|
|
30
30
|
NetworkRefused,
|
|
31
|
+
cacheLimits,
|
|
31
32
|
maxFailureFieldLength,
|
|
32
33
|
maxFailureFields,
|
|
33
34
|
maxFailureMessageLength,
|
|
34
35
|
maxUpstreamMessageLength
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4733J7FG.js";
|
|
36
37
|
import {
|
|
37
38
|
SkillLoadFailed,
|
|
38
39
|
skillFormatLimits
|
|
@@ -238,7 +239,7 @@ var compileMessage = (error) => {
|
|
|
238
239
|
if (group === void 0) groups.set(key, { first: operation, count: 1 });
|
|
239
240
|
else group.count++;
|
|
240
241
|
}
|
|
241
|
-
const example = ({ first, count }) => `${first.method} ${first.path}${
|
|
242
|
+
const example = ({ first, count: count2 }) => `${first.method} ${first.path}${count2 > 1 ? ` and ${count2 - 1} more` : ""}`;
|
|
242
243
|
const [only, ...others] = groups.values();
|
|
243
244
|
if (only !== void 0 && others.length === 0 && only.first.code === error.code && only.first.reason === error.reason)
|
|
244
245
|
return `${error.reason} Left out: ${example(only)}.`;
|
|
@@ -293,6 +294,15 @@ var cacheMessages = {
|
|
|
293
294
|
storage: "The app cache failed to complete the operation.",
|
|
294
295
|
timeout: "The app cache did not respond in time."
|
|
295
296
|
};
|
|
297
|
+
var count = (value) => value.toLocaleString("en-US");
|
|
298
|
+
var cacheLimitMessages = {
|
|
299
|
+
keyBytes: `A cache key exceeded the app cache's limit of ${count(cacheLimits.keyBytes)} bytes per key.`,
|
|
300
|
+
entryBytes: `A cache value exceeded the app cache's limit of ${count(cacheLimits.entryBytes)} bytes per entry.`,
|
|
301
|
+
batchBytes: `A cache read or write exceeded the app cache's limit of ${count(cacheLimits.batchBytes)} bytes per batch.`,
|
|
302
|
+
batchEntries: `A cache read or write exceeded the app cache's limit of ${count(cacheLimits.batchEntries)} entries per batch.`,
|
|
303
|
+
totalBytes: `The app cache is full: it holds at most ${count(cacheLimits.totalBytes)} bytes.`,
|
|
304
|
+
totalEntries: `The app cache is full: it holds at most ${count(cacheLimits.totalEntries)} entries.`
|
|
305
|
+
};
|
|
296
306
|
var mcpStages = {
|
|
297
307
|
connect: "connecting",
|
|
298
308
|
transport: "connecting",
|
|
@@ -393,18 +403,18 @@ var ownCode = (error, secrets) => Predicate_exports.hasProperty(error, "code") &
|
|
|
393
403
|
var reservedFields = /* @__PURE__ */ new Set(["name", "message", "stack", "cause", "_tag"]);
|
|
394
404
|
var ownFields = (error, code, secrets) => {
|
|
395
405
|
const fields = {};
|
|
396
|
-
let
|
|
406
|
+
let count2 = 0;
|
|
397
407
|
for (const [key, value] of Object.entries(error)) {
|
|
398
|
-
if (
|
|
408
|
+
if (count2 === maxFailureFields) break;
|
|
399
409
|
if (reservedFields.has(key) || key === "code" && code !== void 0) continue;
|
|
400
410
|
if (!Schema_exports.is(FailureFieldName)(key)) continue;
|
|
401
411
|
if (typeof value === "string") fields[key] = boundText(value, secrets, maxFailureFieldLength);
|
|
402
412
|
else if (typeof value === "boolean" || typeof value === "number" && Number.isFinite(value))
|
|
403
413
|
fields[key] = value;
|
|
404
414
|
else continue;
|
|
405
|
-
|
|
415
|
+
count2++;
|
|
406
416
|
}
|
|
407
|
-
return
|
|
417
|
+
return count2 === 0 ? void 0 : fields;
|
|
408
418
|
};
|
|
409
419
|
var ownMessage = (error) => {
|
|
410
420
|
const cause = error.cause;
|
|
@@ -429,7 +439,7 @@ var failureDetail = (error, secrets) => {
|
|
|
429
439
|
source: "storage",
|
|
430
440
|
errorName: "CacheError",
|
|
431
441
|
code: error.reason,
|
|
432
|
-
message: cacheMessages[error.reason]
|
|
442
|
+
message: error.limit === void 0 ? cacheMessages[error.reason] : cacheLimitMessages[error.limit]
|
|
433
443
|
};
|
|
434
444
|
if (Schema_exports.is(OpenapiError)(error))
|
|
435
445
|
return {
|
package/js/contracts.js
CHANGED
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
skillCatalog,
|
|
130
130
|
skillsCommand,
|
|
131
131
|
workflowDurationMillis
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-M3IIZDHH.js";
|
|
133
133
|
import {
|
|
134
134
|
FailureCode,
|
|
135
135
|
FailureDetail,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
networkRefusalHeader,
|
|
153
153
|
networkRefusalResponse,
|
|
154
154
|
networkRefusalStatus
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-4733J7FG.js";
|
|
156
156
|
import {
|
|
157
157
|
AppSkillMetadata,
|
|
158
158
|
AppSkillName,
|
package/js/effect.js
CHANGED
|
@@ -3,18 +3,18 @@ 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-6JN66722.js";
|
|
7
|
+
import "./chunk-C47A664A.js";
|
|
8
|
+
import "./chunk-XUG423KM.js";
|
|
9
|
+
import "./chunk-UD4RXDWG.js";
|
|
10
10
|
import "./chunk-XBG7HHXC.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-L7ZC6JR4.js";
|
|
12
|
+
import "./chunk-2KVS7XBO.js";
|
|
13
|
+
import "./chunk-JGLXI6SU.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-M3IIZDHH.js";
|
|
17
|
+
import "./chunk-4733J7FG.js";
|
|
18
18
|
import "./chunk-H72MEDMN.js";
|
|
19
19
|
import {
|
|
20
20
|
compileJsonSchemaDecoder,
|
package/js/graphql.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YAOYLBKS.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6MJUPGMI.js";
|
|
8
8
|
import "./chunk-BCSNKUAC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-6JN66722.js";
|
|
10
10
|
import {
|
|
11
11
|
cacheKey
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-C47A664A.js";
|
|
13
|
+
import "./chunk-XUG423KM.js";
|
|
14
14
|
import {
|
|
15
15
|
failOnNetworkRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UD4RXDWG.js";
|
|
17
17
|
import "./chunk-XBG7HHXC.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-L7ZC6JR4.js";
|
|
19
19
|
import {
|
|
20
20
|
nativeOperation,
|
|
21
21
|
routerDeclaration
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2KVS7XBO.js";
|
|
23
23
|
import {
|
|
24
24
|
accountProviderError,
|
|
25
25
|
graphqlProviderError,
|
|
26
26
|
httpProviderError
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-JGLXI6SU.js";
|
|
28
|
+
import "./chunk-M3IIZDHH.js";
|
|
29
29
|
import {
|
|
30
30
|
NetworkRefused,
|
|
31
31
|
ProviderError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4733J7FG.js";
|
|
33
33
|
import "./chunk-H72MEDMN.js";
|
|
34
34
|
import {
|
|
35
35
|
jsonSchemaDecoder
|
package/js/host.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAppHandler
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6JN66722.js";
|
|
4
|
+
import "./chunk-C47A664A.js";
|
|
5
|
+
import "./chunk-XUG423KM.js";
|
|
6
|
+
import "./chunk-UD4RXDWG.js";
|
|
7
7
|
import "./chunk-XBG7HHXC.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-L7ZC6JR4.js";
|
|
9
|
+
import "./chunk-2KVS7XBO.js";
|
|
10
|
+
import "./chunk-JGLXI6SU.js";
|
|
11
11
|
import {
|
|
12
12
|
ElicitationFailed,
|
|
13
13
|
ElicitationReply,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
WorkflowRun,
|
|
23
23
|
WorkflowRunId,
|
|
24
24
|
WorkflowRunPage
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-M3IIZDHH.js";
|
|
26
26
|
import {
|
|
27
27
|
CacheCommand,
|
|
28
28
|
CacheError,
|
|
29
29
|
CacheReply
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4733J7FG.js";
|
|
31
31
|
import "./chunk-H72MEDMN.js";
|
|
32
32
|
import "./chunk-KGCTYL2S.js";
|
|
33
33
|
import {
|
package/js/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
defineApp,
|
|
5
5
|
event,
|
|
6
6
|
workflow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L7ZC6JR4.js";
|
|
8
8
|
import {
|
|
9
9
|
dynamicRouter,
|
|
10
10
|
mutation,
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
toolAnnotations,
|
|
18
18
|
withApproval,
|
|
19
19
|
withApprovals
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2KVS7XBO.js";
|
|
21
21
|
import {
|
|
22
22
|
accountProviderError,
|
|
23
23
|
fromPromise
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JGLXI6SU.js";
|
|
25
25
|
import {
|
|
26
26
|
CalendarSchedule,
|
|
27
27
|
ElicitationFailed,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
ScheduleTiming,
|
|
37
37
|
SecretsMethod,
|
|
38
38
|
WorkflowFailure
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-M3IIZDHH.js";
|
|
40
40
|
import {
|
|
41
41
|
CacheError,
|
|
42
42
|
FetchOptionUnsupported,
|
|
43
43
|
NetworkRefused,
|
|
44
44
|
ProviderError
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4733J7FG.js";
|
|
46
46
|
import "./chunk-H72MEDMN.js";
|
|
47
47
|
import {
|
|
48
48
|
array,
|