@opengeni/contracts 0.37.0 → 0.38.2
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/{chunk-WVE7RAHN.js → chunk-Y7UWTT3T.js} +53 -4
- package/dist/chunk-Y7UWTT3T.js.map +1 -0
- package/dist/google-drive.js +1 -1
- package/dist/index.d.ts +30 -5
- package/dist/index.js +11 -1
- package/dist/workspace-state.d.ts +343 -0
- package/package.json +1 -1
- package/src/index.ts +11 -3
- package/src/workspace-state.ts +53 -0
- package/dist/chunk-WVE7RAHN.js.map +0 -1
|
@@ -2493,6 +2493,7 @@ var WORKSPACE_STATE_MAX_GAPS = 16;
|
|
|
2493
2493
|
var WORKSPACE_STATE_BASE_NAME_MAX_CHARS = 160;
|
|
2494
2494
|
var WORKSPACE_STATE_TOPIC_MAX_CHARS = 96;
|
|
2495
2495
|
var WORKSPACE_STATE_MEMORY_SAMPLE_LIMIT = 100;
|
|
2496
|
+
var WORKSPACE_STATE_EXPORT_SCHEMA_VERSION = 1;
|
|
2496
2497
|
var Count = z4.number().int().nonnegative();
|
|
2497
2498
|
var WorkspaceStateQuery = z4.object({ attemptId: z4.string().uuid().optional() }).strict();
|
|
2498
2499
|
var WorkspaceStateDocumentStatusCounts = z4.object({
|
|
@@ -2511,6 +2512,11 @@ var WorkspaceStateSourceKindCounts = z4.object({
|
|
|
2511
2512
|
web: Count,
|
|
2512
2513
|
other: Count
|
|
2513
2514
|
}).strict();
|
|
2515
|
+
var WorkspaceStateDocumentAuthorityKindCounts = z4.object({
|
|
2516
|
+
organization: Count,
|
|
2517
|
+
workspace: Count,
|
|
2518
|
+
personal: Count
|
|
2519
|
+
}).strict();
|
|
2514
2520
|
var WorkspaceStateMemoryStatusCounts = z4.object({
|
|
2515
2521
|
proposed: Count,
|
|
2516
2522
|
approved: Count,
|
|
@@ -2560,6 +2566,17 @@ var WorkspaceStatePolicy = z4.object({
|
|
|
2560
2566
|
status: z4.literal("not_implemented")
|
|
2561
2567
|
}).strict()
|
|
2562
2568
|
}).strict();
|
|
2569
|
+
var WorkspaceStatePreferences = z4.object({
|
|
2570
|
+
authority: z4.literal("preference_registry_preferences"),
|
|
2571
|
+
activeDescriptorCount: Count.max(64),
|
|
2572
|
+
activeDescriptorHash: z4.string().regex(/^[0-9a-f]{64}$/),
|
|
2573
|
+
scopeCounts: z4.object({
|
|
2574
|
+
organization: Count,
|
|
2575
|
+
workspace: Count,
|
|
2576
|
+
user: Count
|
|
2577
|
+
}).strict(),
|
|
2578
|
+
truncated: z4.boolean()
|
|
2579
|
+
}).strict();
|
|
2563
2580
|
var WorkspaceStateKnowledgeBase = z4.object({
|
|
2564
2581
|
id: z4.string().uuid(),
|
|
2565
2582
|
name: z4.string().min(1).max(WORKSPACE_STATE_BASE_NAME_MAX_CHARS),
|
|
@@ -2595,6 +2612,7 @@ var WorkspaceStateKnowledgeAvailable = z4.object({
|
|
|
2595
2612
|
inspectedVisibleDocumentCount: Count,
|
|
2596
2613
|
documentStatusCounts: WorkspaceStateDocumentStatusCounts,
|
|
2597
2614
|
sourceKindCounts: WorkspaceStateSourceKindCounts,
|
|
2615
|
+
authorityKindCounts: WorkspaceStateDocumentAuthorityKindCounts,
|
|
2598
2616
|
topics: z4.array(WorkspaceStateTopic).max(WORKSPACE_STATE_MAX_TOPICS),
|
|
2599
2617
|
topicsTruncated: z4.boolean(),
|
|
2600
2618
|
latestDocumentUpdatedAt: z4.string().datetime().nullable(),
|
|
@@ -2701,8 +2719,26 @@ var WorkspaceStateResponse = z4.object({
|
|
|
2701
2719
|
attemptGovernance: WorkspaceStateAttemptGovernance
|
|
2702
2720
|
}).strict(),
|
|
2703
2721
|
policy: WorkspaceStatePolicy,
|
|
2722
|
+
preferences: WorkspaceStatePreferences,
|
|
2704
2723
|
knowledge: WorkspaceStateKnowledge
|
|
2705
2724
|
}).strict();
|
|
2725
|
+
var WorkspaceStateExportOmission = z4.enum([
|
|
2726
|
+
"hidden_platform_prompts",
|
|
2727
|
+
"policy_bodies",
|
|
2728
|
+
"preference_content",
|
|
2729
|
+
"document_content_and_private_metadata",
|
|
2730
|
+
"memory_content_and_provenance",
|
|
2731
|
+
"secret_values_and_credentials",
|
|
2732
|
+
"session_messages_and_tool_outputs"
|
|
2733
|
+
]);
|
|
2734
|
+
var WorkspaceStateExportResponse = z4.object({
|
|
2735
|
+
kind: z4.literal("opengeni.workspace_state.sanitized_export"),
|
|
2736
|
+
schemaVersion: z4.literal(WORKSPACE_STATE_EXPORT_SCHEMA_VERSION),
|
|
2737
|
+
generatedAt: z4.string().datetime(),
|
|
2738
|
+
stateSha256: z4.string().regex(/^[0-9a-f]{64}$/),
|
|
2739
|
+
omissions: z4.array(WorkspaceStateExportOmission).length(7),
|
|
2740
|
+
state: WorkspaceStateResponse
|
|
2741
|
+
}).strict();
|
|
2706
2742
|
|
|
2707
2743
|
// src/preference-registry.ts
|
|
2708
2744
|
import { z as z5 } from "zod";
|
|
@@ -4685,7 +4721,8 @@ var McpPersonalConnectionDelegation = z7.object({
|
|
|
4685
4721
|
connectionId: z7.string().uuid(),
|
|
4686
4722
|
ownerSubjectId: z7.string().min(1).max(512),
|
|
4687
4723
|
providerDomain: z7.string().min(1).max(2048),
|
|
4688
|
-
kind: z7.enum(["oauth2", "api_key", "app_install", "delegated"]).optional()
|
|
4724
|
+
kind: z7.enum(["oauth2", "api_key", "app_install", "delegated"]).optional(),
|
|
4725
|
+
connectionType: z7.enum(["mcp", "social"]).optional()
|
|
4689
4726
|
}).strict();
|
|
4690
4727
|
var McpPersonalConnectionDelegations = z7.array(McpPersonalConnectionDelegation).max(128).superRefine((delegations, context) => {
|
|
4691
4728
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -6678,6 +6715,7 @@ var SocialProvider = z7.enum([
|
|
|
6678
6715
|
"custom"
|
|
6679
6716
|
]);
|
|
6680
6717
|
var SocialConnectionStatus = z7.enum(["connected", "needs_reauth", "disabled"]);
|
|
6718
|
+
var ConnectionOwnership = z7.enum(["workspace", "personal"]);
|
|
6681
6719
|
var SocialConnection = z7.object({
|
|
6682
6720
|
id: z7.string().uuid(),
|
|
6683
6721
|
accountId: z7.string().uuid(),
|
|
@@ -6686,6 +6724,7 @@ var SocialConnection = z7.object({
|
|
|
6686
6724
|
accountHandle: z7.string().min(1),
|
|
6687
6725
|
accountName: z7.string().nullable(),
|
|
6688
6726
|
externalAccountId: z7.string().nullable(),
|
|
6727
|
+
ownership: ConnectionOwnership,
|
|
6689
6728
|
status: SocialConnectionStatus,
|
|
6690
6729
|
scopes: z7.array(z7.string()),
|
|
6691
6730
|
credentialRef: z7.string().nullable(),
|
|
@@ -6733,6 +6772,7 @@ var CreateSocialPostRequest = z7.object({
|
|
|
6733
6772
|
var SocialOAuthProviderId = z7.enum(["x", "reddit"]);
|
|
6734
6773
|
var SocialOAuthStartRequest = z7.object({
|
|
6735
6774
|
provider: SocialOAuthProviderId,
|
|
6775
|
+
ownership: ConnectionOwnership.default("workspace"),
|
|
6736
6776
|
scopes: z7.array(z7.string().min(1)).optional(),
|
|
6737
6777
|
returnPath: z7.string().optional()
|
|
6738
6778
|
});
|
|
@@ -6813,7 +6853,6 @@ function compareDescending(left, right) {
|
|
|
6813
6853
|
return left > right ? -1 : 1;
|
|
6814
6854
|
}
|
|
6815
6855
|
var ConnectionCredentialBundle = z7.record(z7.string(), z7.unknown());
|
|
6816
|
-
var ConnectionOwnership = z7.enum(["workspace", "personal"]);
|
|
6817
6856
|
var CreateConnectionRequest = z7.object({
|
|
6818
6857
|
providerDomain: z7.string().min(1),
|
|
6819
6858
|
kind: ConnectionKind,
|
|
@@ -7075,6 +7114,9 @@ var Session = z7.object({
|
|
|
7075
7114
|
// stale in-flight op and retry against the new active sandbox.
|
|
7076
7115
|
activeSandboxId: z7.string().uuid().nullable(),
|
|
7077
7116
|
activeEpoch: z7.number().int().nonnegative(),
|
|
7117
|
+
// The explicit connected-machine project root selected for this session.
|
|
7118
|
+
// Null means the enrolled agent's launch workspace root.
|
|
7119
|
+
workingDir: z7.string().nullable().default(null),
|
|
7078
7120
|
variableSetId: z7.string().uuid().nullable().default(null),
|
|
7079
7121
|
/** @deprecated use variableSetId */
|
|
7080
7122
|
environmentId: z7.string().uuid().nullable().default(null),
|
|
@@ -9661,6 +9703,8 @@ var ClientModel = /* @__PURE__ */ defineModelContractSchema(
|
|
|
9661
9703
|
() => z7.object({
|
|
9662
9704
|
id: z7.string(),
|
|
9663
9705
|
label: z7.string(),
|
|
9706
|
+
/** Optional curated compact label for dense UI (e.g. mobile composer). */
|
|
9707
|
+
shortLabel: z7.string().min(1).max(64).optional(),
|
|
9664
9708
|
provider: z7.string(),
|
|
9665
9709
|
// provider id
|
|
9666
9710
|
providerLabel: z7.string(),
|
|
@@ -9986,14 +10030,17 @@ export {
|
|
|
9986
10030
|
WORKSPACE_STATE_BASE_NAME_MAX_CHARS,
|
|
9987
10031
|
WORKSPACE_STATE_TOPIC_MAX_CHARS,
|
|
9988
10032
|
WORKSPACE_STATE_MEMORY_SAMPLE_LIMIT,
|
|
10033
|
+
WORKSPACE_STATE_EXPORT_SCHEMA_VERSION,
|
|
9989
10034
|
WorkspaceStateQuery,
|
|
9990
10035
|
WorkspaceStateDocumentStatusCounts,
|
|
9991
10036
|
WorkspaceStateSourceKindCounts,
|
|
10037
|
+
WorkspaceStateDocumentAuthorityKindCounts,
|
|
9992
10038
|
WorkspaceStateMemoryStatusCounts,
|
|
9993
10039
|
WorkspaceStateMemoryKindCounts,
|
|
9994
10040
|
WorkspaceStatePolicyHead,
|
|
9995
10041
|
WorkspaceStatePolicyRevisionSummary,
|
|
9996
10042
|
WorkspaceStatePolicy,
|
|
10043
|
+
WorkspaceStatePreferences,
|
|
9997
10044
|
WorkspaceStateKnowledgeBase,
|
|
9998
10045
|
WorkspaceStateTopic,
|
|
9999
10046
|
WorkspaceStateGapCode,
|
|
@@ -10004,6 +10051,8 @@ export {
|
|
|
10004
10051
|
WorkspaceStateGovernanceDriftStatus,
|
|
10005
10052
|
WorkspaceStateAttemptGovernance,
|
|
10006
10053
|
WorkspaceStateResponse,
|
|
10054
|
+
WorkspaceStateExportOmission,
|
|
10055
|
+
WorkspaceStateExportResponse,
|
|
10007
10056
|
PREFERENCE_REGISTRY_CONTENT_MAX_CHARS,
|
|
10008
10057
|
PREFERENCE_REGISTRY_DESCRIPTOR_DESCRIPTION_MAX_CHARS,
|
|
10009
10058
|
PREFERENCE_REGISTRY_DESCRIPTOR_MAX_COUNT,
|
|
@@ -10392,6 +10441,7 @@ export {
|
|
|
10392
10441
|
EnablePackRequest,
|
|
10393
10442
|
SocialProvider,
|
|
10394
10443
|
SocialConnectionStatus,
|
|
10444
|
+
ConnectionOwnership,
|
|
10395
10445
|
SocialConnection,
|
|
10396
10446
|
CreateSocialConnectionRequest,
|
|
10397
10447
|
SocialPost,
|
|
@@ -10409,7 +10459,6 @@ export {
|
|
|
10409
10459
|
comparePersonalSlackCanonicalConnections,
|
|
10410
10460
|
selectCanonicalPersonalSlackConnection,
|
|
10411
10461
|
ConnectionCredentialBundle,
|
|
10412
|
-
ConnectionOwnership,
|
|
10413
10462
|
CreateConnectionRequest,
|
|
10414
10463
|
OpenGeniSlackBotInstallRequest,
|
|
10415
10464
|
OpenGeniSlackBotInstallStart,
|
|
@@ -10627,4 +10676,4 @@ export {
|
|
|
10627
10676
|
ClientConfig,
|
|
10628
10677
|
evaluateWorkspaceModelPolicy
|
|
10629
10678
|
};
|
|
10630
|
-
//# sourceMappingURL=chunk-
|
|
10679
|
+
//# sourceMappingURL=chunk-Y7UWTT3T.js.map
|