apps 0.0.1-beta.143 → 0.0.1-beta.144
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/check-publish.mjs +0 -1
- package/framework-reference.json +1 -1
- package/js/{chunk-B54D6AN7.js → chunk-455CCO6Q.js} +7 -15
- package/js/{chunk-RW5EXIO6.js → chunk-5MEOL2SG.js} +6 -15
- package/js/{chunk-PASOVDON.js → chunk-6NRWFVK2.js} +9 -30
- package/js/{chunk-NXUNFV44.js → chunk-6OWHQINS.js} +9 -14
- package/js/{chunk-2XEQYDQY.js → chunk-A6FRLRCN.js} +0 -1
- package/js/{chunk-Y3QPWYHC.js → chunk-AFEMXP3F.js} +4 -5
- package/js/{chunk-XRNSAU62.js → chunk-B2PSDMZP.js} +2 -2
- package/js/{chunk-K24M6LZ7.js → chunk-B4JN2A6F.js} +2 -2
- package/js/{chunk-RUSVGD5N.js → chunk-BU3UOD2T.js} +2 -2
- package/js/{chunk-LRXY54YF.js → chunk-EXL6F456.js} +1 -1
- package/js/{chunk-ADG72XX3.js → chunk-JLHRRTRH.js} +6 -13
- package/js/{chunk-3RIEA22Q.js → chunk-OFSXKKD6.js} +24 -43
- package/js/{chunk-V6OUBNL4.js → chunk-QDF7PQAD.js} +4 -6
- package/js/{chunk-H4JK7UTH.js → chunk-T4MICYGT.js} +6 -47
- package/js/{chunk-XAOJP46A.js → chunk-XR7KZNKD.js} +1 -1
- package/js/client.js +2 -7
- package/js/contracts.js +2 -2
- package/js/effect.js +12 -12
- package/js/graphql.js +14 -16
- package/js/host.js +12 -14
- package/js/index.js +8 -13
- package/js/mcp/effect.js +13 -13
- package/js/mcp.js +15 -15
- package/js/openapi.js +12 -19
- package/js/skills/effect.js +2 -2
- package/js/skills.js +15 -21
- 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 +1 -40
- package/types/app-data/src/contracts/database.d.ts +0 -21
- package/types/telemetry/src/app-records.d.ts +0 -24
- package/types/telemetry/src/browser-operations.d.ts +0 -8
- package/types/telemetry/src/browser-performance.d.ts +0 -2
- package/types/telemetry/src/browser-request-timing.d.ts +0 -1
- package/types/telemetry/src/browser.d.ts +0 -10
- package/types/telemetry/src/config.d.ts +0 -8
- package/types/telemetry/src/context.d.ts +0 -6
- package/types/telemetry/src/index.d.ts +0 -1
- package/types/telemetry/src/keepalive.d.ts +0 -44
- package/types/telemetry/src/layer.d.ts +0 -8
- package/types/telemetry/src/measurements.d.ts +0 -8
- package/types/telemetry/src/ownership.d.ts +0 -45
- package/types/telemetry/src/pending-span.d.ts +0 -2
- package/types/telemetry/src/recorded-failure.d.ts +0 -26
- package/types/telemetry/src/relay.d.ts +0 -29
- package/types/telemetry/src/span-attributes.d.ts +0 -38
- package/types/telemetry/src/trace-context.d.ts +0 -6
- package/types/telemetry/src/transport.d.ts +0 -10
- package/types/utils/src/api-error.d.ts +0 -22
- package/types/utils/src/connection-failure.d.ts +0 -10
- package/types/utils/src/random-uuid.d.ts +0 -5
- package/types/utils/src/recorded-message.d.ts +0 -15
- package/types/utils/src/schema-definitions.d.ts +0 -6
- package/types/utils/src/user-facing-error.d.ts +0 -19
package/js/openapi.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
protocolOperations,
|
|
10
10
|
protocolRouter
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B2PSDMZP.js";
|
|
12
12
|
import {
|
|
13
13
|
OpenapiCompileError,
|
|
14
14
|
OpenapiCompileErrorCode,
|
|
@@ -29,15 +29,15 @@ import {
|
|
|
29
29
|
isOpenapiTextMedia,
|
|
30
30
|
openapiBinaryResultSchema,
|
|
31
31
|
openapiMediaKind
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6OWHQINS.js";
|
|
33
33
|
import {
|
|
34
34
|
failOnNetworkRefusal
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-B4JN2A6F.js";
|
|
36
|
+
import "./chunk-XR7KZNKD.js";
|
|
37
37
|
import {
|
|
38
38
|
nativeOperation,
|
|
39
39
|
routerDeclaration
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-455CCO6Q.js";
|
|
41
41
|
import {
|
|
42
42
|
accountProviderError,
|
|
43
43
|
bodyUpstreamError,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
providerErrorDetail,
|
|
48
48
|
statedUpstream,
|
|
49
49
|
toPromise
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-BU3UOD2T.js";
|
|
51
51
|
import {
|
|
52
52
|
ApiErrorRecovery,
|
|
53
53
|
ApiErrorResponse,
|
|
@@ -58,17 +58,17 @@ import {
|
|
|
58
58
|
RouterMeta,
|
|
59
59
|
cacheLimits,
|
|
60
60
|
defaultOpenapiErrorLimits
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-EXL6F456.js";
|
|
62
|
+
import "./chunk-A6FRLRCN.js";
|
|
63
63
|
import {
|
|
64
64
|
jsonSchema,
|
|
65
65
|
lazyJsonSchemaDecoder,
|
|
66
66
|
once,
|
|
67
67
|
wrap
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-JLHRRTRH.js";
|
|
69
69
|
import {
|
|
70
70
|
owned
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-T4MICYGT.js";
|
|
72
72
|
import {
|
|
73
73
|
FetchHttpClient_exports
|
|
74
74
|
} from "./chunk-2OGVSUNI.js";
|
|
@@ -1963,8 +1963,7 @@ var segments = (path) => (path.split(/[?#]/)[0] ?? path).split("/").map((segment
|
|
|
1963
1963
|
var resourceSegments = (path) => segments(path).filter(
|
|
1964
1964
|
(segment) => !version.test(segment) && segment.toLowerCase() !== "api" && !(segment.startsWith("{") && segment.endsWith("}")) && camel(segment) !== ""
|
|
1965
1965
|
);
|
|
1966
|
-
var groupOf = (input) => camel(input.tag ?? "") || camel(resourceSegments(input.path)[0] ?? "") ||
|
|
1967
|
-
"root";
|
|
1966
|
+
var groupOf = (input) => camel(input.tag ?? "") || camel(resourceSegments(input.path)[0] ?? "") || "root";
|
|
1968
1967
|
var fallbackLeaf = (input, group) => {
|
|
1969
1968
|
const resources = resourceSegments(input.path).map(camel);
|
|
1970
1969
|
const others = resources.filter((segment) => segment !== group);
|
|
@@ -2791,7 +2790,6 @@ var compileOpenApiDocument = (entry, inputDocument, options = {}) => {
|
|
|
2791
2790
|
fallback
|
|
2792
2791
|
};
|
|
2793
2792
|
},
|
|
2794
|
-
// Expected failures stay typed; anything else is a defect in the importer, not the definition.
|
|
2795
2793
|
catch: (error) => error instanceof OpenapiCompileError ? Exit_exports.fail(error) : Schema_exports.isSchemaError(error) ? Exit_exports.fail(
|
|
2796
2794
|
new OpenapiCompileError({
|
|
2797
2795
|
code: "invalid_document",
|
|
@@ -5567,10 +5565,7 @@ var download = (url, context) => Effect_exports.gen(function* () {
|
|
|
5567
5565
|
});
|
|
5568
5566
|
var sourceDocument = (options, context) => Effect_exports.gen(function* () {
|
|
5569
5567
|
return patchOpenapi(
|
|
5570
|
-
"url" in options.source ? yield* download(options.source.url, context) : (
|
|
5571
|
-
// A copy the compilation can own, as a tree.
|
|
5572
|
-
Schema_exports.decodeUnknownSync(JsonObject)(JSON.parse(JSON.stringify(options.source.document)))
|
|
5573
|
-
),
|
|
5568
|
+
"url" in options.source ? yield* download(options.source.url, context) : Schema_exports.decodeUnknownSync(JsonObject)(JSON.parse(JSON.stringify(options.source.document))),
|
|
5574
5569
|
options.patches
|
|
5575
5570
|
);
|
|
5576
5571
|
});
|
|
@@ -5912,7 +5907,6 @@ var liveOpenapiRouter = (options) => {
|
|
|
5912
5907
|
name: operation.name,
|
|
5913
5908
|
description: operation.description,
|
|
5914
5909
|
readOnly: readOnly(operation),
|
|
5915
|
-
// The app's `kinds`, or the HTTP method Executor sends.
|
|
5916
5910
|
kindConfirmed: true,
|
|
5917
5911
|
...operation.tags === void 0 ? {} : { tags: operation.tags }
|
|
5918
5912
|
});
|
|
@@ -6056,7 +6050,6 @@ var openapiRouter = (options, kinds = {}) => Effect_exports.runPromise(
|
|
|
6056
6050
|
var openapiOperationNames = (document) => Effect_exports.runPromise(
|
|
6057
6051
|
Effect_exports.suspend(
|
|
6058
6052
|
() => compiledOperationNames(
|
|
6059
|
-
// A copy the reader can own, as a tree.
|
|
6060
6053
|
Schema_exports.decodeUnknownSync(JsonObject)(JSON.parse(JSON.stringify(document)))
|
|
6061
6054
|
)
|
|
6062
6055
|
)
|
package/js/skills/effect.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
folderSkillsEffect,
|
|
3
3
|
skillFromFiles
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-XR7KZNKD.js";
|
|
5
|
+
import "../chunk-A6FRLRCN.js";
|
|
6
6
|
import "../chunk-6XBOKQ4E.js";
|
|
7
7
|
import "../chunk-QLUWYCOT.js";
|
|
8
8
|
import "../chunk-IWLFLMIL.js";
|
package/js/skills.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-AFEMXP3F.js";
|
|
5
|
+
import "./chunk-6NRWFVK2.js";
|
|
6
6
|
import {
|
|
7
7
|
failOnNetworkRefusal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B4JN2A6F.js";
|
|
9
9
|
import {
|
|
10
10
|
folderSkillsEffect,
|
|
11
11
|
skillFromFiles
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XR7KZNKD.js";
|
|
13
13
|
import {
|
|
14
14
|
accountProviderError,
|
|
15
15
|
fromPromise,
|
|
16
16
|
httpProviderError,
|
|
17
17
|
method,
|
|
18
18
|
toPromise
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BU3UOD2T.js";
|
|
20
20
|
import {
|
|
21
21
|
NetworkRefused,
|
|
22
22
|
ProviderError,
|
|
23
23
|
networkRefusalStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EXL6F456.js";
|
|
25
25
|
import {
|
|
26
26
|
AppSkillMetadata,
|
|
27
27
|
AppSkillSource,
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
SkillLoadFailed,
|
|
32
32
|
SkillServiceName,
|
|
33
33
|
skillLoadLimits
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-A6FRLRCN.js";
|
|
35
35
|
import {
|
|
36
36
|
wrap
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-JLHRRTRH.js";
|
|
38
|
+
import "./chunk-T4MICYGT.js";
|
|
39
39
|
import {
|
|
40
40
|
FetchHttpClient_exports
|
|
41
41
|
} from "./chunk-2OGVSUNI.js";
|
|
@@ -653,7 +653,6 @@ var reader = (transport) => Effect_exports.gen(function* () {
|
|
|
653
653
|
headers,
|
|
654
654
|
body: HttpBody_exports.uint8Array(request.body, request.headers?.["Content-Type"])
|
|
655
655
|
})).pipe(
|
|
656
|
-
// `ctx.fetch` rejects with a network refusal; any other failed request got no answer.
|
|
657
656
|
Effect_exports.mapError(
|
|
658
657
|
(error) => Schema_exports.is(NetworkRefused)(error.cause) ? refusal(error.cause) : failed("request")
|
|
659
658
|
)
|
|
@@ -797,21 +796,16 @@ var cachedSkillDirectories = (cache, transport, options, commit) => fromPromise(
|
|
|
797
796
|
key: ["apps/githubSkills/directories", 1, options.repo, commit, options.path ?? null],
|
|
798
797
|
schema: wrap(SkillDirectories, false),
|
|
799
798
|
freshFor: "7 days",
|
|
800
|
-
// Executor's own loader: the app's cache runs it natively, so only its requests are upstream.
|
|
801
799
|
load: toPromise(
|
|
802
|
-
(context) => (
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
commit,
|
|
809
|
-
options.path
|
|
810
|
-
)
|
|
800
|
+
(context) => reader({ fetch: transport.fetch, signal: context.signal }).pipe(
|
|
801
|
+
Effect_exports.flatMap(
|
|
802
|
+
(remote) => skillDirectories(
|
|
803
|
+
githubRequests(remote, options.repo, options.token),
|
|
804
|
+
commit,
|
|
805
|
+
options.path
|
|
811
806
|
)
|
|
812
807
|
)
|
|
813
808
|
),
|
|
814
|
-
// A cache may call the loader as a Promise; its own signal cancels that load.
|
|
815
809
|
(context) => context.signal
|
|
816
810
|
)
|
|
817
811
|
}).pipe(
|
package/js/ui/serving.js
CHANGED