@opengeni/contracts 4.3.3-canary.39780140124001 → 4.4.1
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 +30 -30
- package/dist/{chunk-2IL5JNPD.js → chunk-4E32IUCQ.js} +2 -2
- package/dist/{chunk-BURXWUOC.js → chunk-7TQCV4DO.js} +92 -33
- package/dist/{chunk-BURXWUOC.js.map → chunk-7TQCV4DO.js.map} +1 -1
- package/dist/{chunk-DJ6PLUZE.js → chunk-ETVERQ3S.js} +21 -21
- package/dist/{chunk-TR623IYR.js → chunk-O52OHRH5.js} +5 -5
- package/dist/{chunk-NJMU6O3S.js → chunk-RUQ4I6DO.js} +4 -4
- package/dist/{chunk-6JVNWADW.js → chunk-W3NBPR4E.js} +2 -2
- package/dist/{chunk-GFMEIAB3.js → chunk-ZYVEJFNU.js} +5 -5
- package/dist/connect.js +33 -33
- package/dist/connection-authority.js +31 -31
- package/dist/editable-artifact-codec-registry.js +5 -5
- package/dist/editable-artifact-committed-transaction.js +3 -3
- package/dist/editable-artifact-live.js +5 -5
- package/dist/editable-artifact-serialized-commit.js +6 -6
- package/dist/editable-artifacts.js +33 -33
- package/dist/google-drive.js +31 -31
- package/dist/host-mcp-bindings.js +33 -33
- package/dist/index.d.ts +42 -0
- package/dist/index.js +341 -329
- package/dist/personal-github.js +30 -30
- package/dist/spreadsheet-artifact-commands.js +2 -2
- package/dist/spreadsheet-artifact-query.js +3 -3
- package/package.json +1 -1
- package/src/index.ts +118 -0
- /package/dist/{chunk-2IL5JNPD.js.map → chunk-4E32IUCQ.js.map} +0 -0
- /package/dist/{chunk-DJ6PLUZE.js.map → chunk-ETVERQ3S.js.map} +0 -0
- /package/dist/{chunk-TR623IYR.js.map → chunk-O52OHRH5.js.map} +0 -0
- /package/dist/{chunk-NJMU6O3S.js.map → chunk-RUQ4I6DO.js.map} +0 -0
- /package/dist/{chunk-6JVNWADW.js.map → chunk-W3NBPR4E.js.map} +0 -0
- /package/dist/{chunk-GFMEIAB3.js.map → chunk-ZYVEJFNU.js.map} +0 -0
package/dist/atlassian.js
CHANGED
|
@@ -17,48 +17,48 @@ import {
|
|
|
17
17
|
AtlassianSyncCadence,
|
|
18
18
|
SaveAtlassianSourcesRequest,
|
|
19
19
|
atlassianScopesAllowRead
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-CK33N4MN.js";
|
|
23
|
-
import "./chunk-6IXO76Z6.js";
|
|
20
|
+
} from "./chunk-7TQCV4DO.js";
|
|
21
|
+
import "./chunk-4JGHSSB7.js";
|
|
24
22
|
import "./chunk-A25JT3JW.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-O52OHRH5.js";
|
|
24
|
+
import "./chunk-LZ2LAHIX.js";
|
|
25
|
+
import "./chunk-TSWWZMUS.js";
|
|
26
|
+
import "./chunk-XDLAGX66.js";
|
|
27
27
|
import "./chunk-2ZIHHL72.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-C5E5WCHU.js";
|
|
30
|
-
import "./chunk-ZDCRWCGZ.js";
|
|
31
|
-
import "./chunk-SHO4YO4B.js";
|
|
32
|
-
import "./chunk-4JGHSSB7.js";
|
|
33
|
-
import "./chunk-C6HESWDB.js";
|
|
28
|
+
import "./chunk-D6XFSFSN.js";
|
|
34
29
|
import "./chunk-NDZHPTCL.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-LZ2LAHIX.js";
|
|
37
|
-
import "./chunk-YKZ4WU4P.js";
|
|
30
|
+
import "./chunk-SHO4YO4B.js";
|
|
38
31
|
import "./chunk-4VDMHLLL.js";
|
|
39
|
-
import "./chunk-KHHZTBP7.js";
|
|
40
|
-
import "./chunk-SWRN2DJ3.js";
|
|
41
|
-
import "./chunk-HRRU4QPI.js";
|
|
42
32
|
import "./chunk-T3HSWMA5.js";
|
|
43
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-KHHZTBP7.js";
|
|
44
34
|
import "./chunk-NVJMJWLL.js";
|
|
35
|
+
import "./chunk-ETVERQ3S.js";
|
|
45
36
|
import "./chunk-TOOJIBJC.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-XP5M3IKT.js";
|
|
48
|
-
import "./chunk-6JVNWADW.js";
|
|
49
|
-
import "./chunk-NJMU6O3S.js";
|
|
50
|
-
import "./chunk-OL23ARTF.js";
|
|
51
|
-
import "./chunk-7272KVWZ.js";
|
|
52
|
-
import "./chunk-RKX3NQYS.js";
|
|
53
|
-
import "./chunk-XDLAGX66.js";
|
|
37
|
+
import "./chunk-6IXO76Z6.js";
|
|
54
38
|
import "./chunk-J4HQ3UKY.js";
|
|
39
|
+
import "./chunk-YKZ4WU4P.js";
|
|
40
|
+
import "./chunk-EZMMXU2Z.js";
|
|
41
|
+
import "./chunk-OL23ARTF.js";
|
|
42
|
+
import "./chunk-CK33N4MN.js";
|
|
43
|
+
import "./chunk-VGP74254.js";
|
|
44
|
+
import "./chunk-C6HESWDB.js";
|
|
45
|
+
import "./chunk-C5E5WCHU.js";
|
|
46
|
+
import "./chunk-ZDCRWCGZ.js";
|
|
47
|
+
import "./chunk-SWRN2DJ3.js";
|
|
48
|
+
import "./chunk-HRRU4QPI.js";
|
|
49
|
+
import "./chunk-ZYVEJFNU.js";
|
|
55
50
|
import "./chunk-PTSROVDG.js";
|
|
56
|
-
import "./chunk-WQI7VNN4.js";
|
|
57
|
-
import "./chunk-D6XFSFSN.js";
|
|
58
|
-
import "./chunk-TSWWZMUS.js";
|
|
59
51
|
import "./chunk-4QO6GJUX.js";
|
|
52
|
+
import "./chunk-EKWNTOG3.js";
|
|
60
53
|
import "./chunk-56SNIMDO.js";
|
|
54
|
+
import "./chunk-XP5M3IKT.js";
|
|
55
|
+
import "./chunk-PUIUXIOL.js";
|
|
56
|
+
import "./chunk-RKX3NQYS.js";
|
|
57
|
+
import "./chunk-7272KVWZ.js";
|
|
58
|
+
import "./chunk-W3NBPR4E.js";
|
|
59
|
+
import "./chunk-RUQ4I6DO.js";
|
|
61
60
|
import "./chunk-WVCFSOUZ.js";
|
|
61
|
+
import "./chunk-WQI7VNN4.js";
|
|
62
62
|
export {
|
|
63
63
|
ATLASSIAN_CREDENTIAL_LABEL,
|
|
64
64
|
ATLASSIAN_CREDENTIAL_ROLE,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConnectionKind,
|
|
3
3
|
SessionTenancyVisibility
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7TQCV4DO.js";
|
|
5
5
|
import {
|
|
6
6
|
defineSchema
|
|
7
7
|
} from "./chunk-56SNIMDO.js";
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
ConnectionUseAuditFact,
|
|
205
205
|
ConnectionUseAuthorizationResult
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
207
|
+
//# sourceMappingURL=chunk-4E32IUCQ.js.map
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MediaGenerationResult
|
|
3
|
+
} from "./chunk-A25JT3JW.js";
|
|
4
|
+
import {
|
|
5
|
+
ConnectorDocumentDestination
|
|
6
|
+
} from "./chunk-LZ2LAHIX.js";
|
|
7
|
+
import {
|
|
8
|
+
UsageAllowancePeriod,
|
|
9
|
+
UsageAllowanceStatus,
|
|
10
|
+
UsageAllowanceWindow
|
|
11
|
+
} from "./chunk-TSWWZMUS.js";
|
|
12
|
+
import {
|
|
13
|
+
CustomMcpSetupRequest
|
|
14
|
+
} from "./chunk-XDLAGX66.js";
|
|
15
|
+
import {
|
|
16
|
+
modelLogoUrl
|
|
17
|
+
} from "./chunk-2ZIHHL72.js";
|
|
18
|
+
import {
|
|
19
|
+
normalizeAutomaticSessionTitle
|
|
20
|
+
} from "./chunk-T3HSWMA5.js";
|
|
21
|
+
import {
|
|
22
|
+
OPENGENI_WEBHOOK_TEST_EVENT_TYPE,
|
|
23
|
+
WORKSPACE_WEBHOOK_EVENT_TYPES
|
|
24
|
+
} from "./chunk-6IXO76Z6.js";
|
|
25
|
+
import {
|
|
26
|
+
XaiProviderAccountAuthoritySnapshotV1
|
|
27
|
+
} from "./chunk-YKZ4WU4P.js";
|
|
28
|
+
import {
|
|
29
|
+
SessionUsageLimit,
|
|
30
|
+
SessionUsageLimitMicros
|
|
31
|
+
} from "./chunk-OL23ARTF.js";
|
|
1
32
|
import {
|
|
2
33
|
WORKSPACE_CONTROL_REASON_MAX_BYTES,
|
|
3
34
|
boundSessionEventPayload,
|
|
@@ -5,20 +36,10 @@ import {
|
|
|
5
36
|
sessionEventJsonBytes,
|
|
6
37
|
workspaceControlUtf8Bytes
|
|
7
38
|
} from "./chunk-CK33N4MN.js";
|
|
8
|
-
import {
|
|
9
|
-
OPENGENI_WEBHOOK_TEST_EVENT_TYPE,
|
|
10
|
-
WORKSPACE_WEBHOOK_EVENT_TYPES
|
|
11
|
-
} from "./chunk-6IXO76Z6.js";
|
|
12
|
-
import {
|
|
13
|
-
MediaGenerationResult
|
|
14
|
-
} from "./chunk-A25JT3JW.js";
|
|
15
39
|
import {
|
|
16
40
|
RETAINED_OUTPUT_MAX_PAGE_BYTES,
|
|
17
41
|
RetainedArtifactReferenceSchema
|
|
18
42
|
} from "./chunk-VGP74254.js";
|
|
19
|
-
import {
|
|
20
|
-
modelLogoUrl
|
|
21
|
-
} from "./chunk-2ZIHHL72.js";
|
|
22
43
|
import {
|
|
23
44
|
GeneratePasswordSpec,
|
|
24
45
|
VAULT_LIMITS,
|
|
@@ -27,12 +48,6 @@ import {
|
|
|
27
48
|
VaultPolicy,
|
|
28
49
|
isValidSecretName
|
|
29
50
|
} from "./chunk-C6HESWDB.js";
|
|
30
|
-
import {
|
|
31
|
-
ConnectorDocumentDestination
|
|
32
|
-
} from "./chunk-LZ2LAHIX.js";
|
|
33
|
-
import {
|
|
34
|
-
XaiProviderAccountAuthoritySnapshotV1
|
|
35
|
-
} from "./chunk-YKZ4WU4P.js";
|
|
36
51
|
import {
|
|
37
52
|
OrganizationAccessPolicy,
|
|
38
53
|
OrganizationWorkspaceScope
|
|
@@ -40,21 +55,6 @@ import {
|
|
|
40
55
|
import {
|
|
41
56
|
Permission
|
|
42
57
|
} from "./chunk-HRRU4QPI.js";
|
|
43
|
-
import {
|
|
44
|
-
normalizeAutomaticSessionTitle
|
|
45
|
-
} from "./chunk-T3HSWMA5.js";
|
|
46
|
-
import {
|
|
47
|
-
SessionUsageLimit,
|
|
48
|
-
SessionUsageLimitMicros
|
|
49
|
-
} from "./chunk-OL23ARTF.js";
|
|
50
|
-
import {
|
|
51
|
-
CustomMcpSetupRequest
|
|
52
|
-
} from "./chunk-XDLAGX66.js";
|
|
53
|
-
import {
|
|
54
|
-
UsageAllowancePeriod,
|
|
55
|
-
UsageAllowanceStatus,
|
|
56
|
-
UsageAllowanceWindow
|
|
57
|
-
} from "./chunk-TSWWZMUS.js";
|
|
58
58
|
import {
|
|
59
59
|
defineSchema
|
|
60
60
|
} from "./chunk-56SNIMDO.js";
|
|
@@ -39498,6 +39498,52 @@ async function verifyEnrollmentBearer(secret, token, nowSeconds = Math.floor(Dat
|
|
|
39498
39498
|
return payload.data;
|
|
39499
39499
|
}
|
|
39500
39500
|
var OPENGENI_BROWSER_EXTENSION_URL = "https://chromewebstore.google.com/detail/opengeni-browser/phpmmcbeelfkcinjfbbggegjdcdmnnch";
|
|
39501
|
+
var USER_SETUP_BLOCKERS = [
|
|
39502
|
+
{
|
|
39503
|
+
code: "attached_browser_unavailable",
|
|
39504
|
+
capabilityId: "api:connected-machine",
|
|
39505
|
+
purpose: "chrome",
|
|
39506
|
+
problem: "No Chrome profile is connected through the browser extension.",
|
|
39507
|
+
rationale: "Connect your Chrome so the agent can use it.",
|
|
39508
|
+
nextStep: `connect their computer as a Connected Machine, then add the browser extension to Chrome: ${OPENGENI_BROWSER_EXTENSION_URL}`
|
|
39509
|
+
},
|
|
39510
|
+
{
|
|
39511
|
+
code: "personal_machine_permission_required",
|
|
39512
|
+
capabilityId: "api:connected-machine",
|
|
39513
|
+
problem: "This is a personal (Only me) machine, and its owner has not allowed this chat to use it yet.",
|
|
39514
|
+
rationale: "Allow this chat to use your computer.",
|
|
39515
|
+
nextStep: "open this chat in Opengeni and allow it to use their machine"
|
|
39516
|
+
}
|
|
39517
|
+
];
|
|
39518
|
+
function userSetupBlocker(code) {
|
|
39519
|
+
if (!code) return null;
|
|
39520
|
+
return USER_SETUP_BLOCKERS.find((blocker) => blocker.code === code) ?? null;
|
|
39521
|
+
}
|
|
39522
|
+
function userSetupCardShownMessage(blocker, chatUrl = null) {
|
|
39523
|
+
const elsewhere = chatUrl ? `If they are reading this chat somewhere else (for example Slack, or this is a worker or scheduled chat), give them this link to it: ${chatUrl}. ` : "If they are reading this chat somewhere else (for example Slack, or this is a worker or scheduled chat), tell them to open this chat in Opengeni to use it. ";
|
|
39524
|
+
return `${blocker.problem} A card that fixes this is now posted in this chat in Opengeni. If they are reading this chat in Opengeni, tell them in one short sentence to use it there; do not describe its buttons or steps, and do not post another card. ` + elsewhere + "Do not wait for it and do not retry: finishing the card sends a message that continues this chat.";
|
|
39525
|
+
}
|
|
39526
|
+
function userSetupCardUnpostedMessage(blocker) {
|
|
39527
|
+
return `${blocker.problem} The person can fix this. Offer the fix in this reply: post the setup card with capability_authorization_request (capabilityId ${blocker.capabilityId}) if that tool is available, and tell them the exact next step: ${blocker.nextStep}. Do not only report that it is unavailable.`;
|
|
39528
|
+
}
|
|
39529
|
+
function userSetupUnavailableMessage(blocker) {
|
|
39530
|
+
return `${blocker.problem} This deployment doesn't support the setup that fixes it, so the person can't fix it here. Tell them that in one short sentence and carry on without it; do not post a setup card.`;
|
|
39531
|
+
}
|
|
39532
|
+
function sessionChatUrl(base, workspaceId, sessionId) {
|
|
39533
|
+
if (!base) return null;
|
|
39534
|
+
try {
|
|
39535
|
+
const url = new URL(
|
|
39536
|
+
`/workspaces/${encodeURIComponent(workspaceId)}/sessions/${encodeURIComponent(sessionId)}`,
|
|
39537
|
+
base
|
|
39538
|
+
);
|
|
39539
|
+
if (url.protocol !== "https:" && url.protocol !== "http:" || url.username || url.password) {
|
|
39540
|
+
return null;
|
|
39541
|
+
}
|
|
39542
|
+
return url.toString();
|
|
39543
|
+
} catch {
|
|
39544
|
+
return null;
|
|
39545
|
+
}
|
|
39546
|
+
}
|
|
39501
39547
|
var EnrollTokenScope = /* @__PURE__ */ defineSchema(() => z72.enum(["user", "workspace"]));
|
|
39502
39548
|
var enrollTokenId = /* @__PURE__ */ defineSchema(
|
|
39503
39549
|
() => z72.string().regex(/^[A-Za-z0-9_-]{16,128}$/)
|
|
@@ -48562,7 +48608,14 @@ var ToolAuthNeededPayload = /* @__PURE__ */ defineSchema(
|
|
|
48562
48608
|
* answers a refused switch or one-off command. Names the request; it grants
|
|
48563
48609
|
* nothing.
|
|
48564
48610
|
*/
|
|
48565
|
-
requestedSandboxId: z72.string().uuid().optional()
|
|
48611
|
+
requestedSandboxId: z72.string().uuid().optional(),
|
|
48612
|
+
/**
|
|
48613
|
+
* Why a Connected Machine card was posted, when it is for something
|
|
48614
|
+
* narrower than running this chat on a machine. `chrome`: the agent needs
|
|
48615
|
+
* the person's own Chrome, so the card leads with connecting a computer
|
|
48616
|
+
* and adding the Opengeni Browser extension. Grants nothing.
|
|
48617
|
+
*/
|
|
48618
|
+
purpose: z72.literal("chrome").optional()
|
|
48566
48619
|
}).superRefine((payload, context) => {
|
|
48567
48620
|
if (payload.setupRequest && (payload.capability || payload.authoritySource === "host")) {
|
|
48568
48621
|
context.addIssue({
|
|
@@ -53762,6 +53815,12 @@ export {
|
|
|
53762
53815
|
signEnrollmentBearer,
|
|
53763
53816
|
verifyEnrollmentBearer,
|
|
53764
53817
|
OPENGENI_BROWSER_EXTENSION_URL,
|
|
53818
|
+
USER_SETUP_BLOCKERS,
|
|
53819
|
+
userSetupBlocker,
|
|
53820
|
+
userSetupCardShownMessage,
|
|
53821
|
+
userSetupCardUnpostedMessage,
|
|
53822
|
+
userSetupUnavailableMessage,
|
|
53823
|
+
sessionChatUrl,
|
|
53765
53824
|
EnrollTokenScope,
|
|
53766
53825
|
EnrollTokenPayload,
|
|
53767
53826
|
enrollTokenScope,
|
|
@@ -54761,4 +54820,4 @@ export {
|
|
|
54761
54820
|
AtlassianDisconnectRequest,
|
|
54762
54821
|
atlassianScopesAllowRead
|
|
54763
54822
|
};
|
|
54764
|
-
//# sourceMappingURL=chunk-
|
|
54823
|
+
//# sourceMappingURL=chunk-7TQCV4DO.js.map
|