apps 0.0.1-beta.40 → 0.0.1-beta.42
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-SALJXSS3.js → chunk-47BLLMRQ.js} +87 -31
- package/js/{chunk-ZUKBIHMK.js → chunk-4ZTVLEN6.js} +3 -3
- package/js/{chunk-KANDIVIH.js → chunk-5GLC42LK.js} +35 -26
- package/js/{chunk-DKUEYTYD.js → chunk-74YVXBKY.js} +1 -1
- package/js/{chunk-RIXVGVA6.js → chunk-AQU56EPI.js} +9 -5
- package/js/{chunk-KAQD3DTI.js → chunk-EG72MSVK.js} +1 -1
- package/js/{chunk-TT6OU4UG.js → chunk-EJUK2NK5.js} +2 -2
- package/js/{chunk-EM4UL26F.js → chunk-EMHFXFTJ.js} +3 -3
- package/js/{chunk-YQ35E7KS.js → chunk-H2CJWXA3.js} +1 -1
- package/js/{chunk-MXDKXAY4.js → chunk-IFJU5SYQ.js} +10 -0
- package/js/{chunk-6KABJTDO.js → chunk-ILYK7BQG.js} +3 -3
- package/js/{chunk-CQD3WSYH.js → chunk-IN2WIN7I.js} +2 -2
- package/js/{chunk-NKWWPJYX.js → chunk-JPEUKEV4.js} +1 -1
- package/js/{chunk-UOZMSUJ2.js → chunk-KBIKBWSS.js} +5 -3
- package/js/{chunk-GHXRRFZA.js → chunk-KGCTYL2S.js} +116 -22
- package/js/{chunk-VIU2XXA7.js → chunk-KSGYJV46.js} +2 -2
- package/js/{chunk-4TLZGG4B.js → chunk-KTPKTBKZ.js} +9 -9
- package/js/{chunk-3MMG2H6M.js → chunk-LNSVJS2Q.js} +1 -1
- package/js/{chunk-DHX2OI2X.js → chunk-MSDGZ7FA.js} +9 -9
- package/js/{chunk-P7MGDPFD.js → chunk-MWKHKOTL.js} +2 -2
- package/js/{chunk-VJQXXOQ3.js → chunk-MZH4J2PO.js} +2 -2
- package/js/{chunk-OTCLXFLL.js → chunk-OBXHQNWC.js} +5 -5
- package/js/{chunk-MYF7KWUB.js → chunk-RIKH5H2X.js} +7 -7
- package/js/{chunk-KIM5HXNK.js → chunk-T65AFHU3.js} +3 -3
- package/js/{chunk-PNVCCB4L.js → chunk-VU6GQ2SH.js} +4 -4
- package/js/{chunk-XDGUGB2A.js → chunk-XSD3RZFX.js} +5 -5
- package/js/{chunk-PDS2E2OZ.js → chunk-Z3S2IVI3.js} +2 -2
- package/js/client.js +10 -10
- package/js/contracts.js +8 -8
- package/js/effect.js +19 -19
- package/js/graphql.js +21 -21
- package/js/host.js +19 -19
- package/js/index.js +12 -12
- package/js/mcp/effect.js +21 -21
- package/js/mcp/stdio.js +21 -21
- package/js/mcp.js +23 -23
- package/js/openapi.js +17 -17
- package/js/react.js +2 -2
- package/js/skills/effect.js +6 -6
- package/js/skills.js +50 -23
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -5
- package/js/ui/serving.js +10 -10
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/index.d.ts +10 -1
- package/types/apps/src/contracts/cache.d.ts +6 -0
- package/types/apps/src/contracts/skills.d.ts +12 -5
- package/types/apps/src/implementation/catalog-cache.d.ts +12 -1
- package/types/apps/src/implementation/elicitation.d.ts +4 -4
- package/types/apps/src/implementation/input-problems.d.ts +2 -1
- package/types/apps/src/implementation/schema.d.ts +9 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonObject,
|
|
3
3
|
ValidationError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H2CJWXA3.js";
|
|
5
5
|
import {
|
|
6
6
|
Cause_exports,
|
|
7
7
|
Effect_exports,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SchemaIssue_exports,
|
|
11
11
|
SchemaParser_exports,
|
|
12
12
|
Schema_exports
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/.bun/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js
|
|
16
16
|
function deepCompareStrict(a, b) {
|
|
@@ -1335,6 +1335,8 @@ var unionShape = (alternatives, selector) => {
|
|
|
1335
1335
|
const rest = alternatives.length - listed.length;
|
|
1336
1336
|
return `${[...listed, ...rest > 0 ? [`${rest} more`] : []].join(" or ")}${selector === void 0 ? "" : `, told apart by ${schemaKey(selector)}`}`;
|
|
1337
1337
|
};
|
|
1338
|
+
var missingKey = (expected) => expected === void 0 ? missingKeyText : `${missingKeyText}. Expected ${expected}`;
|
|
1339
|
+
var missingKeyText = "Missing key";
|
|
1338
1340
|
var isJsonRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1339
1341
|
var pointerSegments = (pointer) => pointer === "#" || pointer === "" ? [] : pointer.replace(/^#?\//, "").split("/").map((segment) => decodeURIComponent(segment).replace(/~1/g, "/").replace(/~0/g, "~"));
|
|
1340
1342
|
var resolved = (lookup, uri2) => typeof uri2 === "string" && Object.hasOwn(lookup, uri2) ? lookup[uri2] : void 0;
|
|
@@ -1418,7 +1420,8 @@ var outlineOf = (node, inspection, seen = /* @__PURE__ */ new Set()) => {
|
|
|
1418
1420
|
own
|
|
1419
1421
|
);
|
|
1420
1422
|
};
|
|
1421
|
-
var
|
|
1423
|
+
var otherConstraints = "a value with other constraints";
|
|
1424
|
+
var outlineText = (outline, limit) => {
|
|
1422
1425
|
if (outline.values !== void 0) return allowedValues(outline.values);
|
|
1423
1426
|
const names = [
|
|
1424
1427
|
...outline.properties.keys(),
|
|
@@ -1427,12 +1430,63 @@ var describeOutline = (outline) => {
|
|
|
1427
1430
|
const shape = names.length === 0 && !outline.closed ? "object" : objectShape(
|
|
1428
1431
|
names.map((name) => ({ name, optional: !outline.required.has(name) })),
|
|
1429
1432
|
!outline.closed,
|
|
1430
|
-
|
|
1433
|
+
limit
|
|
1431
1434
|
);
|
|
1432
1435
|
if (outline.types === void 0)
|
|
1433
|
-
return names.length > 0 || outline.closed ? shape :
|
|
1436
|
+
return names.length > 0 || outline.closed ? shape : otherConstraints;
|
|
1434
1437
|
return [...outline.types].map((type) => type === "object" ? shape : type).join(" or ");
|
|
1435
1438
|
};
|
|
1439
|
+
var describeOutline = (outline) => outlineText(outline, maxAlternativeKeys);
|
|
1440
|
+
var typed = (outline) => outline.values !== void 0 || outline.types !== void 0;
|
|
1441
|
+
var describeProperty = (node, inspection) => {
|
|
1442
|
+
const target = inspection.referenced(node) ?? node;
|
|
1443
|
+
if (isJsonRecord(target) && Object.hasOwn(target, "oneOf")) return void 0;
|
|
1444
|
+
const outline = outlineOf(node, inspection);
|
|
1445
|
+
if (typed(outline)) return outlineText(outline, maxShapeKeys);
|
|
1446
|
+
const members = isJsonRecord(target) && Array.isArray(target.anyOf) ? target.anyOf : [];
|
|
1447
|
+
const outlines = members.filter((member) => member !== false).map((member) => outlineOf(member, inspection));
|
|
1448
|
+
return outlines.length === 0 || !outlines.every(typed) ? void 0 : unionShape([...new Set(outlines.map(describeOutline))], void 0);
|
|
1449
|
+
};
|
|
1450
|
+
var maxPatternText = 160;
|
|
1451
|
+
var count = (amount, noun) => `${amount} ${noun}${amount === 1 ? "" : "s"}`;
|
|
1452
|
+
var constraintProblem = (keyword, node) => {
|
|
1453
|
+
if (!isJsonRecord(node)) return void 0;
|
|
1454
|
+
const value = node[keyword];
|
|
1455
|
+
if (keyword === "pattern")
|
|
1456
|
+
return typeof value !== "string" ? void 0 : value.length <= maxPatternText ? `Expected a string matching the pattern ${JSON.stringify(value)}` : "Expected a string matching the schema's pattern, which is too long to show";
|
|
1457
|
+
if (keyword === "format")
|
|
1458
|
+
return typeof value === "string" ? `Expected a string in the ${JSON.stringify(value.slice(0, 64))} format` : void 0;
|
|
1459
|
+
if (keyword === "uniqueItems") return "Expected an array without repeated items";
|
|
1460
|
+
if (typeof value !== "number") return void 0;
|
|
1461
|
+
switch (keyword) {
|
|
1462
|
+
// Draft 4's boolean `exclusiveMinimum` is not applied: imported schemas validate as draft 7
|
|
1463
|
+
// or 2020-12, where `minimum` and `maximum` always include their bound.
|
|
1464
|
+
case "minimum":
|
|
1465
|
+
return `Expected a number of at least ${value}`;
|
|
1466
|
+
case "maximum":
|
|
1467
|
+
return `Expected a number of at most ${value}`;
|
|
1468
|
+
case "exclusiveMinimum":
|
|
1469
|
+
return `Expected a number greater than ${value}`;
|
|
1470
|
+
case "exclusiveMaximum":
|
|
1471
|
+
return `Expected a number less than ${value}`;
|
|
1472
|
+
case "multipleOf":
|
|
1473
|
+
return `Expected a multiple of ${value}`;
|
|
1474
|
+
case "minLength":
|
|
1475
|
+
return `Expected a string of at least ${count(value, "character")}`;
|
|
1476
|
+
case "maxLength":
|
|
1477
|
+
return `Expected a string of at most ${count(value, "character")}`;
|
|
1478
|
+
case "minItems":
|
|
1479
|
+
return `Expected an array of at least ${count(value, "item")}`;
|
|
1480
|
+
case "maxItems":
|
|
1481
|
+
return `Expected an array of at most ${count(value, "item")}`;
|
|
1482
|
+
case "minProperties":
|
|
1483
|
+
return `Expected an object with at least ${count(value, "key")}`;
|
|
1484
|
+
case "maxProperties":
|
|
1485
|
+
return `Expected an object with at most ${count(value, "key")}`;
|
|
1486
|
+
default:
|
|
1487
|
+
return void 0;
|
|
1488
|
+
}
|
|
1489
|
+
};
|
|
1436
1490
|
var overlap = (outline, value, inspection, depth = 0) => !isJsonRecord(value) || depth > 16 ? 0 : Object.entries(value).reduce((total, [key, item]) => {
|
|
1437
1491
|
const property = outline.properties.get(key);
|
|
1438
1492
|
return property === void 0 ? total : total + 1 + overlap(outlineOf(property, inspection), item, inspection, depth + 1);
|
|
@@ -1523,14 +1577,19 @@ var unionProblems = (union, schemas, errorsByAlternative, inspection) => {
|
|
|
1523
1577
|
const shared = outlineOf(holder, inspection);
|
|
1524
1578
|
const own = alternatives.map(({ schema }) => outlineOf(schema, inspection));
|
|
1525
1579
|
const outlines = own.map((outline) => mergeOutlines(shared, outline));
|
|
1526
|
-
const fixed = outlines.flatMap(({ values }) => values === void 0 ? [] : [values]);
|
|
1527
|
-
if (fixed.length === outlines.length)
|
|
1528
|
-
return [{ path, issue: `Expected ${allowedValues(fixed.flat())}` }];
|
|
1529
1580
|
const selector = selectorOf(holder, own, inspection);
|
|
1530
1581
|
const expected = `Expected ${unionShape(outlines.map(describeOutline), selector)}`;
|
|
1531
1582
|
const matched = alternatives.filter((alternative) => alternative.matched).length;
|
|
1532
1583
|
if (union.keyword === "oneOf" && matched > 1)
|
|
1533
1584
|
return [{ path, issue: `${expected}. Exactly one may match, but ${matched} do` }];
|
|
1585
|
+
const fixed = outlines.flatMap(({ values }) => values === void 0 ? [] : [values]);
|
|
1586
|
+
if (fixed.length === outlines.length)
|
|
1587
|
+
return [
|
|
1588
|
+
{
|
|
1589
|
+
path,
|
|
1590
|
+
issue: union.keyword === "oneOf" ? `${expected}. Exactly one alternative must match` : `Expected ${allowedValues(fixed.flat())}`
|
|
1591
|
+
}
|
|
1592
|
+
];
|
|
1534
1593
|
const value = valueAt(inspection.input, location2);
|
|
1535
1594
|
const selectorValue = selector !== void 0 && isJsonRecord(value) && Object.hasOwn(value, selector) ? { value: value[selector] } : void 0;
|
|
1536
1595
|
const named = discriminatedName(holder, selectorValue?.value);
|
|
@@ -1597,7 +1656,12 @@ var problemsOf = (errors, inspection) => {
|
|
|
1597
1656
|
}
|
|
1598
1657
|
const required = keyword === "required" ? /required property "([^"]*)"/.exec(error.error) : null;
|
|
1599
1658
|
if (required !== null) {
|
|
1600
|
-
|
|
1659
|
+
const name = required[1] ?? "";
|
|
1660
|
+
const property = outlineOf(node(), inspection).properties.get(name);
|
|
1661
|
+
problem(
|
|
1662
|
+
missingKey(property === void 0 ? void 0 : describeProperty(property, inspection)),
|
|
1663
|
+
[...path, name]
|
|
1664
|
+
);
|
|
1601
1665
|
continue;
|
|
1602
1666
|
}
|
|
1603
1667
|
const expected = keyword === "type" ? /Expected "([^.]*)"\.?$/.exec(error.error) : null;
|
|
@@ -1614,10 +1678,37 @@ var problemsOf = (errors, inspection) => {
|
|
|
1614
1678
|
);
|
|
1615
1679
|
continue;
|
|
1616
1680
|
}
|
|
1617
|
-
problem(`Failed the "${keyword}" constraint`);
|
|
1681
|
+
problem(constraintProblem(keyword, node()) ?? `Failed the "${keyword}" constraint`);
|
|
1618
1682
|
}
|
|
1619
1683
|
return problems;
|
|
1620
1684
|
};
|
|
1685
|
+
var documentKeys = (document) => {
|
|
1686
|
+
const named = /* @__PURE__ */ new Set();
|
|
1687
|
+
let any = false;
|
|
1688
|
+
const visit = (node, depth) => {
|
|
1689
|
+
if (depth > 64 || typeof node !== "object" || node === null) return;
|
|
1690
|
+
if (Array.isArray(node)) {
|
|
1691
|
+
for (const item of node) visit(item, depth + 1);
|
|
1692
|
+
return;
|
|
1693
|
+
}
|
|
1694
|
+
const record2 = node;
|
|
1695
|
+
if (isJsonRecord(record2.properties))
|
|
1696
|
+
for (const name of Object.keys(record2.properties)) named.add(name);
|
|
1697
|
+
for (const name of strings(record2.required)) named.add(name);
|
|
1698
|
+
if (isJsonRecord(record2.dependentRequired))
|
|
1699
|
+
for (const [name, names] of Object.entries(record2.dependentRequired)) {
|
|
1700
|
+
named.add(name);
|
|
1701
|
+
for (const other of strings(names)) named.add(other);
|
|
1702
|
+
}
|
|
1703
|
+
if (isJsonRecord(record2.patternProperties) && Object.keys(record2.patternProperties).length > 0 || isJsonRecord(record2.additionalProperties) || isJsonRecord(record2.unevaluatedProperties))
|
|
1704
|
+
any = true;
|
|
1705
|
+
for (const value of Object.values(record2)) visit(value, depth + 1);
|
|
1706
|
+
};
|
|
1707
|
+
visit(document, 0);
|
|
1708
|
+
return (key) => any || named.has(key);
|
|
1709
|
+
};
|
|
1710
|
+
var importedKeys = /* @__PURE__ */ new WeakMap();
|
|
1711
|
+
var importedSchemaKeys = (check) => importedKeys.get(check);
|
|
1621
1712
|
var jsonSchemaProblems = (errors, inspection) => {
|
|
1622
1713
|
const problems = problemsOf(errors, inspection);
|
|
1623
1714
|
return problems.length === 0 ? false : problems;
|
|
@@ -1666,19 +1757,19 @@ var compileJsonSchemaDecoder = (document) => Effect_exports.gen(function* () {
|
|
|
1666
1757
|
},
|
|
1667
1758
|
catch: () => new ValidationError()
|
|
1668
1759
|
});
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
{ expected: "a value matching a supported imported JSON Schema" }
|
|
1680
|
-
)
|
|
1760
|
+
const check = Schema_exports.makeFilter(
|
|
1761
|
+
(value) => {
|
|
1762
|
+
try {
|
|
1763
|
+
const result = validator.validate(value);
|
|
1764
|
+
return result.valid || jsonSchemaProblems(result.errors, validator.inspection(value));
|
|
1765
|
+
} catch {
|
|
1766
|
+
return false;
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
{ expected: "a value matching a supported imported JSON Schema" }
|
|
1681
1770
|
);
|
|
1771
|
+
importedKeys.set(check, documentKeys(document));
|
|
1772
|
+
const decoder = Schema_exports.Json.check(check);
|
|
1682
1773
|
return Object.assign(decoder, { [ImportedJsonSchema]: document });
|
|
1683
1774
|
});
|
|
1684
1775
|
var lazyCompiledDecoder = (document) => {
|
|
@@ -1772,6 +1863,9 @@ export {
|
|
|
1772
1863
|
allowedValues,
|
|
1773
1864
|
maxAlternativeKeys,
|
|
1774
1865
|
unionShape,
|
|
1866
|
+
missingKey,
|
|
1867
|
+
missingKeyText,
|
|
1868
|
+
importedSchemaKeys,
|
|
1775
1869
|
compileJsonSchemaDecoder,
|
|
1776
1870
|
lazyJsonSchemaDecoder,
|
|
1777
1871
|
preparedJsonSchemaDecoder,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
text,
|
|
20
20
|
uint8Array,
|
|
21
21
|
urlParams
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LNSVJS2Q.js";
|
|
23
23
|
import {
|
|
24
24
|
Cause,
|
|
25
25
|
Defect,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
transformEffect,
|
|
115
115
|
transformPull,
|
|
116
116
|
void_2 as void_
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
118
118
|
import {
|
|
119
119
|
__export
|
|
120
120
|
} from "./chunk-CZ7CSFO4.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
skillFromFiles
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IN2WIN7I.js";
|
|
4
4
|
import {
|
|
5
5
|
joinPath,
|
|
6
6
|
mergeMeta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ILYK7BQG.js";
|
|
8
8
|
import {
|
|
9
9
|
isShortenedUpstream,
|
|
10
10
|
parseProviderError,
|
|
11
11
|
providerError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EMHFXFTJ.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-OBXHQNWC.js";
|
|
25
25
|
import {
|
|
26
26
|
CacheError,
|
|
27
27
|
FailureCode,
|
|
@@ -32,19 +32,19 @@ import {
|
|
|
32
32
|
maxFailureFields,
|
|
33
33
|
maxFailureMessageLength,
|
|
34
34
|
maxUpstreamMessageLength
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MWKHKOTL.js";
|
|
36
36
|
import {
|
|
37
37
|
SkillLoadFailed,
|
|
38
38
|
skillFormatLimits
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KBIKBWSS.js";
|
|
40
40
|
import {
|
|
41
41
|
jsonSchemaDocument
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KGCTYL2S.js";
|
|
43
43
|
import {
|
|
44
44
|
AccountId,
|
|
45
45
|
HttpUrl,
|
|
46
46
|
JsonObject
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-H2CJWXA3.js";
|
|
48
48
|
import {
|
|
49
49
|
Cause_exports,
|
|
50
50
|
Effect_exports,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
Redacted_exports,
|
|
55
55
|
Result_exports,
|
|
56
56
|
Schema_exports
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
58
58
|
|
|
59
59
|
// src/contracts/openapi.ts
|
|
60
60
|
var OpenapiErrorResponse = Schema_exports.Struct({
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
answeredError,
|
|
4
4
|
mcpClient,
|
|
5
5
|
mcpJsonSchemaValidator
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RIKH5H2X.js";
|
|
7
7
|
import {
|
|
8
8
|
failOnNetworkRefusal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-T65AFHU3.js";
|
|
10
10
|
import {
|
|
11
11
|
accountProviderError,
|
|
12
12
|
bodyUpstreamError,
|
|
13
13
|
httpProviderError,
|
|
14
14
|
providerErrorDetail
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EMHFXFTJ.js";
|
|
16
16
|
import {
|
|
17
17
|
McpCredentialsUnverified,
|
|
18
18
|
McpError,
|
|
@@ -20,21 +20,21 @@ import {
|
|
|
20
20
|
McpToolsOptions,
|
|
21
21
|
defaultMcpClientLimits,
|
|
22
22
|
mcpHealthReserveMs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OBXHQNWC.js";
|
|
24
24
|
import {
|
|
25
25
|
NetworkRefused,
|
|
26
26
|
ProviderError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MWKHKOTL.js";
|
|
28
28
|
import {
|
|
29
29
|
captureTelemetry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VU6GQ2SH.js";
|
|
31
31
|
import {
|
|
32
32
|
FetchHttpClient_exports
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MZH4J2PO.js";
|
|
34
34
|
import {
|
|
35
35
|
HttpClientRequest_exports,
|
|
36
36
|
HttpClient_exports
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LNSVJS2Q.js";
|
|
38
38
|
import {
|
|
39
39
|
Clock_exports,
|
|
40
40
|
Deferred_exports,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
Ref_exports,
|
|
47
47
|
Schema_exports,
|
|
48
48
|
Stream_exports
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
50
50
|
|
|
51
51
|
// src/implementation/mcp.ts
|
|
52
52
|
import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
fromWeb,
|
|
5
5
|
layerMergedContext,
|
|
6
6
|
make2 as make
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LNSVJS2Q.js";
|
|
8
8
|
import {
|
|
9
9
|
Reference,
|
|
10
10
|
Service,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
succeed4 as succeed,
|
|
18
18
|
toReadableStreamEffect,
|
|
19
19
|
tryPromise
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
23
|
} from "./chunk-CZ7CSFO4.js";
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
FailureSource,
|
|
9
9
|
ProviderError,
|
|
10
10
|
UpstreamError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MWKHKOTL.js";
|
|
12
12
|
import {
|
|
13
13
|
AppSkillName,
|
|
14
14
|
AppSkills
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KBIKBWSS.js";
|
|
16
16
|
import {
|
|
17
17
|
RecordedMessage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EG72MSVK.js";
|
|
19
19
|
import {
|
|
20
20
|
AccountId,
|
|
21
21
|
HttpUrl,
|
|
22
22
|
JsonObject as JsonObject2,
|
|
23
23
|
JsonValue
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H2CJWXA3.js";
|
|
25
25
|
import {
|
|
26
26
|
Any,
|
|
27
27
|
ArraySchema,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
transformOptional,
|
|
77
77
|
withConstructorDefault,
|
|
78
78
|
withDefault
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
80
80
|
|
|
81
81
|
// src/contracts/api-response-error.ts
|
|
82
82
|
var maxApiErrorInstructionsLength = 4096;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareElicitation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-47BLLMRQ.js";
|
|
4
4
|
import {
|
|
5
5
|
fromPromise
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ILYK7BQG.js";
|
|
7
7
|
import {
|
|
8
8
|
bodyUpstreamError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EMHFXFTJ.js";
|
|
10
10
|
import {
|
|
11
11
|
ElicitationFailed,
|
|
12
12
|
McpError,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
defaultElicitationLimits,
|
|
19
19
|
defaultMcpClientLimits,
|
|
20
20
|
mcpSdkTimerCeilingMs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OBXHQNWC.js";
|
|
22
22
|
import {
|
|
23
23
|
jsonSchemaDecoder,
|
|
24
24
|
nestJsonSchema,
|
|
25
25
|
preparedJsonSchemaDecoder
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KGCTYL2S.js";
|
|
27
27
|
import {
|
|
28
28
|
JsonObject
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-H2CJWXA3.js";
|
|
30
30
|
import {
|
|
31
31
|
Clock_exports,
|
|
32
32
|
Deferred_exports,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
Option_exports,
|
|
36
36
|
Queue_exports,
|
|
37
37
|
Schema_exports
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
39
39
|
|
|
40
40
|
// src/implementation/mcp-tools.ts
|
|
41
41
|
var resultFields = {
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
networkRefusalHeader,
|
|
6
6
|
networkRefusalStatus,
|
|
7
7
|
supportedFetchOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MWKHKOTL.js";
|
|
9
9
|
import {
|
|
10
10
|
invocationFetch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VU6GQ2SH.js";
|
|
12
12
|
import {
|
|
13
13
|
Effect_exports,
|
|
14
14
|
Schema_exports
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
16
16
|
|
|
17
17
|
// src/implementation/network.ts
|
|
18
18
|
var refusalHeader = (status, header) => status === networkRefusalStatus && header !== null && header !== void 0 ? header : void 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FetchHttpClient_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MZH4J2PO.js";
|
|
4
4
|
import {
|
|
5
5
|
recordedMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EG72MSVK.js";
|
|
7
7
|
import {
|
|
8
8
|
HttpBody_exports,
|
|
9
9
|
HttpClient,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
tapError,
|
|
24
24
|
transformResponse,
|
|
25
25
|
uint8Array
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LNSVJS2Q.js";
|
|
27
27
|
import {
|
|
28
28
|
Array as Array2,
|
|
29
29
|
Boolean2 as Boolean,
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
withDefault2 as withDefault,
|
|
134
134
|
withTracerEnabled,
|
|
135
135
|
zero
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
137
137
|
import {
|
|
138
138
|
__export
|
|
139
139
|
} from "./chunk-CZ7CSFO4.js";
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
fromPromise,
|
|
4
4
|
nativeOperation,
|
|
5
5
|
nativeRouter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ILYK7BQG.js";
|
|
7
7
|
import {
|
|
8
8
|
ScheduleTiming
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OBXHQNWC.js";
|
|
10
10
|
import {
|
|
11
11
|
decoderOf,
|
|
12
12
|
isSchema,
|
|
13
13
|
schemaArgument
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KGCTYL2S.js";
|
|
15
15
|
import {
|
|
16
16
|
JsonValue
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H2CJWXA3.js";
|
|
18
18
|
import {
|
|
19
19
|
Effect_exports,
|
|
20
20
|
Schema_exports
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
22
22
|
|
|
23
23
|
// src/contracts/http.ts
|
|
24
24
|
var ResponseStatusError = class extends Schema_exports.TaggedError()(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fixedRouter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KTPKTBKZ.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeOperation,
|
|
6
6
|
operationDeclaration,
|
|
7
7
|
routerDeclaration
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ILYK7BQG.js";
|
|
9
9
|
|
|
10
10
|
// src/implementation/protocol-operations.ts
|
|
11
11
|
var protocolOperations = (operations, kinds = {}) => {
|
package/js/client.js
CHANGED
|
@@ -3,36 +3,36 @@ import {
|
|
|
3
3
|
UiContext,
|
|
4
4
|
UiDeploymentChanged,
|
|
5
5
|
UiFailed
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4ZTVLEN6.js";
|
|
7
7
|
import {
|
|
8
8
|
AsyncResult_exports,
|
|
9
9
|
AtomRegistry_exports,
|
|
10
10
|
Atom_exports,
|
|
11
11
|
queryResult
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-74YVXBKY.js";
|
|
13
13
|
import {
|
|
14
14
|
OtlpExporter_exports,
|
|
15
15
|
externalTrace,
|
|
16
16
|
pendingSpan,
|
|
17
17
|
telemetryLayer,
|
|
18
18
|
traceLinks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VU6GQ2SH.js";
|
|
20
20
|
import {
|
|
21
21
|
FetchHttpClient_exports
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MZH4J2PO.js";
|
|
23
23
|
import {
|
|
24
24
|
decoderOf
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-KGCTYL2S.js";
|
|
26
|
+
import "./chunk-EG72MSVK.js";
|
|
27
27
|
import {
|
|
28
28
|
JsonValue
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-H2CJWXA3.js";
|
|
30
30
|
import {
|
|
31
31
|
HttpApiClient_exports
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KSGYJV46.js";
|
|
33
33
|
import {
|
|
34
34
|
HttpClientError_exports
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LNSVJS2Q.js";
|
|
36
36
|
import {
|
|
37
37
|
Cause_exports,
|
|
38
38
|
Clock_exports,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
Semaphore_exports,
|
|
52
52
|
Stream_exports,
|
|
53
53
|
Tracer_exports
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-IFJU5SYQ.js";
|
|
55
55
|
import "./chunk-CZ7CSFO4.js";
|
|
56
56
|
|
|
57
57
|
// src/contracts/live.ts
|
package/js/contracts.js
CHANGED
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
skillCatalog,
|
|
119
119
|
skillsCommand,
|
|
120
120
|
workflowDurationMillis
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-OBXHQNWC.js";
|
|
122
122
|
import {
|
|
123
123
|
FailureCode,
|
|
124
124
|
FailureDetail,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
networkRefusalHeader,
|
|
142
142
|
networkRefusalResponse,
|
|
143
143
|
networkRefusalStatus
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-MWKHKOTL.js";
|
|
145
145
|
import {
|
|
146
146
|
AppSkillMetadata,
|
|
147
147
|
AppSkillName,
|
|
@@ -153,15 +153,15 @@ import {
|
|
|
153
153
|
SkillServiceName,
|
|
154
154
|
skillFormatLimits,
|
|
155
155
|
skillLoadLimits
|
|
156
|
-
} from "./chunk-
|
|
157
|
-
import "./chunk-
|
|
156
|
+
} from "./chunk-KBIKBWSS.js";
|
|
157
|
+
import "./chunk-EG72MSVK.js";
|
|
158
158
|
import {
|
|
159
159
|
AccountId,
|
|
160
160
|
HttpUrl
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
-
import "./chunk-
|
|
161
|
+
} from "./chunk-H2CJWXA3.js";
|
|
162
|
+
import "./chunk-KSGYJV46.js";
|
|
163
|
+
import "./chunk-LNSVJS2Q.js";
|
|
164
|
+
import "./chunk-IFJU5SYQ.js";
|
|
165
165
|
import "./chunk-CZ7CSFO4.js";
|
|
166
166
|
export {
|
|
167
167
|
AccountCheckCommand,
|