apps 0.0.1-beta.144 → 0.0.1-beta.148
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 +14 -0
- package/framework-reference.json +1 -1
- package/js/{chunk-IWLFLMIL.js → chunk-4XXHO5UG.js} +3966 -1760
- package/js/{chunk-6OWHQINS.js → chunk-63BS5GBH.js} +2 -2
- package/js/{chunk-6NRWFVK2.js → chunk-ALZDZ3ZT.js} +3 -3
- package/js/{chunk-T4MICYGT.js → chunk-CQCY3OZS.js} +2 -2
- package/js/{chunk-QDF7PQAD.js → chunk-CWAPV2TN.js} +2 -2
- package/js/{chunk-5MEOL2SG.js → chunk-DX5DD6Z2.js} +6 -6
- package/js/{chunk-455CCO6Q.js → chunk-E2PVLAGK.js} +1 -1
- package/js/{chunk-AFEMXP3F.js → chunk-FWK2WTJB.js} +2 -2
- package/js/{chunk-2OGVSUNI.js → chunk-GWFQCQB5.js} +2 -2
- package/js/chunk-HEFJFDU4.js +87 -0
- package/js/{chunk-B2PSDMZP.js → chunk-I7MYW7IK.js} +2 -2
- package/js/{chunk-B4JN2A6F.js → chunk-MXFPSMNM.js} +1 -1
- package/js/{chunk-INQON4A2.js → chunk-OA4UYCJ4.js} +2 -2
- package/js/{chunk-OFSXKKD6.js → chunk-PUMGAWHB.js} +7 -7
- package/js/{chunk-W6V5OIHB.js → chunk-SEJXUMGT.js} +267 -1
- package/js/{chunk-BU3UOD2T.js → chunk-SXYFFXHM.js} +1 -1
- package/js/{chunk-BHSWVS3Q.js → chunk-UT2CBMW3.js} +4 -1
- package/js/{chunk-TMYRAFMC.js → chunk-ZWFMEH2Y.js} +18 -1
- package/js/client.js +30 -8
- package/js/contracts.js +1 -2
- package/js/effect.js +10 -11
- package/js/graphql.js +12 -13
- package/js/host.js +10 -11
- package/js/index.js +6 -7
- package/js/mcp/effect.js +11 -12
- package/js/mcp.js +13 -14
- package/js/openapi.js +8 -9
- package/js/react.js +122 -3
- package/js/skills/effect.js +1 -2
- package/js/skills.js +7 -8
- package/js/ui/auth/contracts.js +5 -1
- package/js/ui/auth.js +7 -4
- package/js/ui/contracts.js +52 -5
- package/js/ui/serving.js +55 -17
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/client.d.ts +3 -0
- package/types/apps/src/contracts/desktop-errors.d.ts +46 -0
- package/types/apps/src/contracts/desktop.d.ts +228 -0
- package/types/apps/src/contracts/ui-auth.d.ts +4 -1
- package/types/apps/src/contracts/ui.d.ts +43 -1
- package/types/apps/src/implementation/desktop.d.ts +85 -0
- package/types/apps/src/implementation/ui-serving.d.ts +13 -1
- package/types/apps/src/react.d.ts +29 -0
- package/types/apps/src/ui-serving.d.ts +1 -1
- package/js/chunk-QLUWYCOT.js +0 -2325
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
HttpApiGroup_exports,
|
|
8
8
|
HttpApiSchema_exports,
|
|
9
9
|
HttpApi_exports
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4XXHO5UG.js";
|
|
11
11
|
import {
|
|
12
12
|
Schema_exports
|
|
13
13
|
} from "./chunk-NXEGROI6.js";
|
|
@@ -20,6 +20,16 @@ var UiContextFields = Schema_exports.Struct({
|
|
|
20
20
|
)
|
|
21
21
|
});
|
|
22
22
|
var UiContext = UiContextFields.pipe(withLegacyKeys({ version: "deployment" }));
|
|
23
|
+
var appUiDocuments = {
|
|
24
|
+
main: { source: "ui/index.html", asset: "index.html" },
|
|
25
|
+
menuBar: { source: "ui/menubar.html", asset: "_executor/menubar.html" }
|
|
26
|
+
};
|
|
27
|
+
var appUiIcon = { source: "ui/icon.svg", asset: "_executor/icon.svg" };
|
|
28
|
+
var appUiPagesAsset = "_executor/pages.json";
|
|
29
|
+
var AppUiPagesManifest = Schema_exports.Struct({ menuBar: Schema_exports.Boolean, icon: Schema_exports.Boolean });
|
|
30
|
+
var appMenuBarRoute = "/_executor/menubar";
|
|
31
|
+
var appIconRoute = "/_executor/icon.svg";
|
|
32
|
+
var appUiIconMaxBytes = 64 * 1024;
|
|
23
33
|
var UiOperation = Schema_exports.Struct({
|
|
24
34
|
...UiContextFields.fields,
|
|
25
35
|
name: Schema_exports.NonEmptyString,
|
|
@@ -85,6 +95,13 @@ var AppUiApi = HttpApi_exports.make("app-ui").add(
|
|
|
85
95
|
|
|
86
96
|
export {
|
|
87
97
|
UiContext,
|
|
98
|
+
appUiDocuments,
|
|
99
|
+
appUiIcon,
|
|
100
|
+
appUiPagesAsset,
|
|
101
|
+
AppUiPagesManifest,
|
|
102
|
+
appMenuBarRoute,
|
|
103
|
+
appIconRoute,
|
|
104
|
+
appUiIconMaxBytes,
|
|
88
105
|
UiOperation,
|
|
89
106
|
UiUnauthorized,
|
|
90
107
|
UiForbidden,
|
package/js/client.js
CHANGED
|
@@ -3,13 +3,26 @@ import {
|
|
|
3
3
|
UiContext,
|
|
4
4
|
UiFailed,
|
|
5
5
|
UiVersionChanged
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZWFMEH2Y.js";
|
|
7
7
|
import {
|
|
8
8
|
AsyncResult_exports,
|
|
9
9
|
AtomRegistry_exports,
|
|
10
10
|
Atom_exports,
|
|
11
|
+
DesktopInvalidInput,
|
|
12
|
+
DesktopPermissionDenied,
|
|
13
|
+
DesktopUnavailable,
|
|
14
|
+
ShortcutTaken,
|
|
15
|
+
SystemAudioBlocked,
|
|
16
|
+
desktop,
|
|
11
17
|
queryResult
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SEJXUMGT.js";
|
|
19
|
+
import {
|
|
20
|
+
desktopBadgeMaximum,
|
|
21
|
+
desktopMaximumWindows,
|
|
22
|
+
desktopMenuBarTitleMaxLength,
|
|
23
|
+
desktopPermissions,
|
|
24
|
+
desktopWindowSize
|
|
25
|
+
} from "./chunk-HEFJFDU4.js";
|
|
13
26
|
import {
|
|
14
27
|
decoderOf
|
|
15
28
|
} from "./chunk-JLHRRTRH.js";
|
|
@@ -20,20 +33,18 @@ import {
|
|
|
20
33
|
pendingSpan,
|
|
21
34
|
telemetryLayer,
|
|
22
35
|
traceLinks
|
|
23
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CQCY3OZS.js";
|
|
24
37
|
import {
|
|
25
38
|
FetchHttpClient_exports
|
|
26
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GWFQCQB5.js";
|
|
27
40
|
import "./chunk-6XBOKQ4E.js";
|
|
28
41
|
import {
|
|
29
42
|
JsonValue
|
|
30
43
|
} from "./chunk-7A4ZSEM3.js";
|
|
31
44
|
import {
|
|
32
|
-
HttpApiClient_exports
|
|
33
|
-
} from "./chunk-QLUWYCOT.js";
|
|
34
|
-
import {
|
|
45
|
+
HttpApiClient_exports,
|
|
35
46
|
HttpClientError_exports
|
|
36
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-4XXHO5UG.js";
|
|
37
48
|
import {
|
|
38
49
|
Cause_exports,
|
|
39
50
|
Clock_exports,
|
|
@@ -1230,7 +1241,18 @@ var createAppClient = () => {
|
|
|
1230
1241
|
};
|
|
1231
1242
|
export {
|
|
1232
1243
|
AppQueryFailed,
|
|
1244
|
+
DesktopInvalidInput,
|
|
1245
|
+
DesktopPermissionDenied,
|
|
1246
|
+
DesktopUnavailable,
|
|
1247
|
+
ShortcutTaken,
|
|
1248
|
+
SystemAudioBlocked,
|
|
1233
1249
|
createAppClient,
|
|
1250
|
+
desktop,
|
|
1251
|
+
desktopBadgeMaximum,
|
|
1252
|
+
desktopMaximumWindows,
|
|
1253
|
+
desktopMenuBarTitleMaxLength,
|
|
1254
|
+
desktopPermissions,
|
|
1255
|
+
desktopWindowSize,
|
|
1234
1256
|
liveQueryAtom,
|
|
1235
1257
|
mutationReference,
|
|
1236
1258
|
queryReference
|
package/js/contracts.js
CHANGED
|
@@ -205,8 +205,7 @@ import {
|
|
|
205
205
|
AccountId,
|
|
206
206
|
HttpUrl
|
|
207
207
|
} from "./chunk-7A4ZSEM3.js";
|
|
208
|
-
import "./chunk-
|
|
209
|
-
import "./chunk-IWLFLMIL.js";
|
|
208
|
+
import "./chunk-4XXHO5UG.js";
|
|
210
209
|
import "./chunk-NXEGROI6.js";
|
|
211
210
|
import "./chunk-CZ7CSFO4.js";
|
|
212
211
|
export {
|
package/js/effect.js
CHANGED
|
@@ -3,14 +3,14 @@ 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-PUMGAWHB.js";
|
|
7
|
+
import "./chunk-ALZDZ3ZT.js";
|
|
8
|
+
import "./chunk-63BS5GBH.js";
|
|
9
|
+
import "./chunk-MXFPSMNM.js";
|
|
10
10
|
import "./chunk-XR7KZNKD.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CWAPV2TN.js";
|
|
12
|
+
import "./chunk-E2PVLAGK.js";
|
|
13
|
+
import "./chunk-SXYFFXHM.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
16
|
} from "./chunk-EXL6F456.js";
|
|
@@ -21,16 +21,15 @@ import {
|
|
|
21
21
|
jsonSchemaDecoder,
|
|
22
22
|
wrap
|
|
23
23
|
} from "./chunk-JLHRRTRH.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-CQCY3OZS.js";
|
|
25
|
+
import "./chunk-GWFQCQB5.js";
|
|
26
26
|
import "./chunk-6XBOKQ4E.js";
|
|
27
27
|
import {
|
|
28
28
|
HttpUrl,
|
|
29
29
|
JsonObject,
|
|
30
30
|
ValidationError
|
|
31
31
|
} from "./chunk-7A4ZSEM3.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-IWLFLMIL.js";
|
|
32
|
+
import "./chunk-4XXHO5UG.js";
|
|
34
33
|
import "./chunk-NXEGROI6.js";
|
|
35
34
|
import "./chunk-CZ7CSFO4.js";
|
|
36
35
|
export {
|
package/js/graphql.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FWK2WTJB.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I7MYW7IK.js";
|
|
8
8
|
import "./chunk-BCSNKUAC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-PUMGAWHB.js";
|
|
10
10
|
import {
|
|
11
11
|
cacheKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ALZDZ3ZT.js";
|
|
13
13
|
import {
|
|
14
14
|
GraphqlError,
|
|
15
15
|
GraphqlIntrospection,
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
maxGraphqlStatedErrors,
|
|
21
21
|
maxGraphqlStatedExtensions,
|
|
22
22
|
maxGraphqlStatedFieldLength
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-63BS5GBH.js";
|
|
24
24
|
import {
|
|
25
25
|
failOnNetworkRefusal
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MXFPSMNM.js";
|
|
27
27
|
import "./chunk-XR7KZNKD.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-CWAPV2TN.js";
|
|
29
29
|
import {
|
|
30
30
|
nativeOperation,
|
|
31
31
|
routerDeclaration
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-E2PVLAGK.js";
|
|
33
33
|
import {
|
|
34
34
|
accountProviderError,
|
|
35
35
|
boundStated,
|
|
36
36
|
graphqlProviderError,
|
|
37
37
|
httpProviderError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SXYFFXHM.js";
|
|
39
39
|
import {
|
|
40
40
|
FailureFieldName,
|
|
41
41
|
NetworkRefused,
|
|
@@ -49,19 +49,18 @@ import {
|
|
|
49
49
|
} from "./chunk-JLHRRTRH.js";
|
|
50
50
|
import {
|
|
51
51
|
owned
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-CQCY3OZS.js";
|
|
53
53
|
import {
|
|
54
54
|
FetchHttpClient_exports
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-GWFQCQB5.js";
|
|
56
56
|
import "./chunk-6XBOKQ4E.js";
|
|
57
57
|
import {
|
|
58
58
|
JsonObject
|
|
59
59
|
} from "./chunk-7A4ZSEM3.js";
|
|
60
|
-
import "./chunk-QLUWYCOT.js";
|
|
61
60
|
import {
|
|
62
61
|
HttpClientRequest_exports,
|
|
63
62
|
HttpClient_exports
|
|
64
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-4XXHO5UG.js";
|
|
65
64
|
import {
|
|
66
65
|
Effect_exports,
|
|
67
66
|
Option_exports,
|
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-PUMGAWHB.js";
|
|
4
|
+
import "./chunk-ALZDZ3ZT.js";
|
|
5
|
+
import "./chunk-63BS5GBH.js";
|
|
6
|
+
import "./chunk-MXFPSMNM.js";
|
|
7
7
|
import "./chunk-XR7KZNKD.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CWAPV2TN.js";
|
|
9
|
+
import "./chunk-E2PVLAGK.js";
|
|
10
|
+
import "./chunk-SXYFFXHM.js";
|
|
11
11
|
import {
|
|
12
12
|
CacheCommand,
|
|
13
13
|
CacheError,
|
|
@@ -31,12 +31,11 @@ import "./chunk-JLHRRTRH.js";
|
|
|
31
31
|
import {
|
|
32
32
|
collectTelemetry,
|
|
33
33
|
withRemoteSpan
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-CQCY3OZS.js";
|
|
35
|
+
import "./chunk-GWFQCQB5.js";
|
|
36
36
|
import "./chunk-6XBOKQ4E.js";
|
|
37
37
|
import "./chunk-7A4ZSEM3.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-IWLFLMIL.js";
|
|
38
|
+
import "./chunk-4XXHO5UG.js";
|
|
40
39
|
import {
|
|
41
40
|
Cause_exports,
|
|
42
41
|
Clock_exports,
|
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-CWAPV2TN.js";
|
|
15
15
|
import {
|
|
16
16
|
accountRouter,
|
|
17
17
|
dynamicRouter,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
toolAnnotations,
|
|
24
24
|
withApproval,
|
|
25
25
|
withApprovals
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-E2PVLAGK.js";
|
|
27
27
|
import {
|
|
28
28
|
fromPromise
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SXYFFXHM.js";
|
|
30
30
|
import {
|
|
31
31
|
CacheError,
|
|
32
32
|
CalendarSchedule,
|
|
@@ -64,16 +64,15 @@ import {
|
|
|
64
64
|
string,
|
|
65
65
|
wrap
|
|
66
66
|
} from "./chunk-JLHRRTRH.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-CQCY3OZS.js";
|
|
68
|
+
import "./chunk-GWFQCQB5.js";
|
|
69
69
|
import "./chunk-6XBOKQ4E.js";
|
|
70
70
|
import {
|
|
71
71
|
DeclarationInvalid,
|
|
72
72
|
JsonValue,
|
|
73
73
|
ValidationError
|
|
74
74
|
} from "./chunk-7A4ZSEM3.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-IWLFLMIL.js";
|
|
75
|
+
import "./chunk-4XXHO5UG.js";
|
|
77
76
|
import {
|
|
78
77
|
Effect_exports,
|
|
79
78
|
Schema_exports
|
package/js/mcp/effect.js
CHANGED
|
@@ -2,25 +2,24 @@ import {
|
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpHealthEffect,
|
|
4
4
|
mcpToolsEffect
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-DX5DD6Z2.js";
|
|
6
6
|
import "../chunk-BCSNKUAC.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-PUMGAWHB.js";
|
|
8
|
+
import "../chunk-ALZDZ3ZT.js";
|
|
9
|
+
import "../chunk-63BS5GBH.js";
|
|
10
|
+
import "../chunk-MXFPSMNM.js";
|
|
11
11
|
import "../chunk-XR7KZNKD.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-CWAPV2TN.js";
|
|
13
|
+
import "../chunk-E2PVLAGK.js";
|
|
14
|
+
import "../chunk-SXYFFXHM.js";
|
|
15
15
|
import "../chunk-EXL6F456.js";
|
|
16
16
|
import "../chunk-A6FRLRCN.js";
|
|
17
17
|
import "../chunk-JLHRRTRH.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-CQCY3OZS.js";
|
|
19
|
+
import "../chunk-GWFQCQB5.js";
|
|
20
20
|
import "../chunk-6XBOKQ4E.js";
|
|
21
21
|
import "../chunk-7A4ZSEM3.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-IWLFLMIL.js";
|
|
22
|
+
import "../chunk-4XXHO5UG.js";
|
|
24
23
|
import "../chunk-NXEGROI6.js";
|
|
25
24
|
import "../chunk-CZ7CSFO4.js";
|
|
26
25
|
export {
|
package/js/mcp.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FWK2WTJB.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I7MYW7IK.js";
|
|
8
8
|
import {
|
|
9
9
|
adaptMcpTool,
|
|
10
10
|
mcpClientEffect,
|
|
11
11
|
mcpHealthEffect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DX5DD6Z2.js";
|
|
13
13
|
import "./chunk-BCSNKUAC.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-PUMGAWHB.js";
|
|
15
15
|
import {
|
|
16
16
|
cacheKey
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ALZDZ3ZT.js";
|
|
18
18
|
import {
|
|
19
19
|
operationDescription
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-63BS5GBH.js";
|
|
21
|
+
import "./chunk-MXFPSMNM.js";
|
|
22
22
|
import "./chunk-XR7KZNKD.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-CWAPV2TN.js";
|
|
24
24
|
import {
|
|
25
25
|
nativeOperation,
|
|
26
26
|
routerDeclaration
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-E2PVLAGK.js";
|
|
28
28
|
import {
|
|
29
29
|
fromPromise,
|
|
30
30
|
method
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SXYFFXHM.js";
|
|
32
32
|
import {
|
|
33
33
|
McpCredentialsUnverified,
|
|
34
34
|
McpError,
|
|
@@ -38,12 +38,11 @@ import {
|
|
|
38
38
|
} from "./chunk-EXL6F456.js";
|
|
39
39
|
import "./chunk-A6FRLRCN.js";
|
|
40
40
|
import "./chunk-JLHRRTRH.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-CQCY3OZS.js";
|
|
42
|
+
import "./chunk-GWFQCQB5.js";
|
|
43
43
|
import "./chunk-6XBOKQ4E.js";
|
|
44
44
|
import "./chunk-7A4ZSEM3.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-IWLFLMIL.js";
|
|
45
|
+
import "./chunk-4XXHO5UG.js";
|
|
47
46
|
import {
|
|
48
47
|
Effect_exports,
|
|
49
48
|
Schema_exports
|
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-I7MYW7IK.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-63BS5GBH.js";
|
|
33
33
|
import {
|
|
34
34
|
failOnNetworkRefusal
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MXFPSMNM.js";
|
|
36
36
|
import "./chunk-XR7KZNKD.js";
|
|
37
37
|
import {
|
|
38
38
|
nativeOperation,
|
|
39
39
|
routerDeclaration
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-E2PVLAGK.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-SXYFFXHM.js";
|
|
51
51
|
import {
|
|
52
52
|
ApiErrorRecovery,
|
|
53
53
|
ApiErrorResponse,
|
|
@@ -68,19 +68,18 @@ import {
|
|
|
68
68
|
} from "./chunk-JLHRRTRH.js";
|
|
69
69
|
import {
|
|
70
70
|
owned
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-CQCY3OZS.js";
|
|
72
72
|
import {
|
|
73
73
|
FetchHttpClient_exports
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-GWFQCQB5.js";
|
|
75
75
|
import "./chunk-6XBOKQ4E.js";
|
|
76
76
|
import {
|
|
77
77
|
JsonObject
|
|
78
78
|
} from "./chunk-7A4ZSEM3.js";
|
|
79
|
-
import "./chunk-QLUWYCOT.js";
|
|
80
79
|
import {
|
|
81
80
|
HttpClientRequest_exports,
|
|
82
81
|
HttpClient_exports
|
|
83
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-4XXHO5UG.js";
|
|
84
83
|
import {
|
|
85
84
|
Base64_exports,
|
|
86
85
|
Clock_exports,
|
package/js/react.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AsyncResult_exports,
|
|
3
3
|
AtomRegistry_exports,
|
|
4
|
+
desktop,
|
|
4
5
|
queryCommitted
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SEJXUMGT.js";
|
|
7
|
+
import "./chunk-HEFJFDU4.js";
|
|
6
8
|
import {
|
|
7
9
|
Option_exports
|
|
8
10
|
} from "./chunk-NXEGROI6.js";
|
|
9
11
|
import "./chunk-CZ7CSFO4.js";
|
|
10
12
|
|
|
11
13
|
// src/react.ts
|
|
12
|
-
import { useEffect, useLayoutEffect, useState } from "react";
|
|
14
|
+
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
13
15
|
var useAppQuery = (atom) => {
|
|
14
16
|
const [state, setState] = useState();
|
|
15
17
|
useEffect(() => {
|
|
@@ -31,6 +33,123 @@ var useAppQuery = (atom) => {
|
|
|
31
33
|
error: result._tag === "Failure" ? "Could not load app data." : void 0
|
|
32
34
|
};
|
|
33
35
|
};
|
|
36
|
+
var shortcutTurns = /* @__PURE__ */ new Map();
|
|
37
|
+
var inShortcutTurn = (accelerator, step) => {
|
|
38
|
+
const turn = (shortcutTurns.get(accelerator) ?? Promise.resolve()).then(step);
|
|
39
|
+
shortcutTurns.set(accelerator, turn);
|
|
40
|
+
void turn.then(() => {
|
|
41
|
+
if (shortcutTurns.get(accelerator) === turn) shortcutTurns.delete(accelerator);
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var strandedShortcuts = /* @__PURE__ */ new Map();
|
|
45
|
+
var removeShortcut = async (accelerator, remove) => {
|
|
46
|
+
const removed = await remove().then(
|
|
47
|
+
() => true,
|
|
48
|
+
() => false
|
|
49
|
+
);
|
|
50
|
+
const stranded = strandedShortcuts.get(accelerator) ?? /* @__PURE__ */ new Set();
|
|
51
|
+
if (removed) stranded.delete(remove);
|
|
52
|
+
else stranded.add(remove);
|
|
53
|
+
if (stranded.size === 0) strandedShortcuts.delete(accelerator);
|
|
54
|
+
else strandedShortcuts.set(accelerator, stranded);
|
|
55
|
+
};
|
|
56
|
+
var removeStranded = async (accelerator) => {
|
|
57
|
+
for (const remove of strandedShortcuts.get(accelerator) ?? []) {
|
|
58
|
+
await removeShortcut(accelerator, remove);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var useDesktopShortcut = (accelerator, handler) => {
|
|
62
|
+
const latest = useRef(handler);
|
|
63
|
+
useLayoutEffect(() => {
|
|
64
|
+
latest.current = handler;
|
|
65
|
+
});
|
|
66
|
+
const [failure, setFailure] = useState();
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
if (!desktop.available) return;
|
|
69
|
+
let active = true;
|
|
70
|
+
let remove;
|
|
71
|
+
inShortcutTurn(accelerator, async () => {
|
|
72
|
+
if (!active) return;
|
|
73
|
+
setFailure(void 0);
|
|
74
|
+
await removeStranded(accelerator);
|
|
75
|
+
await desktop.shortcuts.register(accelerator, () => {
|
|
76
|
+
if (active) latest.current();
|
|
77
|
+
}).then(
|
|
78
|
+
(registered) => {
|
|
79
|
+
remove = registered;
|
|
80
|
+
},
|
|
81
|
+
(error) => {
|
|
82
|
+
if (active) setFailure({ accelerator, error });
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
return () => {
|
|
87
|
+
active = false;
|
|
88
|
+
inShortcutTurn(accelerator, async () => {
|
|
89
|
+
if (remove !== void 0) await removeShortcut(accelerator, remove);
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
}, [accelerator]);
|
|
93
|
+
return failure?.accelerator === accelerator ? failure.error : void 0;
|
|
94
|
+
};
|
|
95
|
+
var useDesktopPermission = (name) => {
|
|
96
|
+
const [state, setState] = useState();
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
let active = true;
|
|
99
|
+
const read = () => void desktop.permission(name).then(
|
|
100
|
+
(value) => {
|
|
101
|
+
if (active) setState({ name, value });
|
|
102
|
+
},
|
|
103
|
+
() => void 0
|
|
104
|
+
);
|
|
105
|
+
read();
|
|
106
|
+
const stop = desktop.window.onFocus(read);
|
|
107
|
+
return () => {
|
|
108
|
+
active = false;
|
|
109
|
+
stop();
|
|
110
|
+
};
|
|
111
|
+
}, [name]);
|
|
112
|
+
return state?.name === name ? state.value : void 0;
|
|
113
|
+
};
|
|
114
|
+
var useDesktopBadge = (count) => {
|
|
115
|
+
const [failure, setFailure] = useState();
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (!desktop.available) return;
|
|
118
|
+
let active = true;
|
|
119
|
+
void desktop.badge.set(count).then(
|
|
120
|
+
() => {
|
|
121
|
+
if (active) setFailure(void 0);
|
|
122
|
+
},
|
|
123
|
+
(error) => {
|
|
124
|
+
if (active) setFailure({ count, error });
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
return () => {
|
|
128
|
+
active = false;
|
|
129
|
+
};
|
|
130
|
+
}, [count]);
|
|
131
|
+
useEffect(
|
|
132
|
+
() => () => {
|
|
133
|
+
if (desktop.available) void desktop.badge.set(null).catch(() => void 0);
|
|
134
|
+
},
|
|
135
|
+
[]
|
|
136
|
+
);
|
|
137
|
+
return failure?.count === count ? failure.error : void 0;
|
|
138
|
+
};
|
|
139
|
+
var useDesktopWindowEvent = (type, handler) => {
|
|
140
|
+
const latest = useRef(handler);
|
|
141
|
+
useLayoutEffect(() => {
|
|
142
|
+
latest.current = handler;
|
|
143
|
+
});
|
|
144
|
+
useEffect(
|
|
145
|
+
() => type === "blur" ? desktop.window.onBlur(() => latest.current()) : desktop.window.onFocus(() => latest.current()),
|
|
146
|
+
[type]
|
|
147
|
+
);
|
|
148
|
+
};
|
|
34
149
|
export {
|
|
35
|
-
useAppQuery
|
|
150
|
+
useAppQuery,
|
|
151
|
+
useDesktopBadge,
|
|
152
|
+
useDesktopPermission,
|
|
153
|
+
useDesktopShortcut,
|
|
154
|
+
useDesktopWindowEvent
|
|
36
155
|
};
|
package/js/skills/effect.js
CHANGED
|
@@ -4,8 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-XR7KZNKD.js";
|
|
5
5
|
import "../chunk-A6FRLRCN.js";
|
|
6
6
|
import "../chunk-6XBOKQ4E.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-IWLFLMIL.js";
|
|
7
|
+
import "../chunk-4XXHO5UG.js";
|
|
9
8
|
import "../chunk-NXEGROI6.js";
|
|
10
9
|
import "../chunk-CZ7CSFO4.js";
|
|
11
10
|
export {
|
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-FWK2WTJB.js";
|
|
5
|
+
import "./chunk-ALZDZ3ZT.js";
|
|
6
6
|
import {
|
|
7
7
|
failOnNetworkRefusal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MXFPSMNM.js";
|
|
9
9
|
import {
|
|
10
10
|
folderSkillsEffect,
|
|
11
11
|
skillFromFiles
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
httpProviderError,
|
|
17
17
|
method,
|
|
18
18
|
toPromise
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SXYFFXHM.js";
|
|
20
20
|
import {
|
|
21
21
|
NetworkRefused,
|
|
22
22
|
ProviderError,
|
|
@@ -35,17 +35,16 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
wrap
|
|
37
37
|
} from "./chunk-JLHRRTRH.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-CQCY3OZS.js";
|
|
39
39
|
import {
|
|
40
40
|
FetchHttpClient_exports
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GWFQCQB5.js";
|
|
42
42
|
import "./chunk-6XBOKQ4E.js";
|
|
43
43
|
import "./chunk-7A4ZSEM3.js";
|
|
44
|
-
import "./chunk-QLUWYCOT.js";
|
|
45
44
|
import {
|
|
46
45
|
HttpBody_exports,
|
|
47
46
|
HttpClient_exports
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-4XXHO5UG.js";
|
|
49
48
|
import {
|
|
50
49
|
Base64_exports,
|
|
51
50
|
Effect_exports,
|
package/js/ui/auth/contracts.js
CHANGED
|
@@ -5,7 +5,11 @@ import {
|
|
|
5
5
|
AppSignInFailure,
|
|
6
6
|
AppSignInId,
|
|
7
7
|
appSignInCallbackPath
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-UT2CBMW3.js";
|
|
9
|
+
import "../../chunk-ZWFMEH2Y.js";
|
|
10
|
+
import "../../chunk-HEFJFDU4.js";
|
|
11
|
+
import "../../chunk-7A4ZSEM3.js";
|
|
12
|
+
import "../../chunk-4XXHO5UG.js";
|
|
9
13
|
import "../../chunk-NXEGROI6.js";
|
|
10
14
|
import "../../chunk-CZ7CSFO4.js";
|
|
11
15
|
export {
|