@opengeni/contracts 1.4.2 → 1.4.4
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/dist/atlassian.js +1 -1
- package/dist/{chunk-IBQ2IDBV.js → chunk-4GWPPWL3.js} +2 -2
- package/dist/{chunk-LGT7XRX7.js → chunk-T5AUJN7S.js} +26 -2
- package/dist/{chunk-LGT7XRX7.js.map → chunk-T5AUJN7S.js.map} +1 -1
- package/dist/connect.js +1 -1
- package/dist/connection-authority.js +2 -2
- package/dist/google-drive.js +1 -1
- package/dist/host-mcp-bindings.js +2 -2
- package/dist/index.js +1 -1
- package/dist/interaction.d.ts +10 -0
- package/dist/personal-github.js +1 -1
- package/package.json +1 -1
- package/src/interaction.ts +24 -0
- /package/dist/{chunk-IBQ2IDBV.js.map → chunk-4GWPPWL3.js.map} +0 -0
package/dist/connect.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
ConnectionUseAuthorizationResult,
|
|
7
7
|
ConnectionUseDenialReason,
|
|
8
8
|
ConnectionUseSelectionSource
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-4GWPPWL3.js";
|
|
10
|
+
import "./chunk-T5AUJN7S.js";
|
|
11
11
|
import "./chunk-4JGHSSB7.js";
|
|
12
12
|
import "./chunk-5IXYF6XN.js";
|
|
13
13
|
import "./chunk-NRMCVHAU.js";
|
package/dist/google-drive.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-KR2V42UZ.js";
|
|
4
4
|
import {
|
|
5
5
|
ConnectionUseAuthoritySnapshot
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4GWPPWL3.js";
|
|
7
7
|
import {
|
|
8
8
|
HostMcpCreateSelections,
|
|
9
9
|
ManagedUserResourceGrantMode,
|
|
10
10
|
McpServerConnectionRef,
|
|
11
11
|
SessionTenancyVisibility,
|
|
12
12
|
stableJson
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T5AUJN7S.js";
|
|
14
14
|
import "./chunk-4JGHSSB7.js";
|
|
15
15
|
import "./chunk-5IXYF6XN.js";
|
|
16
16
|
import "./chunk-NRMCVHAU.js";
|
package/dist/index.js
CHANGED
|
@@ -2187,7 +2187,7 @@ import {
|
|
|
2187
2187
|
workspaceLearningPolicyRouterContext,
|
|
2188
2188
|
workspaceLearningSourceKey,
|
|
2189
2189
|
workspaceSlackReactionChannelAllowed
|
|
2190
|
-
} from "./chunk-
|
|
2190
|
+
} from "./chunk-T5AUJN7S.js";
|
|
2191
2191
|
import {
|
|
2192
2192
|
EPHEMERAL_CHROMIUM_DRIVER_ID,
|
|
2193
2193
|
browserSessionStorageMode
|
package/dist/interaction.d.ts
CHANGED
|
@@ -7700,6 +7700,7 @@ export declare const ComputerSessionCapabilities: z.ZodObject<{
|
|
|
7700
7700
|
screenCapture: z.ZodBoolean;
|
|
7701
7701
|
semanticActions: z.ZodBoolean;
|
|
7702
7702
|
pointerInput: z.ZodBoolean;
|
|
7703
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
7703
7704
|
keyboardInput: z.ZodBoolean;
|
|
7704
7705
|
clipboard: z.ZodBoolean;
|
|
7705
7706
|
backgroundActions: z.ZodBoolean;
|
|
@@ -7770,6 +7771,7 @@ export declare const ComputerSession: z.ZodObject<{
|
|
|
7770
7771
|
screenCapture: z.ZodBoolean;
|
|
7771
7772
|
semanticActions: z.ZodBoolean;
|
|
7772
7773
|
pointerInput: z.ZodBoolean;
|
|
7774
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
7773
7775
|
keyboardInput: z.ZodBoolean;
|
|
7774
7776
|
clipboard: z.ZodBoolean;
|
|
7775
7777
|
backgroundActions: z.ZodBoolean;
|
|
@@ -7956,6 +7958,8 @@ export declare const ComputerAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7956
7958
|
middle: "middle";
|
|
7957
7959
|
right: "right";
|
|
7958
7960
|
}>>;
|
|
7961
|
+
clickCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
7962
|
+
continuationOfOperationId: z.ZodOptional<z.ZodString>;
|
|
7959
7963
|
}, z.core.$strict>, z.ZodObject<{
|
|
7960
7964
|
type: z.ZodLiteral<"keyboard">;
|
|
7961
7965
|
action: z.ZodEnum<{
|
|
@@ -8058,6 +8062,8 @@ export declare const ComputerActionCommand: z.ZodObject<{
|
|
|
8058
8062
|
middle: "middle";
|
|
8059
8063
|
right: "right";
|
|
8060
8064
|
}>>;
|
|
8065
|
+
clickCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
8066
|
+
continuationOfOperationId: z.ZodOptional<z.ZodString>;
|
|
8061
8067
|
}, z.core.$strict>, z.ZodObject<{
|
|
8062
8068
|
type: z.ZodLiteral<"keyboard">;
|
|
8063
8069
|
action: z.ZodEnum<{
|
|
@@ -8285,6 +8291,7 @@ export declare const ComputerSessionListResponse: z.ZodObject<{
|
|
|
8285
8291
|
screenCapture: z.ZodBoolean;
|
|
8286
8292
|
semanticActions: z.ZodBoolean;
|
|
8287
8293
|
pointerInput: z.ZodBoolean;
|
|
8294
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
8288
8295
|
keyboardInput: z.ZodBoolean;
|
|
8289
8296
|
clipboard: z.ZodBoolean;
|
|
8290
8297
|
backgroundActions: z.ZodBoolean;
|
|
@@ -8364,6 +8371,7 @@ export declare const ComputerSessionMutationResponse: z.ZodObject<{
|
|
|
8364
8371
|
screenCapture: z.ZodBoolean;
|
|
8365
8372
|
semanticActions: z.ZodBoolean;
|
|
8366
8373
|
pointerInput: z.ZodBoolean;
|
|
8374
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
8367
8375
|
keyboardInput: z.ZodBoolean;
|
|
8368
8376
|
clipboard: z.ZodBoolean;
|
|
8369
8377
|
backgroundActions: z.ZodBoolean;
|
|
@@ -8601,6 +8609,8 @@ export declare const ComputerActionRequest: z.ZodObject<{
|
|
|
8601
8609
|
middle: "middle";
|
|
8602
8610
|
right: "right";
|
|
8603
8611
|
}>>;
|
|
8612
|
+
clickCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
8613
|
+
continuationOfOperationId: z.ZodOptional<z.ZodString>;
|
|
8604
8614
|
}, z.core.$strict>, z.ZodObject<{
|
|
8605
8615
|
type: z.ZodLiteral<"keyboard">;
|
|
8606
8616
|
action: z.ZodEnum<{
|
package/dist/personal-github.js
CHANGED
package/package.json
CHANGED
package/src/interaction.ts
CHANGED
|
@@ -2938,6 +2938,8 @@ export const ComputerSessionCapabilities = z
|
|
|
2938
2938
|
screenCapture: z.boolean(),
|
|
2939
2939
|
semanticActions: z.boolean(),
|
|
2940
2940
|
pointerInput: z.boolean(),
|
|
2941
|
+
/** A causal count-2 click requires its exact confirmed first operation. */
|
|
2942
|
+
pointerClickContinuation: z.boolean().optional(),
|
|
2941
2943
|
keyboardInput: z.boolean(),
|
|
2942
2944
|
clipboard: z.boolean(),
|
|
2943
2945
|
backgroundActions: z.boolean(),
|
|
@@ -3097,11 +3099,26 @@ export const ComputerAction = z.discriminatedUnion("type", [
|
|
|
3097
3099
|
deltaX: z.number().finite().optional(),
|
|
3098
3100
|
deltaY: z.number().finite().optional(),
|
|
3099
3101
|
button: z.enum(["left", "right", "middle"]).optional(),
|
|
3102
|
+
clickCount: z.union([z.literal(1), z.literal(2)]).optional(),
|
|
3103
|
+
continuationOfOperationId: z.string().uuid().optional(),
|
|
3100
3104
|
})
|
|
3101
3105
|
.strict()
|
|
3102
3106
|
.superRefine((action, context) => {
|
|
3103
3107
|
const hasEnd = action.endX !== undefined || action.endY !== undefined;
|
|
3104
3108
|
const hasDelta = action.deltaX !== undefined || action.deltaY !== undefined;
|
|
3109
|
+
if (action.action !== "click" && action.clickCount !== undefined) {
|
|
3110
|
+
context.addIssue({
|
|
3111
|
+
code: "custom",
|
|
3112
|
+
message: "pointer clickCount requires click",
|
|
3113
|
+
});
|
|
3114
|
+
}
|
|
3115
|
+
if ((action.clickCount === 2) !== (action.continuationOfOperationId !== undefined)) {
|
|
3116
|
+
context.addIssue({
|
|
3117
|
+
code: "custom",
|
|
3118
|
+
path: ["continuationOfOperationId"],
|
|
3119
|
+
message: "clickCount 2 requires exactly one prior first-click operation",
|
|
3120
|
+
});
|
|
3121
|
+
}
|
|
3105
3122
|
if (action.action === "drag" && (action.endX === undefined || action.endY === undefined)) {
|
|
3106
3123
|
context.addIssue({
|
|
3107
3124
|
code: "custom",
|
|
@@ -3198,6 +3215,13 @@ export const ComputerActionCommand = z
|
|
|
3198
3215
|
});
|
|
3199
3216
|
}
|
|
3200
3217
|
if (command.action.type === "pointer") {
|
|
3218
|
+
if (command.action.continuationOfOperationId === command.operationId) {
|
|
3219
|
+
context.addIssue({
|
|
3220
|
+
code: "custom",
|
|
3221
|
+
path: ["action", "continuationOfOperationId"],
|
|
3222
|
+
message: "a click cannot continue its own operation",
|
|
3223
|
+
});
|
|
3224
|
+
}
|
|
3201
3225
|
if (command.expectedFrameId !== command.action.frameId) {
|
|
3202
3226
|
context.addIssue({
|
|
3203
3227
|
code: "custom",
|
|
File without changes
|