apps 0.0.1-beta.1 → 0.0.1-beta.10
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 +65 -43
- package/framework-reference.json +1 -1
- package/js/browser-XIPJGLH2.js +65 -0
- package/js/{chunk-SATWJKN6.js → chunk-27F7W2LG.js} +1 -1
- package/js/{chunk-HDJH3RPR.js → chunk-57RKNWL2.js} +2 -2
- package/js/{chunk-2HHMABB6.js → chunk-5T57N25Q.js} +61 -13
- package/js/{chunk-6IIO4NPI.js → chunk-72JNVHPK.js} +21 -9
- package/js/{chunk-FW5HBOIK.js → chunk-CDL5PM2Q.js} +307 -169
- package/js/{chunk-X7SFGU4Q.js → chunk-CRDWFA74.js} +28 -9
- package/js/{chunk-G7IE6BKC.js → chunk-EPT3ZP52.js} +8 -8
- package/js/chunk-FL2QR3XW.js +507 -0
- package/js/{chunk-OHRT55C4.js → chunk-IJX4CYZO.js} +3 -6
- package/js/{chunk-ZTFQHGEB.js → chunk-IPI4MFSN.js} +3 -5
- package/js/{chunk-YEJOQEII.js → chunk-JU7VHODU.js} +1 -1
- package/js/chunk-KUMBKVJD.js +39 -0
- package/js/{chunk-EVJUVWN2.js → chunk-M3B3DE4K.js} +2 -2
- package/js/{chunk-ZJWDMTE3.js → chunk-MKWZPDR6.js} +3 -3
- package/js/{chunk-BMOIAIVR.js → chunk-N7YDVXYJ.js} +49 -1
- package/js/chunk-NKLWZJLE.js +172 -0
- package/js/{chunk-ZCAMUXSG.js → chunk-ODEIDRGW.js} +3 -4
- package/js/{chunk-M6ZRRIBI.js → chunk-PJJ24GU7.js} +1 -1
- package/js/{chunk-FZJOYIZO.js → chunk-PZB6T6KU.js} +1 -1
- package/js/chunk-R3EV5FTO.js +97 -0
- package/js/{chunk-6YBRWRK3.js → chunk-RFVIONFX.js} +43 -14
- package/js/{chunk-QKHR7BMF.js → chunk-UK573G7W.js} +1 -1
- package/js/{chunk-NCYXZN2G.js → chunk-UVL56Z6E.js} +390 -23
- package/js/{chunk-KOXMLKTM.js → chunk-V5KNQVCT.js} +308 -316
- package/js/{chunk-4LPG6RCH.js → chunk-VFZKSM3T.js} +5 -25
- package/js/{chunk-IHQ4ML7K.js → chunk-WLE7WX2U.js} +554 -102
- package/js/{chunk-RBAC33PQ.js → chunk-YXQHV65J.js} +58 -83
- package/js/chunk-Z5M2LQOZ.js +209 -0
- package/js/{chunk-PLCMJREA.js → chunk-ZQINWV4W.js} +60 -20
- package/js/client.js +10 -26
- package/js/contracts.js +70 -15
- package/js/effect.js +19 -19
- package/js/es-APDZKREY.js +40968 -0
- package/js/graphql.js +34 -39
- package/js/host.js +23 -23
- package/js/index.js +199 -195
- package/js/mcp/effect.js +21 -21
- package/js/mcp/stdio.js +25 -25
- package/js/mcp.js +60 -44
- package/js/openapi.js +826 -41682
- package/js/react.js +3 -3
- package/js/skills/effect.js +3 -4
- package/js/skills.js +53 -17
- package/js/storage/facet.js +4 -4
- package/js/ui/auth/contracts.js +8 -9
- package/js/ui/auth.js +16 -14
- package/js/ui/contracts.js +4 -4
- package/js/ui/serving.js +9 -8
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +42 -2
- package/types/app-cache/src/index.d.ts +59 -1
- package/types/app-data/src/contracts/database.d.ts +33 -6
- package/types/app-data/src/implementation/schema.d.ts +2 -17
- package/types/apps/src/contracts/app.d.ts +7 -6
- package/types/apps/src/contracts/cache.d.ts +4 -1
- package/types/apps/src/contracts/failure.d.ts +25 -0
- package/types/apps/src/contracts/host.d.ts +34 -679
- package/types/apps/src/contracts/mcp.d.ts +16 -0
- package/types/apps/src/contracts/openapi.d.ts +11 -1
- package/types/apps/src/contracts/operations.d.ts +0 -5
- package/types/apps/src/contracts/protocol-version.d.ts +6 -0
- package/types/apps/src/contracts/protocols/1.d.ts +1589 -0
- package/types/apps/src/contracts/protocols/2.d.ts +668 -0
- package/types/apps/src/contracts/protocols/3.d.ts +676 -0
- package/types/apps/src/contracts/protocols/4.d.ts +1229 -0
- package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
- package/types/apps/src/contracts/provider.d.ts +51 -5
- package/types/apps/src/contracts/router.d.ts +59 -0
- package/types/apps/src/contracts/skills.d.ts +17 -8
- package/types/apps/src/contracts/storage.d.ts +3 -3
- package/types/apps/src/contracts/ui-auth.d.ts +6 -14
- package/types/apps/src/contracts/workflows.d.ts +34 -3
- package/types/apps/src/graphql.d.ts +1 -3
- package/types/apps/src/implementation/account-router.d.ts +12 -0
- package/types/apps/src/implementation/app.d.ts +5 -4
- package/types/apps/src/implementation/cache.d.ts +3 -1
- package/types/apps/src/implementation/catalog-cache.d.ts +9 -2
- package/types/apps/src/implementation/elicitation.d.ts +1 -1
- package/types/apps/src/implementation/failure-detail.d.ts +25 -0
- package/types/apps/src/implementation/graphql-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-client.d.ts +35 -19
- package/types/apps/src/implementation/mcp.d.ts +35 -19
- package/types/apps/src/implementation/openapi-compile.d.ts +3 -2
- package/types/apps/src/implementation/openapi-document.d.ts +0 -2
- package/types/apps/src/implementation/openapi-names.d.ts +18 -0
- package/types/apps/src/implementation/openapi-request.d.ts +0 -1
- package/types/apps/src/implementation/openapi-source.d.ts +7 -7
- package/types/apps/src/implementation/operations.d.ts +26 -3
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -4
- package/types/apps/src/implementation/provider.d.ts +9 -4
- package/types/apps/src/implementation/router-catalog.d.ts +225 -0
- package/types/apps/src/implementation/router.d.ts +59 -0
- package/types/apps/src/implementation/schema.d.ts +5 -6
- package/types/apps/src/implementation/storage.d.ts +5 -3
- package/types/apps/src/implementation/swagger-client.d.ts +28 -0
- package/types/apps/src/implementation/ui-auth.d.ts +11 -5
- package/types/apps/src/implementation/ui-serving.d.ts +4 -2
- package/types/apps/src/implementation/webhooks.d.ts +1 -1
- package/types/apps/src/implementation/workflow-context.d.ts +11 -3
- package/types/apps/src/index.d.ts +5 -4
- package/types/apps/src/mcp-stdio.d.ts +2 -5
- package/types/apps/src/mcp.d.ts +5 -4
- package/types/apps/src/openapi.d.ts +6 -6
- package/types/apps/src/skills.d.ts +6 -3
- package/types/apps/src/ui-auth.d.ts +2 -2
- package/types/telemetry/src/browser-operations.d.ts +5 -2
- package/js/chunk-PZ36XMXW.js +0 -93
- package/js/chunk-SWPD52J7.js +0 -35
- package/js/chunk-TE4KO4HI.js +0 -47
- package/js/chunk-W7D7WVSY.js +0 -18
- package/types/apps/src/contracts/dynamic-tools.d.ts +0 -13
- package/types/apps/src/implementation/account-operations.d.ts +0 -151
- package/types/apps/src/implementation/dynamic-tools.d.ts +0 -8
package/js/react.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
AsyncResult_exports,
|
|
3
3
|
AtomRegistry_exports,
|
|
4
4
|
queryCommitted
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-M3B3DE4K.js";
|
|
6
|
+
import "./chunk-PJJ24GU7.js";
|
|
7
7
|
import {
|
|
8
8
|
Option_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CDL5PM2Q.js";
|
|
10
10
|
import "./chunk-CZ7CSFO4.js";
|
|
11
11
|
|
|
12
12
|
// src/react.ts
|
package/js/skills/effect.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
folderSkillsEffect,
|
|
3
3
|
skillFromFiles
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-FW5HBOIK.js";
|
|
4
|
+
} from "../chunk-IPI4MFSN.js";
|
|
5
|
+
import "../chunk-JU7VHODU.js";
|
|
6
|
+
import "../chunk-CDL5PM2Q.js";
|
|
8
7
|
import "../chunk-CZ7CSFO4.js";
|
|
9
8
|
export {
|
|
10
9
|
folderSkillsEffect,
|
package/js/skills.js
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
catalogCache
|
|
3
|
+
} from "./chunk-RFVIONFX.js";
|
|
4
|
+
import "./chunk-NKLWZJLE.js";
|
|
1
5
|
import {
|
|
2
6
|
folderSkillsEffect,
|
|
3
7
|
skillFromFiles
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-NCYXZN2G.js";
|
|
8
|
+
} from "./chunk-IPI4MFSN.js";
|
|
6
9
|
import {
|
|
7
10
|
httpProviderError
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MKWZPDR6.js";
|
|
12
|
+
import "./chunk-R3EV5FTO.js";
|
|
9
13
|
import {
|
|
10
14
|
AppSkillMetadata,
|
|
15
|
+
AppSkillSource,
|
|
11
16
|
AppSkills,
|
|
12
17
|
SkillDefinitionInvalid,
|
|
13
18
|
SkillFilePath,
|
|
14
19
|
SkillLoadFailed,
|
|
15
20
|
SkillServiceName,
|
|
16
21
|
skillLoadLimits
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-W7D7WVSY.js";
|
|
22
|
+
} from "./chunk-JU7VHODU.js";
|
|
19
23
|
import {
|
|
20
24
|
FetchHttpClient_exports
|
|
21
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-57RKNWL2.js";
|
|
22
26
|
import {
|
|
23
27
|
HttpBody_exports,
|
|
24
28
|
HttpClient_exports
|
|
25
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UK573G7W.js";
|
|
26
30
|
import {
|
|
27
31
|
wrap
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-5T57N25Q.js";
|
|
33
|
+
import "./chunk-27F7W2LG.js";
|
|
30
34
|
import {
|
|
31
35
|
Effect_exports,
|
|
32
36
|
Ref_exports,
|
|
33
37
|
Schema_exports,
|
|
34
38
|
Stream_exports
|
|
35
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-CDL5PM2Q.js";
|
|
36
40
|
import "./chunk-CZ7CSFO4.js";
|
|
37
41
|
|
|
38
42
|
// src/implementation/inflate.ts
|
|
@@ -729,13 +733,14 @@ var skillDirectories = (remote, repo, commit, path) => Effect_exports.gen(functi
|
|
|
729
733
|
return yield* failed("limit");
|
|
730
734
|
return directories;
|
|
731
735
|
});
|
|
732
|
-
var cachedSkillDirectories = (cache, repo, commit, path) => Effect_exports.tryPromise({
|
|
736
|
+
var cachedSkillDirectories = (cache, transport, repo, commit, path) => Effect_exports.tryPromise({
|
|
733
737
|
try: () => cache.get({
|
|
734
738
|
key: ["apps/githubSkills/directories", 1, repo, commit, path ?? null],
|
|
735
739
|
schema: wrap(SkillDirectories, false),
|
|
736
740
|
freshFor: "7 days",
|
|
737
741
|
load: (context) => Effect_exports.runPromise(
|
|
738
|
-
|
|
742
|
+
// Keep the author's fetch, as every other read in this load does.
|
|
743
|
+
reader({ fetch: transport.fetch, signal: context.signal }).pipe(
|
|
739
744
|
Effect_exports.flatMap((remote) => skillDirectories(remote, repo, commit, path))
|
|
740
745
|
),
|
|
741
746
|
{ signal: context.signal }
|
|
@@ -746,12 +751,36 @@ var cachedSkillDirectories = (cache, repo, commit, path) => Effect_exports.tryPr
|
|
|
746
751
|
message: "Executor could not read or update the app cache for skills."
|
|
747
752
|
})
|
|
748
753
|
});
|
|
754
|
+
var cachedCatalog = (options, prefix, load) => options.cache === void 0 ? load(options, void 0) : catalogCache({
|
|
755
|
+
cache: options.cache,
|
|
756
|
+
...options.freshFor === void 0 ? {} : { freshFor: options.freshFor },
|
|
757
|
+
...options.staleFor === void 0 ? {} : { staleFor: options.staleFor },
|
|
758
|
+
prefix,
|
|
759
|
+
schema: AppSkillSource,
|
|
760
|
+
summary: { schema: AppSkillMetadata, of: ({ files: _files, ...metadata }) => metadata },
|
|
761
|
+
load: (context) => (context === void 0 ? load(options, options.cache) : load({ fetch: options.fetch, signal: context.signal }, context.cache)).pipe(Effect_exports.map((tools) => ({ tools })))
|
|
762
|
+
}).pipe(
|
|
763
|
+
Effect_exports.flatMap((catalog) => catalog.list()),
|
|
764
|
+
Effect_exports.mapError(
|
|
765
|
+
(error) => Schema_exports.is(SkillLoadFailed)(error) ? error : new SkillLoadFailed({
|
|
766
|
+
reason: "request",
|
|
767
|
+
message: "Executor could not read or update the app cache for skills."
|
|
768
|
+
})
|
|
769
|
+
)
|
|
770
|
+
);
|
|
749
771
|
var githubSkillsEffect = (options) => Effect_exports.gen(function* () {
|
|
750
772
|
if (!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(options.repo) || options.path !== void 0 && !resourcePath(options.path))
|
|
751
773
|
return yield* failed("source");
|
|
752
|
-
|
|
774
|
+
return yield* cachedCatalog(
|
|
775
|
+
options,
|
|
776
|
+
["apps/githubSkills/catalog", 1, options.repo, options.ref ?? null, options.path ?? null],
|
|
777
|
+
(transport, cache) => githubCatalog(options, transport, cache)
|
|
778
|
+
);
|
|
779
|
+
}).pipe(withService("GitHub"));
|
|
780
|
+
var githubCatalog = (options, transport, cache) => Effect_exports.gen(function* () {
|
|
781
|
+
const remote = yield* reader(transport);
|
|
753
782
|
const commit = yield* resolveCommit(remote, options.repo, options.ref);
|
|
754
|
-
const resources = yield*
|
|
783
|
+
const resources = yield* cache === void 0 ? skillDirectories(remote, options.repo, commit, options.path) : cachedSkillDirectories(cache, transport, options.repo, commit, options.path);
|
|
755
784
|
const base = `https://raw.githubusercontent.com/${options.repo}/${commit}/`;
|
|
756
785
|
const skills = yield* Effect_exports.forEach(
|
|
757
786
|
resources,
|
|
@@ -775,7 +804,7 @@ var githubSkillsEffect = (options) => Effect_exports.gen(function* () {
|
|
|
775
804
|
{ concurrency: 1 }
|
|
776
805
|
);
|
|
777
806
|
return yield* parse(AppSkills, skills);
|
|
778
|
-
})
|
|
807
|
+
});
|
|
779
808
|
var Index = Schema_exports.Struct({
|
|
780
809
|
skills: Schema_exports.Array(
|
|
781
810
|
Schema_exports.Struct({
|
|
@@ -793,7 +822,14 @@ var wellKnownSkillsEffect = (options) => Effect_exports.gen(function* () {
|
|
|
793
822
|
if (url.pathname === "/") url.pathname = "/.well-known/agent-skills/index.json";
|
|
794
823
|
else if (!url.pathname.endsWith("index.json"))
|
|
795
824
|
url.pathname = `${url.pathname.replace(/\/$/, "")}/index.json`;
|
|
796
|
-
|
|
825
|
+
return yield* cachedCatalog(
|
|
826
|
+
options,
|
|
827
|
+
["apps/wellKnownSkills/catalog", 1, url.href],
|
|
828
|
+
(transport) => wellKnownCatalog(url, transport)
|
|
829
|
+
);
|
|
830
|
+
}).pipe(withService(URL.canParse(options.url) ? new URL(options.url).hostname : void 0));
|
|
831
|
+
var wellKnownCatalog = (url, transport) => Effect_exports.gen(function* () {
|
|
832
|
+
const remote = yield* reader(transport);
|
|
797
833
|
const first = yield* remote.read(url.href);
|
|
798
834
|
const index = yield* parse(Schema_exports.fromJsonString(Index), first);
|
|
799
835
|
if (index.skills.reduce((count, skill) => count + skill.files.length, 0) > skillLoadLimits.files)
|
|
@@ -818,7 +854,7 @@ var wellKnownSkillsEffect = (options) => Effect_exports.gen(function* () {
|
|
|
818
854
|
);
|
|
819
855
|
if ((yield* remote.read(url.href)) !== first) return yield* failed("changed");
|
|
820
856
|
return yield* parse(AppSkills, skills);
|
|
821
|
-
})
|
|
857
|
+
});
|
|
822
858
|
|
|
823
859
|
// src/skills.ts
|
|
824
860
|
var githubSkills = (options) => Effect_exports.runPromise(
|
package/js/storage/facet.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
layer,
|
|
5
5
|
make as make3,
|
|
6
6
|
makeCompilerSqlite
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-PJJ24GU7.js";
|
|
8
8
|
import {
|
|
9
9
|
makeSqliteDatabase
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-ZQINWV4W.js";
|
|
11
|
+
import "../chunk-N7YDVXYJ.js";
|
|
12
12
|
import {
|
|
13
13
|
Defect,
|
|
14
14
|
Effect_exports,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
uninterruptibleMask,
|
|
58
58
|
void_,
|
|
59
59
|
withFiber
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-CDL5PM2Q.js";
|
|
61
61
|
import "../chunk-CZ7CSFO4.js";
|
|
62
62
|
|
|
63
63
|
// ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/sql/SqlError.js
|
package/js/ui/auth/contracts.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppReturnPath,
|
|
3
|
-
AppSignInApi,
|
|
4
3
|
AppSignInCallback,
|
|
5
4
|
AppSignInCode,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-FW5HBOIK.js";
|
|
5
|
+
AppSignInFailure,
|
|
6
|
+
AppSignInId,
|
|
7
|
+
appSignInCallbackPath
|
|
8
|
+
} from "../../chunk-VFZKSM3T.js";
|
|
9
|
+
import "../../chunk-CDL5PM2Q.js";
|
|
12
10
|
import "../../chunk-CZ7CSFO4.js";
|
|
13
11
|
export {
|
|
14
12
|
AppReturnPath,
|
|
15
|
-
AppSignInApi,
|
|
16
13
|
AppSignInCallback,
|
|
17
14
|
AppSignInCode,
|
|
18
|
-
|
|
15
|
+
AppSignInFailure,
|
|
16
|
+
AppSignInId,
|
|
17
|
+
appSignInCallbackPath
|
|
19
18
|
};
|
package/js/ui/auth.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appPrivateHeaders,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
appRedirect,
|
|
4
|
+
appSignInCallback,
|
|
5
|
+
appSignInFailed
|
|
6
|
+
} from "../chunk-KUMBKVJD.js";
|
|
6
7
|
import {
|
|
7
8
|
AppReturnPath,
|
|
8
|
-
AppSignInApi,
|
|
9
9
|
AppSignInCallback,
|
|
10
10
|
AppSignInCode,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
11
|
+
AppSignInFailure,
|
|
12
|
+
AppSignInId,
|
|
13
|
+
appSignInCallbackPath
|
|
14
|
+
} from "../chunk-VFZKSM3T.js";
|
|
15
|
+
import "../chunk-57RKNWL2.js";
|
|
16
|
+
import "../chunk-UK573G7W.js";
|
|
17
|
+
import "../chunk-CDL5PM2Q.js";
|
|
18
18
|
import "../chunk-CZ7CSFO4.js";
|
|
19
19
|
export {
|
|
20
20
|
AppReturnPath,
|
|
21
|
-
AppSignInApi,
|
|
22
21
|
AppSignInCallback,
|
|
23
22
|
AppSignInCode,
|
|
23
|
+
AppSignInFailure,
|
|
24
24
|
AppSignInId,
|
|
25
25
|
appPrivateHeaders,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
appRedirect,
|
|
27
|
+
appSignInCallback,
|
|
28
|
+
appSignInCallbackPath,
|
|
29
|
+
appSignInFailed
|
|
28
30
|
};
|
package/js/ui/contracts.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
UiOperation,
|
|
8
8
|
UiSnapshot,
|
|
9
9
|
UiUnauthorized
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-IJX4CYZO.js";
|
|
11
|
+
import "../chunk-UK573G7W.js";
|
|
12
|
+
import "../chunk-27F7W2LG.js";
|
|
13
|
+
import "../chunk-CDL5PM2Q.js";
|
|
14
14
|
import "../chunk-CZ7CSFO4.js";
|
|
15
15
|
export {
|
|
16
16
|
AppUiApi,
|
package/js/ui/serving.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appPrivateHeaders
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KUMBKVJD.js";
|
|
4
|
+
import "../chunk-VFZKSM3T.js";
|
|
4
5
|
import {
|
|
5
6
|
UiForbidden
|
|
6
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-IJX4CYZO.js";
|
|
7
8
|
import {
|
|
8
9
|
CurrentTelemetryConfig
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-ODEIDRGW.js";
|
|
11
|
+
import "../chunk-57RKNWL2.js";
|
|
11
12
|
import {
|
|
12
13
|
HttpServerRequest_exports,
|
|
13
14
|
HttpServerResponse_exports
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-UK573G7W.js";
|
|
16
|
+
import "../chunk-27F7W2LG.js";
|
|
16
17
|
import {
|
|
17
18
|
Effect_exports
|
|
18
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-CDL5PM2Q.js";
|
|
19
20
|
import "../chunk-CZ7CSFO4.js";
|
|
20
21
|
|
|
21
22
|
// src/implementation/ui-errors.ts
|
|
@@ -240,7 +241,7 @@ var appAsset = (asset, build, path) => Effect_exports.gen(function* () {
|
|
|
240
241
|
const etag = `W/"${encodeURIComponent(build)}/${encodeURIComponent(path)}"`;
|
|
241
242
|
const headers = {
|
|
242
243
|
...appPrivateHeaders,
|
|
243
|
-
"cache-control": "private,
|
|
244
|
+
"cache-control": "private, max-age=31536000, immutable",
|
|
244
245
|
vary: "Cookie",
|
|
245
246
|
etag
|
|
246
247
|
};
|