apps 0.0.1-beta.118 → 0.0.1-beta.119
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-74H25C4X.js → chunk-3KNB4HRA.js} +3 -3
- package/js/{chunk-ACQXVKVQ.js → chunk-5TYZML5C.js} +1 -1
- package/js/{chunk-OWN3DP2W.js → chunk-CCJUTN55.js} +1 -1
- package/js/{chunk-VAI3EVCS.js → chunk-DA6RXOMJ.js} +2 -2
- package/js/{chunk-YDW7DX3A.js → chunk-EAPSQBFN.js} +2 -2
- package/js/{chunk-OIMMQRYE.js → chunk-EPHGO53W.js} +14 -10
- package/js/{chunk-4PIQKACY.js → chunk-EPZ3P7IX.js} +2 -2
- package/js/{chunk-2RGJMA7N.js → chunk-F4CV5TQJ.js} +4 -4
- package/js/{chunk-4EOLLVQ6.js → chunk-GPWOAH4M.js} +10 -10
- package/js/{chunk-ES6QUAAC.js → chunk-HFZBYCHQ.js} +6 -6
- package/js/{chunk-6A6P5TYV.js → chunk-JEDUDIPK.js} +56 -52
- package/js/{chunk-OSVCX4MV.js → chunk-JYHMBE45.js} +13 -13
- package/js/{chunk-4X2UI4R2.js → chunk-KJW5IPM4.js} +1 -1
- package/js/{chunk-62NVUKED.js → chunk-MJUHAHDG.js} +2 -2
- package/js/{chunk-7HG422GB.js → chunk-NCOPALJZ.js} +1 -1
- package/js/{chunk-KLSEU35Y.js → chunk-QUFLMMTG.js} +1 -1
- package/js/{chunk-PBGPES67.js → chunk-SO33LZ7J.js} +2 -2
- package/js/{chunk-OIH73VFM.js → chunk-SPGGRZ5K.js} +4 -4
- package/js/{chunk-ZKDXML77.js → chunk-U2GHFWX2.js} +18 -0
- package/js/{chunk-URKOTNDA.js → chunk-VATGZDJK.js} +13 -7
- package/js/{chunk-SXQVVXJE.js → chunk-VC7IINQX.js} +20 -8
- package/js/{chunk-UPTAFF6L.js → chunk-VKYKMAV3.js} +6 -6
- package/js/{chunk-DILSCQPJ.js → chunk-VXBCDIWD.js} +2 -2
- package/js/{chunk-HLMJBE4T.js → chunk-XR5CO3XR.js} +3 -3
- package/js/{chunk-GFRK2I3S.js → chunk-Z2TCKZKF.js} +2 -2
- package/js/client.js +10 -10
- package/js/contracts.js +7 -7
- package/js/effect.js +18 -18
- package/js/graphql.js +20 -20
- package/js/host.js +18 -18
- package/js/index.js +13 -13
- package/js/mcp/effect.js +19 -19
- package/js/mcp.js +21 -21
- package/js/openapi.js +28 -23
- package/js/react.js +2 -2
- package/js/skills/effect.js +6 -6
- package/js/skills.js +29 -17
- 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/apps/src/implementation/router-catalog.d.ts +8 -89
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonValue,
|
|
3
3
|
withLegacyKeys
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NCOPALJZ.js";
|
|
5
5
|
import {
|
|
6
6
|
HttpApiEndpoint_exports,
|
|
7
7
|
HttpApiGroup_exports,
|
|
8
8
|
HttpApiSchema_exports,
|
|
9
9
|
HttpApi_exports
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VXBCDIWD.js";
|
|
11
11
|
import {
|
|
12
12
|
Schema_exports
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-U2GHFWX2.js";
|
|
14
14
|
|
|
15
15
|
// src/contracts/ui.ts
|
|
16
16
|
var UiContextFields = Schema_exports.Struct({
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeclarationInvalid,
|
|
3
3
|
JsonObject,
|
|
4
4
|
ValidationError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NCOPALJZ.js";
|
|
6
6
|
import {
|
|
7
7
|
Cause_exports,
|
|
8
8
|
Effect_exports,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SchemaIssue_exports,
|
|
12
12
|
SchemaParser_exports,
|
|
13
13
|
Schema_exports
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U2GHFWX2.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/.bun/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js
|
|
17
17
|
function deepCompareStrict(a, b) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
fromWeb,
|
|
5
5
|
layerMergedContext,
|
|
6
6
|
make2 as make
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5TYZML5C.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-U2GHFWX2.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
23
|
} from "./chunk-CZ7CSFO4.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accountProviderError,
|
|
3
3
|
fromPromise
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SPGGRZ5K.js";
|
|
5
5
|
import {
|
|
6
6
|
HostedTool,
|
|
7
7
|
HostedToolSummary,
|
|
8
8
|
RouterKey,
|
|
9
9
|
RouterMeta,
|
|
10
10
|
reservedRouterKeys
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F4CV5TQJ.js";
|
|
12
12
|
import {
|
|
13
13
|
combineJsonSchemas,
|
|
14
14
|
decoderOf,
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
once,
|
|
17
17
|
schemaArgument,
|
|
18
18
|
withLazyJsonSchemaDocument
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DA6RXOMJ.js";
|
|
20
20
|
import {
|
|
21
21
|
JsonObject
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NCOPALJZ.js";
|
|
23
23
|
import {
|
|
24
24
|
Effect_exports,
|
|
25
25
|
Result_exports,
|
|
26
26
|
Schema_exports
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-U2GHFWX2.js";
|
|
28
28
|
|
|
29
29
|
// src/implementation/operations.ts
|
|
30
30
|
var NativeOperation = /* @__PURE__ */ Symbol("apps.Operation");
|
|
@@ -403,16 +403,20 @@ var merge = (name, variants) => Schema_exports.decodeUnknownSync(HostedTool)({
|
|
|
403
403
|
} : {},
|
|
404
404
|
...sameAcross("_meta", variants)
|
|
405
405
|
});
|
|
406
|
+
var accountConcurrency = 8;
|
|
406
407
|
var eachAccount = (sources, read) => Effect_exports.gen(function* () {
|
|
408
|
+
const results = yield* Effect_exports.forEach(
|
|
409
|
+
sources,
|
|
410
|
+
([accountId, source]) => Effect_exports.result(
|
|
411
|
+
read(source).pipe(Effect_exports.mapError((error) => accountProviderError(error, accountId)))
|
|
412
|
+
).pipe(Effect_exports.map((result) => [accountId, result])),
|
|
413
|
+
{ concurrency: accountConcurrency }
|
|
414
|
+
);
|
|
407
415
|
const values = /* @__PURE__ */ new Map();
|
|
408
416
|
const failed = /* @__PURE__ */ new Map();
|
|
409
|
-
for (const [accountId,
|
|
410
|
-
const result = yield* Effect_exports.result(
|
|
411
|
-
read(source).pipe(Effect_exports.mapError((error) => accountProviderError(error, accountId)))
|
|
412
|
-
);
|
|
417
|
+
for (const [accountId, result] of results)
|
|
413
418
|
if (Result_exports.isSuccess(result)) values.set(accountId, result.success);
|
|
414
419
|
else failed.set(accountId, result.failure);
|
|
415
|
-
}
|
|
416
420
|
return { values, failed };
|
|
417
421
|
});
|
|
418
422
|
var firstFailure = (failed) => [...failed.values()][0];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RecordedMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CCJUTN55.js";
|
|
4
4
|
import {
|
|
5
5
|
SchemaGetter_exports,
|
|
6
6
|
Schema_exports
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U2GHFWX2.js";
|
|
8
8
|
|
|
9
9
|
// ../utils/src/api-error.ts
|
|
10
10
|
var MessageField = Schema_exports.String.pipe(
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppSkillName,
|
|
3
3
|
AppSkills
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EPZ3P7IX.js";
|
|
5
5
|
import {
|
|
6
6
|
RecordedMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CCJUTN55.js";
|
|
8
8
|
import {
|
|
9
9
|
AccountId,
|
|
10
10
|
HttpUrl,
|
|
11
11
|
JsonObject as JsonObject2,
|
|
12
12
|
JsonValue,
|
|
13
13
|
withLegacyKeys
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NCOPALJZ.js";
|
|
15
15
|
import {
|
|
16
16
|
Any,
|
|
17
17
|
ArraySchema,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
transformOptional,
|
|
68
68
|
withConstructorDefault,
|
|
69
69
|
withDefault
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-U2GHFWX2.js";
|
|
71
71
|
|
|
72
72
|
// src/contracts/failure.ts
|
|
73
73
|
var maxFailureMessageLength = 2048;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareElicitation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JYHMBE45.js";
|
|
4
4
|
import {
|
|
5
5
|
failOnNetworkRefusal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XR5CO3XR.js";
|
|
7
7
|
import {
|
|
8
8
|
accountProviderError,
|
|
9
9
|
bodyUpstreamError,
|
|
10
10
|
fromPromise,
|
|
11
11
|
httpProviderError,
|
|
12
12
|
providerErrorDetail
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SPGGRZ5K.js";
|
|
14
14
|
import {
|
|
15
15
|
ElicitationFailed,
|
|
16
16
|
McpCredentialsUnverified,
|
|
@@ -28,26 +28,26 @@ import {
|
|
|
28
28
|
defaultMcpClientLimits,
|
|
29
29
|
mcpHealthReserveMs,
|
|
30
30
|
mcpSdkTimerCeilingMs
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-F4CV5TQJ.js";
|
|
32
32
|
import {
|
|
33
33
|
jsonSchemaDecoder,
|
|
34
34
|
nestJsonSchema,
|
|
35
35
|
preparedJsonSchemaDecoder
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DA6RXOMJ.js";
|
|
37
37
|
import {
|
|
38
38
|
captureTelemetry,
|
|
39
39
|
owned
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VATGZDJK.js";
|
|
41
41
|
import {
|
|
42
42
|
FetchHttpClient_exports
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EAPSQBFN.js";
|
|
44
44
|
import {
|
|
45
45
|
JsonObject
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-NCOPALJZ.js";
|
|
47
47
|
import {
|
|
48
48
|
HttpClientRequest_exports,
|
|
49
49
|
HttpClient_exports
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-5TYZML5C.js";
|
|
51
51
|
import {
|
|
52
52
|
Clock_exports,
|
|
53
53
|
Deferred_exports,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
Ref_exports,
|
|
62
62
|
Schema_exports,
|
|
63
63
|
Stream_exports
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-U2GHFWX2.js";
|
|
65
65
|
|
|
66
66
|
// src/implementation/mcp.ts
|
|
67
67
|
import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
declaredOperations,
|
|
3
3
|
nativeOperation,
|
|
4
4
|
nativeRouter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EPHGO53W.js";
|
|
6
6
|
import {
|
|
7
7
|
fromPromise,
|
|
8
8
|
method
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SPGGRZ5K.js";
|
|
10
10
|
import {
|
|
11
11
|
EmittedEvent,
|
|
12
12
|
EventName,
|
|
@@ -17,21 +17,21 @@ import {
|
|
|
17
17
|
normalizePlacements,
|
|
18
18
|
placementFields,
|
|
19
19
|
renderPlacement
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-F4CV5TQJ.js";
|
|
21
21
|
import {
|
|
22
22
|
decoderOf,
|
|
23
23
|
isSchema,
|
|
24
24
|
jsonSchemaDocument,
|
|
25
25
|
schemaArgument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DA6RXOMJ.js";
|
|
27
27
|
import {
|
|
28
28
|
JsonValue
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NCOPALJZ.js";
|
|
30
30
|
import {
|
|
31
31
|
Effect_exports,
|
|
32
32
|
Result_exports,
|
|
33
33
|
Schema_exports
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-U2GHFWX2.js";
|
|
35
35
|
|
|
36
36
|
// src/contracts/http.ts
|
|
37
37
|
var ResponseStatusError = class extends Schema_exports.TaggedError()(
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
skillFromFiles
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SO33LZ7J.js";
|
|
4
4
|
import {
|
|
5
5
|
PartialListing,
|
|
6
6
|
joinPath,
|
|
7
7
|
mergeMeta
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EPHGO53W.js";
|
|
9
9
|
import {
|
|
10
10
|
isShortenedStated,
|
|
11
11
|
parseProviderError,
|
|
12
12
|
providerError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SPGGRZ5K.js";
|
|
14
14
|
import {
|
|
15
15
|
ApiErrorResponse,
|
|
16
16
|
CacheError,
|
|
@@ -33,19 +33,19 @@ import {
|
|
|
33
33
|
maxFailureFields,
|
|
34
34
|
maxFailureMessageLength,
|
|
35
35
|
maxUpstreamMessageLength
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-F4CV5TQJ.js";
|
|
37
37
|
import {
|
|
38
38
|
SkillLoadFailed,
|
|
39
39
|
skillFormatLimits
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EPZ3P7IX.js";
|
|
41
41
|
import {
|
|
42
42
|
jsonSchemaDocument
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DA6RXOMJ.js";
|
|
44
44
|
import {
|
|
45
45
|
AccountId,
|
|
46
46
|
HttpUrl,
|
|
47
47
|
JsonObject
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-NCOPALJZ.js";
|
|
49
49
|
import {
|
|
50
50
|
Cause_exports,
|
|
51
51
|
Effect_exports,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
Redacted_exports,
|
|
56
56
|
Result_exports,
|
|
57
57
|
Schema_exports
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-U2GHFWX2.js";
|
|
59
59
|
|
|
60
60
|
// src/contracts/openapi.ts
|
|
61
61
|
var OpenapiErrorResponse = Schema_exports.Struct({
|
|
@@ -829,15 +829,13 @@ var within = (wanted, path) => [...wanted].flatMap(
|
|
|
829
829
|
(name) => path === "" ? [name] : name.startsWith(`${path}.`) ? [name.slice(path.length + 1)] : []
|
|
830
830
|
);
|
|
831
831
|
var readCatalog = (root, options) => Effect_exports.gen(function* () {
|
|
832
|
-
const tools = [];
|
|
833
|
-
const routers = [];
|
|
834
832
|
const { wanted, secrets } = options;
|
|
835
833
|
const listing = (read) => sourced(
|
|
836
834
|
() => read().pipe(
|
|
837
|
-
Effect_exports.map((
|
|
835
|
+
Effect_exports.map((tools) => ({ tools, error: void 0 })),
|
|
838
836
|
Effect_exports.catchIf(
|
|
839
837
|
Schema_exports.is(PartialListing),
|
|
840
|
-
({ tools
|
|
838
|
+
({ tools, error }) => Effect_exports.succeed({ tools, error: safeFailure(error, secrets) })
|
|
841
839
|
)
|
|
842
840
|
),
|
|
843
841
|
secrets
|
|
@@ -853,8 +851,8 @@ var readCatalog = (root, options) => Effect_exports.gen(function* () {
|
|
|
853
851
|
}),
|
|
854
852
|
secrets
|
|
855
853
|
).pipe(
|
|
856
|
-
Effect_exports.map((
|
|
857
|
-
tools:
|
|
854
|
+
Effect_exports.map((tools) => ({
|
|
855
|
+
tools: tools.filter((tool) => tool !== void 0),
|
|
858
856
|
error: void 0
|
|
859
857
|
}))
|
|
860
858
|
) : listing(source.list)
|
|
@@ -880,51 +878,57 @@ var readCatalog = (root, options) => Effect_exports.gen(function* () {
|
|
|
880
878
|
return { meta, found, error };
|
|
881
879
|
});
|
|
882
880
|
const include = (source, path, relative) => Effect_exports.gen(function* () {
|
|
883
|
-
if (path === "")
|
|
884
|
-
const { meta, found, error } = yield* readSource(source, path, relative);
|
|
885
|
-
tools.push(...found);
|
|
886
|
-
return { meta, error };
|
|
887
|
-
}
|
|
881
|
+
if (path === "") return yield* readSource(source, path, relative);
|
|
888
882
|
const result = yield* Effect_exports.result(readSource(source, path, relative));
|
|
889
|
-
if (Result_exports.isFailure(result))
|
|
890
|
-
|
|
891
|
-
return
|
|
883
|
+
if (Result_exports.isFailure(result))
|
|
884
|
+
return { meta: source.overrides, found: [], error: result.failure };
|
|
885
|
+
return result.success;
|
|
892
886
|
});
|
|
893
|
-
const
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
if (relative !== void 0 && relative.length === 0) break;
|
|
915
|
-
const read = yield* include(child, name, relative);
|
|
916
|
-
routers.push(yield* entry(name, read.meta, read.error));
|
|
917
|
-
}
|
|
887
|
+
const none = { tools: [], routers: [] };
|
|
888
|
+
const child = (node, name, path) => Effect_exports.gen(function* () {
|
|
889
|
+
switch (node.kind) {
|
|
890
|
+
case "query":
|
|
891
|
+
case "mutation":
|
|
892
|
+
if (options.scheduled === true && options.schedules(name).length === 0) return none;
|
|
893
|
+
if (wanted !== void 0 && !wanted.has(name)) return none;
|
|
894
|
+
return {
|
|
895
|
+
tools: [
|
|
896
|
+
options.summary ? yield* operationSummary(name, path, node, options.schedules(name)) : yield* operationDescription(name, path, node, options.schedules(name))
|
|
897
|
+
],
|
|
898
|
+
routers: []
|
|
899
|
+
};
|
|
900
|
+
case "router":
|
|
901
|
+
return wanted === void 0 || within(wanted, name).length > 0 ? yield* visit(node, name) : none;
|
|
902
|
+
case "dynamic": {
|
|
903
|
+
if (options.scheduled === true) return none;
|
|
904
|
+
const relative = wanted === void 0 ? void 0 : within(wanted, name);
|
|
905
|
+
if (relative !== void 0 && relative.length === 0) return none;
|
|
906
|
+
const read = yield* include(node, name, relative);
|
|
907
|
+
return { tools: read.found, routers: [yield* entry(name, read.meta, read.error)] };
|
|
918
908
|
}
|
|
919
909
|
}
|
|
920
910
|
});
|
|
921
|
-
|
|
922
|
-
|
|
911
|
+
const visit = (node, path) => Effect_exports.gen(function* () {
|
|
912
|
+
const own = path !== "" || wanted === void 0 && node.meta !== void 0 ? [yield* entry(path, node.meta)] : [];
|
|
913
|
+
const children = yield* Effect_exports.forEach(
|
|
914
|
+
Object.entries(node.children),
|
|
915
|
+
([key, value]) => child(value, joinPath(path, key), path),
|
|
916
|
+
{ concurrency: "unbounded" }
|
|
917
|
+
);
|
|
918
|
+
return {
|
|
919
|
+
tools: children.flatMap((read) => read.tools),
|
|
920
|
+
routers: [...own, ...children.flatMap((read) => read.routers)]
|
|
921
|
+
};
|
|
922
|
+
});
|
|
923
|
+
if (root?.kind === "router") return yield* visit(root, "");
|
|
924
|
+
if (root?.kind === "dynamic" && options.scheduled !== true) {
|
|
923
925
|
const read = yield* include(root, "", wanted === void 0 ? void 0 : [...wanted]);
|
|
924
|
-
|
|
925
|
-
|
|
926
|
+
return {
|
|
927
|
+
tools: read.found,
|
|
928
|
+
routers: wanted === void 0 && (read.meta !== void 0 || read.error !== void 0) ? [yield* entry("", read.meta, read.error)] : []
|
|
929
|
+
};
|
|
926
930
|
}
|
|
927
|
-
return
|
|
931
|
+
return none;
|
|
928
932
|
});
|
|
929
933
|
var routerSkills = (root) => Effect_exports.gen(function* () {
|
|
930
934
|
const nodes = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authorCache,
|
|
3
3
|
unavailableCache
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VKYKMAV3.js";
|
|
5
5
|
import {
|
|
6
6
|
accountSecrets,
|
|
7
7
|
boundFailureMessage,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
parseSkillLoadFailed,
|
|
13
13
|
readCatalog,
|
|
14
14
|
routerSkills
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JEDUDIPK.js";
|
|
16
16
|
import {
|
|
17
17
|
appInvocationFetch
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XR5CO3XR.js";
|
|
19
19
|
import {
|
|
20
20
|
folderSkillsEffect
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SO33LZ7J.js";
|
|
22
22
|
import {
|
|
23
23
|
ResponseStatusError,
|
|
24
24
|
declaredEvents,
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
makeEmitter,
|
|
27
27
|
toEffectApp,
|
|
28
28
|
withPlacements
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HFZBYCHQ.js";
|
|
30
30
|
import {
|
|
31
31
|
declaredOperations,
|
|
32
32
|
locate,
|
|
33
33
|
nativeOperation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EPHGO53W.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-SPGGRZ5K.js";
|
|
43
43
|
import {
|
|
44
44
|
AccountCheckResult,
|
|
45
45
|
DeclaredProvider,
|
|
@@ -93,11 +93,11 @@ import {
|
|
|
93
93
|
shareCatalog,
|
|
94
94
|
sqlBindingsLimit,
|
|
95
95
|
workflowDurationMillis
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-F4CV5TQJ.js";
|
|
97
97
|
import {
|
|
98
98
|
AppSkills,
|
|
99
99
|
SkillFile
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-EPZ3P7IX.js";
|
|
101
101
|
import {
|
|
102
102
|
allowedValues,
|
|
103
103
|
echoableKey,
|
|
@@ -110,17 +110,17 @@ import {
|
|
|
110
110
|
missingKeyText,
|
|
111
111
|
objectShape,
|
|
112
112
|
unionShape
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-DA6RXOMJ.js";
|
|
114
114
|
import {
|
|
115
115
|
captureTelemetry,
|
|
116
116
|
makeOwnershipAccounting,
|
|
117
117
|
measuredSpan,
|
|
118
118
|
owned
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-VATGZDJK.js";
|
|
120
120
|
import {
|
|
121
121
|
JsonObject,
|
|
122
122
|
JsonValue
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-NCOPALJZ.js";
|
|
124
124
|
import {
|
|
125
125
|
Base64_exports,
|
|
126
126
|
Cause_exports,
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
SchemaIssue_exports,
|
|
134
134
|
Schema_exports,
|
|
135
135
|
Stream_exports
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-U2GHFWX2.js";
|
|
137
137
|
|
|
138
138
|
// src/implementation/invocation-timing.ts
|
|
139
139
|
var elicitationWaitSpan = "app.elicitation.wait";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appSignInCallbackPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KJW5IPM4.js";
|
|
4
4
|
import {
|
|
5
5
|
HttpServerResponse_exports
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5TYZML5C.js";
|
|
7
7
|
|
|
8
8
|
// src/implementation/ui-auth.ts
|
|
9
9
|
var appPrivateHeaders = {
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
SkillDefinitionInvalid,
|
|
6
6
|
SkillFile,
|
|
7
7
|
SkillFilePath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EPZ3P7IX.js";
|
|
9
9
|
import {
|
|
10
10
|
Effect_exports,
|
|
11
11
|
Schema_exports
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U2GHFWX2.js";
|
|
13
13
|
|
|
14
14
|
// src/implementation/skill-files.ts
|
|
15
15
|
var skillFromFiles = (input, source = {}) => Effect_exports.gen(function* () {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderError,
|
|
3
3
|
maxUpstreamMessageLength
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F4CV5TQJ.js";
|
|
5
5
|
import {
|
|
6
6
|
owned
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VATGZDJK.js";
|
|
8
8
|
import {
|
|
9
9
|
AccountId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NCOPALJZ.js";
|
|
11
11
|
import {
|
|
12
12
|
Effect_exports,
|
|
13
13
|
Option_exports,
|
|
14
14
|
Schema_exports
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U2GHFWX2.js";
|
|
16
16
|
|
|
17
17
|
// src/implementation/authoring.ts
|
|
18
18
|
var NativeCallback = /* @__PURE__ */ Symbol("apps.NativeCallback");
|