apps 0.0.1-beta.74 → 0.0.1-beta.76
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-RUP4JMKO.js → chunk-A5JIYK7N.js} +141 -14
- package/js/{chunk-MHB7IFG7.js → chunk-BPROQMUB.js} +1 -1
- package/js/{chunk-2QWOG4UJ.js → chunk-D3EM6XUC.js} +3 -3
- package/js/{chunk-PZ535RJX.js → chunk-DFPNS3O3.js} +2 -2
- package/js/{chunk-JSWN4D6V.js → chunk-DV6PXM42.js} +3 -3
- package/js/{chunk-F2OAC6GE.js → chunk-EAVF4IPZ.js} +1 -1
- package/js/{chunk-TSPJFGA6.js → chunk-GLPG3W7P.js} +4 -4
- package/js/{chunk-UCQBJUA5.js → chunk-JREDSVGB.js} +24 -107
- package/js/{chunk-OABWTKGG.js → chunk-L5OGF662.js} +2 -2
- package/js/{chunk-AE45SVBH.js → chunk-PKFTT3HW.js} +5 -5
- package/js/{chunk-7LMU3ER3.js → chunk-Q4IZAUIF.js} +13 -2
- package/js/{chunk-ECCWT5GJ.js → chunk-SNLZ5SUI.js} +65 -24
- package/js/{chunk-ZR7QAG67.js → chunk-ZHHWNWV3.js} +1 -1
- package/js/contracts.js +2 -2
- package/js/effect.js +9 -9
- package/js/graphql.js +11 -11
- package/js/host.js +9 -9
- package/js/index.js +5 -5
- package/js/mcp/effect.js +11 -11
- package/js/mcp/stdio.js +11 -11
- package/js/mcp.js +13 -13
- package/js/openapi.js +7 -7
- package/js/skills.js +5 -5
- package/js/ui/serving.js +1 -1
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +16 -0
- package/types/app-cache/src/index.d.ts +18 -0
- package/types/apps/src/contracts/protocols/current.d.ts +1 -0
- package/types/apps/src/implementation/browser-scripts.gen.d.ts +1 -1
- package/types/apps/src/implementation/cache.d.ts +24 -1
- package/types/apps/src/implementation/ui-errors.d.ts +1 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getWithReads
|
|
3
|
+
} from "./chunk-A5JIYK7N.js";
|
|
1
4
|
import {
|
|
2
5
|
fromPromise,
|
|
3
6
|
method,
|
|
4
7
|
toPromise
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZHHWNWV3.js";
|
|
6
9
|
import {
|
|
7
10
|
CacheError
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q4IZAUIF.js";
|
|
9
12
|
import {
|
|
10
13
|
wrap
|
|
11
14
|
} from "./chunk-KGCTYL2S.js";
|
|
@@ -16,6 +19,7 @@ import {
|
|
|
16
19
|
Deferred_exports,
|
|
17
20
|
Duration_exports,
|
|
18
21
|
Effect_exports,
|
|
22
|
+
Exit_exports,
|
|
19
23
|
Schema_exports
|
|
20
24
|
} from "./chunk-IFJU5SYQ.js";
|
|
21
25
|
|
|
@@ -31,6 +35,16 @@ var catalogScope = (options, credential, invalid) => {
|
|
|
31
35
|
});
|
|
32
36
|
};
|
|
33
37
|
var schema = (decoder) => wrap(decoder, false);
|
|
38
|
+
var seenRevisions = /* @__PURE__ */ new Map();
|
|
39
|
+
var seenLimit = 256;
|
|
40
|
+
var seen = (key, revision) => {
|
|
41
|
+
seenRevisions.delete(key);
|
|
42
|
+
seenRevisions.set(key, revision);
|
|
43
|
+
if (seenRevisions.size > seenLimit) {
|
|
44
|
+
const oldest = seenRevisions.keys().next();
|
|
45
|
+
if (oldest.done !== true) seenRevisions.delete(oldest.value);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
34
48
|
var Manifest = Schema_exports.Struct({
|
|
35
49
|
revision: Schema_exports.String,
|
|
36
50
|
pages: Schema_exports.Int,
|
|
@@ -168,23 +182,45 @@ var catalogCache = (options) => Effect_exports.gen(function* () {
|
|
|
168
182
|
load: toPromise(refresh, (context) => context.signal)
|
|
169
183
|
};
|
|
170
184
|
let reading;
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
const read = (tool) => Effect_exports.suspend(
|
|
186
|
+
() => {
|
|
187
|
+
if (cache === void 0) return Effect_exports.fail(new CacheError({ reason: "unavailable" }));
|
|
188
|
+
const shared = reading;
|
|
189
|
+
if (shared !== void 0)
|
|
190
|
+
return Deferred_exports.await(shared).pipe(Effect_exports.map((manifest) => ({ manifest })));
|
|
191
|
+
const deferred = Deferred_exports.makeUnsafe();
|
|
192
|
+
reading = deferred;
|
|
193
|
+
const together = Object.hasOwn(cache, getWithReads) ? cache[getWithReads] : void 0;
|
|
194
|
+
let hinted;
|
|
195
|
+
const fetched = together === void 0 ? fromPromise(
|
|
196
|
+
method(cache, "get"),
|
|
197
|
+
"cache"
|
|
198
|
+
)(getOptions).pipe(Effect_exports.map((manifest) => ({ manifest }))) : fromPromise(method({ together }, "together"), "cache")(getOptions, (stored) => {
|
|
199
|
+
hinted = tool === void 0 ? void 0 : seenRevisions.get(stored);
|
|
200
|
+
return hinted === void 0 || tool === void 0 ? [] : [part(hinted, "tool", tool)];
|
|
201
|
+
}).pipe(
|
|
202
|
+
Effect_exports.map(({ value: manifest, key: stored, reads }) => {
|
|
203
|
+
seen(stored, manifest.revision);
|
|
204
|
+
return manifest.revision === hinted && reads !== void 0 ? { manifest, part: { value: reads[0] } } : { manifest };
|
|
205
|
+
})
|
|
206
|
+
);
|
|
207
|
+
return fetched.pipe(
|
|
208
|
+
Effect_exports.onExit(
|
|
209
|
+
(exit) => Effect_exports.sync(() => {
|
|
210
|
+
if (reading === deferred) reading = void 0;
|
|
211
|
+
}).pipe(
|
|
212
|
+
Effect_exports.andThen(
|
|
213
|
+
Deferred_exports.done(
|
|
214
|
+
deferred,
|
|
215
|
+
Exit_exports.map(exit, ({ manifest }) => manifest)
|
|
216
|
+
)
|
|
217
|
+
)
|
|
218
|
+
)
|
|
219
|
+
)
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
const current = () => read().pipe(Effect_exports.map(({ manifest }) => manifest));
|
|
188
224
|
if (options.revalidate) {
|
|
189
225
|
if (cache === void 0) yield* local;
|
|
190
226
|
else yield* fromPromise(method(cache, "revalidate"), "cache")(getOptions);
|
|
@@ -210,13 +246,18 @@ var catalogCache = (options) => Effect_exports.gen(function* () {
|
|
|
210
246
|
options.summary.schema
|
|
211
247
|
);
|
|
212
248
|
}),
|
|
213
|
-
resolve: (name) => cache === void 0 ? local.pipe(Effect_exports.map(({ tools }) => tools.find((tool) => tool.name === name))) :
|
|
214
|
-
Effect_exports.flatMap(
|
|
215
|
-
|
|
249
|
+
resolve: (name) => cache === void 0 ? local.pipe(Effect_exports.map(({ tools }) => tools.find((tool) => tool.name === name))) : read(name).pipe(
|
|
250
|
+
Effect_exports.flatMap(({ manifest, part: found }) => {
|
|
251
|
+
const separately = fromPromise(method(cache, "read"), "cache")(
|
|
216
252
|
part(manifest.revision, "tool", name),
|
|
217
253
|
schema(options.schema)
|
|
218
|
-
)
|
|
219
|
-
|
|
254
|
+
);
|
|
255
|
+
if (found === void 0) return separately;
|
|
256
|
+
if (found.value === void 0) return Effect_exports.succeed(void 0);
|
|
257
|
+
return Schema_exports.decodeUnknownEffect(options.schema)(found.value).pipe(
|
|
258
|
+
Effect_exports.catch(() => separately)
|
|
259
|
+
);
|
|
260
|
+
})
|
|
220
261
|
)
|
|
221
262
|
};
|
|
222
263
|
});
|
package/js/contracts.js
CHANGED
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
skillCatalog,
|
|
147
147
|
skillsCommand,
|
|
148
148
|
workflowDurationMillis
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-EAVF4IPZ.js";
|
|
150
150
|
import {
|
|
151
151
|
FailureCode,
|
|
152
152
|
FailureDetail,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
networkRefusalHeader,
|
|
170
170
|
networkRefusalResponse,
|
|
171
171
|
networkRefusalStatus
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-Q4IZAUIF.js";
|
|
173
173
|
import {
|
|
174
174
|
AppSkillMetadata,
|
|
175
175
|
AppSkillName,
|
package/js/effect.js
CHANGED
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
ApprovalDecision,
|
|
4
4
|
createAppHandler,
|
|
5
5
|
prepareElicitation
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-JREDSVGB.js";
|
|
7
|
+
import "./chunk-A5JIYK7N.js";
|
|
8
|
+
import "./chunk-GLPG3W7P.js";
|
|
9
|
+
import "./chunk-BPROQMUB.js";
|
|
10
10
|
import "./chunk-XBG7HHXC.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DV6PXM42.js";
|
|
12
|
+
import "./chunk-L5OGF662.js";
|
|
13
|
+
import "./chunk-ZHHWNWV3.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-EAVF4IPZ.js";
|
|
17
|
+
import "./chunk-Q4IZAUIF.js";
|
|
18
18
|
import "./chunk-H72MEDMN.js";
|
|
19
19
|
import {
|
|
20
20
|
compileJsonSchemaDecoder,
|
package/js/graphql.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SNLZ5SUI.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DFPNS3O3.js";
|
|
8
8
|
import "./chunk-BCSNKUAC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-JREDSVGB.js";
|
|
10
10
|
import {
|
|
11
11
|
cacheKey
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-A5JIYK7N.js";
|
|
13
|
+
import "./chunk-GLPG3W7P.js";
|
|
14
14
|
import {
|
|
15
15
|
failOnNetworkRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BPROQMUB.js";
|
|
17
17
|
import "./chunk-XBG7HHXC.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DV6PXM42.js";
|
|
19
19
|
import {
|
|
20
20
|
nativeOperation,
|
|
21
21
|
routerDeclaration
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-L5OGF662.js";
|
|
23
23
|
import {
|
|
24
24
|
accountProviderError,
|
|
25
25
|
graphqlProviderError,
|
|
26
26
|
httpProviderError
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-ZHHWNWV3.js";
|
|
28
|
+
import "./chunk-EAVF4IPZ.js";
|
|
29
29
|
import {
|
|
30
30
|
NetworkRefused,
|
|
31
31
|
ProviderError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Q4IZAUIF.js";
|
|
33
33
|
import "./chunk-H72MEDMN.js";
|
|
34
34
|
import {
|
|
35
35
|
jsonSchemaDecoder
|
package/js/host.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAppHandler
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JREDSVGB.js";
|
|
4
|
+
import "./chunk-A5JIYK7N.js";
|
|
5
|
+
import "./chunk-GLPG3W7P.js";
|
|
6
|
+
import "./chunk-BPROQMUB.js";
|
|
7
7
|
import "./chunk-XBG7HHXC.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DV6PXM42.js";
|
|
9
|
+
import "./chunk-L5OGF662.js";
|
|
10
|
+
import "./chunk-ZHHWNWV3.js";
|
|
11
11
|
import {
|
|
12
12
|
ElicitationFailed,
|
|
13
13
|
ElicitationReply,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
WorkflowRun,
|
|
23
23
|
WorkflowRunId,
|
|
24
24
|
WorkflowRunPage
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EAVF4IPZ.js";
|
|
26
26
|
import {
|
|
27
27
|
CacheCommand,
|
|
28
28
|
CacheError,
|
|
29
29
|
CacheReply
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Q4IZAUIF.js";
|
|
31
31
|
import "./chunk-H72MEDMN.js";
|
|
32
32
|
import "./chunk-KGCTYL2S.js";
|
|
33
33
|
import {
|
package/js/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
query,
|
|
12
12
|
t,
|
|
13
13
|
workflow
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DV6PXM42.js";
|
|
15
15
|
import {
|
|
16
16
|
dynamicRouter,
|
|
17
17
|
mutation,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
toolAnnotations,
|
|
25
25
|
withApproval,
|
|
26
26
|
withApprovals
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L5OGF662.js";
|
|
28
28
|
import {
|
|
29
29
|
accountProviderError,
|
|
30
30
|
fromPromise
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZHHWNWV3.js";
|
|
32
32
|
import {
|
|
33
33
|
CalendarSchedule,
|
|
34
34
|
ElicitationFailed,
|
|
@@ -43,13 +43,13 @@ import {
|
|
|
43
43
|
ScheduleTiming,
|
|
44
44
|
SecretsMethod,
|
|
45
45
|
WorkflowFailure
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EAVF4IPZ.js";
|
|
47
47
|
import {
|
|
48
48
|
CacheError,
|
|
49
49
|
FetchOptionUnsupported,
|
|
50
50
|
NetworkRefused,
|
|
51
51
|
ProviderError
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Q4IZAUIF.js";
|
|
53
53
|
import "./chunk-H72MEDMN.js";
|
|
54
54
|
import {
|
|
55
55
|
array,
|
package/js/mcp/effect.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpHealthEffect,
|
|
4
4
|
mcpToolsEffect
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-PKFTT3HW.js";
|
|
6
|
+
import "../chunk-D3EM6XUC.js";
|
|
7
7
|
import "../chunk-BCSNKUAC.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-JREDSVGB.js";
|
|
9
|
+
import "../chunk-A5JIYK7N.js";
|
|
10
|
+
import "../chunk-GLPG3W7P.js";
|
|
11
|
+
import "../chunk-BPROQMUB.js";
|
|
12
12
|
import "../chunk-XBG7HHXC.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-DV6PXM42.js";
|
|
14
|
+
import "../chunk-L5OGF662.js";
|
|
15
|
+
import "../chunk-ZHHWNWV3.js";
|
|
16
|
+
import "../chunk-EAVF4IPZ.js";
|
|
17
|
+
import "../chunk-Q4IZAUIF.js";
|
|
18
18
|
import "../chunk-H72MEDMN.js";
|
|
19
19
|
import "../chunk-KGCTYL2S.js";
|
|
20
20
|
import "../chunk-3CVQ3VPP.js";
|
package/js/mcp/stdio.js
CHANGED
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
answeredError,
|
|
4
4
|
mcpClient,
|
|
5
5
|
mcpJsonSchemaValidator
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-D3EM6XUC.js";
|
|
7
7
|
import {
|
|
8
8
|
protocolRouter
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-DFPNS3O3.js";
|
|
10
10
|
import "../chunk-BCSNKUAC.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-JREDSVGB.js";
|
|
12
|
+
import "../chunk-A5JIYK7N.js";
|
|
13
|
+
import "../chunk-GLPG3W7P.js";
|
|
14
|
+
import "../chunk-BPROQMUB.js";
|
|
15
15
|
import "../chunk-XBG7HHXC.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-DV6PXM42.js";
|
|
17
|
+
import "../chunk-L5OGF662.js";
|
|
18
|
+
import "../chunk-ZHHWNWV3.js";
|
|
19
19
|
import {
|
|
20
20
|
McpError,
|
|
21
21
|
ProcessConfig
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-EAVF4IPZ.js";
|
|
23
|
+
import "../chunk-Q4IZAUIF.js";
|
|
24
24
|
import "../chunk-H72MEDMN.js";
|
|
25
25
|
import "../chunk-KGCTYL2S.js";
|
|
26
26
|
import {
|
package/js/mcp.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpHealthEffect
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PKFTT3HW.js";
|
|
5
5
|
import {
|
|
6
6
|
catalogCache,
|
|
7
7
|
catalogScope
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SNLZ5SUI.js";
|
|
9
9
|
import {
|
|
10
10
|
adaptMcpTool
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D3EM6XUC.js";
|
|
12
12
|
import {
|
|
13
13
|
protocolOperations
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DFPNS3O3.js";
|
|
15
15
|
import "./chunk-BCSNKUAC.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-JREDSVGB.js";
|
|
17
17
|
import {
|
|
18
18
|
cacheKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-A5JIYK7N.js";
|
|
20
20
|
import {
|
|
21
21
|
operationDescription
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-GLPG3W7P.js";
|
|
23
|
+
import "./chunk-BPROQMUB.js";
|
|
24
24
|
import "./chunk-XBG7HHXC.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-DV6PXM42.js";
|
|
26
26
|
import {
|
|
27
27
|
nativeOperation,
|
|
28
28
|
routerDeclaration
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-L5OGF662.js";
|
|
30
30
|
import {
|
|
31
31
|
fromPromise,
|
|
32
32
|
method
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZHHWNWV3.js";
|
|
34
34
|
import {
|
|
35
35
|
McpCredentialsUnverified,
|
|
36
36
|
McpError,
|
|
37
37
|
McpServerHeader,
|
|
38
38
|
McpToolMetadata,
|
|
39
39
|
McpToolsOptions
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-EAVF4IPZ.js";
|
|
41
|
+
import "./chunk-Q4IZAUIF.js";
|
|
42
42
|
import "./chunk-H72MEDMN.js";
|
|
43
43
|
import "./chunk-KGCTYL2S.js";
|
|
44
44
|
import "./chunk-3CVQ3VPP.js";
|
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-DFPNS3O3.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-GLPG3W7P.js";
|
|
33
33
|
import {
|
|
34
34
|
failOnNetworkRefusal
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BPROQMUB.js";
|
|
36
36
|
import "./chunk-XBG7HHXC.js";
|
|
37
37
|
import {
|
|
38
38
|
nativeOperation,
|
|
39
39
|
routerDeclaration
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-L5OGF662.js";
|
|
41
41
|
import {
|
|
42
42
|
accountProviderError,
|
|
43
43
|
bodyUpstreamError,
|
|
@@ -46,19 +46,19 @@ import {
|
|
|
46
46
|
method,
|
|
47
47
|
providerErrorDetail,
|
|
48
48
|
toPromise
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ZHHWNWV3.js";
|
|
50
50
|
import {
|
|
51
51
|
ApiErrorRecovery,
|
|
52
52
|
ApiErrorResponse,
|
|
53
53
|
OpenapiResponseError,
|
|
54
54
|
RouterMeta,
|
|
55
55
|
defaultOpenapiErrorLimits
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-EAVF4IPZ.js";
|
|
57
57
|
import {
|
|
58
58
|
NetworkRefused,
|
|
59
59
|
ProviderError,
|
|
60
60
|
cacheLimits
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-Q4IZAUIF.js";
|
|
62
62
|
import "./chunk-H72MEDMN.js";
|
|
63
63
|
import {
|
|
64
64
|
jsonSchema,
|
package/js/skills.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-SNLZ5SUI.js";
|
|
5
|
+
import "./chunk-A5JIYK7N.js";
|
|
6
6
|
import {
|
|
7
7
|
failOnNetworkRefusal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BPROQMUB.js";
|
|
9
9
|
import {
|
|
10
10
|
folderSkillsEffect,
|
|
11
11
|
skillFromFiles
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
httpProviderError,
|
|
17
17
|
method,
|
|
18
18
|
toPromise
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZHHWNWV3.js";
|
|
20
20
|
import {
|
|
21
21
|
NetworkRefused,
|
|
22
22
|
ProviderError,
|
|
23
23
|
networkRefusalStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Q4IZAUIF.js";
|
|
25
25
|
import {
|
|
26
26
|
AppSkillMetadata,
|
|
27
27
|
AppSkillSource,
|
package/js/ui/serving.js
CHANGED
|
@@ -23,7 +23,7 @@ import "../chunk-CZ7CSFO4.js";
|
|
|
23
23
|
|
|
24
24
|
// src/implementation/browser-scripts.gen.ts
|
|
25
25
|
var appWatchSource = '"use strict";(()=>{var s=()=>{let i=document.getElementById("executor-context")?.textContent;if(!i)return;let n=JSON.parse(i);if(typeof n!="object"||n===null||!("deployment"in n))return;let r=n.deployment;if(typeof r!="string"||r.length===0)return;let t=new EventSource("/_executor/version"),l=!1,o=()=>{l||(l=!0,t.close(),location.reload())};t.addEventListener("version",d=>{let e=JSON.parse(d.data);typeof e=="object"&&e!==null&&"deployment"in e&&(e.deployment===null||typeof e.deployment=="string")&&e.deployment!==r&&o()}),t.addEventListener("revoked",o),window.addEventListener("executor:deployment-changed",o),window.addEventListener("pagehide",()=>t.close(),{once:!0}),window.addEventListener("pageshow",d=>{d.persisted&&o()})};s();})();';
|
|
26
|
-
var appFailureSource = '"use strict";(()=>{var
|
|
26
|
+
var appFailureSource = '"use strict";(()=>{var M=()=>{let d,w=Date.now(),m=0,g=0,f=new Map,v=/^(?:chrome|moz|safari-web)-extension:/,A=new Set(["ResizeObserver loop completed with undelivered notifications.","ResizeObserver loop limit exceeded"]),V=new Set(["Error","TypeError","ReferenceError","SyntaxError","RangeError","URIError","EvalError","AggregateError"]),b=(e,t=0,i=0)=>{let r=[];if(!URL.canParse(e))return r;let a=new URL(e);return a.origin!==location.origin||!a.pathname.startsWith("/_executor/assets/")||!a.pathname.endsWith(".js")||(r.push({key:"code.file.path",value:{stringValue:a.pathname}}),Number.isSafeInteger(t)&&t>0&&r.push({key:"code.line.number",value:{intValue:String(t)}}),Number.isSafeInteger(i)&&i>0&&r.push({key:"code.column.number",value:{intValue:String(i)}})),r},h=(e,t,i=[])=>{let r=Date.now();r-w>=6e4&&(w=r,m=0,f.clear());let a=`${e}:${t.slice(0,2e3)}`,x=f.get(a);if(x!==void 0&&r-x<1e3||m>=20){g++;return}f.set(a,r),m++,i.push({key:"executor.ui.failure.suppressed",value:{intValue:String(g)}}),g=0;let E=Array.from(crypto.getRandomValues(new Uint8Array(16)),s=>s.toString(16).padStart(2,"0")).join(""),S=`${Date.now()}000000`,n,l="Sending error report\\u2026",k=()=>{if(d?.open)return;let s=document.createElement("div"),D=s.attachShadow({mode:"open"}),o=document.createElement("dialog");d=o,o.setAttribute("aria-labelledby","executor-failure-title");let y=document.createElement("h2");y.id="executor-failure-title",y.textContent=e==="script"?"This app could not load":"This app stopped working";let C=document.createElement("p");C.textContent=e==="script"?"A file needed by this page did not load. Reload the page to try again.":"The app encountered an unexpected error. Reload the page to try again.";let L=document.createElement("p");L.textContent="Copy any unsaved work before reloading.";let R=document.createElement("details"),T=document.createElement("summary");T.textContent="Error details";let c=document.createElement("textarea");c.readOnly=!0,c.rows=10,c.cols=36,c.setAttribute("aria-label","Error details"),c.value=`${t.slice(0,12e3)}\n\nDiagnostic ID: ${E}`,R.append(T,c),n=document.createElement("p"),n.setAttribute("role","status"),n.textContent=l;let u=document.createElement("button");u.type="button",u.textContent="Reload page",u.addEventListener("click",()=>location.reload());let p=document.createElement("button");p.type="button",p.textContent="Close",p.addEventListener("click",()=>o.close()),o.addEventListener("close",()=>{d===o&&(d=void 0),s.remove()}),o.append(y,C,L,R,n,u,p),D.append(o),document.documentElement.append(s),o.showModal()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",k,{once:!0}):k(),fetch("/_executor/api/telemetry/traces",{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",keepalive:!0,body:JSON.stringify({resourceSpans:[{scopeSpans:[{spans:[{traceId:E,spanId:E.slice(0,16),name:"ui.app.failure",kind:1,startTimeUnixNano:S,endTimeUnixNano:S,status:{code:2},attributes:[{key:"executor.ui.failure.kind",value:{stringValue:e}},...i]}]}]}]})}).then(s=>{l=s.ok?"Error report sent.":"Could not send the error report. You can copy the error details.",n&&(n.textContent=l)},()=>{l="Could not send the error report. You can copy the error details.",n&&(n.textContent=l)})};window.addEventListener("error",e=>{if(e instanceof ErrorEvent){if(v.test(e.filename)||e.error===null&&e.lineno===0&&A.has(e.message))return;let t=b(e.filename,e.lineno,e.colno);e.error instanceof Error&&V.has(e.error.name)&&t.push({key:"exception.type",value:{stringValue:e.error.name}}),h("runtime",e.error instanceof Error?e.error.stack??e.message:e.message,t)}else e.target instanceof HTMLScriptElement&&h("script",`Could not load script: ${e.target.src}`,b(e.target.src))},!0),window.addEventListener("unhandledrejection",e=>{let t=e.reason;h("rejection",t instanceof Error?t.stack??t.message:"An app operation failed without handling its error.")})};M();})();';
|
|
27
27
|
var accountNoticeSource = '"use strict";(()=>{var g=()=>{let r=document.getElementById("executor-account-notice")?.textContent;if(!r)return;let t=JSON.parse(r);if(typeof t!="object"||t===null||!("items"in t)||!("fix"in t))return;let c=t.items,s=t.fix;if(!Array.isArray(c)||typeof s!="string")return;let a=()=>{let i=document.createElement("div"),x=i.attachShadow({mode:"open"}),d=document.createElement("style");d.textContent="aside{position:fixed;right:16px;bottom:16px;z-index:2147483647;max-width:360px;box-sizing:border-box;padding:14px 16px;border-radius:10px;border:1px solid #fcd34d;background:#fffbeb;color:#451a03;font:14px/1.45 ui-sans-serif,system-ui,sans-serif;box-shadow:0 8px 24px rgb(0 0 0/.12)}strong{display:block;margin-bottom:4px}ul{margin:0 0 10px;padding-left:18px}div{display:flex;gap:12px;align-items:center}a{color:inherit;font-weight:600}button{margin-left:auto;font:inherit;background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer}";let e=document.createElement("aside");e.setAttribute("role","status"),e.setAttribute("aria-label","Account warning");let l=document.createElement("strong");l.textContent="Some things might not work";let m=document.createElement("ul");for(let f of c){let p=document.createElement("li");p.textContent=String(f),m.append(p)}let u=document.createElement("div"),n=document.createElement("a");n.href=s,n.target="_top",n.textContent="Review accounts";let o=document.createElement("button");o.type="button",o.textContent="Dismiss",o.addEventListener("click",()=>i.remove()),u.append(n,o),e.append(l,m,u),x.append(d,e),document.documentElement.append(i)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",a,{once:!0}):a()};g();})();';
|
|
28
28
|
|
|
29
29
|
// src/implementation/ui-account-notice.ts
|