apps 0.0.1-beta.84 → 0.0.1-beta.86
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/README.md +10 -12
- package/framework-reference.json +1 -1
- package/js/{chunk-KGCTYL2S.js → chunk-3FHDX4KB.js} +24 -5
- package/js/{chunk-T2B6GUVY.js → chunk-3ZHRJYP5.js} +2 -2
- package/js/{chunk-JKH7ALFN.js → chunk-BKK5HKJL.js} +3 -3
- package/js/{chunk-HNCCRVIT.js → chunk-BLM5MCKC.js} +2 -2
- package/js/{chunk-OHBKJ54H.js → chunk-CJ5F6UDG.js} +6 -6
- package/js/{chunk-TE25A7D6.js → chunk-F52NGWRV.js} +2 -2
- package/js/chunk-HODA4JY6.js +714 -0
- package/js/{chunk-AIXYBMMI.js → chunk-LNNDKHO6.js} +3 -3
- package/js/{chunk-NG56RPCA.js → chunk-WUPLD4VN.js} +0 -10
- package/js/{chunk-PL5KOEZD.js → chunk-YOGK42MH.js} +1 -1
- package/js/client.js +1 -1
- package/js/contracts.js +1 -1
- package/js/effect.js +7 -7
- package/js/graphql.js +9 -9
- package/js/host.js +7 -7
- package/js/index.js +4 -4
- package/js/mcp/effect.js +8 -9
- package/js/mcp.js +14 -16
- package/js/openapi.js +5 -5
- package/js/skills.js +3 -3
- package/package.json +1 -5
- package/runtime.json +1 -1
- package/types/apps/src/contracts/mcp.d.ts +1 -10
- package/types/apps/src/implementation/router-catalog.d.ts +2 -2
- package/js/chunk-BX2S3T2R.js +0 -348
- package/js/chunk-IGOYMUWZ.js +0 -394
- package/js/mcp/stdio.js +0 -138
- package/types/apps/src/implementation/mcp-stdio.d.ts +0 -4
- package/types/apps/src/mcp-stdio.d.ts +0 -5
|
@@ -1178,7 +1178,7 @@ var withLazyJsonSchemaDocument = (decoder, document) => Object.defineProperty(de
|
|
|
1178
1178
|
var nestJsonSchema = (input, pointer) => {
|
|
1179
1179
|
const document = structuredClone(input);
|
|
1180
1180
|
const lookup = dereference(document);
|
|
1181
|
-
const
|
|
1181
|
+
const evaluated = evaluatedSchemas(document, lookup);
|
|
1182
1182
|
const pointers = /* @__PURE__ */ new Map();
|
|
1183
1183
|
const locate = (value, path) => {
|
|
1184
1184
|
if (!pointers.has(value)) pointers.set(value, path);
|
|
@@ -1192,8 +1192,7 @@ var nestJsonSchema = (input, pointer) => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
locate(document, pointer);
|
|
1194
1194
|
const references = /* @__PURE__ */ new Map();
|
|
1195
|
-
for (const schema of
|
|
1196
|
-
if (typeof schema === "boolean") continue;
|
|
1195
|
+
for (const schema of evaluated) {
|
|
1197
1196
|
const refs = {};
|
|
1198
1197
|
for (const [key, absolute] of [
|
|
1199
1198
|
["$ref", schema.__absolute_ref__],
|
|
@@ -1240,6 +1239,27 @@ var schemaNodes = /* @__PURE__ */ new Set([
|
|
|
1240
1239
|
"unevaluatedItems",
|
|
1241
1240
|
"propertyNames"
|
|
1242
1241
|
]);
|
|
1242
|
+
var isSchemaObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1243
|
+
var evaluatedSchemas = (root, lookup) => {
|
|
1244
|
+
const found = /* @__PURE__ */ new Set();
|
|
1245
|
+
const pending = [root];
|
|
1246
|
+
for (let value = pending.pop(); value !== void 0; value = pending.pop()) {
|
|
1247
|
+
if (!isSchemaObject(value) || found.has(value)) continue;
|
|
1248
|
+
found.add(value);
|
|
1249
|
+
for (const target of [value.__absolute_ref__, value.__absolute_recursive_ref__]) {
|
|
1250
|
+
const schema = target === void 0 ? void 0 : lookup[target];
|
|
1251
|
+
if (schema !== void 0) pending.push(schema);
|
|
1252
|
+
}
|
|
1253
|
+
for (const [key, item] of Object.entries(value)) {
|
|
1254
|
+
if (Array.isArray(item)) {
|
|
1255
|
+
if (schemaArrays.has(key) || key === "items") pending.push(...item);
|
|
1256
|
+
} else if (schemaMaps.has(key) || key === "dependencies") {
|
|
1257
|
+
if (isJsonRecord(item)) pending.push(...Object.values(item));
|
|
1258
|
+
} else if (schemaNodes.has(key)) pending.push(item);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
return found;
|
|
1262
|
+
};
|
|
1243
1263
|
function interpretedDocument(value) {
|
|
1244
1264
|
if (typeof value === "boolean") return value;
|
|
1245
1265
|
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
@@ -1721,8 +1741,7 @@ var compileJsonSchemaDecoder = (document) => Effect_exports.gen(function* () {
|
|
|
1721
1741
|
if (normalized === null || typeof normalized !== "object" || Array.isArray(normalized))
|
|
1722
1742
|
throw new ValidationError();
|
|
1723
1743
|
const lookup = dereference(normalized);
|
|
1724
|
-
for (const schema of
|
|
1725
|
-
if (typeof schema === "boolean") continue;
|
|
1744
|
+
for (const schema of evaluatedSchemas(normalized, lookup)) {
|
|
1726
1745
|
for (const pattern of [schema.pattern, ...Object.keys(schema.patternProperties ?? {})]) {
|
|
1727
1746
|
if (pattern === void 0) continue;
|
|
1728
1747
|
try {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fixedRouter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BKK5HKJL.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeOperation,
|
|
6
6
|
operationDeclaration,
|
|
7
7
|
routerDeclaration
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BLM5MCKC.js";
|
|
9
9
|
|
|
10
10
|
// src/implementation/protocol-operations.ts
|
|
11
11
|
var protocolOperations = (operations, kinds = {}) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
joinPath,
|
|
6
6
|
mergeMeta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BLM5MCKC.js";
|
|
8
8
|
import {
|
|
9
9
|
isShortenedUpstream,
|
|
10
10
|
parseProviderError,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
McpError,
|
|
22
22
|
McpError2,
|
|
23
23
|
SkillLoadFailed as SkillLoadFailed2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WUPLD4VN.js";
|
|
25
25
|
import {
|
|
26
26
|
CacheError,
|
|
27
27
|
FailureCode,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-H72MEDMN.js";
|
|
41
41
|
import {
|
|
42
42
|
jsonSchemaDocument
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3FHDX4KB.js";
|
|
44
44
|
import {
|
|
45
45
|
AccountId,
|
|
46
46
|
HttpUrl,
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
RouterKey,
|
|
7
7
|
RouterMeta,
|
|
8
8
|
reservedRouterKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WUPLD4VN.js";
|
|
10
10
|
import {
|
|
11
11
|
decoderOf,
|
|
12
12
|
schemaArgument
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3FHDX4KB.js";
|
|
14
14
|
import {
|
|
15
15
|
Effect_exports,
|
|
16
16
|
Schema_exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authorCache,
|
|
3
3
|
unavailableCache
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YOGK42MH.js";
|
|
5
5
|
import {
|
|
6
6
|
accountSecrets,
|
|
7
7
|
boundFailureMessage,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseSkillLoadFailed,
|
|
13
13
|
readCatalog,
|
|
14
14
|
routerSkills
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BKK5HKJL.js";
|
|
16
16
|
import {
|
|
17
17
|
appInvocationFetch
|
|
18
18
|
} from "./chunk-I6Q7ZPKJ.js";
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
makeEmitter,
|
|
27
27
|
toEffectApp,
|
|
28
28
|
withPlacements
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LNNDKHO6.js";
|
|
30
30
|
import {
|
|
31
31
|
declaredOperations,
|
|
32
32
|
locate,
|
|
33
33
|
nativeOperation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BLM5MCKC.js";
|
|
35
35
|
import {
|
|
36
36
|
accountProviderError,
|
|
37
37
|
appCode,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
reservedTablePrefix,
|
|
92
92
|
sqlBindingsLimit,
|
|
93
93
|
workflowDurationMillis
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-WUPLD4VN.js";
|
|
95
95
|
import {
|
|
96
96
|
AppSkills,
|
|
97
97
|
SkillFile
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
missingKeyText,
|
|
109
109
|
objectShape,
|
|
110
110
|
unionShape
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-3FHDX4KB.js";
|
|
112
112
|
import {
|
|
113
113
|
captureTelemetry,
|
|
114
114
|
makeOwnershipAccounting,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getWithReads
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YOGK42MH.js";
|
|
4
4
|
import {
|
|
5
5
|
fromPromise,
|
|
6
6
|
method,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-Q4IZAUIF.js";
|
|
12
12
|
import {
|
|
13
13
|
wrap
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3FHDX4KB.js";
|
|
15
15
|
import {
|
|
16
16
|
JsonObject
|
|
17
17
|
} from "./chunk-H2CJWXA3.js";
|